From 42d005b71dc1a8b4572b586e6987624a098f2d16 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 2 Jan 2024 15:54:10 +0000 Subject: [PATCH 1/2] make tfgen --- .pulumi-java-gen.version | 2 +- examples/go.mod | 12 ++++++------ examples/go.sum | 24 ++++++++++++------------ provider/go.mod | 12 ++++++------ provider/go.sum | 24 ++++++++++++------------ sdk/go.mod | 10 +++++----- sdk/go.sum | 20 ++++++++++---------- 7 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index b5d0ec55..6f060dcb 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 1610dae5..c554603e 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-mongodbatlas/examples/v2 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 @@ -165,14 +165,14 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.15.0 // indirect + golang.org/x/crypto v0.17.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.18.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.5.0 // indirect - golang.org/x/sys v0.14.0 // indirect - golang.org/x/term v0.14.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect golang.org/x/tools v0.15.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 337fd269..09efe518 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= @@ -1767,8 +1767,8 @@ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= -golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= +golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -2089,8 +2089,8 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -2100,8 +2100,8 @@ golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/provider/go.mod b/provider/go.mod index 56eba83b..e9eb34ca 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -8,9 +8,9 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf require ( github.com/mongodb/terraform-provider-mongodbatlas/shim v0.0.0 - github.com/pulumi/pulumi-terraform-bridge/pf v0.22.0 - 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/pf v0.23.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -184,11 +184,11 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // 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.6 // 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/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index 3838564b..d81d5b80 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2222,24 +2222,24 @@ 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/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/pf v0.22.0 h1:sgQslsC7PqYh3Flxk3bZhXc3DNLiYUmxUTBogR0l46w= -github.com/pulumi/pulumi-terraform-bridge/pf v0.22.0/go.mod h1:ejVXJ1pqYjapUPzl+3ERcw2CQzQvqir6bgfUVJH14P8= +github.com/pulumi/pulumi-terraform-bridge/pf v0.23.0 h1:j0rOtgpeGn2ZfyEVJtg5QhCEQEiMgz0rmFO6qWUFLzA= +github.com/pulumi/pulumi-terraform-bridge/pf v0.23.0/go.mod h1:V9uoQlm7O+B9m9y2f7BE5tvG+BGVjWzLN1tlrRLHUEE= 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.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= -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 5742de7e..95001517 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 @@ -75,13 +75,13 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.15.0 // indirect + golang.org/x/crypto v0.17.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/net v0.18.0 // indirect golang.org/x/sync v0.5.0 // indirect - golang.org/x/sys v0.14.0 // indirect - golang.org/x/term v0.14.0 // indirect + golang.org/x/sys v0.15.0 // indirect + golang.org/x/term v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.15.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 53c904cc..1e455351 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= @@ -212,8 +212,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= -golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= +golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= +golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -264,15 +264,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.14.0 h1:LGK9IlZ8T9jvdy6cTdfKUCltatMFOehAQo9SRC46UQ8= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= +golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= From b1e2b0e21f6f4b87217c8b99224938f1ff42c658 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 2 Jan 2024 15:55:45 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/java/build.gradle | 2 +- .../mongodbatlas/AccessListApiKeyArgs.java | 9 +- .../mongodbatlas/AdvancedClusterArgs.java | 13 +- .../mongodbatlas/AlertConfigurationArgs.java | 9 +- .../com/pulumi/mongodbatlas/ApiKeyArgs.java | 13 +- .../com/pulumi/mongodbatlas/AuditingArgs.java | 5 +- .../BackupCompliancePolicyArgs.java | 33 ++- .../mongodbatlas/CloudBackupScheduleArgs.java | 9 +- .../mongodbatlas/CloudBackupSnapshotArgs.java | 17 +- .../CloudBackupSnapshotExportBucketArgs.java | 17 +- .../CloudBackupSnapshotExportJobArgs.java | 21 +- .../CloudBackupSnapshotRestoreJobArgs.java | 13 +- .../mongodbatlas/CloudProviderAccessArgs.java | 9 +- .../CloudProviderAccessAuthorizationArgs.java | 9 +- .../CloudProviderAccessSetupArgs.java | 9 +- .../com/pulumi/mongodbatlas/ClusterArgs.java | 13 +- .../ClusterOutageSimulationArgs.java | 13 +- .../pulumi/mongodbatlas/CustomDbRoleArgs.java | 9 +- .../CustomDnsConfigurationClusterAwsArgs.java | 9 +- .../mongodbatlas/DataLakePipelineArgs.java | 5 +- .../pulumi/mongodbatlas/DatabaseUserArgs.java | 13 +- .../mongodbatlas/EncryptionAtRestArgs.java | 5 +- .../pulumi/mongodbatlas/EventTriggerArgs.java | 13 +- .../FederatedDatabaseInstanceArgs.java | 5 +- .../mongodbatlas/FederatedQueryLimitArgs.java | 21 +- ...FederatedSettingsIdentityProviderArgs.java | 29 ++- .../FederatedSettingsOrgConfigArgs.java | 17 +- .../FederatedSettingsOrgRoleMappingArgs.java | 17 +- .../mongodbatlas/GlobalClusterConfigArgs.java | 9 +- .../mongodbatlas/LdapConfigurationArgs.java | 21 +- .../pulumi/mongodbatlas/LdapVerifyArgs.java | 21 +- .../mongodbatlas/MaintenanceWindowArgs.java | 5 +- .../mongodbatlas/NetworkContainerArgs.java | 9 +- .../mongodbatlas/NetworkPeeringArgs.java | 13 +- .../mongodbatlas/OnlineArchiveArgs.java | 21 +- .../mongodbatlas/OrgInvitationArgs.java | 13 +- .../pulumi/mongodbatlas/OrganizationArgs.java | 13 +- .../PrivateEndpointRegionalModeArgs.java | 5 +- .../mongodbatlas/PrivateLinkEndpointArgs.java | 13 +- .../PrivateLinkEndpointServiceArgs.java | 17 +- .../PrivatelinkEndpointServerlessArgs.java | 13 +- ...erviceDataFederationOnlineArchiveArgs.java | 13 +- ...vatelinkEndpointServiceServerlessArgs.java | 17 +- .../mongodbatlas/ProjectApiKeyArgs.java | 9 +- .../com/pulumi/mongodbatlas/ProjectArgs.java | 5 +- .../mongodbatlas/ProjectInvitationArgs.java | 13 +- .../mongodbatlas/ProjectIpAccessListArgs.java | 5 +- .../mongodbatlas/SearchDeploymentArgs.java | 13 +- .../pulumi/mongodbatlas/SearchIndexArgs.java | 17 +- .../mongodbatlas/ServerlessInstanceArgs.java | 17 +- .../com/pulumi/mongodbatlas/TeamArgs.java | 9 +- .../com/pulumi/mongodbatlas/TeamsArgs.java | 9 +- .../ThirdPartyIntegrationArgs.java | 9 +- .../X509AuthenticationDatabaseUserArgs.java | 5 +- .../config/inputs/AssumeRole.java | 9 + .../AdvancedClusterReplicationSpecArgs.java | 5 +- ...ionSpecRegionConfigAnalyticsSpecsArgs.java | 5 +- ...lusterReplicationSpecRegionConfigArgs.java | 13 +- ...ionSpecRegionConfigElectableSpecsArgs.java | 5 +- ...tionSpecRegionConfigReadOnlySpecsArgs.java | 5 +- .../inputs/AdvancedClusterTagArgs.java | 9 +- .../inputs/AlertConfigurationMatcherArgs.java | 13 +- ...onfigurationMetricThresholdConfigArgs.java | 5 +- .../AlertConfigurationNotificationArgs.java | 5 +- ...ompliancePolicyOnDemandPolicyItemArgs.java | 13 +- ...upCompliancePolicyPolicyItemDailyArgs.java | 13 +- ...pCompliancePolicyPolicyItemHourlyArgs.java | 13 +- ...CompliancePolicyPolicyItemMonthlyArgs.java | 13 +- ...pCompliancePolicyPolicyItemWeeklyArgs.java | 13 +- ...loudBackupSchedulePolicyItemDailyArgs.java | 13 +- ...oudBackupSchedulePolicyItemHourlyArgs.java | 13 +- ...udBackupSchedulePolicyItemMonthlyArgs.java | 13 +- ...oudBackupSchedulePolicyItemWeeklyArgs.java | 13 +- ...BackupSnapshotExportJobCustomDataArgs.java | 9 +- ...oudProviderAccessAuthorizationAwsArgs.java | 5 +- ...dProviderAccessAuthorizationAzureArgs.java | 13 +- ...oudProviderAccessSetupAzureConfigArgs.java | 13 +- ...usterOutageSimulationOutageFilterArgs.java | 9 +- .../inputs/ClusterReplicationSpecArgs.java | 5 +- ...usterReplicationSpecRegionsConfigArgs.java | 5 +- .../mongodbatlas/inputs/ClusterTagArgs.java | 9 +- .../inputs/CustomDbRoleActionArgs.java | 9 +- .../inputs/CustomDbRoleInheritedRoleArgs.java | 9 +- ...ataLakePipelineSinkPartitionFieldArgs.java | 9 +- .../inputs/DatabaseUserRoleArgs.java | 9 +- ...tabaseInstanceCloudProviderConfigArgs.java | 5 +- ...aseInstanceCloudProviderConfigAwsArgs.java | 9 +- ...DatabaseInstanceDataProcessRegionArgs.java | 9 +- ...eStorageStoreReadPreferenceTagSetArgs.java | 5 +- .../Get509AuthenticationDatabaseUserArgs.java | 5 +- ...09AuthenticationDatabaseUserPlainArgs.java | 5 +- .../inputs/GetAccessListApiKeyArgs.java | 13 +- .../inputs/GetAccessListApiKeyPlainArgs.java | 13 +- .../inputs/GetAccessListApiKeysArgs.java | 9 +- .../inputs/GetAccessListApiKeysPlainArgs.java | 9 +- .../inputs/GetAdvancedClusterArgs.java | 9 +- .../inputs/GetAdvancedClusterPlainArgs.java | 9 +- .../inputs/GetAdvancedClustersArgs.java | 5 +- .../inputs/GetAdvancedClustersPlainArgs.java | 5 +- .../inputs/GetAlertConfigurationArgs.java | 9 +- .../inputs/GetAlertConfigurationOutput.java | 9 +- .../GetAlertConfigurationOutputArgs.java | 9 +- .../GetAlertConfigurationPlainArgs.java | 9 +- .../inputs/GetAlertConfigurationsArgs.java | 5 +- .../GetAlertConfigurationsPlainArgs.java | 5 +- .../mongodbatlas/inputs/GetApiKeyArgs.java | 9 +- .../inputs/GetApiKeyPlainArgs.java | 9 +- .../mongodbatlas/inputs/GetApiKeysArgs.java | 5 +- .../inputs/GetApiKeysPlainArgs.java | 5 +- .../mongodbatlas/inputs/GetAuditingArgs.java | 5 +- .../inputs/GetAuditingPlainArgs.java | 5 +- .../inputs/GetBackupCompliancePolicyArgs.java | 5 +- ...kupCompliancePolicyOnDemandPolicyItem.java | 21 +- ...ompliancePolicyOnDemandPolicyItemArgs.java | 21 +- .../GetBackupCompliancePolicyPlainArgs.java | 5 +- ...BackupCompliancePolicyPolicyItemDaily.java | 21 +- ...upCompliancePolicyPolicyItemDailyArgs.java | 21 +- ...ackupCompliancePolicyPolicyItemHourly.java | 21 +- ...pCompliancePolicyPolicyItemHourlyArgs.java | 21 +- ...ckupCompliancePolicyPolicyItemMonthly.java | 21 +- ...CompliancePolicyPolicyItemMonthlyArgs.java | 21 +- ...ackupCompliancePolicyPolicyItemWeekly.java | 21 +- ...pCompliancePolicyPolicyItemWeeklyArgs.java | 21 +- .../inputs/GetCloudBackupScheduleArgs.java | 9 +- .../GetCloudBackupSchedulePlainArgs.java | 9 +- .../inputs/GetCloudBackupSnapshotArgs.java | 13 +- ...etCloudBackupSnapshotExportBucketArgs.java | 13 +- ...udBackupSnapshotExportBucketPlainArgs.java | 13 +- ...tCloudBackupSnapshotExportBucketsArgs.java | 5 +- ...dBackupSnapshotExportBucketsPlainArgs.java | 5 +- .../GetCloudBackupSnapshotExportJobArgs.java | 17 +- ...CloudBackupSnapshotExportJobPlainArgs.java | 17 +- .../GetCloudBackupSnapshotExportJobsArgs.java | 9 +- ...loudBackupSnapshotExportJobsPlainArgs.java | 9 +- .../GetCloudBackupSnapshotPlainArgs.java | 13 +- .../GetCloudBackupSnapshotRestoreJobArgs.java | 13 +- ...loudBackupSnapshotRestoreJobPlainArgs.java | 13 +- ...GetCloudBackupSnapshotRestoreJobsArgs.java | 9 +- ...oudBackupSnapshotRestoreJobsPlainArgs.java | 9 +- .../inputs/GetCloudBackupSnapshotsArgs.java | 9 +- .../GetCloudBackupSnapshotsPlainArgs.java | 9 +- .../inputs/GetCloudProviderAccessArgs.java | 5 +- .../GetCloudProviderAccessPlainArgs.java | 5 +- .../GetCloudProviderAccessSetupArgs.java | 13 +- ...etCloudProviderAccessSetupAzureConfig.java | 13 +- ...oudProviderAccessSetupAzureConfigArgs.java | 13 +- .../GetCloudProviderAccessSetupPlainArgs.java | 13 +- .../mongodbatlas/inputs/GetClusterArgs.java | 9 +- .../GetClusterOutageSimulationArgs.java | 9 +- .../GetClusterOutageSimulationPlainArgs.java | 9 +- .../inputs/GetClusterPlainArgs.java | 9 +- .../mongodbatlas/inputs/GetClustersArgs.java | 5 +- .../inputs/GetClustersPlainArgs.java | 5 +- .../inputs/GetCustomDbRoleArgs.java | 9 +- .../inputs/GetCustomDbRoleInheritedRole.java | 9 +- .../GetCustomDbRoleInheritedRoleArgs.java | 9 +- .../inputs/GetCustomDbRolePlainArgs.java | 9 +- .../inputs/GetCustomDbRolesArgs.java | 5 +- .../inputs/GetCustomDbRolesPlainArgs.java | 5 +- ...tCustomDnsConfigurationClusterAwsArgs.java | 5 +- ...omDnsConfigurationClusterAwsPlainArgs.java | 5 +- .../inputs/GetDataLakePipelineArgs.java | 9 +- .../inputs/GetDataLakePipelinePlainArgs.java | 9 +- .../inputs/GetDataLakePipelineRunArgs.java | 13 +- .../GetDataLakePipelineRunPlainArgs.java | 13 +- .../inputs/GetDataLakePipelineRunsArgs.java | 9 +- .../GetDataLakePipelineRunsPlainArgs.java | 9 +- .../inputs/GetDataLakePipelinesArgs.java | 5 +- .../inputs/GetDataLakePipelinesPlainArgs.java | 5 +- .../inputs/GetDatabaseUserArgs.java | 13 +- .../inputs/GetDatabaseUserPlainArgs.java | 13 +- .../inputs/GetDatabaseUsersArgs.java | 5 +- .../inputs/GetDatabaseUsersPlainArgs.java | 5 +- .../inputs/GetEventTriggerArgs.java | 13 +- .../inputs/GetEventTriggerPlainArgs.java | 13 +- .../inputs/GetEventTriggersArgs.java | 9 +- .../inputs/GetEventTriggersPlainArgs.java | 9 +- .../GetFederatedDatabaseInstanceArgs.java | 9 +- ...edDatabaseInstanceCloudProviderConfig.java | 5 +- ...tabaseInstanceCloudProviderConfigArgs.java | 5 +- ...atabaseInstanceCloudProviderConfigAws.java | 21 +- ...aseInstanceCloudProviderConfigAwsArgs.java | 21 +- ...GetFederatedDatabaseInstancePlainArgs.java | 9 +- .../GetFederatedDatabaseInstancesArgs.java | 5 +- ...etFederatedDatabaseInstancesPlainArgs.java | 5 +- .../inputs/GetFederatedQueryLimitArgs.java | 13 +- .../GetFederatedQueryLimitPlainArgs.java | 13 +- .../inputs/GetFederatedQueryLimitsArgs.java | 9 +- .../GetFederatedQueryLimitsPlainArgs.java | 9 +- .../inputs/GetFederatedSettingsArgs.java | 5 +- ...FederatedSettingsIdentityProviderArgs.java | 9 +- ...atedSettingsIdentityProviderPlainArgs.java | 9 +- ...ederatedSettingsIdentityProvidersArgs.java | 5 +- ...tedSettingsIdentityProvidersPlainArgs.java | 5 +- .../GetFederatedSettingsOrgConfigArgs.java | 9 +- ...etFederatedSettingsOrgConfigPlainArgs.java | 9 +- .../GetFederatedSettingsOrgConfigsArgs.java | 5 +- ...tFederatedSettingsOrgConfigsPlainArgs.java | 5 +- ...etFederatedSettingsOrgRoleMappingArgs.java | 13 +- ...eratedSettingsOrgRoleMappingPlainArgs.java | 13 +- ...tFederatedSettingsOrgRoleMappingsArgs.java | 9 +- ...ratedSettingsOrgRoleMappingsPlainArgs.java | 9 +- .../inputs/GetFederatedSettingsPlainArgs.java | 5 +- .../inputs/GetGlobalClusterConfigArgs.java | 9 +- ...etGlobalClusterConfigManagedNamespace.java | 21 +- ...obalClusterConfigManagedNamespaceArgs.java | 21 +- .../GetGlobalClusterConfigPlainArgs.java | 9 +- .../inputs/GetLdapConfigurationArgs.java | 5 +- .../inputs/GetLdapConfigurationPlainArgs.java | 5 +- .../inputs/GetLdapVerifyArgs.java | 9 +- .../inputs/GetLdapVerifyPlainArgs.java | 9 +- .../inputs/GetMaintenanceWindowArgs.java | 5 +- .../inputs/GetMaintenanceWindowPlainArgs.java | 5 +- .../inputs/GetNetworkContainerArgs.java | 9 +- .../inputs/GetNetworkContainerPlainArgs.java | 9 +- .../inputs/GetNetworkContainersArgs.java | 9 +- .../inputs/GetNetworkContainersPlainArgs.java | 9 +- .../inputs/GetNetworkPeeringArgs.java | 9 +- .../inputs/GetNetworkPeeringPlainArgs.java | 9 +- .../inputs/GetNetworkPeeringsArgs.java | 5 +- .../inputs/GetNetworkPeeringsPlainArgs.java | 5 +- .../inputs/GetOnlineArchiveArgs.java | 13 +- .../inputs/GetOnlineArchivePlainArgs.java | 13 +- .../inputs/GetOnlineArchivesArgs.java | 9 +- .../inputs/GetOnlineArchivesPlainArgs.java | 9 +- .../inputs/GetOrgInvitationArgs.java | 13 +- .../inputs/GetOrgInvitationPlainArgs.java | 13 +- .../inputs/GetOrganizationArgs.java | 5 +- .../inputs/GetOrganizationPlainArgs.java | 5 +- .../GetPrivateEndpointRegionalModeArgs.java | 5 +- ...tPrivateEndpointRegionalModePlainArgs.java | 5 +- .../inputs/GetPrivateLinkEndpointArgs.java | 13 +- .../GetPrivateLinkEndpointPlainArgs.java | 13 +- .../GetPrivateLinkEndpointServiceArgs.java | 17 +- ...etPrivateLinkEndpointServicePlainArgs.java | 17 +- ...erviceDataFederationOnlineArchiveArgs.java | 9 +- ...eDataFederationOnlineArchivePlainArgs.java | 9 +- ...rviceDataFederationOnlineArchivesArgs.java | 5 +- ...DataFederationOnlineArchivesPlainArgs.java | 5 +- ...vatelinkEndpointServiceServerlessArgs.java | 13 +- ...inkEndpointServiceServerlessPlainArgs.java | 13 +- ...atelinkEndpointsServiceServerlessArgs.java | 9 +- ...nkEndpointsServiceServerlessPlainArgs.java | 9 +- .../inputs/GetProjectApiKeyArgs.java | 9 +- .../inputs/GetProjectApiKeyPlainArgs.java | 9 +- .../inputs/GetProjectApiKeysArgs.java | 5 +- .../inputs/GetProjectApiKeysPlainArgs.java | 5 +- .../inputs/GetProjectInvitationArgs.java | 13 +- .../inputs/GetProjectInvitationPlainArgs.java | 13 +- .../inputs/GetProjectIpAccessListArgs.java | 5 +- .../GetProjectIpAccessListPlainArgs.java | 5 +- .../inputs/GetSearchDeploymentArgs.java | 9 +- .../inputs/GetSearchDeploymentPlainArgs.java | 9 +- .../inputs/GetSearchIndexArgs.java | 13 +- .../inputs/GetSearchIndexPlainArgs.java | 13 +- .../inputs/GetSearchIndexesArgs.java | 17 +- .../inputs/GetSearchIndexesPlainArgs.java | 17 +- .../inputs/GetServerlessInstanceArgs.java | 9 +- .../inputs/GetServerlessInstanceLink.java | 9 +- .../inputs/GetServerlessInstanceLinkArgs.java | 9 +- .../GetServerlessInstancePlainArgs.java | 9 +- .../inputs/GetServerlessInstancesArgs.java | 5 +- .../GetServerlessInstancesPlainArgs.java | 5 +- .../inputs/GetSharedTierRestoreJobArgs.java | 13 +- .../GetSharedTierRestoreJobPlainArgs.java | 13 +- .../inputs/GetSharedTierRestoreJobsArgs.java | 9 +- .../GetSharedTierRestoreJobsPlainArgs.java | 9 +- .../inputs/GetSharedTierSnapshotArgs.java | 13 +- .../GetSharedTierSnapshotPlainArgs.java | 13 +- .../inputs/GetSharedTierSnapshotsArgs.java | 9 +- .../GetSharedTierSnapshotsPlainArgs.java | 9 +- .../mongodbatlas/inputs/GetTeamArgs.java | 5 +- .../mongodbatlas/inputs/GetTeamPlainArgs.java | 5 +- .../mongodbatlas/inputs/GetTeamsArgs.java | 5 +- .../inputs/GetTeamsPlainArgs.java | 5 +- .../inputs/GetThirdPartyIntegrationArgs.java | 9 +- .../GetThirdPartyIntegrationPlainArgs.java | 9 +- .../inputs/GetThirdPartyIntegrationsArgs.java | 5 +- .../GetThirdPartyIntegrationsPlainArgs.java | 5 +- ...GetX509AuthenticationDatabaseUserArgs.java | 5 +- ...09AuthenticationDatabaseUserPlainArgs.java | 5 +- ...obalClusterConfigManagedNamespaceArgs.java | 13 +- .../inputs/OnlineArchiveCriteriaArgs.java | 5 +- .../OnlineArchiveDataExpirationRuleArgs.java | 5 +- .../OnlineArchivePartitionFieldArgs.java | 9 +- .../inputs/OnlineArchiveScheduleArgs.java | 5 +- .../ProjectApiKeyProjectAssignmentArgs.java | 9 +- .../mongodbatlas/inputs/ProjectLimitArgs.java | 9 +- .../mongodbatlas/inputs/ProjectTeamArgs.java | 9 +- .../inputs/SearchDeploymentSpecArgs.java | 9 +- .../inputs/SearchIndexSynonymArgs.java | 13 +- .../inputs/ServerlessInstanceTagArgs.java | 9 +- .../AdvancedClusterAdvancedConfiguration.java | 11 + .../AdvancedClusterBiConnectorConfig.java | 2 + .../AdvancedClusterConnectionString.java | 5 + ...lusterConnectionStringPrivateEndpoint.java | 5 + ...nnectionStringPrivateEndpointEndpoint.java | 3 + .../outputs/AdvancedClusterLabel.java | 2 + .../AdvancedClusterReplicationSpec.java | 10 +- ...cedClusterReplicationSpecRegionConfig.java | 22 +- ...nSpecRegionConfigAnalyticsAutoScaling.java | 5 + ...icationSpecRegionConfigAnalyticsSpecs.java | 9 +- ...eplicationSpecRegionConfigAutoScaling.java | 5 + ...icationSpecRegionConfigElectableSpecs.java | 9 +- ...licationSpecRegionConfigReadOnlySpecs.java | 9 +- .../outputs/AdvancedClusterTag.java | 11 +- .../outputs/AlertConfigurationMatcher.java | 16 +- ...ertConfigurationMetricThresholdConfig.java | 10 +- .../AlertConfigurationNotification.java | 29 ++- .../AlertConfigurationThresholdConfig.java | 3 + ...kupCompliancePolicyOnDemandPolicyItem.java | 18 +- ...BackupCompliancePolicyPolicyItemDaily.java | 18 +- ...ackupCompliancePolicyPolicyItemHourly.java | 18 +- ...ckupCompliancePolicyPolicyItemMonthly.java | 18 +- ...ackupCompliancePolicyPolicyItemWeekly.java | 18 +- .../CloudBackupScheduleCopySetting.java | 5 + .../outputs/CloudBackupScheduleExport.java | 2 + .../CloudBackupSchedulePolicyItemDaily.java | 18 +- .../CloudBackupSchedulePolicyItemHourly.java | 18 +- .../CloudBackupSchedulePolicyItemMonthly.java | 18 +- .../CloudBackupSchedulePolicyItemWeekly.java | 18 +- ...CloudBackupSnapshotExportJobComponent.java | 2 + ...loudBackupSnapshotExportJobCustomData.java | 11 +- .../outputs/CloudBackupSnapshotMember.java | 3 + ...pSnapshotRestoreJobDeliveryTypeConfig.java | 8 + .../CloudProviderAccessAuthorizationAws.java | 6 +- ...CloudProviderAccessAuthorizationAzure.java | 16 +- ...oviderAccessAuthorizationFeatureUsage.java | 2 + .../CloudProviderAccessFeatureUsage.java | 2 + .../CloudProviderAccessSetupAwsConfig.java | 2 + .../CloudProviderAccessSetupAzureConfig.java | 16 +- .../outputs/ClusterAdvancedConfiguration.java | 11 + .../outputs/ClusterBiConnectorConfig.java | 2 + .../outputs/ClusterConnectionString.java | 5 + ...lusterConnectionStringPrivateEndpoint.java | 5 + ...nnectionStringPrivateEndpointEndpoint.java | 3 + .../mongodbatlas/outputs/ClusterLabel.java | 2 + .../ClusterOutageSimulationOutageFilter.java | 12 +- .../outputs/ClusterReplicationSpec.java | 9 +- .../ClusterReplicationSpecRegionsConfig.java | 10 +- .../outputs/ClusterSnapshotBackupPolicy.java | 8 + .../ClusterSnapshotBackupPolicyPolicy.java | 2 + ...rSnapshotBackupPolicyPolicyPolicyItem.java | 5 + .../mongodbatlas/outputs/ClusterTag.java | 11 +- .../outputs/CustomDbRoleAction.java | 11 +- .../outputs/CustomDbRoleActionResource.java | 3 + .../outputs/CustomDbRoleInheritedRole.java | 11 +- .../DataLakePipelineIngestionSchedule.java | 5 + .../outputs/DataLakePipelineSink.java | 4 + .../DataLakePipelineSinkPartitionField.java | 11 +- .../outputs/DataLakePipelineSnapshot.java | 14 ++ .../outputs/DataLakePipelineSource.java | 6 + .../DataLakePipelineTransformation.java | 2 + .../outputs/DatabaseUserLabel.java | 2 + .../outputs/DatabaseUserRole.java | 12 +- .../outputs/DatabaseUserScope.java | 2 + .../outputs/EncryptionAtRestAwsKmsConfig.java | 6 + .../EncryptionAtRestAzureKeyVaultConfig.java | 9 + .../EncryptionAtRestGoogleCloudKmsConfig.java | 3 + .../outputs/EventTriggerEventProcessors.java | 1 + ...tTriggerEventProcessorsAwsEventbridge.java | 2 + ...edDatabaseInstanceCloudProviderConfig.java | 6 +- ...atabaseInstanceCloudProviderConfigAws.java | 14 +- ...atedDatabaseInstanceDataProcessRegion.java | 11 +- ...eratedDatabaseInstanceStorageDatabase.java | 4 + ...baseInstanceStorageDatabaseCollection.java | 2 + ...ceStorageDatabaseCollectionDataSource.java | 11 + ...edDatabaseInstanceStorageDatabaseView.java | 3 + ...FederatedDatabaseInstanceStorageStore.java | 16 ++ ...aseInstanceStorageStoreReadPreference.java | 3 + ...tanceStorageStoreReadPreferenceTagSet.java | 6 +- ...ceStorageStoreReadPreferenceTagSetTag.java | 2 + ...dSettingsOrgRoleMappingRoleAssignment.java | 3 + ...AuthenticationDatabaseUserCertificate.java | 26 ++- ...et509AuthenticationDatabaseUserResult.java | 22 +- .../outputs/GetAccessListApiKeyResult.java | 46 +++- .../GetAccessListApiKeysInvokeResult.java | 23 +- .../outputs/GetAccessListApiKeysResult.java | 31 ++- ...tAdvancedClusterAdvancedConfiguration.java | 56 ++++- .../GetAdvancedClusterBiConnectorConfig.java | 11 +- .../GetAdvancedClusterConnectionString.java | 26 ++- ...lusterConnectionStringPrivateEndpoint.java | 26 ++- ...nnectionStringPrivateEndpointEndpoint.java | 16 +- .../outputs/GetAdvancedClusterLabel.java | 11 +- .../GetAdvancedClusterReplicationSpec.java | 26 ++- ...cedClusterReplicationSpecRegionConfig.java | 34 ++- ...nSpecRegionConfigAnalyticsAutoScaling.java | 26 ++- ...icationSpecRegionConfigAnalyticsSpecs.java | 13 +- ...eplicationSpecRegionConfigAutoScaling.java | 26 ++- ...icationSpecRegionConfigElectableSpecs.java | 13 +- ...licationSpecRegionConfigReadOnlySpecs.java | 13 +- .../outputs/GetAdvancedClusterResult.java | 111 +++++++-- .../outputs/GetAdvancedClusterTag.java | 11 +- .../GetAdvancedClustersInvokeResult.java | 16 +- .../outputs/GetAdvancedClustersResult.java | 101 ++++++-- ...edClustersResultAdvancedConfiguration.java | 56 ++++- ...vancedClustersResultBiConnectorConfig.java | 11 +- ...dvancedClustersResultConnectionString.java | 26 ++- ...ResultConnectionStringPrivateEndpoint.java | 26 ++- ...nnectionStringPrivateEndpointEndpoint.java | 16 +- .../GetAdvancedClustersResultLabel.java | 11 +- ...AdvancedClustersResultReplicationSpec.java | 26 ++- ...tersResultReplicationSpecRegionConfig.java | 34 ++- ...nSpecRegionConfigAnalyticsAutoScaling.java | 26 ++- ...icationSpecRegionConfigAnalyticsSpecs.java | 13 +- ...eplicationSpecRegionConfigAutoScaling.java | 26 ++- ...icationSpecRegionConfigElectableSpecs.java | 13 +- ...licationSpecRegionConfigReadOnlySpecs.java | 13 +- .../outputs/GetAdvancedClustersResultTag.java | 11 +- .../outputs/GetAlertConfigurationMatcher.java | 16 +- ...ertConfigurationMetricThresholdConfig.java | 26 ++- .../GetAlertConfigurationNotification.java | 121 ++++++++-- .../outputs/GetAlertConfigurationOutput.java | 12 +- .../outputs/GetAlertConfigurationResult.java | 57 ++++- .../GetAlertConfigurationThresholdConfig.java | 16 +- .../GetAlertConfigurationsInvokeResult.java | 23 +- .../GetAlertConfigurationsListOption.java | 3 + .../outputs/GetAlertConfigurationsResult.java | 61 ++++- .../GetAlertConfigurationsResultMatcher.java | 16 +- ...igurationsResultMetricThresholdConfig.java | 26 ++- ...AlertConfigurationsResultNotification.java | 121 ++++++++-- .../GetAlertConfigurationsResultOutput.java | 16 +- ...rtConfigurationsResultThresholdConfig.java | 16 +- .../mongodbatlas/outputs/GetApiKeyResult.java | 31 ++- .../outputs/GetApiKeysInvokeResult.java | 18 +- .../outputs/GetApiKeysResult.java | 21 +- .../outputs/GetAtlasUserLink.java | 11 +- .../outputs/GetAtlasUserResult.java | 58 ++++- .../outputs/GetAtlasUserRole.java | 16 +- .../outputs/GetAtlasUsersInvokeResult.java | 21 +- .../outputs/GetAtlasUsersResult.java | 66 ++++-- .../outputs/GetAtlasUsersResultLink.java | 11 +- .../outputs/GetAtlasUsersResultRole.java | 16 +- .../outputs/GetAuditingResult.java | 31 ++- ...kupCompliancePolicyOnDemandPolicyItem.java | 26 ++- ...BackupCompliancePolicyPolicyItemDaily.java | 26 ++- ...ackupCompliancePolicyPolicyItemHourly.java | 26 ++- ...ckupCompliancePolicyPolicyItemMonthly.java | 26 ++- ...ackupCompliancePolicyPolicyItemWeekly.java | 26 ++- .../GetBackupCompliancePolicyResult.java | 66 +++++- .../GetCloudBackupScheduleCopySetting.java | 26 ++- .../outputs/GetCloudBackupScheduleExport.java | 11 +- ...GetCloudBackupSchedulePolicyItemDaily.java | 26 ++- ...etCloudBackupSchedulePolicyItemHourly.java | 26 ++- ...tCloudBackupSchedulePolicyItemMonthly.java | 26 ++- ...etCloudBackupSchedulePolicyItemWeekly.java | 26 ++- .../outputs/GetCloudBackupScheduleResult.java | 86 +++++-- ...CloudBackupSnapshotExportBucketResult.java | 31 ++- ...ckupSnapshotExportBucketsInvokeResult.java | 23 +- ...loudBackupSnapshotExportBucketsResult.java | 21 +- ...CloudBackupSnapshotExportJobComponent.java | 11 +- ...loudBackupSnapshotExportJobCustomData.java | 11 +- ...GetCloudBackupSnapshotExportJobResult.java | 76 ++++-- ...dBackupSnapshotExportJobsInvokeResult.java | 28 ++- ...etCloudBackupSnapshotExportJobsResult.java | 61 ++++- ...ckupSnapshotExportJobsResultComponent.java | 11 +- ...kupSnapshotExportJobsResultCustomData.java | 11 +- .../outputs/GetCloudBackupSnapshotMember.java | 16 +- ...etCloudBackupSnapshotRestoreJobResult.java | 91 ++++++-- ...BackupSnapshotRestoreJobsInvokeResult.java | 28 ++- ...tCloudBackupSnapshotRestoreJobsResult.java | 76 ++++-- .../outputs/GetCloudBackupSnapshotResult.java | 86 +++++-- .../GetCloudBackupSnapshotsInvokeResult.java | 28 ++- .../GetCloudBackupSnapshotsResult.java | 71 ++++-- .../GetCloudBackupSnapshotsResultMember.java | 16 +- .../GetCloudProviderAccessAwsIamRole.java | 41 +++- ...dProviderAccessAwsIamRoleFeatureUsage.java | 11 +- .../outputs/GetCloudProviderAccessResult.java | 16 +- .../GetCloudProviderAccessSetupAwsConfig.java | 11 +- ...etCloudProviderAccessSetupAzureConfig.java | 16 +- .../GetCloudProviderAccessSetupResult.java | 42 +++- .../GetClusterAdvancedConfiguration.java | 56 ++++- .../outputs/GetClusterBiConnectorConfig.java | 11 +- .../outputs/GetClusterConnectionString.java | 36 ++- ...lusterConnectionStringPrivateEndpoint.java | 26 ++- ...nnectionStringPrivateEndpointEndpoint.java | 16 +- .../mongodbatlas/outputs/GetClusterLabel.java | 11 +- ...etClusterOutageSimulationOutageFilter.java | 16 +- .../GetClusterOutageSimulationResult.java | 36 ++- .../outputs/GetClusterReplicationSpec.java | 21 +- ...etClusterReplicationSpecRegionsConfig.java | 26 ++- .../outputs/GetClusterResult.java | 216 ++++++++++++++---- .../GetClusterSnapshotBackupPolicy.java | 41 +++- .../GetClusterSnapshotBackupPolicyPolicy.java | 11 +- ...rSnapshotBackupPolicyPolicyPolicyItem.java | 26 ++- .../mongodbatlas/outputs/GetClusterTag.java | 11 +- .../outputs/GetClustersInvokeResult.java | 16 +- .../outputs/GetClustersResult.java | 201 ++++++++++++---- ...etClustersResultAdvancedConfiguration.java | 56 ++++- .../GetClustersResultBiConnectorConfig.java | 11 +- .../GetClustersResultConnectionString.java | 36 ++- ...ResultConnectionStringPrivateEndpoint.java | 26 ++- ...nnectionStringPrivateEndpointEndpoint.java | 16 +- .../outputs/GetClustersResultLabel.java | 11 +- .../GetClustersResultReplicationSpec.java | 21 +- ...ersResultReplicationSpecRegionsConfig.java | 26 ++- ...GetClustersResultSnapshotBackupPolicy.java | 41 +++- ...stersResultSnapshotBackupPolicyPolicy.java | 11 +- ...tSnapshotBackupPolicyPolicyPolicyItem.java | 26 ++- .../outputs/GetClustersResultTag.java | 11 +- .../outputs/GetCustomDbRoleAction.java | 11 +- .../GetCustomDbRoleActionResource.java | 16 +- .../outputs/GetCustomDbRoleInheritedRole.java | 11 +- .../outputs/GetCustomDbRoleResult.java | 22 +- .../outputs/GetCustomDbRolesInvokeResult.java | 16 +- .../outputs/GetCustomDbRolesResult.java | 16 +- .../outputs/GetCustomDbRolesResultAction.java | 11 +- .../GetCustomDbRolesResultActionResource.java | 16 +- .../GetCustomDbRolesResultInheritedRole.java | 11 +- ...ustomDnsConfigurationClusterAwsResult.java | 16 +- .../GetDataLakePipelineIngestionSchedule.java | 26 ++- .../outputs/GetDataLakePipelineResult.java | 56 ++++- .../outputs/GetDataLakePipelineRunResult.java | 66 ++++-- .../outputs/GetDataLakePipelineRunStat.java | 11 +- .../GetDataLakePipelineRunsInvokeResult.java | 21 +- .../GetDataLakePipelineRunsResult.java | 51 ++++- .../GetDataLakePipelineRunsResultStat.java | 11 +- .../outputs/GetDataLakePipelineSink.java | 21 +- ...GetDataLakePipelineSinkPartitionField.java | 11 +- .../outputs/GetDataLakePipelineSnapshot.java | 66 ++++-- .../outputs/GetDataLakePipelineSource.java | 26 ++- .../GetDataLakePipelineTransformation.java | 11 +- .../GetDataLakePipelinesInvokeResult.java | 16 +- .../outputs/GetDataLakePipelinesResult.java | 46 +++- .../GetDataLakePipelinesResultSink.java | 21 +- ...LakePipelinesResultSinkPartitionField.java | 11 +- .../GetDataLakePipelinesResultSource.java | 26 ++- ...DataLakePipelinesResultTransformation.java | 11 +- .../outputs/GetDatabaseUserLabel.java | 11 +- .../outputs/GetDatabaseUserResult.java | 61 ++++- .../outputs/GetDatabaseUserRole.java | 16 +- .../outputs/GetDatabaseUserScope.java | 11 +- .../outputs/GetDatabaseUsersInvokeResult.java | 16 +- .../outputs/GetDatabaseUsersResult.java | 61 ++++- .../outputs/GetDatabaseUsersResultLabel.java | 11 +- .../outputs/GetDatabaseUsersResultRole.java | 16 +- .../outputs/GetDatabaseUsersResultScope.java | 11 +- .../GetEventTriggerEventProcessor.java | 6 +- ...ntTriggerEventProcessorAwsEventbridge.java | 11 +- .../outputs/GetEventTriggerResult.java | 116 ++++++++-- .../outputs/GetEventTriggersInvokeResult.java | 21 +- .../outputs/GetEventTriggersResult.java | 101 ++++++-- .../GetEventTriggersResultEventProcessor.java | 6 +- ...ersResultEventProcessorAwsEventbridge.java | 11 +- ...edDatabaseInstanceCloudProviderConfig.java | 6 +- ...atabaseInstanceCloudProviderConfigAws.java | 26 ++- ...atedDatabaseInstanceDataProcessRegion.java | 11 +- .../GetFederatedDatabaseInstanceResult.java | 46 +++- ...eratedDatabaseInstanceStorageDatabase.java | 21 +- ...baseInstanceStorageDatabaseCollection.java | 11 +- ...ceStorageDatabaseCollectionDataSource.java | 56 ++++- ...edDatabaseInstanceStorageDatabaseView.java | 16 +- ...FederatedDatabaseInstanceStorageStore.java | 81 +++++-- ...aseInstanceStorageStoreReadPreference.java | 16 +- ...tanceStorageStoreReadPreferenceTagSet.java | 6 +- ...ceStorageStoreReadPreferenceTagSetTag.java | 11 +- ...ederatedDatabaseInstancesInvokeResult.java | 16 +- .../GetFederatedDatabaseInstancesResult.java | 41 +++- ...aseInstancesResultCloudProviderConfig.java | 6 +- ...InstancesResultCloudProviderConfigAws.java | 26 ++- ...abaseInstancesResultDataProcessRegion.java | 11 +- ...atabaseInstancesResultStorageDatabase.java | 21 +- ...tancesResultStorageDatabaseCollection.java | 11 +- ...ltStorageDatabaseCollectionDataSource.java | 56 ++++- ...aseInstancesResultStorageDatabaseView.java | 16 +- ...edDatabaseInstancesResultStorageStore.java | 81 +++++-- ...ancesResultStorageStoreReadPreference.java | 16 +- ...esultStorageStoreReadPreferenceTagSet.java | 6 +- ...ltStorageStoreReadPreferenceTagSetTag.java | 11 +- .../outputs/GetFederatedQueryLimitResult.java | 51 ++++- .../GetFederatedQueryLimitsInvokeResult.java | 21 +- .../GetFederatedQueryLimitsResult.java | 46 +++- ...SettingsIdentityProviderAssociatedOrg.java | 36 ++- ...ntityProviderAssociatedOrgRoleMapping.java | 16 +- ...ssociatedOrgRoleMappingRoleAssignment.java | 16 +- ...tityProviderAssociatedOrgUserConflict.java | 26 ++- ...edSettingsIdentityProviderPemFileInfo.java | 11 +- ...dentityProviderPemFileInfoCertificate.java | 11 +- ...deratedSettingsIdentityProviderResult.java | 81 +++++-- ...SettingsIdentityProvidersInvokeResult.java | 18 +- ...eratedSettingsIdentityProvidersResult.java | 66 ++++-- ...sIdentityProvidersResultAssociatedOrg.java | 36 ++- ...ovidersResultAssociatedOrgRoleMapping.java | 16 +- ...ssociatedOrgRoleMappingRoleAssignment.java | 16 +- ...vidersResultAssociatedOrgUserConflict.java | 26 ++- ...ngsIdentityProvidersResultPemFileInfo.java | 11 +- ...ProvidersResultPemFileInfoCertificate.java | 11 +- .../GetFederatedSettingsOrgConfigResult.java | 46 +++- ...FederatedSettingsOrgConfigRoleMapping.java | 16 +- ...ngsOrgConfigRoleMappingRoleAssignment.java | 16 +- ...ederatedSettingsOrgConfigUserConflict.java | 26 ++- ...deratedSettingsOrgConfigsInvokeResult.java | 18 +- .../GetFederatedSettingsOrgConfigsResult.java | 36 ++- ...edSettingsOrgConfigsResultRoleMapping.java | 16 +- ...onfigsResultRoleMappingRoleAssignment.java | 16 +- ...dSettingsOrgConfigsResultUserConflict.java | 26 ++- ...FederatedSettingsOrgRoleMappingResult.java | 31 ++- ...dSettingsOrgRoleMappingRoleAssignment.java | 16 +- ...edSettingsOrgRoleMappingsInvokeResult.java | 23 +- ...ederatedSettingsOrgRoleMappingsResult.java | 16 +- ...gsOrgRoleMappingsResultRoleAssignment.java | 16 +- .../outputs/GetFederatedSettingsResult.java | 31 ++- ...etGlobalClusterConfigManagedNamespace.java | 26 ++- .../outputs/GetGlobalClusterConfigResult.java | 26 ++- .../outputs/GetLdapConfigurationResult.java | 56 ++++- .../GetLdapConfigurationUserToDnMapping.java | 16 +- .../outputs/GetLdapVerifyLink.java | 11 +- .../outputs/GetLdapVerifyResult.java | 46 +++- .../outputs/GetLdapVerifyValidation.java | 11 +- .../outputs/GetMaintenanceWindowResult.java | 36 ++- .../outputs/GetNetworkContainerResult.java | 71 ++++-- .../GetNetworkContainersInvokeResult.java | 21 +- .../outputs/GetNetworkContainersResult.java | 61 ++++- .../outputs/GetNetworkPeeringResult.java | 116 ++++++++-- .../GetNetworkPeeringsInvokeResult.java | 16 +- .../outputs/GetNetworkPeeringsResult.java | 101 ++++++-- .../outputs/GetOnlineArchiveCriteria.java | 26 ++- .../GetOnlineArchiveDataExpirationRule.java | 6 +- .../GetOnlineArchiveDataProcessRegion.java | 11 +- .../GetOnlineArchivePartitionField.java | 16 +- .../outputs/GetOnlineArchiveResult.java | 71 ++++-- .../outputs/GetOnlineArchiveSchedule.java | 28 ++- .../GetOnlineArchivesInvokeResult.java | 26 ++- .../outputs/GetOnlineArchivesResult.java | 66 ++++-- .../GetOnlineArchivesResultCriteria.java | 26 ++- ...nlineArchivesResultDataExpirationRule.java | 6 +- ...OnlineArchivesResultDataProcessRegion.java | 11 +- ...GetOnlineArchivesResultPartitionField.java | 16 +- .../GetOnlineArchivesResultSchedule.java | 28 ++- .../outputs/GetOrgInvitationResult.java | 46 +++- .../outputs/GetOrganizationLink.java | 11 +- .../outputs/GetOrganizationResult.java | 26 ++- .../outputs/GetOrganizationsInvokeResult.java | 20 +- .../outputs/GetOrganizationsResult.java | 21 +- .../outputs/GetOrganizationsResultLink.java | 11 +- .../GetPrivateEndpointRegionalModeResult.java | 12 +- .../outputs/GetPrivateLinkEndpointResult.java | 71 ++++-- ...GetPrivateLinkEndpointServiceEndpoint.java | 21 +- .../GetPrivateLinkEndpointServiceResult.java | 76 ++++-- ...viceDataFederationOnlineArchiveResult.java | 31 ++- ...aFederationOnlineArchivesInvokeResult.java | 16 +- ...iceDataFederationOnlineArchivesResult.java | 21 +- ...telinkEndpointServiceServerlessResult.java | 56 ++++- ...ndpointsServiceServerlessInvokeResult.java | 23 +- ...elinkEndpointsServiceServerlessResult.java | 41 +++- .../GetProjectApiKeyProjectAssignment.java | 11 +- .../outputs/GetProjectApiKeyResult.java | 36 ++- .../GetProjectApiKeysInvokeResult.java | 18 +- .../outputs/GetProjectApiKeysResult.java | 22 +- ...ProjectApiKeysResultProjectAssignment.java | 11 +- .../outputs/GetProjectInvitationResult.java | 41 +++- .../outputs/GetProjectIpAccessListResult.java | 31 ++- .../mongodbatlas/outputs/GetProjectLimit.java | 26 ++- .../outputs/GetProjectResult.java | 68 ++++-- .../mongodbatlas/outputs/GetProjectTeam.java | 11 +- .../outputs/GetProjectsInvokeResult.java | 18 +- .../outputs/GetProjectsResult.java | 76 ++++-- .../outputs/GetProjectsResultLimit.java | 26 ++- .../outputs/GetProjectsResultTeam.java | 11 +- .../outputs/GetRolesOrgIdResult.java | 11 +- .../outputs/GetSearchDeploymentResult.java | 26 ++- .../outputs/GetSearchDeploymentSpec.java | 11 +- .../outputs/GetSearchIndexResult.java | 41 +++- .../outputs/GetSearchIndexSynonym.java | 16 +- .../outputs/GetSearchIndexesInvokeResult.java | 38 ++- .../outputs/GetSearchIndexesResult.java | 45 +++- .../GetSearchIndexesResultSynonym.java | 16 +- .../outputs/GetServerlessInstanceLink.java | 11 +- .../outputs/GetServerlessInstanceResult.java | 76 ++++-- .../outputs/GetServerlessInstanceTag.java | 11 +- .../GetServerlessInstancesInvokeResult.java | 16 +- .../outputs/GetServerlessInstancesResult.java | 76 ++++-- .../GetServerlessInstancesResultLink.java | 11 +- .../GetServerlessInstancesResultTag.java | 11 +- .../GetSharedTierRestoreJobResult.java | 71 ++++-- .../GetSharedTierRestoreJobsInvokeResult.java | 26 ++- .../GetSharedTierRestoreJobsResult.java | 56 ++++- .../outputs/GetSharedTierSnapshotResult.java | 51 ++++- .../GetSharedTierSnapshotsInvokeResult.java | 26 ++- .../outputs/GetSharedTierSnapshotsResult.java | 36 ++- .../mongodbatlas/outputs/GetTeamResult.java | 26 ++- .../mongodbatlas/outputs/GetTeamsResult.java | 26 ++- .../GetThirdPartyIntegrationResult.java | 66 +++++- ...GetThirdPartyIntegrationsInvokeResult.java | 16 +- .../GetThirdPartyIntegrationsResult.java | 61 ++++- ...AuthenticationDatabaseUserCertificate.java | 26 ++- ...tX509AuthenticationDatabaseUserResult.java | 22 +- .../GlobalClusterConfigCustomZoneMapping.java | 2 + .../GlobalClusterConfigManagedNamespace.java | 18 +- .../LdapConfigurationUserToDnMapping.java | 3 + .../mongodbatlas/outputs/LdapVerifyLink.java | 2 + .../outputs/LdapVerifyValidation.java | 2 + .../outputs/OnlineArchiveCriteria.java | 10 +- .../OnlineArchiveDataExpirationRule.java | 6 +- .../OnlineArchiveDataProcessRegion.java | 2 + .../outputs/OnlineArchivePartitionField.java | 12 +- .../outputs/OnlineArchiveSchedule.java | 12 +- .../PrivateLinkEndpointServiceEndpoint.java | 4 + .../ProjectApiKeyProjectAssignment.java | 11 +- .../outputs/ProjectIpAccessListTimeouts.java | 2 + .../mongodbatlas/outputs/ProjectLimit.java | 14 +- .../mongodbatlas/outputs/ProjectTeam.java | 11 +- .../outputs/SearchDeploymentSpec.java | 11 +- .../outputs/SearchDeploymentTimeouts.java | 3 + .../outputs/SearchIndexSynonym.java | 16 +- .../outputs/ServerlessInstanceLink.java | 2 + .../outputs/ServerlessInstanceTag.java | 11 +- ...AuthenticationDatabaseUserCertificate.java | 5 + 708 files changed, 10751 insertions(+), 2579 deletions(-) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 3447e12e..53ea6351 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/mongodbatlas/AccessListApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AccessListApiKeyArgs.java index dadac831..059a4bed 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AccessListApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AccessListApiKeyArgs.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; @@ -195,8 +196,12 @@ public Builder orgId(String orgId) { } public AccessListApiKeyArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("AccessListApiKeyArgs", "apiKeyId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("AccessListApiKeyArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AdvancedClusterArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AdvancedClusterArgs.java index b6388dd1..febaaacf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AdvancedClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AdvancedClusterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.AdvancedClusterAdvancedConfigurationArgs; import com.pulumi.mongodbatlas.inputs.AdvancedClusterBiConnectorConfigArgs; import com.pulumi.mongodbatlas.inputs.AdvancedClusterLabelArgs; @@ -796,9 +797,15 @@ public Builder versionReleaseSystem(String versionReleaseSystem) { } public AdvancedClusterArgs build() { - $.clusterType = Objects.requireNonNull($.clusterType, "expected parameter 'clusterType' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.replicationSpecs = Objects.requireNonNull($.replicationSpecs, "expected parameter 'replicationSpecs' to be non-null"); + if ($.clusterType == null) { + throw new MissingRequiredPropertyException("AdvancedClusterArgs", "clusterType"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("AdvancedClusterArgs", "projectId"); + } + if ($.replicationSpecs == null) { + throw new MissingRequiredPropertyException("AdvancedClusterArgs", "replicationSpecs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AlertConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AlertConfigurationArgs.java index 40d19dbf..caba98f7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AlertConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AlertConfigurationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.AlertConfigurationMatcherArgs; import com.pulumi.mongodbatlas.inputs.AlertConfigurationMetricThresholdConfigArgs; import com.pulumi.mongodbatlas.inputs.AlertConfigurationNotificationArgs; @@ -248,8 +249,12 @@ public Builder thresholdConfig(AlertConfigurationThresholdConfigArgs thresholdCo } public AlertConfigurationArgs build() { - $.eventType = Objects.requireNonNull($.eventType, "expected parameter 'eventType' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.eventType == null) { + throw new MissingRequiredPropertyException("AlertConfigurationArgs", "eventType"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("AlertConfigurationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ApiKeyArgs.java index fa0dd4cf..a5662052 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ApiKeyArgs.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; @@ -164,9 +165,15 @@ public Builder roleNames(String... roleNames) { } public ApiKeyArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.roleNames = Objects.requireNonNull($.roleNames, "expected parameter 'roleNames' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("ApiKeyArgs", "description"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("ApiKeyArgs", "orgId"); + } + if ($.roleNames == null) { + throw new MissingRequiredPropertyException("ApiKeyArgs", "roleNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AuditingArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AuditingArgs.java index 4757bbdb..9127e514 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/AuditingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/AuditingArgs.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; @@ -196,7 +197,9 @@ public Builder projectId(String projectId) { } public AuditingArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("AuditingArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/BackupCompliancePolicyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/BackupCompliancePolicyArgs.java index 119d88ee..3819be3f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/BackupCompliancePolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/BackupCompliancePolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyOnDemandPolicyItemArgs; import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemDailyArgs; import com.pulumi.mongodbatlas.inputs.BackupCompliancePolicyPolicyItemHourlyArgs; @@ -436,14 +437,30 @@ public Builder restoreWindowDays(Integer restoreWindowDays) { } public BackupCompliancePolicyArgs build() { - $.authorizedEmail = Objects.requireNonNull($.authorizedEmail, "expected parameter 'authorizedEmail' to be non-null"); - $.authorizedUserFirstName = Objects.requireNonNull($.authorizedUserFirstName, "expected parameter 'authorizedUserFirstName' to be non-null"); - $.authorizedUserLastName = Objects.requireNonNull($.authorizedUserLastName, "expected parameter 'authorizedUserLastName' to be non-null"); - $.copyProtectionEnabled = Objects.requireNonNull($.copyProtectionEnabled, "expected parameter 'copyProtectionEnabled' to be non-null"); - $.encryptionAtRestEnabled = Objects.requireNonNull($.encryptionAtRestEnabled, "expected parameter 'encryptionAtRestEnabled' to be non-null"); - $.onDemandPolicyItem = Objects.requireNonNull($.onDemandPolicyItem, "expected parameter 'onDemandPolicyItem' to be non-null"); - $.pitEnabled = Objects.requireNonNull($.pitEnabled, "expected parameter 'pitEnabled' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.authorizedEmail == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "authorizedEmail"); + } + if ($.authorizedUserFirstName == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "authorizedUserFirstName"); + } + if ($.authorizedUserLastName == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "authorizedUserLastName"); + } + if ($.copyProtectionEnabled == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "copyProtectionEnabled"); + } + if ($.encryptionAtRestEnabled == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "encryptionAtRestEnabled"); + } + if ($.onDemandPolicyItem == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "onDemandPolicyItem"); + } + if ($.pitEnabled == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "pitEnabled"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupScheduleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupScheduleArgs.java index edd8cf5d..f1ca3d4d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupScheduleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupScheduleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CloudBackupScheduleCopySettingArgs; import com.pulumi.mongodbatlas.inputs.CloudBackupScheduleExportArgs; import com.pulumi.mongodbatlas.inputs.CloudBackupSchedulePolicyItemDailyArgs; @@ -542,8 +543,12 @@ public Builder useOrgAndGroupNamesInExportPrefix(Boolean useOrgAndGroupNamesInEx } public CloudBackupScheduleArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("CloudBackupScheduleArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudBackupScheduleArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotArgs.java index 41ae3597..168a9971 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotArgs.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; @@ -186,10 +187,18 @@ public Builder retentionInDays(Integer retentionInDays) { } public CloudBackupSnapshotArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.retentionInDays = Objects.requireNonNull($.retentionInDays, "expected parameter 'retentionInDays' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotArgs", "clusterName"); + } + if ($.description == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotArgs", "description"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotArgs", "projectId"); + } + if ($.retentionInDays == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotArgs", "retentionInDays"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportBucketArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportBucketArgs.java index c6200f7a..ef82c442 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportBucketArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportBucketArgs.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; @@ -185,10 +186,18 @@ public Builder projectId(String projectId) { } public CloudBackupSnapshotExportBucketArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.cloudProvider = Objects.requireNonNull($.cloudProvider, "expected parameter 'cloudProvider' to be non-null"); - $.iamRoleId = Objects.requireNonNull($.iamRoleId, "expected parameter 'iamRoleId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportBucketArgs", "bucketName"); + } + if ($.cloudProvider == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportBucketArgs", "cloudProvider"); + } + if ($.iamRoleId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportBucketArgs", "iamRoleId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportBucketArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportJobArgs.java index dbfd44f3..b0b85a3b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotExportJobArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CloudBackupSnapshotExportJobCustomDataArgs; import java.lang.String; import java.util.List; @@ -234,11 +235,21 @@ public Builder snapshotId(String snapshotId) { } public CloudBackupSnapshotExportJobArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.customDatas = Objects.requireNonNull($.customDatas, "expected parameter 'customDatas' to be non-null"); - $.exportBucketId = Objects.requireNonNull($.exportBucketId, "expected parameter 'exportBucketId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobArgs", "clusterName"); + } + if ($.customDatas == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobArgs", "customDatas"); + } + if ($.exportBucketId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobArgs", "exportBucketId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJobArgs.java index 73690c0f..a633044b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJobArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CloudBackupSnapshotRestoreJobDeliveryTypeConfigArgs; import java.lang.String; import java.util.Objects; @@ -220,9 +221,15 @@ public Builder snapshotId(String snapshotId) { } public CloudBackupSnapshotRestoreJobArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotRestoreJobArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotRestoreJobArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotRestoreJobArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessArgs.java index 5e50b77d..3847358f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessArgs.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 providerName(String providerName) { } public CloudProviderAccessArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessAuthorizationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessAuthorizationArgs.java index 7f5b0257..9b3fd834 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessAuthorizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessAuthorizationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CloudProviderAccessAuthorizationAwsArgs; import com.pulumi.mongodbatlas.inputs.CloudProviderAccessAuthorizationAzureArgs; import java.lang.String; @@ -109,8 +110,12 @@ public Builder roleId(String roleId) { } public CloudProviderAccessAuthorizationArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationArgs", "projectId"); + } + if ($.roleId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationArgs", "roleId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessSetupArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessSetupArgs.java index f634ea93..b013d02b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessSetupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudProviderAccessSetupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CloudProviderAccessSetupAzureConfigArgs; import java.lang.String; import java.util.List; @@ -96,8 +97,12 @@ public Builder providerName(String providerName) { } public CloudProviderAccessSetupArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterArgs.java index bc10fa9b..dac8f306 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ClusterAdvancedConfigurationArgs; import com.pulumi.mongodbatlas.inputs.ClusterBiConnectorConfigArgs; import com.pulumi.mongodbatlas.inputs.ClusterLabelArgs; @@ -1468,9 +1469,15 @@ public Builder versionReleaseSystem(String versionReleaseSystem) { } public ClusterArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerInstanceSizeName = Objects.requireNonNull($.providerInstanceSizeName, "expected parameter 'providerInstanceSizeName' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ClusterArgs", "projectId"); + } + if ($.providerInstanceSizeName == null) { + throw new MissingRequiredPropertyException("ClusterArgs", "providerInstanceSizeName"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("ClusterArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterOutageSimulationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterOutageSimulationArgs.java index 4078e04d..f972dce3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterOutageSimulationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ClusterOutageSimulationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ClusterOutageSimulationOutageFilterArgs; import java.lang.String; import java.util.List; @@ -160,9 +161,15 @@ public Builder projectId(String projectId) { } public ClusterOutageSimulationArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.outageFilters = Objects.requireNonNull($.outageFilters, "expected parameter 'outageFilters' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationArgs", "clusterName"); + } + if ($.outageFilters == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationArgs", "outageFilters"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDbRoleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDbRoleArgs.java index db8d404e..a616b40c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDbRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDbRoleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CustomDbRoleActionArgs; import com.pulumi.mongodbatlas.inputs.CustomDbRoleInheritedRoleArgs; import java.lang.String; @@ -186,8 +187,12 @@ public Builder roleName(String roleName) { } public CustomDbRoleArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CustomDbRoleArgs", "projectId"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("CustomDbRoleArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDnsConfigurationClusterAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDnsConfigurationClusterAwsArgs.java index bc134c67..01b440b6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDnsConfigurationClusterAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CustomDnsConfigurationClusterAwsArgs.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; @@ -112,8 +113,12 @@ public Builder projectId(String projectId) { } public CustomDnsConfigurationClusterAwsArgs build() { - $.enabled = Objects.requireNonNull($.enabled, "expected parameter 'enabled' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.enabled == null) { + throw new MissingRequiredPropertyException("CustomDnsConfigurationClusterAwsArgs", "enabled"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CustomDnsConfigurationClusterAwsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/DataLakePipelineArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/DataLakePipelineArgs.java index 0607f537..a27d814d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/DataLakePipelineArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/DataLakePipelineArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.DataLakePipelineSinkArgs; import com.pulumi.mongodbatlas.inputs.DataLakePipelineSourceArgs; import com.pulumi.mongodbatlas.inputs.DataLakePipelineTransformationArgs; @@ -208,7 +209,9 @@ public Builder transformations(DataLakePipelineTransformationArgs... transformat } public DataLakePipelineArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("DataLakePipelineArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/DatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/DatabaseUserArgs.java index de19f8fa..b21b0932 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/DatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/DatabaseUserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.DatabaseUserLabelArgs; import com.pulumi.mongodbatlas.inputs.DatabaseUserRoleArgs; import com.pulumi.mongodbatlas.inputs.DatabaseUserScopeArgs; @@ -412,9 +413,15 @@ public Builder x509Type(String x509Type) { } public DatabaseUserArgs build() { - $.authDatabaseName = Objects.requireNonNull($.authDatabaseName, "expected parameter 'authDatabaseName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.authDatabaseName == null) { + throw new MissingRequiredPropertyException("DatabaseUserArgs", "authDatabaseName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("DatabaseUserArgs", "projectId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("DatabaseUserArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/EncryptionAtRestArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/EncryptionAtRestArgs.java index 886e6f62..bbbdfe48 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/EncryptionAtRestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/EncryptionAtRestArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.EncryptionAtRestAwsKmsConfigArgs; import com.pulumi.mongodbatlas.inputs.EncryptionAtRestAzureKeyVaultConfigArgs; import com.pulumi.mongodbatlas.inputs.EncryptionAtRestGoogleCloudKmsConfigArgs; @@ -130,7 +131,9 @@ public Builder projectId(String projectId) { } public EncryptionAtRestArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("EncryptionAtRestArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/EventTriggerArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/EventTriggerArgs.java index f7a030a0..c0ce4174 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/EventTriggerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/EventTriggerArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.EventTriggerEventProcessorsArgs; import java.lang.Boolean; import java.lang.String; @@ -757,9 +758,15 @@ public Builder unordered(Boolean unordered) { } public EventTriggerArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("EventTriggerArgs", "appId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("EventTriggerArgs", "projectId"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("EventTriggerArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstanceArgs.java index 4882a6de..d8bfe8dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstanceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigArgs; import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceDataProcessRegionArgs; import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageDatabaseArgs; @@ -454,7 +455,9 @@ public Builder storageStores(FederatedDatabaseInstanceStorageStoreArgs... storag } public FederatedDatabaseInstanceArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedQueryLimitArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedQueryLimitArgs.java index 39ffce81..d8239d91 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedQueryLimitArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedQueryLimitArgs.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; @@ -295,11 +296,21 @@ public Builder value(Integer value) { } public FederatedQueryLimitArgs build() { - $.limitName = Objects.requireNonNull($.limitName, "expected parameter 'limitName' to be non-null"); - $.overrunPolicy = Objects.requireNonNull($.overrunPolicy, "expected parameter 'overrunPolicy' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.tenantName = Objects.requireNonNull($.tenantName, "expected parameter 'tenantName' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.limitName == null) { + throw new MissingRequiredPropertyException("FederatedQueryLimitArgs", "limitName"); + } + if ($.overrunPolicy == null) { + throw new MissingRequiredPropertyException("FederatedQueryLimitArgs", "overrunPolicy"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("FederatedQueryLimitArgs", "projectId"); + } + if ($.tenantName == null) { + throw new MissingRequiredPropertyException("FederatedQueryLimitArgs", "tenantName"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("FederatedQueryLimitArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsIdentityProviderArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsIdentityProviderArgs.java index 5cfa4af1..39794410 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsIdentityProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsIdentityProviderArgs.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; @@ -392,13 +393,27 @@ public Builder status(String status) { } public FederatedSettingsIdentityProviderArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.issuerUri = Objects.requireNonNull($.issuerUri, "expected parameter 'issuerUri' to be non-null"); - $.requestBinding = Objects.requireNonNull($.requestBinding, "expected parameter 'requestBinding' to be non-null"); - $.responseSignatureAlgorithm = Objects.requireNonNull($.responseSignatureAlgorithm, "expected parameter 'responseSignatureAlgorithm' to be non-null"); - $.ssoDebugEnabled = Objects.requireNonNull($.ssoDebugEnabled, "expected parameter 'ssoDebugEnabled' to be non-null"); - $.ssoUrl = Objects.requireNonNull($.ssoUrl, "expected parameter 'ssoUrl' to be non-null"); - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "federationSettingsId"); + } + if ($.issuerUri == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "issuerUri"); + } + if ($.requestBinding == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "requestBinding"); + } + if ($.responseSignatureAlgorithm == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "responseSignatureAlgorithm"); + } + if ($.ssoDebugEnabled == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "ssoDebugEnabled"); + } + if ($.ssoUrl == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "ssoUrl"); + } + if ($.status == null) { + throw new MissingRequiredPropertyException("FederatedSettingsIdentityProviderArgs", "status"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgConfigArgs.java index e1d9b26b..a3784a17 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgConfigArgs.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; @@ -151,10 +152,18 @@ public Builder postAuthRoleGrants(String... postAuthRoleGrants) { } public FederatedSettingsOrgConfigArgs build() { - $.domainRestrictionEnabled = Objects.requireNonNull($.domainRestrictionEnabled, "expected parameter 'domainRestrictionEnabled' to be non-null"); - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.identityProviderId = Objects.requireNonNull($.identityProviderId, "expected parameter 'identityProviderId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.domainRestrictionEnabled == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgConfigArgs", "domainRestrictionEnabled"); + } + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgConfigArgs", "federationSettingsId"); + } + if ($.identityProviderId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgConfigArgs", "identityProviderId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgConfigArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMappingArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMappingArgs.java index 0f18dbce..cfaa2f76 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMappingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMappingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.FederatedSettingsOrgRoleMappingRoleAssignmentArgs; import java.lang.String; import java.util.List; @@ -197,10 +198,18 @@ public Builder roleAssignments(FederatedSettingsOrgRoleMappingRoleAssignmentArgs } public FederatedSettingsOrgRoleMappingArgs build() { - $.externalGroupName = Objects.requireNonNull($.externalGroupName, "expected parameter 'externalGroupName' to be non-null"); - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.roleAssignments = Objects.requireNonNull($.roleAssignments, "expected parameter 'roleAssignments' to be non-null"); + if ($.externalGroupName == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgRoleMappingArgs", "externalGroupName"); + } + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgRoleMappingArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgRoleMappingArgs", "orgId"); + } + if ($.roleAssignments == null) { + throw new MissingRequiredPropertyException("FederatedSettingsOrgRoleMappingArgs", "roleAssignments"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfigArgs.java index 9d2858ec..52b8409d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GlobalClusterConfigCustomZoneMappingArgs; import com.pulumi.mongodbatlas.inputs.GlobalClusterConfigManagedNamespaceArgs; import java.lang.String; @@ -210,8 +211,12 @@ public Builder projectId(String projectId) { } public GlobalClusterConfigArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapConfigurationArgs.java index bc02e4ed..d2461c31 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapConfigurationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.LdapConfigurationUserToDnMappingArgs; import java.lang.Boolean; import java.lang.Integer; @@ -438,11 +439,21 @@ public Builder userToDnMappings(LdapConfigurationUserToDnMappingArgs... userToDn } public LdapConfigurationArgs build() { - $.authenticationEnabled = Objects.requireNonNull($.authenticationEnabled, "expected parameter 'authenticationEnabled' to be non-null"); - $.bindPassword = Objects.requireNonNull($.bindPassword, "expected parameter 'bindPassword' to be non-null"); - $.bindUsername = Objects.requireNonNull($.bindUsername, "expected parameter 'bindUsername' to be non-null"); - $.hostname = Objects.requireNonNull($.hostname, "expected parameter 'hostname' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.authenticationEnabled == null) { + throw new MissingRequiredPropertyException("LdapConfigurationArgs", "authenticationEnabled"); + } + if ($.bindPassword == null) { + throw new MissingRequiredPropertyException("LdapConfigurationArgs", "bindPassword"); + } + if ($.bindUsername == null) { + throw new MissingRequiredPropertyException("LdapConfigurationArgs", "bindUsername"); + } + if ($.hostname == null) { + throw new MissingRequiredPropertyException("LdapConfigurationArgs", "hostname"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("LdapConfigurationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapVerifyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapVerifyArgs.java index 06a5756a..8367849c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapVerifyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/LdapVerifyArgs.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; @@ -299,11 +300,21 @@ public Builder projectId(String projectId) { } public LdapVerifyArgs build() { - $.bindPassword = Objects.requireNonNull($.bindPassword, "expected parameter 'bindPassword' to be non-null"); - $.bindUsername = Objects.requireNonNull($.bindUsername, "expected parameter 'bindUsername' to be non-null"); - $.hostname = Objects.requireNonNull($.hostname, "expected parameter 'hostname' to be non-null"); - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.bindPassword == null) { + throw new MissingRequiredPropertyException("LdapVerifyArgs", "bindPassword"); + } + if ($.bindUsername == null) { + throw new MissingRequiredPropertyException("LdapVerifyArgs", "bindUsername"); + } + if ($.hostname == null) { + throw new MissingRequiredPropertyException("LdapVerifyArgs", "hostname"); + } + if ($.port == null) { + throw new MissingRequiredPropertyException("LdapVerifyArgs", "port"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("LdapVerifyArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/MaintenanceWindowArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/MaintenanceWindowArgs.java index bec50ca6..577709a9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/MaintenanceWindowArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/MaintenanceWindowArgs.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; @@ -280,7 +281,9 @@ public Builder projectId(String projectId) { } public MaintenanceWindowArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("MaintenanceWindowArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkContainerArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkContainerArgs.java index 8ae4a410..2c551efc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkContainerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkContainerArgs.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; @@ -300,8 +301,12 @@ public Builder regions(String... regions) { } public NetworkContainerArgs build() { - $.atlasCidrBlock = Objects.requireNonNull($.atlasCidrBlock, "expected parameter 'atlasCidrBlock' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.atlasCidrBlock == null) { + throw new MissingRequiredPropertyException("NetworkContainerArgs", "atlasCidrBlock"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("NetworkContainerArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkPeeringArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkPeeringArgs.java index 3862c00f..c173ecb8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkPeeringArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/NetworkPeeringArgs.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; @@ -615,9 +616,15 @@ public Builder vpcId(String vpcId) { } public NetworkPeeringArgs build() { - $.containerId = Objects.requireNonNull($.containerId, "expected parameter 'containerId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.containerId == null) { + throw new MissingRequiredPropertyException("NetworkPeeringArgs", "containerId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("NetworkPeeringArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("NetworkPeeringArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OnlineArchiveArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OnlineArchiveArgs.java index ae6809af..56138b84 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OnlineArchiveArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OnlineArchiveArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.OnlineArchiveCriteriaArgs; import com.pulumi.mongodbatlas.inputs.OnlineArchiveDataExpirationRuleArgs; import com.pulumi.mongodbatlas.inputs.OnlineArchiveDataProcessRegionArgs; @@ -480,11 +481,21 @@ public Builder syncCreation(Boolean syncCreation) { } public OnlineArchiveArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.collName = Objects.requireNonNull($.collName, "expected parameter 'collName' to be non-null"); - $.criteria = Objects.requireNonNull($.criteria, "expected parameter 'criteria' to be non-null"); - $.dbName = Objects.requireNonNull($.dbName, "expected parameter 'dbName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("OnlineArchiveArgs", "clusterName"); + } + if ($.collName == null) { + throw new MissingRequiredPropertyException("OnlineArchiveArgs", "collName"); + } + if ($.criteria == null) { + throw new MissingRequiredPropertyException("OnlineArchiveArgs", "criteria"); + } + if ($.dbName == null) { + throw new MissingRequiredPropertyException("OnlineArchiveArgs", "dbName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("OnlineArchiveArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrgInvitationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrgInvitationArgs.java index 1df133e7..42f66705 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrgInvitationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrgInvitationArgs.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; @@ -208,9 +209,15 @@ public Builder username(String username) { } public OrgInvitationArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("OrgInvitationArgs", "orgId"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("OrgInvitationArgs", "roles"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("OrgInvitationArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrganizationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrganizationArgs.java index 36e87429..d3bb2e64 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrganizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/OrganizationArgs.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; @@ -215,9 +216,15 @@ public Builder roleNames(String... roleNames) { } public OrganizationArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.orgOwnerId = Objects.requireNonNull($.orgOwnerId, "expected parameter 'orgOwnerId' to be non-null"); - $.roleNames = Objects.requireNonNull($.roleNames, "expected parameter 'roleNames' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("OrganizationArgs", "description"); + } + if ($.orgOwnerId == null) { + throw new MissingRequiredPropertyException("OrganizationArgs", "orgOwnerId"); + } + if ($.roleNames == null) { + throw new MissingRequiredPropertyException("OrganizationArgs", "roleNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateEndpointRegionalModeArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateEndpointRegionalModeArgs.java index 33b9f984..b6d97a41 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateEndpointRegionalModeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateEndpointRegionalModeArgs.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; @@ -126,7 +127,9 @@ public Builder projectId(String projectId) { } public PrivateEndpointRegionalModeArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivateEndpointRegionalModeArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointArgs.java index c2f87550..d805fe53 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointArgs.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; @@ -152,9 +153,15 @@ public Builder region(String region) { } public PrivateLinkEndpointArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointArgs", "providerName"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointServiceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointServiceArgs.java index 50ed5b46..42cfeb89 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivateLinkEndpointServiceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.PrivateLinkEndpointServiceEndpointArgs; import java.lang.String; import java.util.List; @@ -310,10 +311,18 @@ public Builder providerName(String providerName) { } public PrivateLinkEndpointServiceArgs build() { - $.endpointServiceId = Objects.requireNonNull($.endpointServiceId, "expected parameter 'endpointServiceId' to be non-null"); - $.privateLinkId = Objects.requireNonNull($.privateLinkId, "expected parameter 'privateLinkId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.endpointServiceId == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointServiceArgs", "endpointServiceId"); + } + if ($.privateLinkId == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointServiceArgs", "privateLinkId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointServiceArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("PrivateLinkEndpointServiceArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServerlessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServerlessArgs.java index edc15d4a..e20349d4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServerlessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServerlessArgs.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 providerName(String providerName) { } public PrivatelinkEndpointServerlessArgs build() { - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServerlessArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServerlessArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServerlessArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java index 2e8411a2..ca8427ea 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.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 providerName(String providerName) { } public PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs", "endpointId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceDataFederationOnlineArchiveArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceServerlessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceServerlessArgs.java index 427d54cd..f139bba9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceServerlessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/PrivatelinkEndpointServiceServerlessArgs.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,10 +299,18 @@ public Builder providerName(String providerName) { } public PrivatelinkEndpointServiceServerlessArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceServerlessArgs", "endpointId"); + } + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceServerlessArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceServerlessArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("PrivatelinkEndpointServiceServerlessArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectApiKeyArgs.java index 1b08e380..aa2db3e3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectApiKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ProjectApiKeyProjectAssignmentArgs; import java.lang.String; import java.util.List; @@ -160,8 +161,12 @@ public Builder projectId(String projectId) { } public ProjectApiKeyArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.projectAssignments = Objects.requireNonNull($.projectAssignments, "expected parameter 'projectAssignments' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyArgs", "description"); + } + if ($.projectAssignments == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyArgs", "projectAssignments"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectArgs.java index f3e60b17..e226b758 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/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.mongodbatlas.inputs.ProjectLimitArgs; import com.pulumi.mongodbatlas.inputs.ProjectTeamArgs; import java.lang.Boolean; @@ -492,7 +493,9 @@ public Builder withDefaultAlertsSettings(Boolean withDefaultAlertsSettings) { } public ProjectArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("ProjectArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectInvitationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectInvitationArgs.java index 8a1df7c1..1cc435fe 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectInvitationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectInvitationArgs.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; @@ -159,9 +160,15 @@ public Builder username(String username) { } public ProjectInvitationArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectInvitationArgs", "projectId"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("ProjectInvitationArgs", "roles"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("ProjectInvitationArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectIpAccessListArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectIpAccessListArgs.java index 71b469cc..9995f5d4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectIpAccessListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ProjectIpAccessListArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ProjectIpAccessListTimeoutsArgs; import java.lang.String; import java.util.Objects; @@ -250,7 +251,9 @@ public Builder timeouts(ProjectIpAccessListTimeoutsArgs timeouts) { } public ProjectIpAccessListArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectIpAccessListArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchDeploymentArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchDeploymentArgs.java index 8a9a124f..86af49de 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchDeploymentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchDeploymentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.SearchDeploymentSpecArgs; import com.pulumi.mongodbatlas.inputs.SearchDeploymentTimeoutsArgs; import java.lang.String; @@ -180,9 +181,15 @@ public Builder timeouts(SearchDeploymentTimeoutsArgs timeouts) { } public SearchDeploymentArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.specs = Objects.requireNonNull($.specs, "expected parameter 'specs' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("SearchDeploymentArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("SearchDeploymentArgs", "projectId"); + } + if ($.specs == null) { + throw new MissingRequiredPropertyException("SearchDeploymentArgs", "specs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchIndexArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchIndexArgs.java index 606bf8b2..3687b512 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchIndexArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/SearchIndexArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.SearchIndexSynonymArgs; import java.lang.Boolean; import java.lang.String; @@ -567,10 +568,18 @@ public Builder waitForIndexBuildCompletion(Boolean waitForIndexBuildCompletion) } public SearchIndexArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.collectionName = Objects.requireNonNull($.collectionName, "expected parameter 'collectionName' to be non-null"); - $.database = Objects.requireNonNull($.database, "expected parameter 'database' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("SearchIndexArgs", "clusterName"); + } + if ($.collectionName == null) { + throw new MissingRequiredPropertyException("SearchIndexArgs", "collectionName"); + } + if ($.database == null) { + throw new MissingRequiredPropertyException("SearchIndexArgs", "database"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("SearchIndexArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ServerlessInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ServerlessInstanceArgs.java index f649654b..8f0e2614 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ServerlessInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ServerlessInstanceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ServerlessInstanceLinkArgs; import com.pulumi.mongodbatlas.inputs.ServerlessInstanceTagArgs; import java.lang.Boolean; @@ -407,10 +408,18 @@ public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled } public ServerlessInstanceArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerSettingsBackingProviderName = Objects.requireNonNull($.providerSettingsBackingProviderName, "expected parameter 'providerSettingsBackingProviderName' to be non-null"); - $.providerSettingsProviderName = Objects.requireNonNull($.providerSettingsProviderName, "expected parameter 'providerSettingsProviderName' to be non-null"); - $.providerSettingsRegionName = Objects.requireNonNull($.providerSettingsRegionName, "expected parameter 'providerSettingsRegionName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceArgs", "projectId"); + } + if ($.providerSettingsBackingProviderName == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceArgs", "providerSettingsBackingProviderName"); + } + if ($.providerSettingsProviderName == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceArgs", "providerSettingsProviderName"); + } + if ($.providerSettingsRegionName == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceArgs", "providerSettingsRegionName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamArgs.java index e92d1ab9..b18f0537 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamArgs.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; @@ -95,8 +96,12 @@ public Builder usernames(String... usernames) { } public TeamArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.usernames = Objects.requireNonNull($.usernames, "expected parameter 'usernames' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("TeamArgs", "orgId"); + } + if ($.usernames == null) { + throw new MissingRequiredPropertyException("TeamArgs", "usernames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamsArgs.java index dbd15833..e0c96db7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/TeamsArgs.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; @@ -95,8 +96,12 @@ public Builder usernames(String... usernames) { } public TeamsArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.usernames = Objects.requireNonNull($.usernames, "expected parameter 'usernames' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("TeamsArgs", "orgId"); + } + if ($.usernames == null) { + throw new MissingRequiredPropertyException("TeamsArgs", "usernames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ThirdPartyIntegrationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ThirdPartyIntegrationArgs.java index f16d9fdc..043fb9f8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/ThirdPartyIntegrationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/ThirdPartyIntegrationArgs.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; @@ -620,8 +621,12 @@ public Builder userName(String userName) { } public ThirdPartyIntegrationArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ThirdPartyIntegrationArgs", "projectId"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ThirdPartyIntegrationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/X509AuthenticationDatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/X509AuthenticationDatabaseUserArgs.java index a857a1af..2257f860 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/X509AuthenticationDatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/X509AuthenticationDatabaseUserArgs.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 username(String username) { } public X509AuthenticationDatabaseUserArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("X509AuthenticationDatabaseUserArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/config/inputs/AssumeRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/config/inputs/AssumeRole.java index b7104c57..4842d0e0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/config/inputs/AssumeRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/config/inputs/AssumeRole.java @@ -86,21 +86,25 @@ public Builder(AssumeRole defaults) { @CustomType.Setter public Builder duration(@Nullable String duration) { + this.duration = duration; return this; } @CustomType.Setter public Builder externalId(@Nullable String externalId) { + this.externalId = externalId; return this; } @CustomType.Setter public Builder policy(@Nullable String policy) { + this.policy = policy; return this; } @CustomType.Setter public Builder policyArns(@Nullable List policyArns) { + this.policyArns = policyArns; return this; } @@ -109,26 +113,31 @@ public Builder policyArns(String... policyArns) { } @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder sessionName(@Nullable String sessionName) { + this.sessionName = sessionName; return this; } @CustomType.Setter public Builder sourceIdentity(@Nullable String sourceIdentity) { + this.sourceIdentity = sourceIdentity; return this; } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder transitiveTagKeys(@Nullable List transitiveTagKeys) { + this.transitiveTagKeys = transitiveTagKeys; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecArgs.java index 0bfd5464..32da7927 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecRegionConfigArgs; import java.lang.Integer; import java.lang.String; @@ -198,7 +199,9 @@ public Builder zoneName(String zoneName) { } public AdvancedClusterReplicationSpecArgs build() { - $.regionConfigs = Objects.requireNonNull($.regionConfigs, "expected parameter 'regionConfigs' to be non-null"); + if ($.regionConfigs == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecArgs", "regionConfigs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs.java index ef3ec499..fe7b965f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs.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 nodeCount(Integer nodeCount) { } public AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs build() { - $.instanceSize = Objects.requireNonNull($.instanceSize, "expected parameter 'instanceSize' to be non-null"); + if ($.instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs", "instanceSize"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigArgs.java index ba19a615..b2fec392 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScalingArgs; import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecsArgs; import com.pulumi.mongodbatlas.inputs.AdvancedClusterReplicationSpecRegionConfigAutoScalingArgs; @@ -390,9 +391,15 @@ public Builder regionName(String regionName) { } public AdvancedClusterReplicationSpecRegionConfigArgs build() { - $.priority = Objects.requireNonNull($.priority, "expected parameter 'priority' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); - $.regionName = Objects.requireNonNull($.regionName, "expected parameter 'regionName' to be non-null"); + if ($.priority == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigArgs", "priority"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigArgs", "providerName"); + } + if ($.regionName == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigArgs", "regionName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.java index 332454de..a568782f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs.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 nodeCount(Integer nodeCount) { } public AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs build() { - $.instanceSize = Objects.requireNonNull($.instanceSize, "expected parameter 'instanceSize' to be non-null"); + if ($.instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigElectableSpecsArgs", "instanceSize"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs.java index a7ab9116..17decce8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs.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 nodeCount(Integer nodeCount) { } public AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs build() { - $.instanceSize = Objects.requireNonNull($.instanceSize, "expected parameter 'instanceSize' to be non-null"); + if ($.instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigReadOnlySpecsArgs", "instanceSize"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterTagArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterTagArgs.java index 5544125c..42c3f3bc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AdvancedClusterTagArgs.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; @@ -119,8 +120,12 @@ public Builder value(String value) { } public AdvancedClusterTagArgs 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("AdvancedClusterTagArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AdvancedClusterTagArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMatcherArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMatcherArgs.java index ed829045..35f26daf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMatcherArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMatcherArgs.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; @@ -192,9 +193,15 @@ public Builder value(String value) { } public AlertConfigurationMatcherArgs build() { - $.fieldName = Objects.requireNonNull($.fieldName, "expected parameter 'fieldName' to be non-null"); - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.fieldName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcherArgs", "fieldName"); + } + if ($.operator == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcherArgs", "operator"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcherArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMetricThresholdConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMetricThresholdConfigArgs.java index 9d688a34..17fca8c6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMetricThresholdConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationMetricThresholdConfigArgs.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; @@ -233,7 +234,9 @@ public Builder units(String units) { } public AlertConfigurationMetricThresholdConfigArgs build() { - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); + if ($.metricName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMetricThresholdConfigArgs", "metricName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationNotificationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationNotificationArgs.java index 2067334f..041ead2f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationNotificationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/AlertConfigurationNotificationArgs.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; @@ -999,7 +1000,9 @@ public Builder webhookUrl(String webhookUrl) { } public AlertConfigurationNotificationArgs build() { - $.typeName = Objects.requireNonNull($.typeName, "expected parameter 'typeName' to be non-null"); + if ($.typeName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationNotificationArgs", "typeName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyOnDemandPolicyItemArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyOnDemandPolicyItemArgs.java index 7092d7ff..dd62f898 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyOnDemandPolicyItemArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyOnDemandPolicyItemArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public BackupCompliancePolicyOnDemandPolicyItemArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItemArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItemArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItemArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemDailyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemDailyArgs.java index ddfeba22..8ce7222d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemDailyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemDailyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public BackupCompliancePolicyPolicyItemDailyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDailyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDailyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDailyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemHourlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemHourlyArgs.java index 10b2b2ad..f670cd0c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemHourlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemHourlyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public BackupCompliancePolicyPolicyItemHourlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourlyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemMonthlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemMonthlyArgs.java index 27cc02de..15e1d318 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemMonthlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemMonthlyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public BackupCompliancePolicyPolicyItemMonthlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthlyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemWeeklyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemWeeklyArgs.java index 18a233ec..e05becc8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemWeeklyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/BackupCompliancePolicyPolicyItemWeeklyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public BackupCompliancePolicyPolicyItemWeeklyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeeklyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeeklyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeeklyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemDailyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemDailyArgs.java index c004cab6..03311b49 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemDailyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemDailyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public CloudBackupSchedulePolicyItemDailyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDailyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDailyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDailyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemHourlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemHourlyArgs.java index 52bab624..1bbdac5a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemHourlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemHourlyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public CloudBackupSchedulePolicyItemHourlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourlyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemMonthlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemMonthlyArgs.java index b8a73b39..1045101c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemMonthlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemMonthlyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public CloudBackupSchedulePolicyItemMonthlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthlyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemWeeklyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemWeeklyArgs.java index dfedb0ef..644424d6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemWeeklyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSchedulePolicyItemWeeklyArgs.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,9 +226,15 @@ public Builder retentionValue(Integer retentionValue) { } public CloudBackupSchedulePolicyItemWeeklyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeeklyArgs", "frequencyInterval"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeeklyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeeklyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotExportJobCustomDataArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotExportJobCustomDataArgs.java index 28592e60..908da7b3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotExportJobCustomDataArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotExportJobCustomDataArgs.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 CloudBackupSnapshotExportJobCustomDataArgs 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("CloudBackupSnapshotExportJobCustomDataArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobCustomDataArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAwsArgs.java index 8b5e7432..de46db0a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAwsArgs.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 iamAssumedRoleArn(String iamAssumedRoleArn) { } public CloudProviderAccessAuthorizationAwsArgs build() { - $.iamAssumedRoleArn = Objects.requireNonNull($.iamAssumedRoleArn, "expected parameter 'iamAssumedRoleArn' to be non-null"); + if ($.iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAwsArgs", "iamAssumedRoleArn"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAzureArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAzureArgs.java index 2789d3b2..6248dd2b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAzureArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessAuthorizationAzureArgs.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; @@ -88,9 +89,15 @@ public Builder tenantId(String tenantId) { } public CloudProviderAccessAuthorizationAzureArgs build() { - $.atlasAzureAppId = Objects.requireNonNull($.atlasAzureAppId, "expected parameter 'atlasAzureAppId' to be non-null"); - $.servicePrincipalId = Objects.requireNonNull($.servicePrincipalId, "expected parameter 'servicePrincipalId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzureArgs", "atlasAzureAppId"); + } + if ($.servicePrincipalId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzureArgs", "servicePrincipalId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzureArgs", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessSetupAzureConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessSetupAzureConfigArgs.java index 26c0d983..a50bad73 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessSetupAzureConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudProviderAccessSetupAzureConfigArgs.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; @@ -88,9 +89,15 @@ public Builder tenantId(String tenantId) { } public CloudProviderAccessSetupAzureConfigArgs build() { - $.atlasAzureAppId = Objects.requireNonNull($.atlasAzureAppId, "expected parameter 'atlasAzureAppId' to be non-null"); - $.servicePrincipalId = Objects.requireNonNull($.servicePrincipalId, "expected parameter 'servicePrincipalId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfigArgs", "atlasAzureAppId"); + } + if ($.servicePrincipalId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfigArgs", "servicePrincipalId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfigArgs", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterOutageSimulationOutageFilterArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterOutageSimulationOutageFilterArgs.java index d4292a3a..8d386e43 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterOutageSimulationOutageFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterOutageSimulationOutageFilterArgs.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 type(String type) { } public ClusterOutageSimulationOutageFilterArgs build() { - $.cloudProvider = Objects.requireNonNull($.cloudProvider, "expected parameter 'cloudProvider' to be non-null"); - $.regionName = Objects.requireNonNull($.regionName, "expected parameter 'regionName' to be non-null"); + if ($.cloudProvider == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationOutageFilterArgs", "cloudProvider"); + } + if ($.regionName == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationOutageFilterArgs", "regionName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecArgs.java index 08a86e80..54cd3450 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.ClusterReplicationSpecRegionsConfigArgs; import java.lang.Integer; import java.lang.String; @@ -208,7 +209,9 @@ public Builder zoneName(String zoneName) { } public ClusterReplicationSpecArgs build() { - $.numShards = Objects.requireNonNull($.numShards, "expected parameter 'numShards' to be non-null"); + if ($.numShards == null) { + throw new MissingRequiredPropertyException("ClusterReplicationSpecArgs", "numShards"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecRegionsConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecRegionsConfigArgs.java index 2aa557c2..465b5646 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecRegionsConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterReplicationSpecRegionsConfigArgs.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; @@ -249,7 +250,9 @@ public Builder regionName(String regionName) { } public ClusterReplicationSpecRegionsConfigArgs build() { - $.regionName = Objects.requireNonNull($.regionName, "expected parameter 'regionName' to be non-null"); + if ($.regionName == null) { + throw new MissingRequiredPropertyException("ClusterReplicationSpecRegionsConfigArgs", "regionName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterTagArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterTagArgs.java index d8458eb9..f0ed0ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ClusterTagArgs.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; @@ -119,8 +120,12 @@ public Builder value(String value) { } public ClusterTagArgs 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("ClusterTagArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ClusterTagArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleActionArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleActionArgs.java index 3909cde7..535a1a4b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleActionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.CustomDbRoleActionResourceArgs; import java.lang.String; import java.util.List; @@ -187,8 +188,12 @@ public Builder resources(CustomDbRoleActionResourceArgs... resources) { } public CustomDbRoleActionArgs build() { - $.action = Objects.requireNonNull($.action, "expected parameter 'action' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); + if ($.action == null) { + throw new MissingRequiredPropertyException("CustomDbRoleActionArgs", "action"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("CustomDbRoleActionArgs", "resources"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleInheritedRoleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleInheritedRoleArgs.java index 3539ef04..dd63b822 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleInheritedRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CustomDbRoleInheritedRoleArgs.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; @@ -119,8 +120,12 @@ public Builder roleName(String roleName) { } public CustomDbRoleInheritedRoleArgs build() { - $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.databaseName == null) { + throw new MissingRequiredPropertyException("CustomDbRoleInheritedRoleArgs", "databaseName"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("CustomDbRoleInheritedRoleArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DataLakePipelineSinkPartitionFieldArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DataLakePipelineSinkPartitionFieldArgs.java index 8cbe90cf..a7b3faba 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DataLakePipelineSinkPartitionFieldArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DataLakePipelineSinkPartitionFieldArgs.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; @@ -72,8 +73,12 @@ public Builder order(Integer order) { } public DataLakePipelineSinkPartitionFieldArgs build() { - $.fieldName = Objects.requireNonNull($.fieldName, "expected parameter 'fieldName' to be non-null"); - $.order = Objects.requireNonNull($.order, "expected parameter 'order' to be non-null"); + if ($.fieldName == null) { + throw new MissingRequiredPropertyException("DataLakePipelineSinkPartitionFieldArgs", "fieldName"); + } + if ($.order == null) { + throw new MissingRequiredPropertyException("DataLakePipelineSinkPartitionFieldArgs", "order"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DatabaseUserRoleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DatabaseUserRoleArgs.java index 59185824..180e82d4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DatabaseUserRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/DatabaseUserRoleArgs.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 roleName(String roleName) { } public DatabaseUserRoleArgs build() { - $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.databaseName == null) { + throw new MissingRequiredPropertyException("DatabaseUserRoleArgs", "databaseName"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("DatabaseUserRoleArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigArgs.java index b6881c56..fbb2a566 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigAwsArgs; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder aws(FederatedDatabaseInstanceCloudProviderConfigAwsArgs aws) { } public FederatedDatabaseInstanceCloudProviderConfigArgs build() { - $.aws = Objects.requireNonNull($.aws, "expected parameter 'aws' to be non-null"); + if ($.aws == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfigArgs", "aws"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java index 6f868b61..b58b2eb2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.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; @@ -240,8 +241,12 @@ public Builder testS3Bucket(String testS3Bucket) { } public FederatedDatabaseInstanceCloudProviderConfigAwsArgs build() { - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); - $.testS3Bucket = Objects.requireNonNull($.testS3Bucket, "expected parameter 'testS3Bucket' to be non-null"); + if ($.roleId == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfigAwsArgs", "roleId"); + } + if ($.testS3Bucket == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfigAwsArgs", "testS3Bucket"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceDataProcessRegionArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceDataProcessRegionArgs.java index f447b887..c161d96f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceDataProcessRegionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceDataProcessRegionArgs.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 region(String region) { } public FederatedDatabaseInstanceDataProcessRegionArgs build() { - $.cloudProvider = Objects.requireNonNull($.cloudProvider, "expected parameter 'cloudProvider' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.cloudProvider == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceDataProcessRegionArgs", "cloudProvider"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceDataProcessRegionArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs.java index 40d0274c..98332946 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTagArgs; import java.util.List; import java.util.Objects; @@ -59,7 +60,9 @@ public Builder tags(FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag } public FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs build() { - $.tags = Objects.requireNonNull($.tags, "expected parameter 'tags' to be non-null"); + if ($.tags == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs", "tags"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserArgs.java index 24808837..ff993258 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserArgs.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 username(String username) { } public Get509AuthenticationDatabaseUserArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserPlainArgs.java index 510cdcf2..78cd1a40 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/Get509AuthenticationDatabaseUserPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 username(@Nullable String username) { } public Get509AuthenticationDatabaseUserPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyArgs.java index 99eec3f4..6e78d3ee 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyArgs.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; @@ -156,9 +157,15 @@ public Builder orgId(String orgId) { } public GetAccessListApiKeyArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyArgs", "apiKeyId"); + } + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyArgs", "ipAddress"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyPlainArgs.java index c108a87d..1be9e301 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -123,9 +124,15 @@ public Builder orgId(String orgId) { } public GetAccessListApiKeyPlainArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyPlainArgs", "apiKeyId"); + } + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyPlainArgs", "ipAddress"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysArgs.java index 785afa1d..c78d31e9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysArgs.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; @@ -196,8 +197,12 @@ public Builder pageNum(Integer pageNum) { } public GetAccessListApiKeysArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysArgs", "apiKeyId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysPlainArgs.java index b26807ca..09cf568a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAccessListApiKeysPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -153,8 +154,12 @@ public Builder pageNum(@Nullable Integer pageNum) { } public GetAccessListApiKeysPlainArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysPlainArgs", "apiKeyId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterArgs.java index 50bf2b87..47eb2675 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterArgs.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 projectId(String projectId) { } public GetAdvancedClusterArgs 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("GetAdvancedClusterArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterPlainArgs.java index 3e1b2922..7a485335 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClusterPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -120,8 +121,12 @@ public Builder projectId(String projectId) { } public GetAdvancedClusterPlainArgs 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("GetAdvancedClusterPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersArgs.java index 7035e927..d6667bd6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersArgs.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 projectId(String projectId) { } public GetAdvancedClustersArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersPlainArgs.java index fc78b9ae..1d698fd3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAdvancedClustersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetAdvancedClustersPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationArgs.java index 034df0f2..090652d5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationOutputArgs; import java.lang.String; import java.util.List; @@ -167,8 +168,12 @@ public Builder projectId(String projectId) { } public GetAlertConfigurationArgs build() { - $.alertConfigurationId = Objects.requireNonNull($.alertConfigurationId, "expected parameter 'alertConfigurationId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.alertConfigurationId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationArgs", "alertConfigurationId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutput.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutput.java index 75c6a2b5..f4186921 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutput.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutput.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -91,8 +92,12 @@ public Builder value(String value) { } public GetAlertConfigurationOutput build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutput", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutput", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutputArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutputArgs.java index b7130e4f..302a6a01 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutputArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationOutputArgs.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; @@ -110,8 +111,12 @@ public Builder value(String value) { } public GetAlertConfigurationOutputArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutputArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutputArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationPlainArgs.java index 7094830b..b59f66a3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationOutput; import java.lang.String; import java.util.List; @@ -135,8 +136,12 @@ public Builder projectId(String projectId) { } public GetAlertConfigurationPlainArgs build() { - $.alertConfigurationId = Objects.requireNonNull($.alertConfigurationId, "expected parameter 'alertConfigurationId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.alertConfigurationId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationPlainArgs", "alertConfigurationId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsArgs.java index c9cbbcd4..3abdf523 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationsListOptionArgs; import java.lang.String; import java.util.List; @@ -187,7 +188,9 @@ public Builder projectId(String projectId) { } public GetAlertConfigurationsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsPlainArgs.java index 5d19c9f2..4ca4b57c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAlertConfigurationsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationsListOption; import java.lang.String; import java.util.List; @@ -153,7 +154,9 @@ public Builder projectId(String projectId) { } public GetAlertConfigurationsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyArgs.java index 2472679b..d97a0f27 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyArgs.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; @@ -91,8 +92,12 @@ public Builder orgId(String orgId) { } public GetApiKeyArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetApiKeyArgs", "apiKeyId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeyArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyPlainArgs.java index 25cd437f..d34b52a0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,8 +77,12 @@ public Builder orgId(String orgId) { } public GetApiKeyPlainArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetApiKeyPlainArgs", "apiKeyId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeyPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysArgs.java index f6245d19..9523ca12 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysArgs.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 pageNum(Integer pageNum) { } public GetApiKeysArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeysArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysPlainArgs.java index d0fe1747..94bd2f01 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetApiKeysPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -120,7 +121,9 @@ public Builder pageNum(@Nullable Integer pageNum) { } public GetApiKeysPlainArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeysPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingArgs.java index 0c336c83..85253a01 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingArgs.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 projectId(String projectId) { } public GetAuditingArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAuditingArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingPlainArgs.java index e6b9fc30..c4a5e4e8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetAuditingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetAuditingPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAuditingPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyArgs.java index ef36a9f3..a3074628 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyOnDemandPolicyItemArgs; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyPolicyItemDailyArgs; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyPolicyItemHourlyArgs; @@ -175,7 +176,9 @@ public Builder projectId(String projectId) { } public GetBackupCompliancePolicyArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItem.java index 72331acd..a97ab26b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItem.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyOnDemandPolicyItem build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItemArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItemArgs.java index 041184bf..e91e1639 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItemArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyOnDemandPolicyItemArgs.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; @@ -223,11 +224,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyOnDemandPolicyItemArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItemArgs", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItemArgs", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItemArgs", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItemArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItemArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPlainArgs.java index 071c39e0..46f7634a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyOnDemandPolicyItem; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyPolicyItemDaily; import com.pulumi.mongodbatlas.inputs.GetBackupCompliancePolicyPolicyItemHourly; @@ -144,7 +145,9 @@ public Builder projectId(String projectId) { } public GetBackupCompliancePolicyPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDaily.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDaily.java index dc1de1fe..05ad3543 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDaily.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDaily.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemDaily build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDailyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDailyArgs.java index b8bef2d5..39f529e3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDailyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemDailyArgs.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; @@ -223,11 +224,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemDailyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDailyArgs", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDailyArgs", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDailyArgs", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDailyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDailyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourly.java index 81ea27e4..88eb7adf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemHourly build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourlyArgs.java index c7d8e17b..ebaede20 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemHourlyArgs.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; @@ -223,11 +224,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemHourlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourlyArgs", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourlyArgs", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourlyArgs", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthly.java index 82c1d1f0..5c59d15f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemMonthly build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthlyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthlyArgs.java index c3cb5b77..9295f57a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthlyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemMonthlyArgs.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; @@ -223,11 +224,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemMonthlyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthlyArgs", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthlyArgs", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthlyArgs", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthlyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthlyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeekly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeekly.java index c0aa737d..bfdf102f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeekly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeekly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemWeekly build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeeklyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeeklyArgs.java index ba1c45ac..3d729f55 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeeklyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetBackupCompliancePolicyPolicyItemWeeklyArgs.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; @@ -223,11 +224,21 @@ public Builder retentionValue(Integer retentionValue) { } public GetBackupCompliancePolicyPolicyItemWeeklyArgs build() { - $.frequencyInterval = Objects.requireNonNull($.frequencyInterval, "expected parameter 'frequencyInterval' to be non-null"); - $.frequencyType = Objects.requireNonNull($.frequencyType, "expected parameter 'frequencyType' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.retentionUnit = Objects.requireNonNull($.retentionUnit, "expected parameter 'retentionUnit' to be non-null"); - $.retentionValue = Objects.requireNonNull($.retentionValue, "expected parameter 'retentionValue' to be non-null"); + if ($.frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeeklyArgs", "frequencyInterval"); + } + if ($.frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeeklyArgs", "frequencyType"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeeklyArgs", "id"); + } + if ($.retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeeklyArgs", "retentionUnit"); + } + if ($.retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeeklyArgs", "retentionValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupScheduleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupScheduleArgs.java index 52fec75d..65a65ff1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupScheduleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupScheduleArgs.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 GetCloudBackupScheduleArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSchedulePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSchedulePlainArgs.java index 855429af..e873fbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSchedulePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSchedulePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetCloudBackupSchedulePlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotArgs.java index 893ab5a6..0659f81d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotArgs.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 snapshotId(String snapshotId) { } public GetCloudBackupSnapshotArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java index aace641d..88f19638 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.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; @@ -128,9 +129,15 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportBucketArgs build() { - $.exportBucketId = Objects.requireNonNull($.exportBucketId, "expected parameter 'exportBucketId' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "exportBucketId"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "id"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java index c88946e3..b8bcd43e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -103,9 +104,15 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportBucketPlainArgs build() { - $.exportBucketId = Objects.requireNonNull($.exportBucketId, "expected parameter 'exportBucketId' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "exportBucketId"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "id"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsArgs.java index 1daa1012..ad48af9d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsArgs.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 projectId(String projectId) { } public GetCloudBackupSnapshotExportBucketsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsPlainArgs.java index ed570860..cc5a3d5d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -120,7 +121,9 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportBucketsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java index ebdd524e..6efd4514 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.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; @@ -165,10 +166,18 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportJobArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.exportJobId = Objects.requireNonNull($.exportJobId, "expected parameter 'exportJobId' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "clusterName"); + } + if ($.exportJobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "exportJobId"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "id"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java index 3729234b..d575f59c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -130,10 +131,18 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportJobPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.exportJobId = Objects.requireNonNull($.exportJobId, "expected parameter 'exportJobId' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "clusterName"); + } + if ($.exportJobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "exportJobId"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "id"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsArgs.java index 41f25f98..440ebb66 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsArgs.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,8 +189,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportJobsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsPlainArgs.java index 568d3ec4..44bf23dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -147,8 +148,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotExportJobsPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotPlainArgs.java index abcfb62e..24afd4a7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder snapshotId(String snapshotId) { } public GetCloudBackupSnapshotPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotPlainArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotPlainArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java index c8694024..0ea3bf1b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.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 projectId(String projectId) { } public GetCloudBackupSnapshotRestoreJobArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.jobId = Objects.requireNonNull($.jobId, "expected parameter 'jobId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "clusterName"); + } + if ($.jobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "jobId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java index 43a02b83..c029bf3d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotRestoreJobPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.jobId = Objects.requireNonNull($.jobId, "expected parameter 'jobId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "clusterName"); + } + if ($.jobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "jobId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsArgs.java index 531e704e..b97e1eef 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsArgs.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,8 +189,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotRestoreJobsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsPlainArgs.java index ca99ad68..be4321f0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -147,8 +148,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotRestoreJobsPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsArgs.java index 1ac15a32..2398f58d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsArgs.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; @@ -168,8 +169,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsPlainArgs.java index 084733a1..e65e5303 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -133,8 +134,12 @@ public Builder projectId(String projectId) { } public GetCloudBackupSnapshotsPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessArgs.java index 7ebc0a50..627c662e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessArgs.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 projectId(String projectId) { } public GetCloudProviderAccessArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessPlainArgs.java index 82f7d49b..15175d20 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetCloudProviderAccessPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupArgs.java index 555de6bb..455252b2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetCloudProviderAccessSetupAzureConfigArgs; import java.lang.String; import java.util.List; @@ -199,9 +200,15 @@ public Builder roleId(String roleId) { } public GetCloudProviderAccessSetupArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupArgs", "providerName"); + } + if ($.roleId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupArgs", "roleId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfig.java index 4779bf4c..2abc1652 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder tenantId(String tenantId) { } public GetCloudProviderAccessSetupAzureConfig build() { - $.atlasAzureAppId = Objects.requireNonNull($.atlasAzureAppId, "expected parameter 'atlasAzureAppId' to be non-null"); - $.servicePrincipalId = Objects.requireNonNull($.servicePrincipalId, "expected parameter 'servicePrincipalId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "atlasAzureAppId"); + } + if ($.servicePrincipalId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "servicePrincipalId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfigArgs.java index a70e74ef..5ee9709b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupAzureConfigArgs.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 tenantId(String tenantId) { } public GetCloudProviderAccessSetupAzureConfigArgs build() { - $.atlasAzureAppId = Objects.requireNonNull($.atlasAzureAppId, "expected parameter 'atlasAzureAppId' to be non-null"); - $.servicePrincipalId = Objects.requireNonNull($.servicePrincipalId, "expected parameter 'servicePrincipalId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfigArgs", "atlasAzureAppId"); + } + if ($.servicePrincipalId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfigArgs", "servicePrincipalId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfigArgs", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupPlainArgs.java index d9df522a..e4a5b08c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudProviderAccessSetupPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetCloudProviderAccessSetupAzureConfig; import java.lang.String; import java.util.List; @@ -158,9 +159,15 @@ public Builder roleId(String roleId) { } public GetCloudProviderAccessSetupPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupPlainArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupPlainArgs", "providerName"); + } + if ($.roleId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupPlainArgs", "roleId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterArgs.java index fc7b989f..703ba561 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/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; @@ -111,8 +112,12 @@ public Builder projectId(String projectId) { } public GetClusterArgs 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("GetClusterArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClusterArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationArgs.java index c9e91dbb..2db02ce3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationArgs.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 GetClusterOutageSimulationArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationPlainArgs.java index 1c695d0d..6b6d8d76 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterOutageSimulationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetClusterOutageSimulationPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterPlainArgs.java index 41479f79..2a033fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClusterPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetClusterPlainArgs 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("GetClusterPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClusterPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersArgs.java index eefda726..11ec6b83 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersArgs.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 projectId(String projectId) { } public GetClustersArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClustersArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersPlainArgs.java index aab02be2..0b2f9ed4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetClustersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetClustersPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetClustersPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleArgs.java index 50cb95b0..3d38a612 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetCustomDbRoleInheritedRoleArgs; import java.lang.String; import java.util.List; @@ -136,8 +137,12 @@ public Builder roleName(String roleName) { } public GetCustomDbRoleArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleArgs", "projectId"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRole.java index 30f1f15f..1cddf7bd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 roleName(String roleName) { } public GetCustomDbRoleInheritedRole build() { - $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRole", "databaseName"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRole", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRoleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRoleArgs.java index cc8db671..8dc96091 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRoleInheritedRoleArgs.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 roleName(String roleName) { } public GetCustomDbRoleInheritedRoleArgs build() { - $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRoleArgs", "databaseName"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRoleArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolePlainArgs.java index 6358f28f..363a1e81 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetCustomDbRoleInheritedRole; import java.lang.String; import java.util.List; @@ -111,8 +112,12 @@ public Builder roleName(String roleName) { } public GetCustomDbRolePlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleName = Objects.requireNonNull($.roleName, "expected parameter 'roleName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolePlainArgs", "projectId"); + } + if ($.roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolePlainArgs", "roleName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesArgs.java index a328721c..f6e69fad 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesArgs.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 projectId(String projectId) { } public GetCustomDbRolesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesPlainArgs.java index f6d6db3b..b6d7b0b2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDbRolesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetCustomDbRolesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsArgs.java index a7122327..b7418624 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsArgs.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 projectId(String projectId) { } public GetCustomDnsConfigurationClusterAwsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDnsConfigurationClusterAwsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsPlainArgs.java index c89a0925..f01f728a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCustomDnsConfigurationClusterAwsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetCustomDnsConfigurationClusterAwsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDnsConfigurationClusterAwsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineArgs.java index 3b428ad8..f61b07dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineArgs.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 GetDataLakePipelineArgs 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("GetDataLakePipelineArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinePlainArgs.java index f94a783b..376a9cc9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetDataLakePipelinePlainArgs 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("GetDataLakePipelinePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunArgs.java index b4ed08e4..51f43074 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunArgs.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 projectId(String projectId) { } public GetDataLakePipelineRunArgs build() { - $.pipelineName = Objects.requireNonNull($.pipelineName, "expected parameter 'pipelineName' to be non-null"); - $.pipelineRunId = Objects.requireNonNull($.pipelineRunId, "expected parameter 'pipelineRunId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunArgs", "pipelineName"); + } + if ($.pipelineRunId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunArgs", "pipelineRunId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunPlainArgs.java index 5b682c7a..0ce0a275 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder projectId(String projectId) { } public GetDataLakePipelineRunPlainArgs build() { - $.pipelineName = Objects.requireNonNull($.pipelineName, "expected parameter 'pipelineName' to be non-null"); - $.pipelineRunId = Objects.requireNonNull($.pipelineRunId, "expected parameter 'pipelineRunId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunPlainArgs", "pipelineName"); + } + if ($.pipelineRunId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunPlainArgs", "pipelineRunId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsArgs.java index 47b23ba2..09a6cb44 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsArgs.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 GetDataLakePipelineRunsArgs build() { - $.pipelineName = Objects.requireNonNull($.pipelineName, "expected parameter 'pipelineName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsArgs", "pipelineName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsPlainArgs.java index 533b6c4d..02929505 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelineRunsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetDataLakePipelineRunsPlainArgs build() { - $.pipelineName = Objects.requireNonNull($.pipelineName, "expected parameter 'pipelineName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsPlainArgs", "pipelineName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesArgs.java index df3c7e85..2b11e0c5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesArgs.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 projectId(String projectId) { } public GetDataLakePipelinesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesPlainArgs.java index c328fe10..ad7bd01c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDataLakePipelinesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetDataLakePipelinesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserArgs.java index 369ac07d..a56945da 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserArgs.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 username(String username) { } public GetDatabaseUserArgs build() { - $.authDatabaseName = Objects.requireNonNull($.authDatabaseName, "expected parameter 'authDatabaseName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.authDatabaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserArgs", "authDatabaseName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserArgs", "projectId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserPlainArgs.java index 2fa52a16..5aa8b37c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUserPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder username(String username) { } public GetDatabaseUserPlainArgs build() { - $.authDatabaseName = Objects.requireNonNull($.authDatabaseName, "expected parameter 'authDatabaseName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.authDatabaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "authDatabaseName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "projectId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersArgs.java index b179a312..ef822aea 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersArgs.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 projectId(String projectId) { } public GetDatabaseUsersArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersPlainArgs.java index 191d4e6c..c9fd836b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetDatabaseUsersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetDatabaseUsersPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerArgs.java index 64718eea..f7b0d62a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerArgs.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; @@ -152,9 +153,15 @@ public Builder triggerId(String triggerId) { } public GetEventTriggerArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.triggerId = Objects.requireNonNull($.triggerId, "expected parameter 'triggerId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerArgs", "appId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerArgs", "projectId"); + } + if ($.triggerId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerArgs", "triggerId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerPlainArgs.java index 0fbe2260..b4216034 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggerPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -120,9 +121,15 @@ public Builder triggerId(String triggerId) { } public GetEventTriggerPlainArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.triggerId = Objects.requireNonNull($.triggerId, "expected parameter 'triggerId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerPlainArgs", "appId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerPlainArgs", "projectId"); + } + if ($.triggerId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerPlainArgs", "triggerId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersArgs.java index cf7783a5..dc19be97 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersArgs.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; @@ -115,8 +116,12 @@ public Builder projectId(String projectId) { } public GetEventTriggersArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersArgs", "appId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersPlainArgs.java index 83d8eb6e..511dc704 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetEventTriggersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -93,8 +94,12 @@ public Builder projectId(String projectId) { } public GetEventTriggersPlainArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersPlainArgs", "appId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceArgs.java index 6bffeb02..8a7f18bf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstanceCloudProviderConfigArgs; import java.lang.String; import java.util.Objects; @@ -131,8 +132,12 @@ public Builder projectId(String projectId) { } public GetFederatedDatabaseInstanceArgs 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("GetFederatedDatabaseInstanceArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfig.java index 1c000b8f..d94728b0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstanceCloudProviderConfigAws; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder aws(GetFederatedDatabaseInstanceCloudProviderConfigAws aws) { } public GetFederatedDatabaseInstanceCloudProviderConfig build() { - $.aws = Objects.requireNonNull($.aws, "expected parameter 'aws' to be non-null"); + if ($.aws == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfig", "aws"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigArgs.java index 3626a576..5988b580 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder aws(GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs aws) { } public GetFederatedDatabaseInstanceCloudProviderConfigArgs build() { - $.aws = Objects.requireNonNull($.aws, "expected parameter 'aws' to be non-null"); + if ($.aws == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigArgs", "aws"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java index 06960d5f..c5cb994d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -166,11 +167,21 @@ public Builder testS3Bucket(String testS3Bucket) { } public GetFederatedDatabaseInstanceCloudProviderConfigAws build() { - $.externalId = Objects.requireNonNull($.externalId, "expected parameter 'externalId' to be non-null"); - $.iamAssumedRoleArn = Objects.requireNonNull($.iamAssumedRoleArn, "expected parameter 'iamAssumedRoleArn' to be non-null"); - $.iamUserArn = Objects.requireNonNull($.iamUserArn, "expected parameter 'iamUserArn' to be non-null"); - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); - $.testS3Bucket = Objects.requireNonNull($.testS3Bucket, "expected parameter 'testS3Bucket' to be non-null"); + if ($.externalId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "externalId"); + } + if ($.iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "iamAssumedRoleArn"); + } + if ($.iamUserArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "iamUserArn"); + } + if ($.roleId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "roleId"); + } + if ($.testS3Bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "testS3Bucket"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs.java index 9ee506ab..1256e3cf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs.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; @@ -214,11 +215,21 @@ public Builder testS3Bucket(String testS3Bucket) { } public GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs build() { - $.externalId = Objects.requireNonNull($.externalId, "expected parameter 'externalId' to be non-null"); - $.iamAssumedRoleArn = Objects.requireNonNull($.iamAssumedRoleArn, "expected parameter 'iamAssumedRoleArn' to be non-null"); - $.iamUserArn = Objects.requireNonNull($.iamUserArn, "expected parameter 'iamUserArn' to be non-null"); - $.roleId = Objects.requireNonNull($.roleId, "expected parameter 'roleId' to be non-null"); - $.testS3Bucket = Objects.requireNonNull($.testS3Bucket, "expected parameter 'testS3Bucket' to be non-null"); + if ($.externalId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs", "externalId"); + } + if ($.iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs", "iamAssumedRoleArn"); + } + if ($.iamUserArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs", "iamUserArn"); + } + if ($.roleId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs", "roleId"); + } + if ($.testS3Bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAwsArgs", "testS3Bucket"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancePlainArgs.java index 1beaa253..61de7266 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetFederatedDatabaseInstanceCloudProviderConfig; import java.lang.String; import java.util.Objects; @@ -106,8 +107,12 @@ public Builder projectId(String projectId) { } public GetFederatedDatabaseInstancePlainArgs 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("GetFederatedDatabaseInstancePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesArgs.java index bbcf95e5..d83a3493 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesArgs.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 projectId(String projectId) { } public GetFederatedDatabaseInstancesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesPlainArgs.java index 5016a485..2ead6da4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedDatabaseInstancesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetFederatedDatabaseInstancesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitArgs.java index 961888c1..7c155d35 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitArgs.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; @@ -164,9 +165,15 @@ public Builder tenantName(String tenantName) { } public GetFederatedQueryLimitArgs build() { - $.limitName = Objects.requireNonNull($.limitName, "expected parameter 'limitName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.tenantName = Objects.requireNonNull($.tenantName, "expected parameter 'tenantName' to be non-null"); + if ($.limitName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitArgs", "limitName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitArgs", "projectId"); + } + if ($.tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitArgs", "tenantName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitPlainArgs.java index 55ee9803..017c1aba 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -129,9 +130,15 @@ public Builder tenantName(String tenantName) { } public GetFederatedQueryLimitPlainArgs build() { - $.limitName = Objects.requireNonNull($.limitName, "expected parameter 'limitName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.tenantName = Objects.requireNonNull($.tenantName, "expected parameter 'tenantName' to be non-null"); + if ($.limitName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitPlainArgs", "limitName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitPlainArgs", "projectId"); + } + if ($.tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitPlainArgs", "tenantName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsArgs.java index 6d1f30b3..88145536 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsArgs.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 tenantName(String tenantName) { } public GetFederatedQueryLimitsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.tenantName = Objects.requireNonNull($.tenantName, "expected parameter 'tenantName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsArgs", "projectId"); + } + if ($.tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsArgs", "tenantName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsPlainArgs.java index 5896468f..0bdb13b3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedQueryLimitsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 tenantName(String tenantName) { } public GetFederatedQueryLimitsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.tenantName = Objects.requireNonNull($.tenantName, "expected parameter 'tenantName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsPlainArgs", "projectId"); + } + if ($.tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsPlainArgs", "tenantName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsArgs.java index d17cd593..1e25e185 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsArgs.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 orgId(String orgId) { } public GetFederatedSettingsArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderArgs.java index 1e17b726..417aa542 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderArgs.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 identityProviderId(String identityProviderId) { } public GetFederatedSettingsIdentityProviderArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.identityProviderId = Objects.requireNonNull($.identityProviderId, "expected parameter 'identityProviderId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderArgs", "federationSettingsId"); + } + if ($.identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderArgs", "identityProviderId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderPlainArgs.java index bcdf473e..73573e8d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProviderPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 identityProviderId(String identityProviderId) { } public GetFederatedSettingsIdentityProviderPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.identityProviderId = Objects.requireNonNull($.identityProviderId, "expected parameter 'identityProviderId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPlainArgs", "federationSettingsId"); + } + if ($.identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPlainArgs", "identityProviderId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersArgs.java index a758a404..04fdf2a3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersArgs.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 pageNum(Integer pageNum) { } public GetFederatedSettingsIdentityProvidersArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersArgs", "federationSettingsId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersPlainArgs.java index c6ce03c5..258ba172 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsIdentityProvidersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -120,7 +121,9 @@ public Builder pageNum(@Nullable Integer pageNum) { } public GetFederatedSettingsIdentityProvidersPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersPlainArgs", "federationSettingsId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigArgs.java index 3f49eca6..de2337d9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigArgs.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 orgId(String orgId) { } public GetFederatedSettingsOrgConfigArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigPlainArgs.java index 23dbbe51..b49cd66f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 orgId(String orgId) { } public GetFederatedSettingsOrgConfigPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigPlainArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsArgs.java index 5fb62802..dd700942 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsArgs.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 pageNum(Integer pageNum) { } public GetFederatedSettingsOrgConfigsArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsArgs", "federationSettingsId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsPlainArgs.java index f0851c19..eda33eb4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgConfigsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -120,7 +121,9 @@ public Builder pageNum(@Nullable Integer pageNum) { } public GetFederatedSettingsOrgConfigsPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsPlainArgs", "federationSettingsId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingArgs.java index c818bfcb..fd7bdafa 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingArgs.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; @@ -128,9 +129,15 @@ public Builder roleMappingId(String roleMappingId) { } public GetFederatedSettingsOrgRoleMappingArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.roleMappingId = Objects.requireNonNull($.roleMappingId, "expected parameter 'roleMappingId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingArgs", "orgId"); + } + if ($.roleMappingId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingArgs", "roleMappingId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingPlainArgs.java index a99fd7a4..b39211b1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -103,9 +104,15 @@ public Builder roleMappingId(String roleMappingId) { } public GetFederatedSettingsOrgRoleMappingPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.roleMappingId = Objects.requireNonNull($.roleMappingId, "expected parameter 'roleMappingId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingPlainArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingPlainArgs", "orgId"); + } + if ($.roleMappingId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingPlainArgs", "roleMappingId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsArgs.java index ab86b356..c12397b7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsArgs.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,8 +189,12 @@ public Builder pageNum(Integer pageNum) { } public GetFederatedSettingsOrgRoleMappingsArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsPlainArgs.java index 07bf5008..a48ad95d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsOrgRoleMappingsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -147,8 +148,12 @@ public Builder pageNum(@Nullable Integer pageNum) { } public GetFederatedSettingsOrgRoleMappingsPlainArgs build() { - $.federationSettingsId = Objects.requireNonNull($.federationSettingsId, "expected parameter 'federationSettingsId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsPlainArgs", "federationSettingsId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsPlainArgs.java index 9c7f5f7d..259a9d62 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetFederatedSettingsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 orgId(String orgId) { } public GetFederatedSettingsPlainArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigArgs.java index c83212f4..ea7c351c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetGlobalClusterConfigManagedNamespaceArgs; import java.lang.String; import java.util.List; @@ -146,8 +147,12 @@ public Builder projectId(String projectId) { } public GetGlobalClusterConfigArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespace.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespace.java index 0159eecb..82fda953 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespace.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespace.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -172,11 +173,21 @@ public Builder isShardKeyUnique(Boolean isShardKeyUnique) { } public GetGlobalClusterConfigManagedNamespace build() { - $.collection = Objects.requireNonNull($.collection, "expected parameter 'collection' to be non-null"); - $.customShardKey = Objects.requireNonNull($.customShardKey, "expected parameter 'customShardKey' to be non-null"); - $.db = Objects.requireNonNull($.db, "expected parameter 'db' to be non-null"); - $.isCustomShardKeyHashed = Objects.requireNonNull($.isCustomShardKeyHashed, "expected parameter 'isCustomShardKeyHashed' to be non-null"); - $.isShardKeyUnique = Objects.requireNonNull($.isShardKeyUnique, "expected parameter 'isShardKeyUnique' to be non-null"); + if ($.collection == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "collection"); + } + if ($.customShardKey == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "customShardKey"); + } + if ($.db == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "db"); + } + if ($.isCustomShardKeyHashed == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "isCustomShardKeyHashed"); + } + if ($.isShardKeyUnique == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "isShardKeyUnique"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespaceArgs.java index 13e640ef..7ff44a20 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigManagedNamespaceArgs.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; @@ -223,11 +224,21 @@ public Builder isShardKeyUnique(Boolean isShardKeyUnique) { } public GetGlobalClusterConfigManagedNamespaceArgs build() { - $.collection = Objects.requireNonNull($.collection, "expected parameter 'collection' to be non-null"); - $.customShardKey = Objects.requireNonNull($.customShardKey, "expected parameter 'customShardKey' to be non-null"); - $.db = Objects.requireNonNull($.db, "expected parameter 'db' to be non-null"); - $.isCustomShardKeyHashed = Objects.requireNonNull($.isCustomShardKeyHashed, "expected parameter 'isCustomShardKeyHashed' to be non-null"); - $.isShardKeyUnique = Objects.requireNonNull($.isShardKeyUnique, "expected parameter 'isShardKeyUnique' to be non-null"); + if ($.collection == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespaceArgs", "collection"); + } + if ($.customShardKey == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespaceArgs", "customShardKey"); + } + if ($.db == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespaceArgs", "db"); + } + if ($.isCustomShardKeyHashed == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespaceArgs", "isCustomShardKeyHashed"); + } + if ($.isShardKeyUnique == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespaceArgs", "isShardKeyUnique"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigPlainArgs.java index 8d86ced2..d0d012b9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetGlobalClusterConfigPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetGlobalClusterConfigManagedNamespace; import java.lang.String; import java.util.List; @@ -120,8 +121,12 @@ public Builder projectId(String projectId) { } public GetGlobalClusterConfigPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationArgs.java index 8977947d..866bd9f9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationArgs.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 projectId(String projectId) { } public GetLdapConfigurationArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationPlainArgs.java index 2cefb644..e991b56f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapConfigurationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetLdapConfigurationPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyArgs.java index 325d42cc..f604136a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyArgs.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 requestId(String requestId) { } public GetLdapVerifyArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.requestId = Objects.requireNonNull($.requestId, "expected parameter 'requestId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyArgs", "projectId"); + } + if ($.requestId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyArgs", "requestId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyPlainArgs.java index 37492b3e..07513d84 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetLdapVerifyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 requestId(String requestId) { } public GetLdapVerifyPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.requestId = Objects.requireNonNull($.requestId, "expected parameter 'requestId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyPlainArgs", "projectId"); + } + if ($.requestId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyPlainArgs", "requestId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowArgs.java index d4d8096e..c0584d8a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowArgs.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 projectId(String projectId) { } public GetMaintenanceWindowArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowPlainArgs.java index f915148e..96146084 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetMaintenanceWindowPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetMaintenanceWindowPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerArgs.java index 5684089b..ad991c63 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerArgs.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 GetNetworkContainerArgs build() { - $.containerId = Objects.requireNonNull($.containerId, "expected parameter 'containerId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.containerId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerArgs", "containerId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerPlainArgs.java index 6bb390c9..7981b0ca 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainerPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetNetworkContainerPlainArgs build() { - $.containerId = Objects.requireNonNull($.containerId, "expected parameter 'containerId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.containerId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerPlainArgs", "containerId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersArgs.java index 7356dd8d..1f4f4482 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersArgs.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 providerName(String providerName) { } public GetNetworkContainersArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersPlainArgs.java index 0c8979c6..d686c430 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkContainersPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 providerName(String providerName) { } public GetNetworkContainersPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersPlainArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersPlainArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringArgs.java index 93f84442..c71c054b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringArgs.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 GetNetworkPeeringArgs build() { - $.peeringId = Objects.requireNonNull($.peeringId, "expected parameter 'peeringId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.peeringId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringArgs", "peeringId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringPlainArgs.java index 3ce0430d..d1d6f9d0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetNetworkPeeringPlainArgs build() { - $.peeringId = Objects.requireNonNull($.peeringId, "expected parameter 'peeringId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.peeringId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringPlainArgs", "peeringId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsArgs.java index 994c9320..8cbbc7b7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsArgs.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 projectId(String projectId) { } public GetNetworkPeeringsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsPlainArgs.java index f89f2c74..6ff7651f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetNetworkPeeringsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetNetworkPeeringsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchiveArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchiveArgs.java index b5523b3f..9ba84c97 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchiveArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchiveArgs.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 projectId(String projectId) { } public GetOnlineArchiveArgs build() { - $.archiveId = Objects.requireNonNull($.archiveId, "expected parameter 'archiveId' to be non-null"); - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.archiveId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveArgs", "archiveId"); + } + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivePlainArgs.java index ca6e108c..bd48e61d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder projectId(String projectId) { } public GetOnlineArchivePlainArgs build() { - $.archiveId = Objects.requireNonNull($.archiveId, "expected parameter 'archiveId' to be non-null"); - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.archiveId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePlainArgs", "archiveId"); + } + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesArgs.java index edd6ba9e..a2788d95 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesArgs.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; @@ -127,8 +128,12 @@ public Builder projectId(String projectId) { } public GetOnlineArchivesArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesPlainArgs.java index 9f1fa099..0d6a4040 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOnlineArchivesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -102,8 +103,12 @@ public Builder projectId(String projectId) { } public GetOnlineArchivesPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationArgs.java index a1f5ae64..045f492b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationArgs.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 username(String username) { } public GetOrgInvitationArgs build() { - $.invitationId = Objects.requireNonNull($.invitationId, "expected parameter 'invitationId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.invitationId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationArgs", "invitationId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationArgs", "orgId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationPlainArgs.java index 194ad186..32cb55a2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrgInvitationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder username(String username) { } public GetOrgInvitationPlainArgs build() { - $.invitationId = Objects.requireNonNull($.invitationId, "expected parameter 'invitationId' to be non-null"); - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.invitationId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationPlainArgs", "invitationId"); + } + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationPlainArgs", "orgId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationPlainArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationArgs.java index dc594283..6058accf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationArgs.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 orgId(String orgId) { } public GetOrganizationArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetOrganizationArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationPlainArgs.java index ae823ab9..2f636dd7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetOrganizationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 orgId(String orgId) { } public GetOrganizationPlainArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetOrganizationPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModeArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModeArgs.java index 62d3afd6..2adac5ac 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModeArgs.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 projectId(String projectId) { } public GetPrivateEndpointRegionalModeArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateEndpointRegionalModeArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModePlainArgs.java index c3261b4a..01bae58d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateEndpointRegionalModePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetPrivateEndpointRegionalModePlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateEndpointRegionalModePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointArgs.java index 397eabda..44e6bda2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointArgs.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 providerName(String providerName) { } public GetPrivateLinkEndpointArgs build() { - $.privateLinkId = Objects.requireNonNull($.privateLinkId, "expected parameter 'privateLinkId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointArgs", "privateLinkId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointPlainArgs.java index 3169074a..0d860555 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder providerName(String providerName) { } public GetPrivateLinkEndpointPlainArgs build() { - $.privateLinkId = Objects.requireNonNull($.privateLinkId, "expected parameter 'privateLinkId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointPlainArgs", "privateLinkId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointPlainArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointPlainArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServiceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServiceArgs.java index a1f24bd5..3354cd97 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServiceArgs.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; @@ -185,10 +186,18 @@ public Builder providerName(String providerName) { } public GetPrivateLinkEndpointServiceArgs build() { - $.endpointServiceId = Objects.requireNonNull($.endpointServiceId, "expected parameter 'endpointServiceId' to be non-null"); - $.privateLinkId = Objects.requireNonNull($.privateLinkId, "expected parameter 'privateLinkId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.endpointServiceId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceArgs", "endpointServiceId"); + } + if ($.privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceArgs", "privateLinkId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServicePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServicePlainArgs.java index ad02679d..00a894e6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServicePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivateLinkEndpointServicePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -144,10 +145,18 @@ public Builder providerName(String providerName) { } public GetPrivateLinkEndpointServicePlainArgs build() { - $.endpointServiceId = Objects.requireNonNull($.endpointServiceId, "expected parameter 'endpointServiceId' to be non-null"); - $.privateLinkId = Objects.requireNonNull($.privateLinkId, "expected parameter 'privateLinkId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.providerName = Objects.requireNonNull($.providerName, "expected parameter 'providerName' to be non-null"); + if ($.endpointServiceId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServicePlainArgs", "endpointServiceId"); + } + if ($.privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServicePlainArgs", "privateLinkId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServicePlainArgs", "projectId"); + } + if ($.providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServicePlainArgs", "providerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java index 306ba3ff..5050b190 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs.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 GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs", "endpointId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs.java index 3e194fea..fe8fd303 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs", "endpointId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs.java index 887d2956..9d42f0bb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs.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 projectId(String projectId) { } public GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs.java index b267992c..79b85c53 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessArgs.java index 5ba91e3c..c99f686a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessArgs.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 projectId(String projectId) { } public GetPrivatelinkEndpointServiceServerlessArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessArgs", "endpointId"); + } + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessPlainArgs.java index 650b3470..acc878d6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointServiceServerlessPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder projectId(String projectId) { } public GetPrivatelinkEndpointServiceServerlessPlainArgs build() { - $.endpointId = Objects.requireNonNull($.endpointId, "expected parameter 'endpointId' to be non-null"); - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessPlainArgs", "endpointId"); + } + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessPlainArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessArgs.java index 7173c81d..15cd04db 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessArgs.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; @@ -148,8 +149,12 @@ public Builder projectId(String projectId) { } public GetPrivatelinkEndpointsServiceServerlessArgs build() { - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessPlainArgs.java index 897b0663..f586eb07 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetPrivatelinkEndpointsServiceServerlessPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -119,8 +120,12 @@ public Builder projectId(String projectId) { } public GetPrivatelinkEndpointsServiceServerlessPlainArgs build() { - $.instanceName = Objects.requireNonNull($.instanceName, "expected parameter 'instanceName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessPlainArgs", "instanceName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyArgs.java index 2bda4682..ed43da9f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyArgs.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 GetProjectApiKeyArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyArgs", "apiKeyId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyPlainArgs.java index 454705f4..228d1c12 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetProjectApiKeyPlainArgs build() { - $.apiKeyId = Objects.requireNonNull($.apiKeyId, "expected parameter 'apiKeyId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.apiKeyId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyPlainArgs", "apiKeyId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysArgs.java index d8d965e1..61af2c88 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysArgs.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 projectId(String projectId) { } public GetProjectApiKeysArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysPlainArgs.java index d8386e0a..7144f4da 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectApiKeysPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -120,7 +121,9 @@ public Builder projectId(String projectId) { } public GetProjectApiKeysPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationArgs.java index a3c657d3..8ae50b83 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationArgs.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 username(String username) { } public GetProjectInvitationArgs build() { - $.invitationId = Objects.requireNonNull($.invitationId, "expected parameter 'invitationId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.invitationId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationArgs", "invitationId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationArgs", "projectId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationPlainArgs.java index 4ce49a6f..ebdad9cb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectInvitationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder username(String username) { } public GetProjectInvitationPlainArgs build() { - $.invitationId = Objects.requireNonNull($.invitationId, "expected parameter 'invitationId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.invitationId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationPlainArgs", "invitationId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationPlainArgs", "projectId"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationPlainArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListArgs.java index 328fb5d6..affbc33b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListArgs.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; @@ -195,7 +196,9 @@ public Builder projectId(String projectId) { } public GetProjectIpAccessListArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListPlainArgs.java index dd9c9211..9cfa3b62 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetProjectIpAccessListPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -152,7 +153,9 @@ public Builder projectId(String projectId) { } public GetProjectIpAccessListPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentArgs.java index 44914351..a8e16d0f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentArgs.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 GetSearchDeploymentArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentPlainArgs.java index 425b9a76..305124f8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchDeploymentPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 GetSearchDeploymentPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexArgs.java index 8474b876..a9a83ec4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexArgs.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; @@ -498,9 +499,15 @@ public Builder type(String type) { } public GetSearchIndexArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.indexId = Objects.requireNonNull($.indexId, "expected parameter 'indexId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexArgs", "clusterName"); + } + if ($.indexId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexArgs", "indexId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexPlainArgs.java index cf25c8ba..305b92fe 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -375,9 +376,15 @@ public Builder type(@Nullable String type) { } public GetSearchIndexPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.indexId = Objects.requireNonNull($.indexId, "expected parameter 'indexId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexPlainArgs", "clusterName"); + } + if ($.indexId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexPlainArgs", "indexId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesArgs.java index 980bc191..36c68f2d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesArgs.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; @@ -294,10 +295,18 @@ public Builder projectId(String projectId) { } public GetSearchIndexesArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.collectionName = Objects.requireNonNull($.collectionName, "expected parameter 'collectionName' to be non-null"); - $.database = Objects.requireNonNull($.database, "expected parameter 'database' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesArgs", "clusterName"); + } + if ($.collectionName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesArgs", "collectionName"); + } + if ($.database == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesArgs", "database"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesPlainArgs.java index 52fc40f0..dccb09a8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSearchIndexesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,10 +226,18 @@ public Builder projectId(String projectId) { } public GetSearchIndexesPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.collectionName = Objects.requireNonNull($.collectionName, "expected parameter 'collectionName' to be non-null"); - $.database = Objects.requireNonNull($.database, "expected parameter 'database' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesPlainArgs", "clusterName"); + } + if ($.collectionName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesPlainArgs", "collectionName"); + } + if ($.database == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesPlainArgs", "database"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceArgs.java index 88618f13..c25e9ede 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetServerlessInstanceLinkArgs; import java.lang.Boolean; import java.lang.String; @@ -211,8 +212,12 @@ public Builder stateName(String stateName) { } public GetServerlessInstanceArgs 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("GetServerlessInstanceArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLink.java index d129b46f..c6442fed 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder rel(String rel) { } public GetServerlessInstanceLink build() { - $.href = Objects.requireNonNull($.href, "expected parameter 'href' to be non-null"); - $.rel = Objects.requireNonNull($.rel, "expected parameter 'rel' to be non-null"); + if ($.href == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLink", "href"); + } + if ($.rel == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLink", "rel"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLinkArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLinkArgs.java index 44b08006..0f204916 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstanceLinkArgs.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; @@ -71,8 +72,12 @@ public Builder rel(String rel) { } public GetServerlessInstanceLinkArgs build() { - $.href = Objects.requireNonNull($.href, "expected parameter 'href' to be non-null"); - $.rel = Objects.requireNonNull($.rel, "expected parameter 'rel' to be non-null"); + if ($.href == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLinkArgs", "href"); + } + if ($.rel == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLinkArgs", "rel"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancePlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancePlainArgs.java index ad1696d7..649e7c9c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.inputs.GetServerlessInstanceLink; import java.lang.Boolean; import java.lang.String; @@ -166,8 +167,12 @@ public Builder stateName(@Nullable String stateName) { } public GetServerlessInstancePlainArgs 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("GetServerlessInstancePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesArgs.java index b246dd5a..40ee7d18 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesArgs.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 projectId(String projectId) { } public GetServerlessInstancesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesPlainArgs.java index fa255a03..efdd55c9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetServerlessInstancesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetServerlessInstancesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobArgs.java index 8f76ddc9..de0948a4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobArgs.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; @@ -88,9 +89,15 @@ public Builder projectId(String projectId) { } public GetSharedTierRestoreJobArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.jobId = Objects.requireNonNull($.jobId, "expected parameter 'jobId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobArgs", "clusterName"); + } + if ($.jobId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobArgs", "jobId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobPlainArgs.java index ee43c2ae..9df2945c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -75,9 +76,15 @@ public Builder projectId(String projectId) { } public GetSharedTierRestoreJobPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.jobId = Objects.requireNonNull($.jobId, "expected parameter 'jobId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobPlainArgs", "clusterName"); + } + if ($.jobId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobPlainArgs", "jobId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsArgs.java index 398f8d67..31dd4c61 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsArgs.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; @@ -71,8 +72,12 @@ public Builder projectId(String projectId) { } public GetSharedTierRestoreJobsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsPlainArgs.java index d6868784..ccf4c852 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierRestoreJobsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder projectId(String projectId) { } public GetSharedTierRestoreJobsPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotArgs.java index 264c8a92..2599c38a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotArgs.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; @@ -88,9 +89,15 @@ public Builder snapshotId(String snapshotId) { } public GetSharedTierSnapshotArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotPlainArgs.java index 83748189..0f0fd325 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -75,9 +76,15 @@ public Builder snapshotId(String snapshotId) { } public GetSharedTierSnapshotPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.snapshotId = Objects.requireNonNull($.snapshotId, "expected parameter 'snapshotId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotPlainArgs", "projectId"); + } + if ($.snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotPlainArgs", "snapshotId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsArgs.java index 3bde4fa3..3f955e3b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsArgs.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; @@ -71,8 +72,12 @@ public Builder projectId(String projectId) { } public GetSharedTierSnapshotsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsPlainArgs.java index 58361cf6..241d34cc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetSharedTierSnapshotsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder projectId(String projectId) { } public GetSharedTierSnapshotsPlainArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsPlainArgs", "clusterName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamArgs.java index 08402a7f..91d4c23c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamArgs.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 teamId(String teamId) { } public GetTeamArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetTeamArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamPlainArgs.java index d504c8e0..e136426f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 teamId(@Nullable String teamId) { } public GetTeamPlainArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetTeamPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsArgs.java index 58f4c4d5..a538ddab 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsArgs.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 teamId(String teamId) { } public GetTeamsArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetTeamsArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsPlainArgs.java index eb8aea83..63be594e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetTeamsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 teamId(@Nullable String teamId) { } public GetTeamsPlainArgs build() { - $.orgId = Objects.requireNonNull($.orgId, "expected parameter 'orgId' to be non-null"); + if ($.orgId == null) { + throw new MissingRequiredPropertyException("GetTeamsPlainArgs", "orgId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationArgs.java index 431cf389..cc0c9ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationArgs.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; @@ -327,8 +328,12 @@ public Builder userName(String userName) { } public GetThirdPartyIntegrationArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationArgs", "projectId"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationPlainArgs.java index af3ef8f8..0130cb66 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -249,8 +250,12 @@ public Builder userName(@Nullable String userName) { } public GetThirdPartyIntegrationPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationPlainArgs", "projectId"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationPlainArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsArgs.java index 3cf94039..279cd116 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsArgs.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 projectId(String projectId) { } public GetThirdPartyIntegrationsArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsPlainArgs.java index e394f911..53ac9d64 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetThirdPartyIntegrationsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 projectId(String projectId) { } public GetThirdPartyIntegrationsPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserArgs.java index d40b4fa7..ce14ad39 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserArgs.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 username(String username) { } public GetX509AuthenticationDatabaseUserArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserPlainArgs.java index c618f127..d864dc8c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetX509AuthenticationDatabaseUserPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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 username(@Nullable String username) { } public GetX509AuthenticationDatabaseUserPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GlobalClusterConfigManagedNamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GlobalClusterConfigManagedNamespaceArgs.java index ded0cfca..51462736 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GlobalClusterConfigManagedNamespaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GlobalClusterConfigManagedNamespaceArgs.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,9 +226,15 @@ public Builder isShardKeyUnique(Boolean isShardKeyUnique) { } public GlobalClusterConfigManagedNamespaceArgs build() { - $.collection = Objects.requireNonNull($.collection, "expected parameter 'collection' to be non-null"); - $.customShardKey = Objects.requireNonNull($.customShardKey, "expected parameter 'customShardKey' to be non-null"); - $.db = Objects.requireNonNull($.db, "expected parameter 'db' to be non-null"); + if ($.collection == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespaceArgs", "collection"); + } + if ($.customShardKey == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespaceArgs", "customShardKey"); + } + if ($.db == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespaceArgs", "db"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveCriteriaArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveCriteriaArgs.java index bcbba8ea..a4834223 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveCriteriaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveCriteriaArgs.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; @@ -249,7 +250,9 @@ public Builder type(String type) { } public OnlineArchiveCriteriaArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("OnlineArchiveCriteriaArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveDataExpirationRuleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveDataExpirationRuleArgs.java index 5251a707..c22e7e02 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveDataExpirationRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveDataExpirationRuleArgs.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 expireAfterDays(Integer expireAfterDays) { } public OnlineArchiveDataExpirationRuleArgs build() { - $.expireAfterDays = Objects.requireNonNull($.expireAfterDays, "expected parameter 'expireAfterDays' to be non-null"); + if ($.expireAfterDays == null) { + throw new MissingRequiredPropertyException("OnlineArchiveDataExpirationRuleArgs", "expireAfterDays"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchivePartitionFieldArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchivePartitionFieldArgs.java index e969338e..6d5a735c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchivePartitionFieldArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchivePartitionFieldArgs.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 order(Integer order) { } public OnlineArchivePartitionFieldArgs build() { - $.fieldName = Objects.requireNonNull($.fieldName, "expected parameter 'fieldName' to be non-null"); - $.order = Objects.requireNonNull($.order, "expected parameter 'order' to be non-null"); + if ($.fieldName == null) { + throw new MissingRequiredPropertyException("OnlineArchivePartitionFieldArgs", "fieldName"); + } + if ($.order == null) { + throw new MissingRequiredPropertyException("OnlineArchivePartitionFieldArgs", "order"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveScheduleArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveScheduleArgs.java index 09b291f3..4c04a1fa 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveScheduleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/OnlineArchiveScheduleArgs.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; @@ -299,7 +300,9 @@ public Builder type(String type) { } public OnlineArchiveScheduleArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("OnlineArchiveScheduleArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectApiKeyProjectAssignmentArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectApiKeyProjectAssignmentArgs.java index 8b667943..656c5f71 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectApiKeyProjectAssignmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectApiKeyProjectAssignmentArgs.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; @@ -122,8 +123,12 @@ public Builder roleNames(String... roleNames) { } public ProjectApiKeyProjectAssignmentArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleNames = Objects.requireNonNull($.roleNames, "expected parameter 'roleNames' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyProjectAssignmentArgs", "projectId"); + } + if ($.roleNames == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyProjectAssignmentArgs", "roleNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectLimitArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectLimitArgs.java index 89b77672..63b69092 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectLimitArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectLimitArgs.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; @@ -165,8 +166,12 @@ public Builder value(Integer value) { } public ProjectLimitArgs 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("ProjectLimitArgs", "name"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ProjectLimitArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectTeamArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectTeamArgs.java index 38ab7908..a632dba8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectTeamArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ProjectTeamArgs.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; @@ -132,8 +133,12 @@ public Builder teamId(String teamId) { } public ProjectTeamArgs build() { - $.roleNames = Objects.requireNonNull($.roleNames, "expected parameter 'roleNames' to be non-null"); - $.teamId = Objects.requireNonNull($.teamId, "expected parameter 'teamId' to be non-null"); + if ($.roleNames == null) { + throw new MissingRequiredPropertyException("ProjectTeamArgs", "roleNames"); + } + if ($.teamId == null) { + throw new MissingRequiredPropertyException("ProjectTeamArgs", "teamId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchDeploymentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchDeploymentSpecArgs.java index 6f3b6b3c..72e980dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchDeploymentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchDeploymentSpecArgs.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; @@ -112,8 +113,12 @@ public Builder nodeCount(Integer nodeCount) { } public SearchDeploymentSpecArgs build() { - $.instanceSize = Objects.requireNonNull($.instanceSize, "expected parameter 'instanceSize' to be non-null"); - $.nodeCount = Objects.requireNonNull($.nodeCount, "expected parameter 'nodeCount' to be non-null"); + if ($.instanceSize == null) { + throw new MissingRequiredPropertyException("SearchDeploymentSpecArgs", "instanceSize"); + } + if ($.nodeCount == null) { + throw new MissingRequiredPropertyException("SearchDeploymentSpecArgs", "nodeCount"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchIndexSynonymArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchIndexSynonymArgs.java index 6bb38bfc..f611024a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchIndexSynonymArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/SearchIndexSynonymArgs.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 sourceCollection(String sourceCollection) { } public SearchIndexSynonymArgs build() { - $.analyzer = Objects.requireNonNull($.analyzer, "expected parameter 'analyzer' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.sourceCollection = Objects.requireNonNull($.sourceCollection, "expected parameter 'sourceCollection' to be non-null"); + if ($.analyzer == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonymArgs", "analyzer"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonymArgs", "name"); + } + if ($.sourceCollection == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonymArgs", "sourceCollection"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ServerlessInstanceTagArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ServerlessInstanceTagArgs.java index b91a74de..7f4cdc8e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ServerlessInstanceTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/ServerlessInstanceTagArgs.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; @@ -119,8 +120,12 @@ public Builder value(String value) { } public ServerlessInstanceTagArgs 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("ServerlessInstanceTagArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceTagArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterAdvancedConfiguration.java index 2904366b..e0336ad3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterAdvancedConfiguration.java @@ -196,56 +196,67 @@ public Builder(AdvancedClusterAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(@Nullable String defaultReadConcern) { + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(@Nullable String defaultWriteConcern) { + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(@Nullable Boolean failIndexKeyTooLong) { + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(@Nullable Boolean javascriptEnabled) { + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(@Nullable String minimumEnabledTlsProtocol) { + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(@Nullable Boolean noTableScan) { + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(@Nullable Integer oplogMinRetentionHours) { + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(@Nullable Integer oplogSizeMb) { + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(@Nullable Integer sampleRefreshIntervalBiConnector) { + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(@Nullable Integer sampleSizeBiConnector) { + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(@Nullable Integer transactionLifetimeLimitSeconds) { + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterBiConnectorConfig.java index 826e4aad..f6f402c8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterBiConnectorConfig.java @@ -77,11 +77,13 @@ public Builder(AdvancedClusterBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(@Nullable String readPreference) { + this.readPreference = readPreference; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionString.java index fbaa7b43..f3f8369e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionString.java @@ -62,11 +62,13 @@ public Builder(AdvancedClusterConnectionString defaults) { @CustomType.Setter("private") public Builder private_(@Nullable String private_) { + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(@Nullable List privateEndpoints) { + this.privateEndpoints = privateEndpoints; return this; } @@ -75,16 +77,19 @@ public Builder privateEndpoints(AdvancedClusterConnectionStringPrivateEndpoint.. } @CustomType.Setter public Builder privateSrv(@Nullable String privateSrv) { + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(@Nullable String standard) { + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(@Nullable String standardSrv) { + this.standardSrv = standardSrv; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpoint.java index 406c6380..5a1aa472 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpoint.java @@ -62,11 +62,13 @@ public Builder(AdvancedClusterConnectionStringPrivateEndpoint defaults) { @CustomType.Setter public Builder connectionString(@Nullable String connectionString) { + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { + this.endpoints = endpoints; return this; } @@ -75,16 +77,19 @@ public Builder endpoints(AdvancedClusterConnectionStringPrivateEndpointEndpoint. } @CustomType.Setter public Builder srvConnectionString(@Nullable String srvConnectionString) { + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(@Nullable String srvShardOptimizedConnectionString) { + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; 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/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpointEndpoint.java index a536864c..552b9daf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterConnectionStringPrivateEndpointEndpoint.java @@ -58,16 +58,19 @@ public Builder(AdvancedClusterConnectionStringPrivateEndpointEndpoint defaults) @CustomType.Setter public Builder endpointId(@Nullable String endpointId) { + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(@Nullable String providerName) { + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterLabel.java index 35fef213..90cb2aa9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterLabel.java @@ -62,11 +62,13 @@ public Builder(AdvancedClusterLabel defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; 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/mongodbatlas/outputs/AdvancedClusterReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpec.java index eb11742a..ed9580f0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.AdvancedClusterReplicationSpecRegionConfig; import java.lang.Integer; import java.lang.String; @@ -88,22 +89,28 @@ public Builder(AdvancedClusterReplicationSpec defaults) { @CustomType.Setter public Builder containerId(@Nullable Map containerId) { + this.containerId = containerId; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder numShards(@Nullable Integer numShards) { + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionConfigs(List regionConfigs) { - this.regionConfigs = Objects.requireNonNull(regionConfigs); + if (regionConfigs == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpec", "regionConfigs"); + } + this.regionConfigs = regionConfigs; return this; } public Builder regionConfigs(AdvancedClusterReplicationSpecRegionConfig... regionConfigs) { @@ -111,6 +118,7 @@ public Builder regionConfigs(AdvancedClusterReplicationSpecRegionConfig... regio } @CustomType.Setter public Builder zoneName(@Nullable String zoneName) { + this.zoneName = zoneName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfig.java index 4c4412b1..aef2c74d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling; import com.pulumi.mongodbatlas.outputs.AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs; import com.pulumi.mongodbatlas.outputs.AdvancedClusterReplicationSpecRegionConfigAutoScaling; @@ -168,47 +169,62 @@ public Builder(AdvancedClusterReplicationSpecRegionConfig defaults) { @CustomType.Setter public Builder analyticsAutoScaling(@Nullable AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling analyticsAutoScaling) { + this.analyticsAutoScaling = analyticsAutoScaling; return this; } @CustomType.Setter public Builder analyticsSpecs(@Nullable AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs analyticsSpecs) { + this.analyticsSpecs = analyticsSpecs; return this; } @CustomType.Setter public Builder autoScaling(@Nullable AdvancedClusterReplicationSpecRegionConfigAutoScaling autoScaling) { + this.autoScaling = autoScaling; return this; } @CustomType.Setter public Builder backingProviderName(@Nullable String backingProviderName) { + this.backingProviderName = backingProviderName; return this; } @CustomType.Setter public Builder electableSpecs(@Nullable AdvancedClusterReplicationSpecRegionConfigElectableSpecs electableSpecs) { + this.electableSpecs = electableSpecs; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfig", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfig", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder readOnlySpecs(@Nullable AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs readOnlySpecs) { + this.readOnlySpecs = readOnlySpecs; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfig", "regionName"); + } + this.regionName = regionName; return this; } public AdvancedClusterReplicationSpecRegionConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java index 6e065d9c..d599d2f1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java @@ -93,26 +93,31 @@ public Builder(AdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling de @CustomType.Setter public Builder computeEnabled(@Nullable Boolean computeEnabled) { + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(@Nullable String computeMaxInstanceSize) { + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(@Nullable String computeMinInstanceSize) { + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(@Nullable Boolean computeScaleDownEnabled) { + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(@Nullable Boolean diskGbEnabled) { + this.diskGbEnabled = diskGbEnabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java index e0c1b6c5..525a827d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs defaults @CustomType.Setter public Builder diskIops(@Nullable Integer diskIops) { + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAutoScaling.java index aaef35db..114c034a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigAutoScaling.java @@ -85,26 +85,31 @@ public Builder(AdvancedClusterReplicationSpecRegionConfigAutoScaling defaults) { @CustomType.Setter public Builder computeEnabled(@Nullable Boolean computeEnabled) { + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(@Nullable String computeMaxInstanceSize) { + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(@Nullable String computeMinInstanceSize) { + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(@Nullable Boolean computeScaleDownEnabled) { + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(@Nullable Boolean diskGbEnabled) { + this.diskGbEnabled = diskGbEnabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecs.java index fc242ce6..2f87d15a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigElectableSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(AdvancedClusterReplicationSpecRegionConfigElectableSpecs defaults @CustomType.Setter public Builder diskIops(@Nullable Integer diskIops) { + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigElectableSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java index 97225dd4..b5d51b92 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs defaults) @CustomType.Setter public Builder diskIops(@Nullable Integer diskIops) { + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("AdvancedClusterReplicationSpecRegionConfigReadOnlySpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterTag.java index e468d72f..424aa55a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AdvancedClusterTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -60,12 +61,18 @@ public Builder(AdvancedClusterTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("AdvancedClusterTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AdvancedClusterTag", "value"); + } + this.value = value; return this; } public AdvancedClusterTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMatcher.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMatcher.java index 28be4009..90cfc79c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMatcher.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMatcher.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -92,17 +93,26 @@ public Builder(AlertConfigurationMatcher defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcher", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcher", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMatcher", "value"); + } + this.value = value; return this; } public AlertConfigurationMatcher build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMetricThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMetricThresholdConfig.java index b3203c16..59c5c3ac 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMetricThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationMetricThresholdConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -105,26 +106,33 @@ public Builder(AlertConfigurationMetricThresholdConfig defaults) { @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationMetricThresholdConfig", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(@Nullable Double threshold) { + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(@Nullable String units) { + this.units = units; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationNotification.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationNotification.java index 336d72fa..ef9c3182 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationNotification.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationNotification.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -393,71 +394,85 @@ public Builder(AlertConfigurationNotification defaults) { @CustomType.Setter public Builder apiToken(@Nullable String apiToken) { + this.apiToken = apiToken; return this; } @CustomType.Setter public Builder channelName(@Nullable String channelName) { + this.channelName = channelName; return this; } @CustomType.Setter public Builder datadogApiKey(@Nullable String datadogApiKey) { + this.datadogApiKey = datadogApiKey; return this; } @CustomType.Setter public Builder datadogRegion(@Nullable String datadogRegion) { + this.datadogRegion = datadogRegion; return this; } @CustomType.Setter public Builder delayMin(@Nullable Integer delayMin) { + this.delayMin = delayMin; return this; } @CustomType.Setter public Builder emailAddress(@Nullable String emailAddress) { + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder emailEnabled(@Nullable Boolean emailEnabled) { + this.emailEnabled = emailEnabled; return this; } @CustomType.Setter public Builder intervalMin(@Nullable Integer intervalMin) { + this.intervalMin = intervalMin; return this; } @CustomType.Setter public Builder microsoftTeamsWebhookUrl(@Nullable String microsoftTeamsWebhookUrl) { + this.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl; return this; } @CustomType.Setter public Builder mobileNumber(@Nullable String mobileNumber) { + this.mobileNumber = mobileNumber; return this; } @CustomType.Setter public Builder notifierId(@Nullable String notifierId) { + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder opsGenieApiKey(@Nullable String opsGenieApiKey) { + this.opsGenieApiKey = opsGenieApiKey; return this; } @CustomType.Setter public Builder opsGenieRegion(@Nullable String opsGenieRegion) { + this.opsGenieRegion = opsGenieRegion; return this; } @CustomType.Setter public Builder roles(@Nullable List roles) { + this.roles = roles; return this; } @@ -466,51 +481,63 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder serviceKey(@Nullable String serviceKey) { + this.serviceKey = serviceKey; return this; } @CustomType.Setter public Builder smsEnabled(@Nullable Boolean smsEnabled) { + this.smsEnabled = smsEnabled; return this; } @CustomType.Setter public Builder teamId(@Nullable String teamId) { + this.teamId = teamId; return this; } @CustomType.Setter public Builder teamName(@Nullable String teamName) { + this.teamName = teamName; return this; } @CustomType.Setter public Builder typeName(String typeName) { - this.typeName = Objects.requireNonNull(typeName); + if (typeName == null) { + throw new MissingRequiredPropertyException("AlertConfigurationNotification", "typeName"); + } + this.typeName = typeName; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } @CustomType.Setter public Builder victorOpsApiKey(@Nullable String victorOpsApiKey) { + this.victorOpsApiKey = victorOpsApiKey; return this; } @CustomType.Setter public Builder victorOpsRoutingKey(@Nullable String victorOpsRoutingKey) { + this.victorOpsRoutingKey = victorOpsRoutingKey; return this; } @CustomType.Setter public Builder webhookSecret(@Nullable String webhookSecret) { + this.webhookSecret = webhookSecret; return this; } @CustomType.Setter public Builder webhookUrl(@Nullable String webhookUrl) { + this.webhookUrl = webhookUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationThresholdConfig.java index 1818b52c..9e41a3c9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/AlertConfigurationThresholdConfig.java @@ -77,16 +77,19 @@ public Builder(AlertConfigurationThresholdConfig defaults) { @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(@Nullable Double threshold) { + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(@Nullable String units) { + this.units = units; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyOnDemandPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyOnDemandPolicyItem.java index 0c7a94d1..9f902d3b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyOnDemandPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyOnDemandPolicyItem.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(BackupCompliancePolicyOnDemandPolicyItem defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItem", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItem", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyOnDemandPolicyItem", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public BackupCompliancePolicyOnDemandPolicyItem build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemDaily.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemDaily.java index be8e7bcc..678a9f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemDaily.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemDaily.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(BackupCompliancePolicyPolicyItemDaily defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDaily", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDaily", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemDaily", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public BackupCompliancePolicyPolicyItemDaily build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemHourly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemHourly.java index 30600916..10de0629 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemHourly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemHourly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(BackupCompliancePolicyPolicyItemHourly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemHourly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public BackupCompliancePolicyPolicyItemHourly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemMonthly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemMonthly.java index b47bd88e..4daca682 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemMonthly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemMonthly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(BackupCompliancePolicyPolicyItemMonthly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemMonthly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public BackupCompliancePolicyPolicyItemMonthly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemWeekly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemWeekly.java index 64f967d7..cea4f55e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemWeekly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/BackupCompliancePolicyPolicyItemWeekly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(BackupCompliancePolicyPolicyItemWeekly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeekly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeekly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("BackupCompliancePolicyPolicyItemWeekly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public BackupCompliancePolicyPolicyItemWeekly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleCopySetting.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleCopySetting.java index 581a1816..efa50ab4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleCopySetting.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleCopySetting.java @@ -102,11 +102,13 @@ public Builder(CloudBackupScheduleCopySetting defaults) { @CustomType.Setter public Builder cloudProvider(@Nullable String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder frequencies(@Nullable List frequencies) { + this.frequencies = frequencies; return this; } @@ -115,16 +117,19 @@ public Builder frequencies(String... frequencies) { } @CustomType.Setter public Builder regionName(@Nullable String regionName) { + this.regionName = regionName; return this; } @CustomType.Setter public Builder replicationSpecId(@Nullable String replicationSpecId) { + this.replicationSpecId = replicationSpecId; return this; } @CustomType.Setter public Builder shouldCopyOplogs(@Nullable Boolean shouldCopyOplogs) { + this.shouldCopyOplogs = shouldCopyOplogs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleExport.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleExport.java index f5dd7f03..19adc1ff 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleExport.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupScheduleExport.java @@ -58,11 +58,13 @@ public Builder(CloudBackupScheduleExport defaults) { @CustomType.Setter public Builder exportBucketId(@Nullable String exportBucketId) { + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemDaily.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemDaily.java index 1f405f14..3f8547c3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemDaily.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemDaily.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(CloudBackupSchedulePolicyItemDaily defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDaily", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDaily", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemDaily", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public CloudBackupSchedulePolicyItemDaily build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemHourly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemHourly.java index 3c59d9ed..3257fab5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemHourly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemHourly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(CloudBackupSchedulePolicyItemHourly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemHourly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public CloudBackupSchedulePolicyItemHourly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemMonthly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemMonthly.java index 93cc53a6..c83f1f1a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemMonthly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemMonthly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(CloudBackupSchedulePolicyItemMonthly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemMonthly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public CloudBackupSchedulePolicyItemMonthly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemWeekly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemWeekly.java index ec0230e8..075d5d9f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemWeekly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSchedulePolicyItemWeekly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,38 @@ public Builder(CloudBackupSchedulePolicyItemWeekly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeekly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeekly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("CloudBackupSchedulePolicyItemWeekly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public CloudBackupSchedulePolicyItemWeekly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobComponent.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobComponent.java index 8bf37c65..5c44da4f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobComponent.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobComponent.java @@ -58,11 +58,13 @@ public Builder(CloudBackupSnapshotExportJobComponent defaults) { @CustomType.Setter public Builder exportId(@Nullable String exportId) { + this.exportId = exportId; return this; } @CustomType.Setter public Builder replicaSetName(@Nullable String replicaSetName) { + this.replicaSetName = replicaSetName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobCustomData.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobCustomData.java index 631bd5bf..2496d944 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobCustomData.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotExportJobCustomData.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(CloudBackupSnapshotExportJobCustomData defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobCustomData", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("CloudBackupSnapshotExportJobCustomData", "value"); + } + this.value = value; return this; } public CloudBackupSnapshotExportJobCustomData build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotMember.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotMember.java index 94393088..74949bb2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotMember.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotMember.java @@ -72,16 +72,19 @@ public Builder(CloudBackupSnapshotMember defaults) { @CustomType.Setter public Builder cloudProvider(@Nullable String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder replicaSetName(@Nullable String replicaSetName) { + this.replicaSetName = replicaSetName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotRestoreJobDeliveryTypeConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotRestoreJobDeliveryTypeConfig.java index 39309327..8150b3c6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotRestoreJobDeliveryTypeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudBackupSnapshotRestoreJobDeliveryTypeConfig.java @@ -96,41 +96,49 @@ public Builder(CloudBackupSnapshotRestoreJobDeliveryTypeConfig defaults) { @CustomType.Setter public Builder automated(@Nullable Boolean automated) { + this.automated = automated; return this; } @CustomType.Setter public Builder download(@Nullable Boolean download) { + this.download = download; return this; } @CustomType.Setter public Builder oplogInc(@Nullable Integer oplogInc) { + this.oplogInc = oplogInc; return this; } @CustomType.Setter public Builder oplogTs(@Nullable Integer oplogTs) { + this.oplogTs = oplogTs; return this; } @CustomType.Setter public Builder pointInTime(@Nullable Boolean pointInTime) { + this.pointInTime = pointInTime; return this; } @CustomType.Setter public Builder pointInTimeUtcSeconds(@Nullable Integer pointInTimeUtcSeconds) { + this.pointInTimeUtcSeconds = pointInTimeUtcSeconds; return this; } @CustomType.Setter public Builder targetClusterName(@Nullable String targetClusterName) { + this.targetClusterName = targetClusterName; return this; } @CustomType.Setter public Builder targetProjectId(@Nullable String targetProjectId) { + this.targetProjectId = targetProjectId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAws.java index 469b0a48..cdee017f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAws.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(CloudProviderAccessAuthorizationAws defaults) { @CustomType.Setter public Builder iamAssumedRoleArn(String iamAssumedRoleArn) { - this.iamAssumedRoleArn = Objects.requireNonNull(iamAssumedRoleArn); + if (iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAws", "iamAssumedRoleArn"); + } + this.iamAssumedRoleArn = iamAssumedRoleArn; return this; } public CloudProviderAccessAuthorizationAws build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAzure.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAzure.java index 02fd7d19..45654ec8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAzure.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationAzure.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(CloudProviderAccessAuthorizationAzure defaults) { @CustomType.Setter public Builder atlasAzureAppId(String atlasAzureAppId) { - this.atlasAzureAppId = Objects.requireNonNull(atlasAzureAppId); + if (atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzure", "atlasAzureAppId"); + } + this.atlasAzureAppId = atlasAzureAppId; return this; } @CustomType.Setter public Builder servicePrincipalId(String servicePrincipalId) { - this.servicePrincipalId = Objects.requireNonNull(servicePrincipalId); + if (servicePrincipalId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzure", "servicePrincipalId"); + } + this.servicePrincipalId = servicePrincipalId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessAuthorizationAzure", "tenantId"); + } + this.tenantId = tenantId; return this; } public CloudProviderAccessAuthorizationAzure build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationFeatureUsage.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationFeatureUsage.java index 29e00523..b6707d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationFeatureUsage.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessAuthorizationFeatureUsage.java @@ -44,11 +44,13 @@ public Builder(CloudProviderAccessAuthorizationFeatureUsage defaults) { @CustomType.Setter public Builder featureId(@Nullable Map featureId) { + this.featureId = featureId; return this; } @CustomType.Setter public Builder featureType(@Nullable String featureType) { + this.featureType = featureType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessFeatureUsage.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessFeatureUsage.java index a75d5cc2..3a5ecf24 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessFeatureUsage.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessFeatureUsage.java @@ -44,11 +44,13 @@ public Builder(CloudProviderAccessFeatureUsage defaults) { @CustomType.Setter public Builder featureId(@Nullable Map featureId) { + this.featureId = featureId; return this; } @CustomType.Setter public Builder featureType(@Nullable String featureType) { + this.featureType = featureType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAwsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAwsConfig.java index c6129c6d..183dea40 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAwsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAwsConfig.java @@ -42,11 +42,13 @@ public Builder(CloudProviderAccessSetupAwsConfig defaults) { @CustomType.Setter public Builder atlasAssumedRoleExternalId(@Nullable String atlasAssumedRoleExternalId) { + this.atlasAssumedRoleExternalId = atlasAssumedRoleExternalId; return this; } @CustomType.Setter public Builder atlasAwsAccountArn(@Nullable String atlasAwsAccountArn) { + this.atlasAwsAccountArn = atlasAwsAccountArn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAzureConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAzureConfig.java index cec07b3b..3916fee3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAzureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CloudProviderAccessSetupAzureConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(CloudProviderAccessSetupAzureConfig defaults) { @CustomType.Setter public Builder atlasAzureAppId(String atlasAzureAppId) { - this.atlasAzureAppId = Objects.requireNonNull(atlasAzureAppId); + if (atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfig", "atlasAzureAppId"); + } + this.atlasAzureAppId = atlasAzureAppId; return this; } @CustomType.Setter public Builder servicePrincipalId(String servicePrincipalId) { - this.servicePrincipalId = Objects.requireNonNull(servicePrincipalId); + if (servicePrincipalId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfig", "servicePrincipalId"); + } + this.servicePrincipalId = servicePrincipalId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("CloudProviderAccessSetupAzureConfig", "tenantId"); + } + this.tenantId = tenantId; return this; } public CloudProviderAccessSetupAzureConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterAdvancedConfiguration.java index 0c0aaf6d..98dfd72e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterAdvancedConfiguration.java @@ -196,56 +196,67 @@ public Builder(ClusterAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(@Nullable String defaultReadConcern) { + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(@Nullable String defaultWriteConcern) { + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(@Nullable Boolean failIndexKeyTooLong) { + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(@Nullable Boolean javascriptEnabled) { + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(@Nullable String minimumEnabledTlsProtocol) { + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(@Nullable Boolean noTableScan) { + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(@Nullable Integer oplogMinRetentionHours) { + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(@Nullable Integer oplogSizeMb) { + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(@Nullable Integer sampleRefreshIntervalBiConnector) { + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(@Nullable Integer sampleSizeBiConnector) { + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(@Nullable Integer transactionLifetimeLimitSeconds) { + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterBiConnectorConfig.java index da3e8d94..592a9fae 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterBiConnectorConfig.java @@ -77,11 +77,13 @@ public Builder(ClusterBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(@Nullable String readPreference) { + this.readPreference = readPreference; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionString.java index e277685f..6f014114 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionString.java @@ -62,11 +62,13 @@ public Builder(ClusterConnectionString defaults) { @CustomType.Setter("private") public Builder private_(@Nullable String private_) { + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(@Nullable List privateEndpoints) { + this.privateEndpoints = privateEndpoints; return this; } @@ -75,16 +77,19 @@ public Builder privateEndpoints(ClusterConnectionStringPrivateEndpoint... privat } @CustomType.Setter public Builder privateSrv(@Nullable String privateSrv) { + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(@Nullable String standard) { + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(@Nullable String standardSrv) { + this.standardSrv = standardSrv; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpoint.java index c0d44253..38ffb7d5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpoint.java @@ -62,11 +62,13 @@ public Builder(ClusterConnectionStringPrivateEndpoint defaults) { @CustomType.Setter public Builder connectionString(@Nullable String connectionString) { + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { + this.endpoints = endpoints; return this; } @@ -75,16 +77,19 @@ public Builder endpoints(ClusterConnectionStringPrivateEndpointEndpoint... endpo } @CustomType.Setter public Builder srvConnectionString(@Nullable String srvConnectionString) { + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(@Nullable String srvShardOptimizedConnectionString) { + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; 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/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpointEndpoint.java index d7e5958c..df137c3e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterConnectionStringPrivateEndpointEndpoint.java @@ -60,16 +60,19 @@ public Builder(ClusterConnectionStringPrivateEndpointEndpoint defaults) { @CustomType.Setter public Builder endpointId(@Nullable String endpointId) { + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(@Nullable String providerName) { + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterLabel.java index 204a1203..89584d81 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterLabel.java @@ -62,11 +62,13 @@ public Builder(ClusterLabel defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; 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/mongodbatlas/outputs/ClusterOutageSimulationOutageFilter.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterOutageSimulationOutageFilter.java index 877b040e..8653bae3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterOutageSimulationOutageFilter.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterOutageSimulationOutageFilter.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,23 @@ public Builder(ClusterOutageSimulationOutageFilter defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationOutageFilter", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("ClusterOutageSimulationOutageFilter", "regionName"); + } + this.regionName = regionName; 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/mongodbatlas/outputs/ClusterReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpec.java index 3ba8a0a4..f8c488d7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.ClusterReplicationSpecRegionsConfig; import java.lang.Integer; import java.lang.String; @@ -93,16 +94,21 @@ public Builder(ClusterReplicationSpec defaults) { @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("ClusterReplicationSpec", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionsConfigs(@Nullable List regionsConfigs) { + this.regionsConfigs = regionsConfigs; return this; } @@ -111,6 +117,7 @@ public Builder regionsConfigs(ClusterReplicationSpecRegionsConfig... regionsConf } @CustomType.Setter public Builder zoneName(@Nullable String zoneName) { + this.zoneName = zoneName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpecRegionsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpecRegionsConfig.java index 9164f901..4582ba70 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpecRegionsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterReplicationSpecRegionsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -113,27 +114,34 @@ public Builder(ClusterReplicationSpecRegionsConfig defaults) { @CustomType.Setter public Builder analyticsNodes(@Nullable Integer analyticsNodes) { + this.analyticsNodes = analyticsNodes; return this; } @CustomType.Setter public Builder electableNodes(@Nullable Integer electableNodes) { + this.electableNodes = electableNodes; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder readOnlyNodes(@Nullable Integer readOnlyNodes) { + this.readOnlyNodes = readOnlyNodes; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("ClusterReplicationSpecRegionsConfig", "regionName"); + } + this.regionName = regionName; return this; } public ClusterReplicationSpecRegionsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicy.java index 1233d705..de6dc799 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicy.java @@ -90,21 +90,25 @@ public Builder(ClusterSnapshotBackupPolicy defaults) { @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder nextSnapshot(@Nullable String nextSnapshot) { + this.nextSnapshot = nextSnapshot; return this; } @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -113,21 +117,25 @@ public Builder policies(ClusterSnapshotBackupPolicyPolicy... policies) { } @CustomType.Setter public Builder referenceHourOfDay(@Nullable Integer referenceHourOfDay) { + this.referenceHourOfDay = referenceHourOfDay; return this; } @CustomType.Setter public Builder referenceMinuteOfHour(@Nullable Integer referenceMinuteOfHour) { + this.referenceMinuteOfHour = referenceMinuteOfHour; return this; } @CustomType.Setter public Builder restoreWindowDays(@Nullable Integer restoreWindowDays) { + this.restoreWindowDays = restoreWindowDays; return this; } @CustomType.Setter public Builder updateSnapshots(@Nullable Boolean updateSnapshots) { + this.updateSnapshots = updateSnapshots; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicy.java index ec9b29f6..d21290e0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicy.java @@ -52,11 +52,13 @@ public Builder(ClusterSnapshotBackupPolicyPolicy defaults) { @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder policyItems(@Nullable List policyItems) { + this.policyItems = policyItems; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicyPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicyPolicyItem.java index 695a5317..8656d5c9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicyPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterSnapshotBackupPolicyPolicyPolicyItem.java @@ -69,26 +69,31 @@ public Builder(ClusterSnapshotBackupPolicyPolicyPolicyItem defaults) { @CustomType.Setter public Builder frequencyInterval(@Nullable Integer frequencyInterval) { + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(@Nullable String retentionUnit) { + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(@Nullable Integer retentionValue) { + this.retentionValue = retentionValue; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterTag.java index 6aa987e4..8819a702 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ClusterTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -60,12 +61,18 @@ public Builder(ClusterTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ClusterTag", "value"); + } + this.value = value; return this; } public ClusterTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleAction.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleAction.java index 8df3dc97..f88539ff 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleAction.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleAction.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.CustomDbRoleActionResource; import java.lang.String; import java.util.List; @@ -84,12 +85,18 @@ public Builder(CustomDbRoleAction defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("CustomDbRoleAction", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("CustomDbRoleAction", "resources"); + } + this.resources = resources; return this; } public Builder resources(CustomDbRoleActionResource... resources) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleActionResource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleActionResource.java index 36d83589..db14ee1e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleActionResource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleActionResource.java @@ -61,16 +61,19 @@ public Builder(CustomDbRoleActionResource defaults) { @CustomType.Setter public Builder cluster(@Nullable Boolean cluster) { + this.cluster = cluster; return this; } @CustomType.Setter public Builder collectionName(@Nullable String collectionName) { + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(@Nullable String databaseName) { + this.databaseName = databaseName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleInheritedRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleInheritedRole.java index 6f95ec04..23c637ae 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleInheritedRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/CustomDbRoleInheritedRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -60,12 +61,18 @@ public Builder(CustomDbRoleInheritedRole defaults) { @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("CustomDbRoleInheritedRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("CustomDbRoleInheritedRole", "roleName"); + } + this.roleName = roleName; return this; } public CustomDbRoleInheritedRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineIngestionSchedule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineIngestionSchedule.java index c5b498a3..f00f0b18 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineIngestionSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineIngestionSchedule.java @@ -69,26 +69,31 @@ public Builder(DataLakePipelineIngestionSchedule defaults) { @CustomType.Setter public Builder frequencyInterval(@Nullable Integer frequencyInterval) { + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(@Nullable String frequencyType) { + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(@Nullable String retentionUnit) { + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(@Nullable Integer retentionValue) { + this.retentionValue = retentionValue; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSink.java index da9224de..13e01764 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSink.java @@ -92,6 +92,7 @@ public Builder(DataLakePipelineSink defaults) { @CustomType.Setter public Builder partitionFields(@Nullable List partitionFields) { + this.partitionFields = partitionFields; return this; } @@ -100,16 +101,19 @@ public Builder partitionFields(DataLakePipelineSinkPartitionField... partitionFi } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; 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/mongodbatlas/outputs/DataLakePipelineSinkPartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSinkPartitionField.java index cb53612a..2a55f6ba 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSinkPartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSinkPartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(DataLakePipelineSinkPartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("DataLakePipelineSinkPartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("DataLakePipelineSinkPartitionField", "order"); + } + this.order = order; return this; } public DataLakePipelineSinkPartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSnapshot.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSnapshot.java index df1b3bc1..ef9977e2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSnapshot.java @@ -140,41 +140,49 @@ public Builder(DataLakePipelineSnapshot defaults) { @CustomType.Setter public Builder copyRegion(@Nullable String copyRegion) { + this.copyRegion = copyRegion; return this; } @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder expiresAt(@Nullable String expiresAt) { + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder frequencyYype(@Nullable String frequencyYype) { + this.frequencyYype = frequencyYype; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder masterKey(@Nullable String masterKey) { + this.masterKey = masterKey; return this; } @CustomType.Setter public Builder mongodVersion(@Nullable String mongodVersion) { + this.mongodVersion = mongodVersion; return this; } @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -183,31 +191,37 @@ public Builder policies(String... policies) { } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder replicaSetName(@Nullable String replicaSetName) { + this.replicaSetName = replicaSetName; return this; } @CustomType.Setter public Builder size(@Nullable Integer size) { + this.size = size; return this; } @CustomType.Setter public Builder snapshotType(@Nullable String snapshotType) { + this.snapshotType = snapshotType; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; 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/mongodbatlas/outputs/DataLakePipelineSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSource.java index 666b6dfa..1a14aac0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineSource.java @@ -106,31 +106,37 @@ public Builder(DataLakePipelineSource defaults) { @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(@Nullable String collectionName) { + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(@Nullable String databaseName) { + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder policyItemId(@Nullable String policyItemId) { + this.policyItemId = policyItemId; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; 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/mongodbatlas/outputs/DataLakePipelineTransformation.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineTransformation.java index d03712db..79655aed 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DataLakePipelineTransformation.java @@ -50,11 +50,13 @@ public Builder(DataLakePipelineTransformation defaults) { @CustomType.Setter public Builder field(@Nullable String field) { + this.field = field; 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/mongodbatlas/outputs/DatabaseUserLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserLabel.java index 4ffb9d71..3c90ff81 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserLabel.java @@ -58,11 +58,13 @@ public Builder(DatabaseUserLabel defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; 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/mongodbatlas/outputs/DatabaseUserRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserRole.java index 122540ff..40e81ce1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(DatabaseUserRole defaults) { @CustomType.Setter public Builder collectionName(@Nullable String collectionName) { + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("DatabaseUserRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("DatabaseUserRole", "roleName"); + } + this.roleName = roleName; return this; } public DatabaseUserRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserScope.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserScope.java index 525d33f9..d7b7345d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserScope.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/DatabaseUserScope.java @@ -58,11 +58,13 @@ public Builder(DatabaseUserScope defaults) { @CustomType.Setter public Builder name(@Nullable String 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/mongodbatlas/outputs/EncryptionAtRestAwsKmsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAwsKmsConfig.java index 5b1f3e03..d2c9fbe2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAwsKmsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAwsKmsConfig.java @@ -99,31 +99,37 @@ public Builder(EncryptionAtRestAwsKmsConfig defaults) { @CustomType.Setter public Builder accessKeyId(@Nullable String accessKeyId) { + this.accessKeyId = accessKeyId; return this; } @CustomType.Setter public Builder customerMasterKeyId(@Nullable String customerMasterKeyId) { + this.customerMasterKeyId = customerMasterKeyId; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder roleId(@Nullable String roleId) { + this.roleId = roleId; return this; } @CustomType.Setter public Builder secretAccessKey(@Nullable String secretAccessKey) { + this.secretAccessKey = secretAccessKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAzureKeyVaultConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAzureKeyVaultConfig.java index dd315d15..13061a7d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAzureKeyVaultConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestAzureKeyVaultConfig.java @@ -157,46 +157,55 @@ public Builder(EncryptionAtRestAzureKeyVaultConfig defaults) { @CustomType.Setter public Builder azureEnvironment(@Nullable String azureEnvironment) { + this.azureEnvironment = azureEnvironment; return this; } @CustomType.Setter public Builder clientId(@Nullable String clientId) { + this.clientId = clientId; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder keyIdentifier(@Nullable String keyIdentifier) { + this.keyIdentifier = keyIdentifier; return this; } @CustomType.Setter public Builder keyVaultName(@Nullable String keyVaultName) { + this.keyVaultName = keyVaultName; return this; } @CustomType.Setter public Builder resourceGroupName(@Nullable String resourceGroupName) { + this.resourceGroupName = resourceGroupName; return this; } @CustomType.Setter public Builder secret(@Nullable String secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder subscriptionId(@Nullable String 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/mongodbatlas/outputs/EncryptionAtRestGoogleCloudKmsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestGoogleCloudKmsConfig.java index c08e5275..a3a38c9e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestGoogleCloudKmsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EncryptionAtRestGoogleCloudKmsConfig.java @@ -73,16 +73,19 @@ public Builder(EncryptionAtRestGoogleCloudKmsConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder keyVersionResourceId(@Nullable String keyVersionResourceId) { + this.keyVersionResourceId = keyVersionResourceId; return this; } @CustomType.Setter public Builder serviceAccountKey(@Nullable String serviceAccountKey) { + this.serviceAccountKey = serviceAccountKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessors.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessors.java index 414a3c01..bbdd8b3c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessors.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessors.java @@ -36,6 +36,7 @@ public Builder(EventTriggerEventProcessors defaults) { @CustomType.Setter public Builder awsEventbridge(@Nullable EventTriggerEventProcessorsAwsEventbridge awsEventbridge) { + this.awsEventbridge = awsEventbridge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessorsAwsEventbridge.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessorsAwsEventbridge.java index c69dc363..c82a72d5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessorsAwsEventbridge.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/EventTriggerEventProcessorsAwsEventbridge.java @@ -42,11 +42,13 @@ public Builder(EventTriggerEventProcessorsAwsEventbridge defaults) { @CustomType.Setter public Builder configAccountId(@Nullable String configAccountId) { + this.configAccountId = configAccountId; return this; } @CustomType.Setter public Builder configRegion(@Nullable String configRegion) { + this.configRegion = configRegion; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfig.java index 6372456d..ac164287 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.FederatedDatabaseInstanceCloudProviderConfigAws; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(FederatedDatabaseInstanceCloudProviderConfig defaults) { @CustomType.Setter public Builder aws(FederatedDatabaseInstanceCloudProviderConfigAws aws) { - this.aws = Objects.requireNonNull(aws); + if (aws == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfig", "aws"); + } + this.aws = aws; return this; } public FederatedDatabaseInstanceCloudProviderConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java index 275e06b4..aafe1aea 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -108,27 +109,36 @@ public Builder(FederatedDatabaseInstanceCloudProviderConfigAws defaults) { @CustomType.Setter public Builder externalId(@Nullable String externalId) { + this.externalId = externalId; return this; } @CustomType.Setter public Builder iamAssumedRoleArn(@Nullable String iamAssumedRoleArn) { + this.iamAssumedRoleArn = iamAssumedRoleArn; return this; } @CustomType.Setter public Builder iamUserArn(@Nullable String iamUserArn) { + this.iamUserArn = iamUserArn; return this; } @CustomType.Setter public Builder roleId(String roleId) { - this.roleId = Objects.requireNonNull(roleId); + if (roleId == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfigAws", "roleId"); + } + this.roleId = roleId; return this; } @CustomType.Setter public Builder testS3Bucket(String testS3Bucket) { - this.testS3Bucket = Objects.requireNonNull(testS3Bucket); + if (testS3Bucket == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceCloudProviderConfigAws", "testS3Bucket"); + } + this.testS3Bucket = testS3Bucket; return this; } public FederatedDatabaseInstanceCloudProviderConfigAws build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceDataProcessRegion.java index 42ddb77b..253676b8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceDataProcessRegion.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(FederatedDatabaseInstanceDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceDataProcessRegion", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceDataProcessRegion", "region"); + } + this.region = region; return this; } public FederatedDatabaseInstanceDataProcessRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabase.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabase.java index 76c9c1ee..0573844f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabase.java @@ -70,6 +70,7 @@ public Builder(FederatedDatabaseInstanceStorageDatabase defaults) { @CustomType.Setter public Builder collections(@Nullable List collections) { + this.collections = collections; return this; } @@ -78,16 +79,19 @@ public Builder collections(FederatedDatabaseInstanceStorageDatabaseCollection... } @CustomType.Setter public Builder maxWildcardCollections(@Nullable Integer maxWildcardCollections) { + this.maxWildcardCollections = maxWildcardCollections; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder views(@Nullable List views) { + this.views = views; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollection.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollection.java index baf57142..c9df2cd2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollection.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollection.java @@ -56,6 +56,7 @@ public Builder(FederatedDatabaseInstanceStorageDatabaseCollection defaults) { @CustomType.Setter public Builder dataSources(@Nullable List dataSources) { + this.dataSources = dataSources; return this; } @@ -64,6 +65,7 @@ public Builder dataSources(FederatedDatabaseInstanceStorageDatabaseCollectionDat } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java index c9fb6da3..c63fd531 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java @@ -98,56 +98,67 @@ public Builder(FederatedDatabaseInstanceStorageDatabaseCollectionDataSource defa @CustomType.Setter public Builder allowInsecure(@Nullable Boolean allowInsecure) { + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder collection(@Nullable String collection) { + this.collection = collection; return this; } @CustomType.Setter public Builder collectionRegex(@Nullable String collectionRegex) { + this.collectionRegex = collectionRegex; return this; } @CustomType.Setter public Builder database(@Nullable String database) { + this.database = database; return this; } @CustomType.Setter public Builder databaseRegex(@Nullable String databaseRegex) { + this.databaseRegex = databaseRegex; return this; } @CustomType.Setter public Builder datasetName(@Nullable String datasetName) { + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder defaultFormat(@Nullable String defaultFormat) { + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder provenanceFieldName(@Nullable String provenanceFieldName) { + this.provenanceFieldName = provenanceFieldName; return this; } @CustomType.Setter public Builder storeName(@Nullable String storeName) { + this.storeName = storeName; return this; } @CustomType.Setter public Builder urls(@Nullable List urls) { + this.urls = urls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseView.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseView.java index 93363a86..83d2bdce 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseView.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageDatabaseView.java @@ -60,16 +60,19 @@ public Builder(FederatedDatabaseInstanceStorageDatabaseView defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder pipeline(@Nullable String pipeline) { + this.pipeline = pipeline; return this; } @CustomType.Setter public Builder source(@Nullable String source) { + this.source = source; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStore.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStore.java index 4716f851..e3c82632 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStore.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStore.java @@ -169,6 +169,7 @@ public Builder(FederatedDatabaseInstanceStorageStore defaults) { @CustomType.Setter public Builder additionalStorageClasses(@Nullable List additionalStorageClasses) { + this.additionalStorageClasses = additionalStorageClasses; return this; } @@ -177,76 +178,91 @@ public Builder additionalStorageClasses(String... additionalStorageClasses) { } @CustomType.Setter public Builder allowInsecure(@Nullable Boolean allowInsecure) { + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder bucket(@Nullable String bucket) { + this.bucket = bucket; return this; } @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder defaultFormat(@Nullable String defaultFormat) { + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder delimiter(@Nullable String delimiter) { + this.delimiter = delimiter; return this; } @CustomType.Setter public Builder includeTags(@Nullable Boolean includeTags) { + this.includeTags = includeTags; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter("public") public Builder public_(@Nullable String public_) { + this.public_ = public_; return this; } @CustomType.Setter public Builder readPreference(@Nullable FederatedDatabaseInstanceStorageStoreReadPreference readPreference) { + this.readPreference = readPreference; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder urls(@Nullable List urls) { + this.urls = urls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreference.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreference.java index 1e2f3645..4e6db3d9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreference.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreference.java @@ -51,16 +51,19 @@ public Builder(FederatedDatabaseInstanceStorageStoreReadPreference defaults) { @CustomType.Setter public Builder maxStalenessSeconds(@Nullable Integer maxStalenessSeconds) { + this.maxStalenessSeconds = maxStalenessSeconds; return this; } @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder tagSets(@Nullable List tagSets) { + this.tagSets = tagSets; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java index 28afd5b2..a5691d18 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag; import java.util.List; import java.util.Objects; @@ -35,7 +36,10 @@ public Builder(FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet default @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("FederatedDatabaseInstanceStorageStoreReadPreferenceTagSet", "tags"); + } + this.tags = tags; return this; } public Builder tags(FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java index 3506594a..2be302e1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java @@ -54,11 +54,13 @@ public Builder(FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag defa @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; 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/mongodbatlas/outputs/FederatedSettingsOrgRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedSettingsOrgRoleMappingRoleAssignment.java index b08e0351..03dcb551 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedSettingsOrgRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedSettingsOrgRoleMappingRoleAssignment.java @@ -75,16 +75,19 @@ public Builder(FederatedSettingsOrgRoleMappingRoleAssignment defaults) { @CustomType.Setter public Builder groupId(@Nullable String groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(@Nullable String orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder roles(@Nullable List roles) { + this.roles = roles; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserCertificate.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserCertificate.java index 463df7aa..9d2b243c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserCertificate.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(Get509AuthenticationDatabaseUserCertificate defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserCertificate", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserCertificate", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserCertificate", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserCertificate", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder subject(String subject) { - this.subject = Objects.requireNonNull(subject); + if (subject == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserCertificate", "subject"); + } + this.subject = subject; return this; } public Get509AuthenticationDatabaseUserCertificate build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserResult.java index 2f1ea2be..c04af301 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/Get509AuthenticationDatabaseUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.Get509AuthenticationDatabaseUserCertificate; import java.lang.String; import java.util.List; @@ -78,7 +79,10 @@ public Builder(Get509AuthenticationDatabaseUserResult defaults) { @CustomType.Setter public Builder certificates(List certificates) { - this.certificates = Objects.requireNonNull(certificates); + if (certificates == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserResult", "certificates"); + } + this.certificates = certificates; return this; } public Builder certificates(Get509AuthenticationDatabaseUserCertificate... certificates) { @@ -86,21 +90,31 @@ public Builder certificates(Get509AuthenticationDatabaseUserCertificate... certi } @CustomType.Setter public Builder customerX509Cas(String customerX509Cas) { - this.customerX509Cas = Objects.requireNonNull(customerX509Cas); + if (customerX509Cas == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserResult", "customerX509Cas"); + } + this.customerX509Cas = customerX509Cas; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("Get509AuthenticationDatabaseUserResult", "projectId"); + } + this.projectId = projectId; 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/mongodbatlas/outputs/GetAccessListApiKeyResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeyResult.java index 3c7c4e18..6fb2c2fa 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeyResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,47 +92,74 @@ public Builder(GetAccessListApiKeyResult defaults) { @CustomType.Setter public Builder accessCount(Integer accessCount) { - this.accessCount = Objects.requireNonNull(accessCount); + if (accessCount == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "accessCount"); + } + this.accessCount = accessCount; return this; } @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder cidrBlock(String cidrBlock) { - this.cidrBlock = Objects.requireNonNull(cidrBlock); + if (cidrBlock == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "cidrBlock"); + } + this.cidrBlock = cidrBlock; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder lastUsed(String lastUsed) { - this.lastUsed = Objects.requireNonNull(lastUsed); + if (lastUsed == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "lastUsed"); + } + this.lastUsed = lastUsed; return this; } @CustomType.Setter public Builder lastUsedAddress(String lastUsedAddress) { - this.lastUsedAddress = Objects.requireNonNull(lastUsedAddress); + if (lastUsedAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "lastUsedAddress"); + } + this.lastUsedAddress = lastUsedAddress; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeyResult", "orgId"); + } + this.orgId = orgId; return this; } public GetAccessListApiKeyResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysInvokeResult.java index 1ca84193..3d385e26 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAccessListApiKeysResult; import java.lang.Integer; import java.lang.String; @@ -77,32 +78,46 @@ public Builder(GetAccessListApiKeysInvokeResult defaults) { @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysInvokeResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysInvokeResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetAccessListApiKeysResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysResult.java index f1429dbd..c13fb1d7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAccessListApiKeysResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -81,32 +82,50 @@ public Builder(GetAccessListApiKeysResult defaults) { @CustomType.Setter public Builder accessCount(Integer accessCount) { - this.accessCount = Objects.requireNonNull(accessCount); + if (accessCount == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "accessCount"); + } + this.accessCount = accessCount; return this; } @CustomType.Setter public Builder cidrBlock(String cidrBlock) { - this.cidrBlock = Objects.requireNonNull(cidrBlock); + if (cidrBlock == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "cidrBlock"); + } + this.cidrBlock = cidrBlock; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder lastUsed(String lastUsed) { - this.lastUsed = Objects.requireNonNull(lastUsed); + if (lastUsed == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "lastUsed"); + } + this.lastUsed = lastUsed; return this; } @CustomType.Setter public Builder lastUsedAddress(String lastUsedAddress) { - this.lastUsedAddress = Objects.requireNonNull(lastUsedAddress); + if (lastUsedAddress == null) { + throw new MissingRequiredPropertyException("GetAccessListApiKeysResult", "lastUsedAddress"); + } + this.lastUsedAddress = lastUsedAddress; return this; } public GetAccessListApiKeysResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterAdvancedConfiguration.java index 1bb9047e..93097b2c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterAdvancedConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -184,57 +185,90 @@ public Builder(GetAdvancedClusterAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(String defaultReadConcern) { - this.defaultReadConcern = Objects.requireNonNull(defaultReadConcern); + if (defaultReadConcern == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "defaultReadConcern"); + } + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(String defaultWriteConcern) { - this.defaultWriteConcern = Objects.requireNonNull(defaultWriteConcern); + if (defaultWriteConcern == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "defaultWriteConcern"); + } + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(Boolean failIndexKeyTooLong) { - this.failIndexKeyTooLong = Objects.requireNonNull(failIndexKeyTooLong); + if (failIndexKeyTooLong == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "failIndexKeyTooLong"); + } + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(Boolean javascriptEnabled) { - this.javascriptEnabled = Objects.requireNonNull(javascriptEnabled); + if (javascriptEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "javascriptEnabled"); + } + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(String minimumEnabledTlsProtocol) { - this.minimumEnabledTlsProtocol = Objects.requireNonNull(minimumEnabledTlsProtocol); + if (minimumEnabledTlsProtocol == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "minimumEnabledTlsProtocol"); + } + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(Boolean noTableScan) { - this.noTableScan = Objects.requireNonNull(noTableScan); + if (noTableScan == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "noTableScan"); + } + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(Integer oplogMinRetentionHours) { - this.oplogMinRetentionHours = Objects.requireNonNull(oplogMinRetentionHours); + if (oplogMinRetentionHours == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "oplogMinRetentionHours"); + } + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(Integer oplogSizeMb) { - this.oplogSizeMb = Objects.requireNonNull(oplogSizeMb); + if (oplogSizeMb == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "oplogSizeMb"); + } + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(Integer sampleRefreshIntervalBiConnector) { - this.sampleRefreshIntervalBiConnector = Objects.requireNonNull(sampleRefreshIntervalBiConnector); + if (sampleRefreshIntervalBiConnector == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "sampleRefreshIntervalBiConnector"); + } + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(Integer sampleSizeBiConnector) { - this.sampleSizeBiConnector = Objects.requireNonNull(sampleSizeBiConnector); + if (sampleSizeBiConnector == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "sampleSizeBiConnector"); + } + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(Integer transactionLifetimeLimitSeconds) { - this.transactionLifetimeLimitSeconds = Objects.requireNonNull(transactionLifetimeLimitSeconds); + if (transactionLifetimeLimitSeconds == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterAdvancedConfiguration", "transactionLifetimeLimitSeconds"); + } + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } public GetAdvancedClusterAdvancedConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterBiConnectorConfig.java index 7f36756b..905088a7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterBiConnectorConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetAdvancedClusterBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterBiConnectorConfig", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(String readPreference) { - this.readPreference = Objects.requireNonNull(readPreference); + if (readPreference == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterBiConnectorConfig", "readPreference"); + } + this.readPreference = readPreference; return this; } public GetAdvancedClusterBiConnectorConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionString.java index 590a5f72..574080de 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionString.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterConnectionStringPrivateEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetAdvancedClusterConnectionString defaults) { @CustomType.Setter("private") public Builder private_(String private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionString", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(List privateEndpoints) { - this.privateEndpoints = Objects.requireNonNull(privateEndpoints); + if (privateEndpoints == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionString", "privateEndpoints"); + } + this.privateEndpoints = privateEndpoints; return this; } public Builder privateEndpoints(GetAdvancedClusterConnectionStringPrivateEndpoint... privateEndpoints) { @@ -73,17 +80,26 @@ public Builder privateEndpoints(GetAdvancedClusterConnectionStringPrivateEndpoin } @CustomType.Setter public Builder privateSrv(String privateSrv) { - this.privateSrv = Objects.requireNonNull(privateSrv); + if (privateSrv == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionString", "privateSrv"); + } + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(String standard) { - this.standard = Objects.requireNonNull(standard); + if (standard == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionString", "standard"); + } + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(String standardSrv) { - this.standardSrv = Objects.requireNonNull(standardSrv); + if (standardSrv == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionString", "standardSrv"); + } + this.standardSrv = standardSrv; return this; } public GetAdvancedClusterConnectionString build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpoint.java index b027a024..1cdc17b9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterConnectionStringPrivateEndpointEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetAdvancedClusterConnectionStringPrivateEndpoint defaults) { @CustomType.Setter public Builder connectionString(String connectionString) { - this.connectionString = Objects.requireNonNull(connectionString); + if (connectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpoint", "connectionString"); + } + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpoint", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(GetAdvancedClusterConnectionStringPrivateEndpointEndpoint... endpoints) { @@ -73,17 +80,26 @@ public Builder endpoints(GetAdvancedClusterConnectionStringPrivateEndpointEndpoi } @CustomType.Setter public Builder srvConnectionString(String srvConnectionString) { - this.srvConnectionString = Objects.requireNonNull(srvConnectionString); + if (srvConnectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpoint", "srvConnectionString"); + } + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(String srvShardOptimizedConnectionString) { - this.srvShardOptimizedConnectionString = Objects.requireNonNull(srvShardOptimizedConnectionString); + if (srvShardOptimizedConnectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpoint", "srvShardOptimizedConnectionString"); + } + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpoint", "type"); + } + this.type = type; return this; } public GetAdvancedClusterConnectionStringPrivateEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpointEndpoint.java index b0160cb7..93d46e53 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterConnectionStringPrivateEndpointEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetAdvancedClusterConnectionStringPrivateEndpointEndpoint default @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpointEndpoint", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpointEndpoint", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterConnectionStringPrivateEndpointEndpoint", "region"); + } + this.region = region; return this; } public GetAdvancedClusterConnectionStringPrivateEndpointEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterLabel.java index 9d627996..a2740689 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAdvancedClusterLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterLabel", "value"); + } + this.value = value; return this; } public GetAdvancedClusterLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpec.java index 2ca45522..381c26c6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterReplicationSpecRegionConfig; import java.lang.Integer; import java.lang.String; @@ -94,22 +95,34 @@ public Builder(GetAdvancedClusterReplicationSpec defaults) { @CustomType.Setter public Builder containerId(Map containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpec", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpec", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpec", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionConfigs(List regionConfigs) { - this.regionConfigs = Objects.requireNonNull(regionConfigs); + if (regionConfigs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpec", "regionConfigs"); + } + this.regionConfigs = regionConfigs; return this; } public Builder regionConfigs(GetAdvancedClusterReplicationSpecRegionConfig... regionConfigs) { @@ -117,7 +130,10 @@ public Builder regionConfigs(GetAdvancedClusterReplicationSpecRegionConfig... re } @CustomType.Setter public Builder zoneName(String zoneName) { - this.zoneName = Objects.requireNonNull(zoneName); + if (zoneName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpec", "zoneName"); + } + this.zoneName = zoneName; return this; } public GetAdvancedClusterReplicationSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfig.java index 5af4fdc8..f68a9dae 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterReplicationSpecRegionConfigAutoScaling; @@ -163,7 +164,10 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfig defaults) { @CustomType.Setter public Builder analyticsAutoScalings(List analyticsAutoScalings) { - this.analyticsAutoScalings = Objects.requireNonNull(analyticsAutoScalings); + if (analyticsAutoScalings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "analyticsAutoScalings"); + } + this.analyticsAutoScalings = analyticsAutoScalings; return this; } public Builder analyticsAutoScalings(GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling... analyticsAutoScalings) { @@ -171,12 +175,16 @@ public Builder analyticsAutoScalings(GetAdvancedClusterReplicationSpecRegionConf } @CustomType.Setter public Builder analyticsSpecs(@Nullable GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs analyticsSpecs) { + this.analyticsSpecs = analyticsSpecs; return this; } @CustomType.Setter public Builder autoScalings(List autoScalings) { - this.autoScalings = Objects.requireNonNull(autoScalings); + if (autoScalings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "autoScalings"); + } + this.autoScalings = autoScalings; return this; } public Builder autoScalings(GetAdvancedClusterReplicationSpecRegionConfigAutoScaling... autoScalings) { @@ -184,32 +192,46 @@ public Builder autoScalings(GetAdvancedClusterReplicationSpecRegionConfigAutoSca } @CustomType.Setter public Builder backingProviderName(String backingProviderName) { - this.backingProviderName = Objects.requireNonNull(backingProviderName); + if (backingProviderName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "backingProviderName"); + } + this.backingProviderName = backingProviderName; return this; } @CustomType.Setter public Builder electableSpecs(@Nullable GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs electableSpecs) { + this.electableSpecs = electableSpecs; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder readOnlySpecs(@Nullable GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs readOnlySpecs) { + this.readOnlySpecs = readOnlySpecs; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfig", "regionName"); + } + this.regionName = regionName; return this; } public GetAdvancedClusterReplicationSpecRegionConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java index 37fbabf8..ba7d5d62 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,42 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling @CustomType.Setter public Builder computeEnabled(Boolean computeEnabled) { - this.computeEnabled = Objects.requireNonNull(computeEnabled); + if (computeEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling", "computeEnabled"); + } + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(String computeMaxInstanceSize) { - this.computeMaxInstanceSize = Objects.requireNonNull(computeMaxInstanceSize); + if (computeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling", "computeMaxInstanceSize"); + } + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(String computeMinInstanceSize) { - this.computeMinInstanceSize = Objects.requireNonNull(computeMinInstanceSize); + if (computeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling", "computeMinInstanceSize"); + } + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(Boolean computeScaleDownEnabled) { - this.computeScaleDownEnabled = Objects.requireNonNull(computeScaleDownEnabled); + if (computeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling", "computeScaleDownEnabled"); + } + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(Boolean diskGbEnabled) { - this.diskGbEnabled = Objects.requireNonNull(diskGbEnabled); + if (diskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling", "diskGbEnabled"); + } + this.diskGbEnabled = diskGbEnabled; return this; } public GetAdvancedClusterReplicationSpecRegionConfigAnalyticsAutoScaling build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java index 3494faf2..66eea181 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs defau @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAnalyticsSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAutoScaling.java index 96e524d8..c9b785fc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigAutoScaling.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +102,42 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfigAutoScaling defaults @CustomType.Setter public Builder computeEnabled(Boolean computeEnabled) { - this.computeEnabled = Objects.requireNonNull(computeEnabled); + if (computeEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAutoScaling", "computeEnabled"); + } + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(String computeMaxInstanceSize) { - this.computeMaxInstanceSize = Objects.requireNonNull(computeMaxInstanceSize); + if (computeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAutoScaling", "computeMaxInstanceSize"); + } + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(String computeMinInstanceSize) { - this.computeMinInstanceSize = Objects.requireNonNull(computeMinInstanceSize); + if (computeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAutoScaling", "computeMinInstanceSize"); + } + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(Boolean computeScaleDownEnabled) { - this.computeScaleDownEnabled = Objects.requireNonNull(computeScaleDownEnabled); + if (computeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAutoScaling", "computeScaleDownEnabled"); + } + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(Boolean diskGbEnabled) { - this.diskGbEnabled = Objects.requireNonNull(diskGbEnabled); + if (diskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigAutoScaling", "diskGbEnabled"); + } + this.diskGbEnabled = diskGbEnabled; return this; } public GetAdvancedClusterReplicationSpecRegionConfigAutoScaling build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs.java index b275b6dd..61e94cb1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs defau @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigElectableSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java index d6707f6c..2043ed35 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs defaul @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterReplicationSpecRegionConfigReadOnlySpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterResult.java index 253ebdf9..a7121fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterAdvancedConfiguration; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterBiConnectorConfig; import com.pulumi.mongodbatlas.outputs.GetAdvancedClusterConnectionString; @@ -321,7 +322,10 @@ public Builder(GetAdvancedClusterResult defaults) { @CustomType.Setter public Builder advancedConfigurations(List advancedConfigurations) { - this.advancedConfigurations = Objects.requireNonNull(advancedConfigurations); + if (advancedConfigurations == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "advancedConfigurations"); + } + this.advancedConfigurations = advancedConfigurations; return this; } public Builder advancedConfigurations(GetAdvancedClusterAdvancedConfiguration... advancedConfigurations) { @@ -329,12 +333,18 @@ public Builder advancedConfigurations(GetAdvancedClusterAdvancedConfiguration... } @CustomType.Setter public Builder backupEnabled(Boolean backupEnabled) { - this.backupEnabled = Objects.requireNonNull(backupEnabled); + if (backupEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "backupEnabled"); + } + this.backupEnabled = backupEnabled; return this; } @CustomType.Setter public Builder biConnectorConfigs(List biConnectorConfigs) { - this.biConnectorConfigs = Objects.requireNonNull(biConnectorConfigs); + if (biConnectorConfigs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "biConnectorConfigs"); + } + this.biConnectorConfigs = biConnectorConfigs; return this; } public Builder biConnectorConfigs(GetAdvancedClusterBiConnectorConfig... biConnectorConfigs) { @@ -342,12 +352,18 @@ public Builder biConnectorConfigs(GetAdvancedClusterBiConnectorConfig... biConne } @CustomType.Setter public Builder clusterType(String clusterType) { - this.clusterType = Objects.requireNonNull(clusterType); + if (clusterType == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "clusterType"); + } + this.clusterType = clusterType; return this; } @CustomType.Setter public Builder connectionStrings(List connectionStrings) { - this.connectionStrings = Objects.requireNonNull(connectionStrings); + if (connectionStrings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "connectionStrings"); + } + this.connectionStrings = connectionStrings; return this; } public Builder connectionStrings(GetAdvancedClusterConnectionString... connectionStrings) { @@ -355,27 +371,42 @@ public Builder connectionStrings(GetAdvancedClusterConnectionString... connectio } @CustomType.Setter public Builder createDate(String createDate) { - this.createDate = Objects.requireNonNull(createDate); + if (createDate == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "createDate"); + } + this.createDate = createDate; return this; } @CustomType.Setter public Builder diskSizeGb(Double diskSizeGb) { - this.diskSizeGb = Objects.requireNonNull(diskSizeGb); + if (diskSizeGb == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "diskSizeGb"); + } + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder encryptionAtRestProvider(String encryptionAtRestProvider) { - this.encryptionAtRestProvider = Objects.requireNonNull(encryptionAtRestProvider); + if (encryptionAtRestProvider == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "encryptionAtRestProvider"); + } + this.encryptionAtRestProvider = encryptionAtRestProvider; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetAdvancedClusterLabel... labels) { @@ -383,37 +414,58 @@ public Builder labels(GetAdvancedClusterLabel... labels) { } @CustomType.Setter public Builder mongoDbMajorVersion(String mongoDbMajorVersion) { - this.mongoDbMajorVersion = Objects.requireNonNull(mongoDbMajorVersion); + if (mongoDbMajorVersion == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "mongoDbMajorVersion"); + } + this.mongoDbMajorVersion = mongoDbMajorVersion; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder pitEnabled(Boolean pitEnabled) { - this.pitEnabled = Objects.requireNonNull(pitEnabled); + if (pitEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "pitEnabled"); + } + this.pitEnabled = pitEnabled; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder replicationSpecs(List replicationSpecs) { - this.replicationSpecs = Objects.requireNonNull(replicationSpecs); + if (replicationSpecs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "replicationSpecs"); + } + this.replicationSpecs = replicationSpecs; return this; } public Builder replicationSpecs(GetAdvancedClusterReplicationSpec... replicationSpecs) { @@ -421,17 +473,26 @@ public Builder replicationSpecs(GetAdvancedClusterReplicationSpec... replication } @CustomType.Setter public Builder rootCertType(String rootCertType) { - this.rootCertType = Objects.requireNonNull(rootCertType); + if (rootCertType == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "rootCertType"); + } + this.rootCertType = rootCertType; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetAdvancedClusterTag... tags) { @@ -439,12 +500,18 @@ public Builder tags(GetAdvancedClusterTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } @CustomType.Setter public Builder versionReleaseSystem(String versionReleaseSystem) { - this.versionReleaseSystem = Objects.requireNonNull(versionReleaseSystem); + if (versionReleaseSystem == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterResult", "versionReleaseSystem"); + } + this.versionReleaseSystem = versionReleaseSystem; return this; } public GetAdvancedClusterResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterTag.java index 486096bc..a7245b09 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClusterTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAdvancedClusterTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAdvancedClusterTag", "value"); + } + this.value = value; return this; } public GetAdvancedClusterTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersInvokeResult.java index 94781b8c..052a6990 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetAdvancedClustersInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetAdvancedClustersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResult.java index b403c0e4..00d90537 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultAdvancedConfiguration; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultBiConnectorConfig; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultConnectionString; @@ -301,7 +302,10 @@ public Builder(GetAdvancedClustersResult defaults) { @CustomType.Setter public Builder advancedConfigurations(List advancedConfigurations) { - this.advancedConfigurations = Objects.requireNonNull(advancedConfigurations); + if (advancedConfigurations == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "advancedConfigurations"); + } + this.advancedConfigurations = advancedConfigurations; return this; } public Builder advancedConfigurations(GetAdvancedClustersResultAdvancedConfiguration... advancedConfigurations) { @@ -309,12 +313,18 @@ public Builder advancedConfigurations(GetAdvancedClustersResultAdvancedConfigura } @CustomType.Setter public Builder backupEnabled(Boolean backupEnabled) { - this.backupEnabled = Objects.requireNonNull(backupEnabled); + if (backupEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "backupEnabled"); + } + this.backupEnabled = backupEnabled; return this; } @CustomType.Setter public Builder biConnectorConfigs(List biConnectorConfigs) { - this.biConnectorConfigs = Objects.requireNonNull(biConnectorConfigs); + if (biConnectorConfigs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "biConnectorConfigs"); + } + this.biConnectorConfigs = biConnectorConfigs; return this; } public Builder biConnectorConfigs(GetAdvancedClustersResultBiConnectorConfig... biConnectorConfigs) { @@ -322,12 +332,18 @@ public Builder biConnectorConfigs(GetAdvancedClustersResultBiConnectorConfig... } @CustomType.Setter public Builder clusterType(String clusterType) { - this.clusterType = Objects.requireNonNull(clusterType); + if (clusterType == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "clusterType"); + } + this.clusterType = clusterType; return this; } @CustomType.Setter public Builder connectionStrings(List connectionStrings) { - this.connectionStrings = Objects.requireNonNull(connectionStrings); + if (connectionStrings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "connectionStrings"); + } + this.connectionStrings = connectionStrings; return this; } public Builder connectionStrings(GetAdvancedClustersResultConnectionString... connectionStrings) { @@ -335,22 +351,34 @@ public Builder connectionStrings(GetAdvancedClustersResultConnectionString... co } @CustomType.Setter public Builder createDate(String createDate) { - this.createDate = Objects.requireNonNull(createDate); + if (createDate == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "createDate"); + } + this.createDate = createDate; return this; } @CustomType.Setter public Builder diskSizeGb(Double diskSizeGb) { - this.diskSizeGb = Objects.requireNonNull(diskSizeGb); + if (diskSizeGb == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "diskSizeGb"); + } + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder encryptionAtRestProvider(String encryptionAtRestProvider) { - this.encryptionAtRestProvider = Objects.requireNonNull(encryptionAtRestProvider); + if (encryptionAtRestProvider == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "encryptionAtRestProvider"); + } + this.encryptionAtRestProvider = encryptionAtRestProvider; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetAdvancedClustersResultLabel... labels) { @@ -358,32 +386,50 @@ public Builder labels(GetAdvancedClustersResultLabel... labels) { } @CustomType.Setter public Builder mongoDbMajorVersion(String mongoDbMajorVersion) { - this.mongoDbMajorVersion = Objects.requireNonNull(mongoDbMajorVersion); + if (mongoDbMajorVersion == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "mongoDbMajorVersion"); + } + this.mongoDbMajorVersion = mongoDbMajorVersion; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder pitEnabled(Boolean pitEnabled) { - this.pitEnabled = Objects.requireNonNull(pitEnabled); + if (pitEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "pitEnabled"); + } + this.pitEnabled = pitEnabled; return this; } @CustomType.Setter public Builder replicationSpecs(List replicationSpecs) { - this.replicationSpecs = Objects.requireNonNull(replicationSpecs); + if (replicationSpecs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "replicationSpecs"); + } + this.replicationSpecs = replicationSpecs; return this; } public Builder replicationSpecs(GetAdvancedClustersResultReplicationSpec... replicationSpecs) { @@ -391,17 +437,26 @@ public Builder replicationSpecs(GetAdvancedClustersResultReplicationSpec... repl } @CustomType.Setter public Builder rootCertType(String rootCertType) { - this.rootCertType = Objects.requireNonNull(rootCertType); + if (rootCertType == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "rootCertType"); + } + this.rootCertType = rootCertType; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetAdvancedClustersResultTag... tags) { @@ -409,12 +464,18 @@ public Builder tags(GetAdvancedClustersResultTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } @CustomType.Setter public Builder versionReleaseSystem(String versionReleaseSystem) { - this.versionReleaseSystem = Objects.requireNonNull(versionReleaseSystem); + if (versionReleaseSystem == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResult", "versionReleaseSystem"); + } + this.versionReleaseSystem = versionReleaseSystem; return this; } public GetAdvancedClustersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultAdvancedConfiguration.java index 2a02f42f..a4d9f428 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultAdvancedConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -176,57 +177,90 @@ public Builder(GetAdvancedClustersResultAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(String defaultReadConcern) { - this.defaultReadConcern = Objects.requireNonNull(defaultReadConcern); + if (defaultReadConcern == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "defaultReadConcern"); + } + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(String defaultWriteConcern) { - this.defaultWriteConcern = Objects.requireNonNull(defaultWriteConcern); + if (defaultWriteConcern == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "defaultWriteConcern"); + } + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(Boolean failIndexKeyTooLong) { - this.failIndexKeyTooLong = Objects.requireNonNull(failIndexKeyTooLong); + if (failIndexKeyTooLong == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "failIndexKeyTooLong"); + } + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(Boolean javascriptEnabled) { - this.javascriptEnabled = Objects.requireNonNull(javascriptEnabled); + if (javascriptEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "javascriptEnabled"); + } + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(String minimumEnabledTlsProtocol) { - this.minimumEnabledTlsProtocol = Objects.requireNonNull(minimumEnabledTlsProtocol); + if (minimumEnabledTlsProtocol == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "minimumEnabledTlsProtocol"); + } + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(Boolean noTableScan) { - this.noTableScan = Objects.requireNonNull(noTableScan); + if (noTableScan == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "noTableScan"); + } + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(Integer oplogMinRetentionHours) { - this.oplogMinRetentionHours = Objects.requireNonNull(oplogMinRetentionHours); + if (oplogMinRetentionHours == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "oplogMinRetentionHours"); + } + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(Integer oplogSizeMb) { - this.oplogSizeMb = Objects.requireNonNull(oplogSizeMb); + if (oplogSizeMb == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "oplogSizeMb"); + } + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(Integer sampleRefreshIntervalBiConnector) { - this.sampleRefreshIntervalBiConnector = Objects.requireNonNull(sampleRefreshIntervalBiConnector); + if (sampleRefreshIntervalBiConnector == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "sampleRefreshIntervalBiConnector"); + } + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(Integer sampleSizeBiConnector) { - this.sampleSizeBiConnector = Objects.requireNonNull(sampleSizeBiConnector); + if (sampleSizeBiConnector == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "sampleSizeBiConnector"); + } + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(Integer transactionLifetimeLimitSeconds) { - this.transactionLifetimeLimitSeconds = Objects.requireNonNull(transactionLifetimeLimitSeconds); + if (transactionLifetimeLimitSeconds == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultAdvancedConfiguration", "transactionLifetimeLimitSeconds"); + } + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } public GetAdvancedClustersResultAdvancedConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultBiConnectorConfig.java index ae625cce..97012839 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultBiConnectorConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetAdvancedClustersResultBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultBiConnectorConfig", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(String readPreference) { - this.readPreference = Objects.requireNonNull(readPreference); + if (readPreference == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultBiConnectorConfig", "readPreference"); + } + this.readPreference = readPreference; return this; } public GetAdvancedClustersResultBiConnectorConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionString.java index 26745628..5ccee12b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionString.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultConnectionStringPrivateEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetAdvancedClustersResultConnectionString defaults) { @CustomType.Setter("private") public Builder private_(String private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionString", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(List privateEndpoints) { - this.privateEndpoints = Objects.requireNonNull(privateEndpoints); + if (privateEndpoints == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionString", "privateEndpoints"); + } + this.privateEndpoints = privateEndpoints; return this; } public Builder privateEndpoints(GetAdvancedClustersResultConnectionStringPrivateEndpoint... privateEndpoints) { @@ -73,17 +80,26 @@ public Builder privateEndpoints(GetAdvancedClustersResultConnectionStringPrivate } @CustomType.Setter public Builder privateSrv(String privateSrv) { - this.privateSrv = Objects.requireNonNull(privateSrv); + if (privateSrv == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionString", "privateSrv"); + } + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(String standard) { - this.standard = Objects.requireNonNull(standard); + if (standard == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionString", "standard"); + } + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(String standardSrv) { - this.standardSrv = Objects.requireNonNull(standardSrv); + if (standardSrv == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionString", "standardSrv"); + } + this.standardSrv = standardSrv; return this; } public GetAdvancedClustersResultConnectionString build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpoint.java index 48542183..9ad7a85f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetAdvancedClustersResultConnectionStringPrivateEndpoint defaults @CustomType.Setter public Builder connectionString(String connectionString) { - this.connectionString = Objects.requireNonNull(connectionString); + if (connectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpoint", "connectionString"); + } + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpoint", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint... endpoints) { @@ -73,17 +80,26 @@ public Builder endpoints(GetAdvancedClustersResultConnectionStringPrivateEndpoin } @CustomType.Setter public Builder srvConnectionString(String srvConnectionString) { - this.srvConnectionString = Objects.requireNonNull(srvConnectionString); + if (srvConnectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpoint", "srvConnectionString"); + } + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(String srvShardOptimizedConnectionString) { - this.srvShardOptimizedConnectionString = Objects.requireNonNull(srvShardOptimizedConnectionString); + if (srvShardOptimizedConnectionString == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpoint", "srvShardOptimizedConnectionString"); + } + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpoint", "type"); + } + this.type = type; return this; } public GetAdvancedClustersResultConnectionStringPrivateEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint.java index c6e3505c..7df66d6a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint", "region"); + } + this.region = region; return this; } public GetAdvancedClustersResultConnectionStringPrivateEndpointEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultLabel.java index 2d534e9e..793ae01d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAdvancedClustersResultLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultLabel", "value"); + } + this.value = value; return this; } public GetAdvancedClustersResultLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpec.java index 55c98f84..1ab0d08d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultReplicationSpecRegionConfig; import java.lang.Integer; import java.lang.String; @@ -94,22 +95,34 @@ public Builder(GetAdvancedClustersResultReplicationSpec defaults) { @CustomType.Setter public Builder containerId(Map containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpec", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpec", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpec", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionConfigs(List regionConfigs) { - this.regionConfigs = Objects.requireNonNull(regionConfigs); + if (regionConfigs == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpec", "regionConfigs"); + } + this.regionConfigs = regionConfigs; return this; } public Builder regionConfigs(GetAdvancedClustersResultReplicationSpecRegionConfig... regionConfigs) { @@ -117,7 +130,10 @@ public Builder regionConfigs(GetAdvancedClustersResultReplicationSpecRegionConfi } @CustomType.Setter public Builder zoneName(String zoneName) { - this.zoneName = Objects.requireNonNull(zoneName); + if (zoneName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpec", "zoneName"); + } + this.zoneName = zoneName; return this; } public GetAdvancedClustersResultReplicationSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfig.java index 3728a40d..4150208c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs; import com.pulumi.mongodbatlas.outputs.GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling; @@ -163,7 +164,10 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfig defaults) { @CustomType.Setter public Builder analyticsAutoScalings(List analyticsAutoScalings) { - this.analyticsAutoScalings = Objects.requireNonNull(analyticsAutoScalings); + if (analyticsAutoScalings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "analyticsAutoScalings"); + } + this.analyticsAutoScalings = analyticsAutoScalings; return this; } public Builder analyticsAutoScalings(GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling... analyticsAutoScalings) { @@ -171,12 +175,16 @@ public Builder analyticsAutoScalings(GetAdvancedClustersResultReplicationSpecReg } @CustomType.Setter public Builder analyticsSpecs(@Nullable GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs analyticsSpecs) { + this.analyticsSpecs = analyticsSpecs; return this; } @CustomType.Setter public Builder autoScalings(List autoScalings) { - this.autoScalings = Objects.requireNonNull(autoScalings); + if (autoScalings == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "autoScalings"); + } + this.autoScalings = autoScalings; return this; } public Builder autoScalings(GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling... autoScalings) { @@ -184,32 +192,46 @@ public Builder autoScalings(GetAdvancedClustersResultReplicationSpecRegionConfig } @CustomType.Setter public Builder backingProviderName(String backingProviderName) { - this.backingProviderName = Objects.requireNonNull(backingProviderName); + if (backingProviderName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "backingProviderName"); + } + this.backingProviderName = backingProviderName; return this; } @CustomType.Setter public Builder electableSpecs(@Nullable GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs electableSpecs) { + this.electableSpecs = electableSpecs; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder readOnlySpecs(@Nullable GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs readOnlySpecs) { + this.readOnlySpecs = readOnlySpecs; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfig", "regionName"); + } + this.regionName = regionName; return this; } public GetAdvancedClustersResultReplicationSpecRegionConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling.java index 87ce5efc..e8ebd79e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAuto @CustomType.Setter public Builder computeEnabled(Boolean computeEnabled) { - this.computeEnabled = Objects.requireNonNull(computeEnabled); + if (computeEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling", "computeEnabled"); + } + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(String computeMaxInstanceSize) { - this.computeMaxInstanceSize = Objects.requireNonNull(computeMaxInstanceSize); + if (computeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling", "computeMaxInstanceSize"); + } + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(String computeMinInstanceSize) { - this.computeMinInstanceSize = Objects.requireNonNull(computeMinInstanceSize); + if (computeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling", "computeMinInstanceSize"); + } + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(Boolean computeScaleDownEnabled) { - this.computeScaleDownEnabled = Objects.requireNonNull(computeScaleDownEnabled); + if (computeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling", "computeScaleDownEnabled"); + } + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(Boolean diskGbEnabled) { - this.diskGbEnabled = Objects.requireNonNull(diskGbEnabled); + if (diskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling", "diskGbEnabled"); + } + this.diskGbEnabled = diskGbEnabled; return this; } public GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsAutoScaling build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs.java index b134eaf4..aa0357dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpec @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAnalyticsSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling.java index cc2bbd54..d39af56d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling d @CustomType.Setter public Builder computeEnabled(Boolean computeEnabled) { - this.computeEnabled = Objects.requireNonNull(computeEnabled); + if (computeEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling", "computeEnabled"); + } + this.computeEnabled = computeEnabled; return this; } @CustomType.Setter public Builder computeMaxInstanceSize(String computeMaxInstanceSize) { - this.computeMaxInstanceSize = Objects.requireNonNull(computeMaxInstanceSize); + if (computeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling", "computeMaxInstanceSize"); + } + this.computeMaxInstanceSize = computeMaxInstanceSize; return this; } @CustomType.Setter public Builder computeMinInstanceSize(String computeMinInstanceSize) { - this.computeMinInstanceSize = Objects.requireNonNull(computeMinInstanceSize); + if (computeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling", "computeMinInstanceSize"); + } + this.computeMinInstanceSize = computeMinInstanceSize; return this; } @CustomType.Setter public Builder computeScaleDownEnabled(Boolean computeScaleDownEnabled) { - this.computeScaleDownEnabled = Objects.requireNonNull(computeScaleDownEnabled); + if (computeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling", "computeScaleDownEnabled"); + } + this.computeScaleDownEnabled = computeScaleDownEnabled; return this; } @CustomType.Setter public Builder diskGbEnabled(Boolean diskGbEnabled) { - this.diskGbEnabled = Objects.requireNonNull(diskGbEnabled); + if (diskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling", "diskGbEnabled"); + } + this.diskGbEnabled = diskGbEnabled; return this; } public GetAdvancedClustersResultReplicationSpecRegionConfigAutoScaling build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs.java index 3c9bba84..e4a78182 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpec @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigElectableSpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs.java index a2dee964..95cf9f7d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,29 @@ public Builder(GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs @CustomType.Setter public Builder diskIops(Integer diskIops) { - this.diskIops = Objects.requireNonNull(diskIops); + if (diskIops == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs", "diskIops"); + } + this.diskIops = diskIops; return this; } @CustomType.Setter public Builder ebsVolumeType(@Nullable String ebsVolumeType) { + this.ebsVolumeType = ebsVolumeType; return this; } @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultReplicationSpecRegionConfigReadOnlySpecs", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultTag.java index 23b42041..87aeb83a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAdvancedClustersResultTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAdvancedClustersResultTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAdvancedClustersResultTag", "value"); + } + this.value = value; return this; } public GetAdvancedClustersResultTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMatcher.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMatcher.java index 8c233401..27aeb1a1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMatcher.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMatcher.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,17 +73,26 @@ public Builder(GetAlertConfigurationMatcher defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMatcher", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMatcher", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMatcher", "value"); + } + this.value = value; return this; } public GetAlertConfigurationMatcher build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMetricThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMetricThresholdConfig.java index e0fd1160..2088769c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMetricThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationMetricThresholdConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -103,27 +104,42 @@ public Builder(GetAlertConfigurationMetricThresholdConfig defaults) { @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMetricThresholdConfig", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMetricThresholdConfig", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMetricThresholdConfig", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(Double threshold) { - this.threshold = Objects.requireNonNull(threshold); + if (threshold == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMetricThresholdConfig", "threshold"); + } + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(String units) { - this.units = Objects.requireNonNull(units); + if (units == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationMetricThresholdConfig", "units"); + } + this.units = units; return this; } public GetAlertConfigurationMetricThresholdConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationNotification.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationNotification.java index debc8aa3..990db2ff 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationNotification.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationNotification.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -369,72 +370,114 @@ public Builder(GetAlertConfigurationNotification defaults) { @CustomType.Setter public Builder apiToken(String apiToken) { - this.apiToken = Objects.requireNonNull(apiToken); + if (apiToken == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "apiToken"); + } + this.apiToken = apiToken; return this; } @CustomType.Setter public Builder channelName(String channelName) { - this.channelName = Objects.requireNonNull(channelName); + if (channelName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "channelName"); + } + this.channelName = channelName; return this; } @CustomType.Setter public Builder datadogApiKey(String datadogApiKey) { - this.datadogApiKey = Objects.requireNonNull(datadogApiKey); + if (datadogApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "datadogApiKey"); + } + this.datadogApiKey = datadogApiKey; return this; } @CustomType.Setter public Builder datadogRegion(String datadogRegion) { - this.datadogRegion = Objects.requireNonNull(datadogRegion); + if (datadogRegion == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "datadogRegion"); + } + this.datadogRegion = datadogRegion; return this; } @CustomType.Setter public Builder delayMin(Integer delayMin) { - this.delayMin = Objects.requireNonNull(delayMin); + if (delayMin == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "delayMin"); + } + this.delayMin = delayMin; return this; } @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder emailEnabled(Boolean emailEnabled) { - this.emailEnabled = Objects.requireNonNull(emailEnabled); + if (emailEnabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "emailEnabled"); + } + this.emailEnabled = emailEnabled; return this; } @CustomType.Setter public Builder intervalMin(Integer intervalMin) { - this.intervalMin = Objects.requireNonNull(intervalMin); + if (intervalMin == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "intervalMin"); + } + this.intervalMin = intervalMin; return this; } @CustomType.Setter public Builder microsoftTeamsWebhookUrl(String microsoftTeamsWebhookUrl) { - this.microsoftTeamsWebhookUrl = Objects.requireNonNull(microsoftTeamsWebhookUrl); + if (microsoftTeamsWebhookUrl == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "microsoftTeamsWebhookUrl"); + } + this.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl; return this; } @CustomType.Setter public Builder mobileNumber(String mobileNumber) { - this.mobileNumber = Objects.requireNonNull(mobileNumber); + if (mobileNumber == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "mobileNumber"); + } + this.mobileNumber = mobileNumber; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder opsGenieApiKey(String opsGenieApiKey) { - this.opsGenieApiKey = Objects.requireNonNull(opsGenieApiKey); + if (opsGenieApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "opsGenieApiKey"); + } + this.opsGenieApiKey = opsGenieApiKey; return this; } @CustomType.Setter public Builder opsGenieRegion(String opsGenieRegion) { - this.opsGenieRegion = Objects.requireNonNull(opsGenieRegion); + if (opsGenieRegion == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "opsGenieRegion"); + } + this.opsGenieRegion = opsGenieRegion; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -442,52 +485,82 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } @CustomType.Setter public Builder smsEnabled(Boolean smsEnabled) { - this.smsEnabled = Objects.requireNonNull(smsEnabled); + if (smsEnabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "smsEnabled"); + } + this.smsEnabled = smsEnabled; return this; } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "teamId"); + } + this.teamId = teamId; return this; } @CustomType.Setter public Builder teamName(String teamName) { - this.teamName = Objects.requireNonNull(teamName); + if (teamName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "teamName"); + } + this.teamName = teamName; return this; } @CustomType.Setter public Builder typeName(String typeName) { - this.typeName = Objects.requireNonNull(typeName); + if (typeName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "typeName"); + } + this.typeName = typeName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder victorOpsApiKey(String victorOpsApiKey) { - this.victorOpsApiKey = Objects.requireNonNull(victorOpsApiKey); + if (victorOpsApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "victorOpsApiKey"); + } + this.victorOpsApiKey = victorOpsApiKey; return this; } @CustomType.Setter public Builder victorOpsRoutingKey(String victorOpsRoutingKey) { - this.victorOpsRoutingKey = Objects.requireNonNull(victorOpsRoutingKey); + if (victorOpsRoutingKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "victorOpsRoutingKey"); + } + this.victorOpsRoutingKey = victorOpsRoutingKey; return this; } @CustomType.Setter public Builder webhookSecret(String webhookSecret) { - this.webhookSecret = Objects.requireNonNull(webhookSecret); + if (webhookSecret == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "webhookSecret"); + } + this.webhookSecret = webhookSecret; return this; } @CustomType.Setter public Builder webhookUrl(String webhookUrl) { - this.webhookUrl = Objects.requireNonNull(webhookUrl); + if (webhookUrl == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationNotification", "webhookUrl"); + } + this.webhookUrl = webhookUrl; return this; } public GetAlertConfigurationNotification build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationOutput.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationOutput.java index 5ddca2c8..d402b285 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationOutput.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationOutput.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,17 +57,24 @@ public Builder(GetAlertConfigurationOutput defaults) { @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutput", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationOutput", "value"); + } + this.value = value; return this; } public GetAlertConfigurationOutput build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationResult.java index 1892deeb..2687e8e9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationMatcher; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationMetricThresholdConfig; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationNotification; @@ -164,32 +165,50 @@ public Builder(GetAlertConfigurationResult defaults) { @CustomType.Setter public Builder alertConfigurationId(String alertConfigurationId) { - this.alertConfigurationId = Objects.requireNonNull(alertConfigurationId); + if (alertConfigurationId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "alertConfigurationId"); + } + this.alertConfigurationId = alertConfigurationId; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder eventType(String eventType) { - this.eventType = Objects.requireNonNull(eventType); + if (eventType == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "eventType"); + } + this.eventType = eventType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder matchers(List matchers) { - this.matchers = Objects.requireNonNull(matchers); + if (matchers == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "matchers"); + } + this.matchers = matchers; return this; } public Builder matchers(GetAlertConfigurationMatcher... matchers) { @@ -197,7 +216,10 @@ public Builder matchers(GetAlertConfigurationMatcher... matchers) { } @CustomType.Setter public Builder metricThresholdConfigs(List metricThresholdConfigs) { - this.metricThresholdConfigs = Objects.requireNonNull(metricThresholdConfigs); + if (metricThresholdConfigs == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "metricThresholdConfigs"); + } + this.metricThresholdConfigs = metricThresholdConfigs; return this; } public Builder metricThresholdConfigs(GetAlertConfigurationMetricThresholdConfig... metricThresholdConfigs) { @@ -205,7 +227,10 @@ public Builder metricThresholdConfigs(GetAlertConfigurationMetricThresholdConfig } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetAlertConfigurationNotification... notifications) { @@ -213,6 +238,7 @@ public Builder notifications(GetAlertConfigurationNotification... notifications) } @CustomType.Setter public Builder outputs(@Nullable List outputs) { + this.outputs = outputs; return this; } @@ -221,12 +247,18 @@ public Builder outputs(GetAlertConfigurationOutput... outputs) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder thresholdConfigs(List thresholdConfigs) { - this.thresholdConfigs = Objects.requireNonNull(thresholdConfigs); + if (thresholdConfigs == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "thresholdConfigs"); + } + this.thresholdConfigs = thresholdConfigs; return this; } public Builder thresholdConfigs(GetAlertConfigurationThresholdConfig... thresholdConfigs) { @@ -234,7 +266,10 @@ public Builder thresholdConfigs(GetAlertConfigurationThresholdConfig... threshol } @CustomType.Setter public Builder updated(String updated) { - this.updated = Objects.requireNonNull(updated); + if (updated == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationResult", "updated"); + } + this.updated = updated; return this; } public GetAlertConfigurationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationThresholdConfig.java index ec5be088..4ddd6865 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationThresholdConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -75,17 +76,26 @@ public Builder(GetAlertConfigurationThresholdConfig defaults) { @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationThresholdConfig", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(Double threshold) { - this.threshold = Objects.requireNonNull(threshold); + if (threshold == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationThresholdConfig", "threshold"); + } + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(String units) { - this.units = Objects.requireNonNull(units); + if (units == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationThresholdConfig", "units"); + } + this.units = units; return this; } public GetAlertConfigurationThresholdConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsInvokeResult.java index e77a13dc..e03b745e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationsListOption; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationsResult; import java.lang.Integer; @@ -93,11 +94,15 @@ public Builder(GetAlertConfigurationsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder listOptions(@Nullable List listOptions) { + this.listOptions = listOptions; return this; } @@ -106,6 +111,7 @@ public Builder listOptions(GetAlertConfigurationsListOption... listOptions) { } @CustomType.Setter public Builder outputTypes(@Nullable List outputTypes) { + this.outputTypes = outputTypes; return this; } @@ -114,12 +120,18 @@ public Builder outputTypes(String... outputTypes) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetAlertConfigurationsResult... results) { @@ -127,7 +139,10 @@ public Builder results(GetAlertConfigurationsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetAlertConfigurationsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsListOption.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsListOption.java index 41a411dc..84bfcbe9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsListOption.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsListOption.java @@ -49,16 +49,19 @@ public Builder(GetAlertConfigurationsListOption defaults) { @CustomType.Setter public Builder includeCount(@Nullable Boolean includeCount) { + this.includeCount = includeCount; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResult.java index b4a91add..d15492d7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationsResultMatcher; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationsResultMetricThresholdConfig; import com.pulumi.mongodbatlas.outputs.GetAlertConfigurationsResultNotification; @@ -187,32 +188,50 @@ public Builder(GetAlertConfigurationsResult defaults) { @CustomType.Setter public Builder alertConfigurationId(String alertConfigurationId) { - this.alertConfigurationId = Objects.requireNonNull(alertConfigurationId); + if (alertConfigurationId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "alertConfigurationId"); + } + this.alertConfigurationId = alertConfigurationId; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder eventType(String eventType) { - this.eventType = Objects.requireNonNull(eventType); + if (eventType == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "eventType"); + } + this.eventType = eventType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder matchers(List matchers) { - this.matchers = Objects.requireNonNull(matchers); + if (matchers == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "matchers"); + } + this.matchers = matchers; return this; } public Builder matchers(GetAlertConfigurationsResultMatcher... matchers) { @@ -220,7 +239,10 @@ public Builder matchers(GetAlertConfigurationsResultMatcher... matchers) { } @CustomType.Setter public Builder metricThresholdConfigs(List metricThresholdConfigs) { - this.metricThresholdConfigs = Objects.requireNonNull(metricThresholdConfigs); + if (metricThresholdConfigs == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "metricThresholdConfigs"); + } + this.metricThresholdConfigs = metricThresholdConfigs; return this; } public Builder metricThresholdConfigs(GetAlertConfigurationsResultMetricThresholdConfig... metricThresholdConfigs) { @@ -228,7 +250,10 @@ public Builder metricThresholdConfigs(GetAlertConfigurationsResultMetricThreshol } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetAlertConfigurationsResultNotification... notifications) { @@ -236,7 +261,10 @@ public Builder notifications(GetAlertConfigurationsResultNotification... notific } @CustomType.Setter public Builder outputs(List outputs) { - this.outputs = Objects.requireNonNull(outputs); + if (outputs == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "outputs"); + } + this.outputs = outputs; return this; } public Builder outputs(GetAlertConfigurationsResultOutput... outputs) { @@ -244,12 +272,18 @@ public Builder outputs(GetAlertConfigurationsResultOutput... outputs) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder thresholdConfigs(List thresholdConfigs) { - this.thresholdConfigs = Objects.requireNonNull(thresholdConfigs); + if (thresholdConfigs == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "thresholdConfigs"); + } + this.thresholdConfigs = thresholdConfigs; return this; } public Builder thresholdConfigs(GetAlertConfigurationsResultThresholdConfig... thresholdConfigs) { @@ -257,7 +291,10 @@ public Builder thresholdConfigs(GetAlertConfigurationsResultThresholdConfig... t } @CustomType.Setter public Builder updated(String updated) { - this.updated = Objects.requireNonNull(updated); + if (updated == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResult", "updated"); + } + this.updated = updated; return this; } public GetAlertConfigurationsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMatcher.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMatcher.java index 69f4cb69..23bdd351 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMatcher.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMatcher.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,17 +73,26 @@ public Builder(GetAlertConfigurationsResultMatcher defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMatcher", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMatcher", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMatcher", "value"); + } + this.value = value; return this; } public GetAlertConfigurationsResultMatcher build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMetricThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMetricThresholdConfig.java index 8cf37689..047ffb24 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMetricThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultMetricThresholdConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -103,27 +104,42 @@ public Builder(GetAlertConfigurationsResultMetricThresholdConfig defaults) { @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMetricThresholdConfig", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMetricThresholdConfig", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMetricThresholdConfig", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(Double threshold) { - this.threshold = Objects.requireNonNull(threshold); + if (threshold == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMetricThresholdConfig", "threshold"); + } + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(String units) { - this.units = Objects.requireNonNull(units); + if (units == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultMetricThresholdConfig", "units"); + } + this.units = units; return this; } public GetAlertConfigurationsResultMetricThresholdConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultNotification.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultNotification.java index 97c2b4d6..c18381ca 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultNotification.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultNotification.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -369,72 +370,114 @@ public Builder(GetAlertConfigurationsResultNotification defaults) { @CustomType.Setter public Builder apiToken(String apiToken) { - this.apiToken = Objects.requireNonNull(apiToken); + if (apiToken == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "apiToken"); + } + this.apiToken = apiToken; return this; } @CustomType.Setter public Builder channelName(String channelName) { - this.channelName = Objects.requireNonNull(channelName); + if (channelName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "channelName"); + } + this.channelName = channelName; return this; } @CustomType.Setter public Builder datadogApiKey(String datadogApiKey) { - this.datadogApiKey = Objects.requireNonNull(datadogApiKey); + if (datadogApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "datadogApiKey"); + } + this.datadogApiKey = datadogApiKey; return this; } @CustomType.Setter public Builder datadogRegion(String datadogRegion) { - this.datadogRegion = Objects.requireNonNull(datadogRegion); + if (datadogRegion == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "datadogRegion"); + } + this.datadogRegion = datadogRegion; return this; } @CustomType.Setter public Builder delayMin(Integer delayMin) { - this.delayMin = Objects.requireNonNull(delayMin); + if (delayMin == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "delayMin"); + } + this.delayMin = delayMin; return this; } @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder emailEnabled(Boolean emailEnabled) { - this.emailEnabled = Objects.requireNonNull(emailEnabled); + if (emailEnabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "emailEnabled"); + } + this.emailEnabled = emailEnabled; return this; } @CustomType.Setter public Builder intervalMin(Integer intervalMin) { - this.intervalMin = Objects.requireNonNull(intervalMin); + if (intervalMin == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "intervalMin"); + } + this.intervalMin = intervalMin; return this; } @CustomType.Setter public Builder microsoftTeamsWebhookUrl(String microsoftTeamsWebhookUrl) { - this.microsoftTeamsWebhookUrl = Objects.requireNonNull(microsoftTeamsWebhookUrl); + if (microsoftTeamsWebhookUrl == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "microsoftTeamsWebhookUrl"); + } + this.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl; return this; } @CustomType.Setter public Builder mobileNumber(String mobileNumber) { - this.mobileNumber = Objects.requireNonNull(mobileNumber); + if (mobileNumber == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "mobileNumber"); + } + this.mobileNumber = mobileNumber; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder opsGenieApiKey(String opsGenieApiKey) { - this.opsGenieApiKey = Objects.requireNonNull(opsGenieApiKey); + if (opsGenieApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "opsGenieApiKey"); + } + this.opsGenieApiKey = opsGenieApiKey; return this; } @CustomType.Setter public Builder opsGenieRegion(String opsGenieRegion) { - this.opsGenieRegion = Objects.requireNonNull(opsGenieRegion); + if (opsGenieRegion == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "opsGenieRegion"); + } + this.opsGenieRegion = opsGenieRegion; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -442,52 +485,82 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } @CustomType.Setter public Builder smsEnabled(Boolean smsEnabled) { - this.smsEnabled = Objects.requireNonNull(smsEnabled); + if (smsEnabled == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "smsEnabled"); + } + this.smsEnabled = smsEnabled; return this; } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "teamId"); + } + this.teamId = teamId; return this; } @CustomType.Setter public Builder teamName(String teamName) { - this.teamName = Objects.requireNonNull(teamName); + if (teamName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "teamName"); + } + this.teamName = teamName; return this; } @CustomType.Setter public Builder typeName(String typeName) { - this.typeName = Objects.requireNonNull(typeName); + if (typeName == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "typeName"); + } + this.typeName = typeName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder victorOpsApiKey(String victorOpsApiKey) { - this.victorOpsApiKey = Objects.requireNonNull(victorOpsApiKey); + if (victorOpsApiKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "victorOpsApiKey"); + } + this.victorOpsApiKey = victorOpsApiKey; return this; } @CustomType.Setter public Builder victorOpsRoutingKey(String victorOpsRoutingKey) { - this.victorOpsRoutingKey = Objects.requireNonNull(victorOpsRoutingKey); + if (victorOpsRoutingKey == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "victorOpsRoutingKey"); + } + this.victorOpsRoutingKey = victorOpsRoutingKey; return this; } @CustomType.Setter public Builder webhookSecret(String webhookSecret) { - this.webhookSecret = Objects.requireNonNull(webhookSecret); + if (webhookSecret == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "webhookSecret"); + } + this.webhookSecret = webhookSecret; return this; } @CustomType.Setter public Builder webhookUrl(String webhookUrl) { - this.webhookUrl = Objects.requireNonNull(webhookUrl); + if (webhookUrl == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultNotification", "webhookUrl"); + } + this.webhookUrl = webhookUrl; return this; } public GetAlertConfigurationsResultNotification build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultOutput.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultOutput.java index 5c23d9d7..07305c18 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultOutput.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultOutput.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetAlertConfigurationsResultOutput defaults) { @CustomType.Setter public Builder label(String label) { - this.label = Objects.requireNonNull(label); + if (label == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultOutput", "label"); + } + this.label = label; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultOutput", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultOutput", "value"); + } + this.value = value; return this; } public GetAlertConfigurationsResultOutput build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultThresholdConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultThresholdConfig.java index 27658c85..49de0296 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultThresholdConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAlertConfigurationsResultThresholdConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -75,17 +76,26 @@ public Builder(GetAlertConfigurationsResultThresholdConfig defaults) { @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultThresholdConfig", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder threshold(Double threshold) { - this.threshold = Objects.requireNonNull(threshold); + if (threshold == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultThresholdConfig", "threshold"); + } + this.threshold = threshold; return this; } @CustomType.Setter public Builder units(String units) { - this.units = Objects.requireNonNull(units); + if (units == null) { + throw new MissingRequiredPropertyException("GetAlertConfigurationsResultThresholdConfig", "units"); + } + this.units = units; return this; } public GetAlertConfigurationsResultThresholdConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeyResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeyResult.java index 3b91082e..857c42a4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeyResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -107,32 +108,50 @@ public Builder(GetApiKeyResult defaults) { @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "publicKey"); + } + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetApiKeyResult", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysInvokeResult.java index 0bbf8b2a..f2ee5cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetApiKeysResult; import java.lang.Integer; import java.lang.String; @@ -71,27 +72,38 @@ public Builder(GetApiKeysInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetApiKeysInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetApiKeysInvokeResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetApiKeysInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetApiKeysResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysResult.java index df9ddb0f..2578f3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetApiKeysResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -81,22 +82,34 @@ public Builder(GetApiKeysResult defaults) { @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetApiKeysResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetApiKeysResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetApiKeysResult", "publicKey"); + } + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetApiKeysResult", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserLink.java index 021f49c7..9ac548c8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAtlasUserLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetAtlasUserLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetAtlasUserLink", "rel"); + } + this.rel = rel; return this; } public GetAtlasUserLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserResult.java index 4d3c38a7..b8cf9ef0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAtlasUserLink; import com.pulumi.mongodbatlas.outputs.GetAtlasUserRole; import java.lang.String; @@ -197,42 +198,66 @@ public Builder(GetAtlasUserResult defaults) { @CustomType.Setter public Builder country(String country) { - this.country = Objects.requireNonNull(country); + if (country == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "country"); + } + this.country = country; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastAuth(String lastAuth) { - this.lastAuth = Objects.requireNonNull(lastAuth); + if (lastAuth == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "lastAuth"); + } + this.lastAuth = lastAuth; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "links"); + } + this.links = links; return this; } public Builder links(GetAtlasUserLink... links) { @@ -240,12 +265,18 @@ public Builder links(GetAtlasUserLink... links) { } @CustomType.Setter public Builder mobileNumber(String mobileNumber) { - this.mobileNumber = Objects.requireNonNull(mobileNumber); + if (mobileNumber == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "mobileNumber"); + } + this.mobileNumber = mobileNumber; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(GetAtlasUserRole... roles) { @@ -253,7 +284,10 @@ public Builder roles(GetAtlasUserRole... roles) { } @CustomType.Setter public Builder teamIds(List teamIds) { - this.teamIds = Objects.requireNonNull(teamIds); + if (teamIds == null) { + throw new MissingRequiredPropertyException("GetAtlasUserResult", "teamIds"); + } + this.teamIds = teamIds; return this; } public Builder teamIds(String... teamIds) { @@ -261,11 +295,13 @@ public Builder teamIds(String... teamIds) { } @CustomType.Setter public Builder userId(@Nullable String userId) { + this.userId = userId; 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/mongodbatlas/outputs/GetAtlasUserRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserRole.java index 2f6d3fec..cefcab19 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUserRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAtlasUserRole defaults) { @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetAtlasUserRole", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetAtlasUserRole", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetAtlasUserRole", "roleName"); + } + this.roleName = roleName; return this; } public GetAtlasUserRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersInvokeResult.java index 35a3c23e..5c5529e0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAtlasUsersResult; import java.lang.Integer; import java.lang.String; @@ -109,32 +110,42 @@ public Builder(GetAtlasUsersInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder orgId(@Nullable String orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetAtlasUsersResult... results) { @@ -142,12 +153,16 @@ public Builder results(GetAtlasUsersResult... results) { } @CustomType.Setter public Builder teamId(@Nullable String teamId) { + this.teamId = teamId; return this; } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetAtlasUsersInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResult.java index a0dba642..a52d25ba 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetAtlasUsersResultLink; import com.pulumi.mongodbatlas.outputs.GetAtlasUsersResultRole; import java.lang.String; @@ -199,42 +200,66 @@ public Builder(GetAtlasUsersResult defaults) { @CustomType.Setter public Builder country(String country) { - this.country = Objects.requireNonNull(country); + if (country == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "country"); + } + this.country = country; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastAuth(String lastAuth) { - this.lastAuth = Objects.requireNonNull(lastAuth); + if (lastAuth == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "lastAuth"); + } + this.lastAuth = lastAuth; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "links"); + } + this.links = links; return this; } public Builder links(GetAtlasUsersResultLink... links) { @@ -242,12 +267,18 @@ public Builder links(GetAtlasUsersResultLink... links) { } @CustomType.Setter public Builder mobileNumber(String mobileNumber) { - this.mobileNumber = Objects.requireNonNull(mobileNumber); + if (mobileNumber == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "mobileNumber"); + } + this.mobileNumber = mobileNumber; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(GetAtlasUsersResultRole... roles) { @@ -255,7 +286,10 @@ public Builder roles(GetAtlasUsersResultRole... roles) { } @CustomType.Setter public Builder teamIds(List teamIds) { - this.teamIds = Objects.requireNonNull(teamIds); + if (teamIds == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "teamIds"); + } + this.teamIds = teamIds; return this; } public Builder teamIds(String... teamIds) { @@ -263,12 +297,18 @@ public Builder teamIds(String... teamIds) { } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "userId"); + } + this.userId = userId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResult", "username"); + } + this.username = username; return this; } public GetAtlasUsersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultLink.java index 57db0e31..a31e0db9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetAtlasUsersResultLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResultLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResultLink", "rel"); + } + this.rel = rel; return this; } public GetAtlasUsersResultLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultRole.java index bde6638d..7855e352 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAtlasUsersResultRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetAtlasUsersResultRole defaults) { @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResultRole", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResultRole", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetAtlasUsersResultRole", "roleName"); + } + this.roleName = roleName; return this; } public GetAtlasUsersResultRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAuditingResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAuditingResult.java index 8d3c7f34..b3520383 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAuditingResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetAuditingResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -105,32 +106,50 @@ public Builder(GetAuditingResult defaults) { @CustomType.Setter public Builder auditAuthorizationSuccess(Boolean auditAuthorizationSuccess) { - this.auditAuthorizationSuccess = Objects.requireNonNull(auditAuthorizationSuccess); + if (auditAuthorizationSuccess == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "auditAuthorizationSuccess"); + } + this.auditAuthorizationSuccess = auditAuthorizationSuccess; return this; } @CustomType.Setter public Builder auditFilter(String auditFilter) { - this.auditFilter = Objects.requireNonNull(auditFilter); + if (auditFilter == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "auditFilter"); + } + this.auditFilter = auditFilter; return this; } @CustomType.Setter public Builder configurationType(String configurationType) { - this.configurationType = Objects.requireNonNull(configurationType); + if (configurationType == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "configurationType"); + } + this.configurationType = configurationType; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAuditingResult", "projectId"); + } + this.projectId = projectId; return this; } public GetAuditingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyOnDemandPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyOnDemandPolicyItem.java index 720f4d95..2c7447cd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyOnDemandPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyOnDemandPolicyItem.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetBackupCompliancePolicyOnDemandPolicyItem defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyOnDemandPolicyItem", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetBackupCompliancePolicyOnDemandPolicyItem build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemDaily.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemDaily.java index 9187c15f..53b2a680 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemDaily.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemDaily.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetBackupCompliancePolicyPolicyItemDaily defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemDaily", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetBackupCompliancePolicyPolicyItemDaily build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemHourly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemHourly.java index 81a51149..ced179ca 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemHourly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemHourly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetBackupCompliancePolicyPolicyItemHourly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemHourly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetBackupCompliancePolicyPolicyItemHourly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemMonthly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemMonthly.java index c6498cc1..9a7368be 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemMonthly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemMonthly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetBackupCompliancePolicyPolicyItemMonthly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemMonthly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetBackupCompliancePolicyPolicyItemMonthly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemWeekly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemWeekly.java index 6e53973a..37a7f6f2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemWeekly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyPolicyItemWeekly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetBackupCompliancePolicyPolicyItemWeekly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyPolicyItemWeekly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetBackupCompliancePolicyPolicyItemWeekly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyResult.java index 4d1ae96f..b786aafe 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetBackupCompliancePolicyResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetBackupCompliancePolicyOnDemandPolicyItem; import com.pulumi.mongodbatlas.outputs.GetBackupCompliancePolicyPolicyItemDaily; import com.pulumi.mongodbatlas.outputs.GetBackupCompliancePolicyPolicyItemHourly; @@ -228,56 +229,81 @@ public Builder(GetBackupCompliancePolicyResult defaults) { @CustomType.Setter public Builder authorizedEmail(String authorizedEmail) { - this.authorizedEmail = Objects.requireNonNull(authorizedEmail); + if (authorizedEmail == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "authorizedEmail"); + } + this.authorizedEmail = authorizedEmail; return this; } @CustomType.Setter public Builder authorizedUserFirstName(String authorizedUserFirstName) { - this.authorizedUserFirstName = Objects.requireNonNull(authorizedUserFirstName); + if (authorizedUserFirstName == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "authorizedUserFirstName"); + } + this.authorizedUserFirstName = authorizedUserFirstName; return this; } @CustomType.Setter public Builder authorizedUserLastName(String authorizedUserLastName) { - this.authorizedUserLastName = Objects.requireNonNull(authorizedUserLastName); + if (authorizedUserLastName == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "authorizedUserLastName"); + } + this.authorizedUserLastName = authorizedUserLastName; return this; } @CustomType.Setter public Builder copyProtectionEnabled(Boolean copyProtectionEnabled) { - this.copyProtectionEnabled = Objects.requireNonNull(copyProtectionEnabled); + if (copyProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "copyProtectionEnabled"); + } + this.copyProtectionEnabled = copyProtectionEnabled; return this; } @CustomType.Setter public Builder encryptionAtRestEnabled(Boolean encryptionAtRestEnabled) { - this.encryptionAtRestEnabled = Objects.requireNonNull(encryptionAtRestEnabled); + if (encryptionAtRestEnabled == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "encryptionAtRestEnabled"); + } + this.encryptionAtRestEnabled = encryptionAtRestEnabled; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder onDemandPolicyItem(@Nullable GetBackupCompliancePolicyOnDemandPolicyItem onDemandPolicyItem) { + this.onDemandPolicyItem = onDemandPolicyItem; return this; } @CustomType.Setter public Builder pitEnabled(Boolean pitEnabled) { - this.pitEnabled = Objects.requireNonNull(pitEnabled); + if (pitEnabled == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "pitEnabled"); + } + this.pitEnabled = pitEnabled; return this; } @CustomType.Setter public Builder policyItemDaily(@Nullable GetBackupCompliancePolicyPolicyItemDaily policyItemDaily) { + this.policyItemDaily = policyItemDaily; return this; } @CustomType.Setter public Builder policyItemHourly(@Nullable GetBackupCompliancePolicyPolicyItemHourly policyItemHourly) { + this.policyItemHourly = policyItemHourly; return this; } @CustomType.Setter public Builder policyItemMonthlies(@Nullable List policyItemMonthlies) { + this.policyItemMonthlies = policyItemMonthlies; return this; } @@ -286,6 +312,7 @@ public Builder policyItemMonthlies(GetBackupCompliancePolicyPolicyItemMonthly... } @CustomType.Setter public Builder policyItemWeeklies(@Nullable List policyItemWeeklies) { + this.policyItemWeeklies = policyItemWeeklies; return this; } @@ -294,27 +321,42 @@ public Builder policyItemWeeklies(GetBackupCompliancePolicyPolicyItemWeekly... p } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder restoreWindowDays(Integer restoreWindowDays) { - this.restoreWindowDays = Objects.requireNonNull(restoreWindowDays); + if (restoreWindowDays == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "restoreWindowDays"); + } + this.restoreWindowDays = restoreWindowDays; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder updatedDate(String updatedDate) { - this.updatedDate = Objects.requireNonNull(updatedDate); + if (updatedDate == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "updatedDate"); + } + this.updatedDate = updatedDate; return this; } @CustomType.Setter public Builder updatedUser(String updatedUser) { - this.updatedUser = Objects.requireNonNull(updatedUser); + if (updatedUser == null) { + throw new MissingRequiredPropertyException("GetBackupCompliancePolicyResult", "updatedUser"); + } + this.updatedUser = updatedUser; return this; } public GetBackupCompliancePolicyResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleCopySetting.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleCopySetting.java index cba99e8e..bd9d0f07 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleCopySetting.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleCopySetting.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -100,12 +101,18 @@ public Builder(GetCloudBackupScheduleCopySetting defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleCopySetting", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder frequencies(List frequencies) { - this.frequencies = Objects.requireNonNull(frequencies); + if (frequencies == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleCopySetting", "frequencies"); + } + this.frequencies = frequencies; return this; } public Builder frequencies(String... frequencies) { @@ -113,17 +120,26 @@ public Builder frequencies(String... frequencies) { } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleCopySetting", "regionName"); + } + this.regionName = regionName; return this; } @CustomType.Setter public Builder replicationSpecId(String replicationSpecId) { - this.replicationSpecId = Objects.requireNonNull(replicationSpecId); + if (replicationSpecId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleCopySetting", "replicationSpecId"); + } + this.replicationSpecId = replicationSpecId; return this; } @CustomType.Setter public Builder shouldCopyOplogs(Boolean shouldCopyOplogs) { - this.shouldCopyOplogs = Objects.requireNonNull(shouldCopyOplogs); + if (shouldCopyOplogs == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleCopySetting", "shouldCopyOplogs"); + } + this.shouldCopyOplogs = shouldCopyOplogs; return this; } public GetCloudBackupScheduleCopySetting build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleExport.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleExport.java index f43c02b0..8ab566c9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleExport.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleExport.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupScheduleExport defaults) { @CustomType.Setter public Builder exportBucketId(String exportBucketId) { - this.exportBucketId = Objects.requireNonNull(exportBucketId); + if (exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleExport", "exportBucketId"); + } + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleExport", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } public GetCloudBackupScheduleExport build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemDaily.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemDaily.java index 8d94058a..944a1548 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemDaily.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemDaily.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetCloudBackupSchedulePolicyItemDaily defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemDaily", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemDaily", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemDaily", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemDaily", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemDaily", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetCloudBackupSchedulePolicyItemDaily build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemHourly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemHourly.java index 710d9904..a8ff04d2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemHourly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemHourly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetCloudBackupSchedulePolicyItemHourly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemHourly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemHourly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemHourly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemHourly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemHourly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetCloudBackupSchedulePolicyItemHourly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemMonthly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemMonthly.java index 72d0175c..bbfa239f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemMonthly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemMonthly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetCloudBackupSchedulePolicyItemMonthly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemMonthly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemMonthly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemMonthly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemMonthly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemMonthly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetCloudBackupSchedulePolicyItemMonthly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemWeekly.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemWeekly.java index 40fc347d..c935ac7f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemWeekly.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSchedulePolicyItemWeekly.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetCloudBackupSchedulePolicyItemWeekly defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemWeekly", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemWeekly", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemWeekly", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemWeekly", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSchedulePolicyItemWeekly", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetCloudBackupSchedulePolicyItemWeekly build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleResult.java index 9600f8aa..ca73b7d4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupScheduleResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupScheduleCopySetting; import com.pulumi.mongodbatlas.outputs.GetCloudBackupScheduleExport; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSchedulePolicyItemDaily; @@ -243,22 +244,34 @@ public Builder(GetCloudBackupScheduleResult defaults) { @CustomType.Setter public Builder autoExportEnabled(Boolean autoExportEnabled) { - this.autoExportEnabled = Objects.requireNonNull(autoExportEnabled); + if (autoExportEnabled == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "autoExportEnabled"); + } + this.autoExportEnabled = autoExportEnabled; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder copySettings(List copySettings) { - this.copySettings = Objects.requireNonNull(copySettings); + if (copySettings == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "copySettings"); + } + this.copySettings = copySettings; return this; } public Builder copySettings(GetCloudBackupScheduleCopySetting... copySettings) { @@ -266,7 +279,10 @@ public Builder copySettings(GetCloudBackupScheduleCopySetting... copySettings) { } @CustomType.Setter public Builder exports(List exports) { - this.exports = Objects.requireNonNull(exports); + if (exports == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "exports"); + } + this.exports = exports; return this; } public Builder exports(GetCloudBackupScheduleExport... exports) { @@ -274,22 +290,34 @@ public Builder exports(GetCloudBackupScheduleExport... exports) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder idPolicy(String idPolicy) { - this.idPolicy = Objects.requireNonNull(idPolicy); + if (idPolicy == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "idPolicy"); + } + this.idPolicy = idPolicy; return this; } @CustomType.Setter public Builder nextSnapshot(String nextSnapshot) { - this.nextSnapshot = Objects.requireNonNull(nextSnapshot); + if (nextSnapshot == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "nextSnapshot"); + } + this.nextSnapshot = nextSnapshot; return this; } @CustomType.Setter public Builder policyItemDailies(List policyItemDailies) { - this.policyItemDailies = Objects.requireNonNull(policyItemDailies); + if (policyItemDailies == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "policyItemDailies"); + } + this.policyItemDailies = policyItemDailies; return this; } public Builder policyItemDailies(GetCloudBackupSchedulePolicyItemDaily... policyItemDailies) { @@ -297,7 +325,10 @@ public Builder policyItemDailies(GetCloudBackupSchedulePolicyItemDaily... policy } @CustomType.Setter public Builder policyItemHourlies(List policyItemHourlies) { - this.policyItemHourlies = Objects.requireNonNull(policyItemHourlies); + if (policyItemHourlies == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "policyItemHourlies"); + } + this.policyItemHourlies = policyItemHourlies; return this; } public Builder policyItemHourlies(GetCloudBackupSchedulePolicyItemHourly... policyItemHourlies) { @@ -305,7 +336,10 @@ public Builder policyItemHourlies(GetCloudBackupSchedulePolicyItemHourly... poli } @CustomType.Setter public Builder policyItemMonthlies(List policyItemMonthlies) { - this.policyItemMonthlies = Objects.requireNonNull(policyItemMonthlies); + if (policyItemMonthlies == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "policyItemMonthlies"); + } + this.policyItemMonthlies = policyItemMonthlies; return this; } public Builder policyItemMonthlies(GetCloudBackupSchedulePolicyItemMonthly... policyItemMonthlies) { @@ -313,7 +347,10 @@ public Builder policyItemMonthlies(GetCloudBackupSchedulePolicyItemMonthly... po } @CustomType.Setter public Builder policyItemWeeklies(List policyItemWeeklies) { - this.policyItemWeeklies = Objects.requireNonNull(policyItemWeeklies); + if (policyItemWeeklies == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "policyItemWeeklies"); + } + this.policyItemWeeklies = policyItemWeeklies; return this; } public Builder policyItemWeeklies(GetCloudBackupSchedulePolicyItemWeekly... policyItemWeeklies) { @@ -321,27 +358,42 @@ public Builder policyItemWeeklies(GetCloudBackupSchedulePolicyItemWeekly... poli } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder referenceHourOfDay(Integer referenceHourOfDay) { - this.referenceHourOfDay = Objects.requireNonNull(referenceHourOfDay); + if (referenceHourOfDay == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "referenceHourOfDay"); + } + this.referenceHourOfDay = referenceHourOfDay; return this; } @CustomType.Setter public Builder referenceMinuteOfHour(Integer referenceMinuteOfHour) { - this.referenceMinuteOfHour = Objects.requireNonNull(referenceMinuteOfHour); + if (referenceMinuteOfHour == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "referenceMinuteOfHour"); + } + this.referenceMinuteOfHour = referenceMinuteOfHour; return this; } @CustomType.Setter public Builder restoreWindowDays(Integer restoreWindowDays) { - this.restoreWindowDays = Objects.requireNonNull(restoreWindowDays); + if (restoreWindowDays == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "restoreWindowDays"); + } + this.restoreWindowDays = restoreWindowDays; return this; } @CustomType.Setter public Builder useOrgAndGroupNamesInExportPrefix(Boolean useOrgAndGroupNamesInExportPrefix) { - this.useOrgAndGroupNamesInExportPrefix = Objects.requireNonNull(useOrgAndGroupNamesInExportPrefix); + if (useOrgAndGroupNamesInExportPrefix == null) { + throw new MissingRequiredPropertyException("GetCloudBackupScheduleResult", "useOrgAndGroupNamesInExportPrefix"); + } + this.useOrgAndGroupNamesInExportPrefix = useOrgAndGroupNamesInExportPrefix; return this; } public GetCloudBackupScheduleResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java index 1a151cf5..72b40e2c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -88,32 +89,50 @@ public Builder(GetCloudBackupSnapshotExportBucketResult defaults) { @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder exportBucketId(String exportBucketId) { - this.exportBucketId = Objects.requireNonNull(exportBucketId); + if (exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "exportBucketId"); + } + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder iamRoleId(String iamRoleId) { - this.iamRoleId = Objects.requireNonNull(iamRoleId); + if (iamRoleId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "iamRoleId"); + } + this.iamRoleId = iamRoleId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketResult", "projectId"); + } + this.projectId = projectId; return this; } public GetCloudBackupSnapshotExportBucketResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsInvokeResult.java index 011903c1..e0886247 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportBucketsResult; import java.lang.Integer; import java.lang.String; @@ -93,27 +94,38 @@ public Builder(GetCloudBackupSnapshotExportBucketsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetCloudBackupSnapshotExportBucketsResult... results) { @@ -121,7 +133,10 @@ public Builder results(GetCloudBackupSnapshotExportBucketsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetCloudBackupSnapshotExportBucketsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsResult.java index a3eb812f..3d25f1f7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetCloudBackupSnapshotExportBucketsResult defaults) { @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsResult", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsResult", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder exportBucketId(String exportBucketId) { - this.exportBucketId = Objects.requireNonNull(exportBucketId); + if (exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsResult", "exportBucketId"); + } + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder iamRoleId(String iamRoleId) { - this.iamRoleId = Objects.requireNonNull(iamRoleId); + if (iamRoleId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketsResult", "iamRoleId"); + } + this.iamRoleId = iamRoleId; return this; } public GetCloudBackupSnapshotExportBucketsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobComponent.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobComponent.java index 17e3c88f..0c90deda 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobComponent.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobComponent.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotExportJobComponent defaults) { @CustomType.Setter public Builder exportId(String exportId) { - this.exportId = Objects.requireNonNull(exportId); + if (exportId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobComponent", "exportId"); + } + this.exportId = exportId; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobComponent", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } public GetCloudBackupSnapshotExportJobComponent build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobCustomData.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobCustomData.java index 4fb4b280..4059268d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobCustomData.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobCustomData.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotExportJobCustomData defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobCustomData", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobCustomData", "value"); + } + this.value = value; return this; } public GetCloudBackupSnapshotExportJobCustomData build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java index 4831600a..c5b3ece0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportJobComponent; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportJobCustomData; import java.lang.Integer; @@ -196,12 +197,18 @@ public Builder(GetCloudBackupSnapshotExportJobResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder components(List components) { - this.components = Objects.requireNonNull(components); + if (components == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "components"); + } + this.components = components; return this; } public Builder components(GetCloudBackupSnapshotExportJobComponent... components) { @@ -209,12 +216,18 @@ public Builder components(GetCloudBackupSnapshotExportJobComponent... components } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder customDatas(List customDatas) { - this.customDatas = Objects.requireNonNull(customDatas); + if (customDatas == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "customDatas"); + } + this.customDatas = customDatas; return this; } public Builder customDatas(GetCloudBackupSnapshotExportJobCustomData... customDatas) { @@ -222,57 +235,90 @@ public Builder customDatas(GetCloudBackupSnapshotExportJobCustomData... customDa } @CustomType.Setter public Builder errMsg(String errMsg) { - this.errMsg = Objects.requireNonNull(errMsg); + if (errMsg == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "errMsg"); + } + this.errMsg = errMsg; return this; } @CustomType.Setter public Builder exportBucketId(String exportBucketId) { - this.exportBucketId = Objects.requireNonNull(exportBucketId); + if (exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "exportBucketId"); + } + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder exportJobId(String exportJobId) { - this.exportJobId = Objects.requireNonNull(exportJobId); + if (exportJobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "exportJobId"); + } + this.exportJobId = exportJobId; return this; } @CustomType.Setter public Builder exportStatusExportedCollections(Integer exportStatusExportedCollections) { - this.exportStatusExportedCollections = Objects.requireNonNull(exportStatusExportedCollections); + if (exportStatusExportedCollections == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "exportStatusExportedCollections"); + } + this.exportStatusExportedCollections = exportStatusExportedCollections; return this; } @CustomType.Setter public Builder exportStatusTotalCollections(Integer exportStatusTotalCollections) { - this.exportStatusTotalCollections = Objects.requireNonNull(exportStatusTotalCollections); + if (exportStatusTotalCollections == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "exportStatusTotalCollections"); + } + this.exportStatusTotalCollections = exportStatusTotalCollections; return this; } @CustomType.Setter public Builder finishedAt(String finishedAt) { - this.finishedAt = Objects.requireNonNull(finishedAt); + if (finishedAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "finishedAt"); + } + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder prefix(String prefix) { - this.prefix = Objects.requireNonNull(prefix); + if (prefix == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "prefix"); + } + this.prefix = prefix; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobResult", "state"); + } + this.state = state; return this; } public GetCloudBackupSnapshotExportJobResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsInvokeResult.java index 371e8db0..64b1d6ae 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportJobsResult; import java.lang.Integer; import java.lang.String; @@ -99,32 +100,46 @@ public Builder(GetCloudBackupSnapshotExportJobsInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetCloudBackupSnapshotExportJobsResult... results) { @@ -132,7 +147,10 @@ public Builder results(GetCloudBackupSnapshotExportJobsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetCloudBackupSnapshotExportJobsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResult.java index b58ae071..37c8f96c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportJobsResultComponent; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotExportJobsResultCustomData; import java.lang.Integer; @@ -178,7 +179,10 @@ public Builder(GetCloudBackupSnapshotExportJobsResult defaults) { @CustomType.Setter public Builder components(List components) { - this.components = Objects.requireNonNull(components); + if (components == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "components"); + } + this.components = components; return this; } public Builder components(GetCloudBackupSnapshotExportJobsResultComponent... components) { @@ -186,12 +190,18 @@ public Builder components(GetCloudBackupSnapshotExportJobsResultComponent... com } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder customDatas(List customDatas) { - this.customDatas = Objects.requireNonNull(customDatas); + if (customDatas == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "customDatas"); + } + this.customDatas = customDatas; return this; } public Builder customDatas(GetCloudBackupSnapshotExportJobsResultCustomData... customDatas) { @@ -199,47 +209,74 @@ public Builder customDatas(GetCloudBackupSnapshotExportJobsResultCustomData... c } @CustomType.Setter public Builder errMsg(String errMsg) { - this.errMsg = Objects.requireNonNull(errMsg); + if (errMsg == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "errMsg"); + } + this.errMsg = errMsg; return this; } @CustomType.Setter public Builder exportBucketId(String exportBucketId) { - this.exportBucketId = Objects.requireNonNull(exportBucketId); + if (exportBucketId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "exportBucketId"); + } + this.exportBucketId = exportBucketId; return this; } @CustomType.Setter public Builder exportJobId(String exportJobId) { - this.exportJobId = Objects.requireNonNull(exportJobId); + if (exportJobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "exportJobId"); + } + this.exportJobId = exportJobId; return this; } @CustomType.Setter public Builder exportStatusExportedCollections(Integer exportStatusExportedCollections) { - this.exportStatusExportedCollections = Objects.requireNonNull(exportStatusExportedCollections); + if (exportStatusExportedCollections == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "exportStatusExportedCollections"); + } + this.exportStatusExportedCollections = exportStatusExportedCollections; return this; } @CustomType.Setter public Builder exportStatusTotalCollections(Integer exportStatusTotalCollections) { - this.exportStatusTotalCollections = Objects.requireNonNull(exportStatusTotalCollections); + if (exportStatusTotalCollections == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "exportStatusTotalCollections"); + } + this.exportStatusTotalCollections = exportStatusTotalCollections; return this; } @CustomType.Setter public Builder finishedAt(String finishedAt) { - this.finishedAt = Objects.requireNonNull(finishedAt); + if (finishedAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "finishedAt"); + } + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder prefix(String prefix) { - this.prefix = Objects.requireNonNull(prefix); + if (prefix == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "prefix"); + } + this.prefix = prefix; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResult", "state"); + } + this.state = state; return this; } public GetCloudBackupSnapshotExportJobsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultComponent.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultComponent.java index 34defd49..c0580df0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultComponent.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultComponent.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotExportJobsResultComponent defaults) { @CustomType.Setter public Builder exportId(String exportId) { - this.exportId = Objects.requireNonNull(exportId); + if (exportId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResultComponent", "exportId"); + } + this.exportId = exportId; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResultComponent", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } public GetCloudBackupSnapshotExportJobsResultComponent build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultCustomData.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultCustomData.java index 3f7c3230..46318d9f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultCustomData.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobsResultCustomData.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotExportJobsResultCustomData defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResultCustomData", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobsResultCustomData", "value"); + } + this.value = value; return this; } public GetCloudBackupSnapshotExportJobsResultCustomData build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotMember.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotMember.java index 2819e073..8b7010df 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotMember.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotMember.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotMember defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotMember", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotMember", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotMember", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } public GetCloudBackupSnapshotMember build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java index b99bddda..4412c1d2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -235,27 +236,42 @@ public Builder(GetCloudBackupSnapshotRestoreJobResult defaults) { @CustomType.Setter public Builder cancelled(Boolean cancelled) { - this.cancelled = Objects.requireNonNull(cancelled); + if (cancelled == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "cancelled"); + } + this.cancelled = cancelled; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder deliveryType(String deliveryType) { - this.deliveryType = Objects.requireNonNull(deliveryType); + if (deliveryType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "deliveryType"); + } + this.deliveryType = deliveryType; return this; } @CustomType.Setter public Builder deliveryUrls(List deliveryUrls) { - this.deliveryUrls = Objects.requireNonNull(deliveryUrls); + if (deliveryUrls == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "deliveryUrls"); + } + this.deliveryUrls = deliveryUrls; return this; } public Builder deliveryUrls(String... deliveryUrls) { @@ -263,67 +279,106 @@ public Builder deliveryUrls(String... deliveryUrls) { } @CustomType.Setter public Builder expired(Boolean expired) { - this.expired = Objects.requireNonNull(expired); + if (expired == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "expired"); + } + this.expired = expired; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder finishedAt(String finishedAt) { - this.finishedAt = Objects.requireNonNull(finishedAt); + if (finishedAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "finishedAt"); + } + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder jobId(String jobId) { - this.jobId = Objects.requireNonNull(jobId); + if (jobId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "jobId"); + } + this.jobId = jobId; return this; } @CustomType.Setter public Builder oplogInc(Integer oplogInc) { - this.oplogInc = Objects.requireNonNull(oplogInc); + if (oplogInc == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "oplogInc"); + } + this.oplogInc = oplogInc; return this; } @CustomType.Setter public Builder oplogTs(Integer oplogTs) { - this.oplogTs = Objects.requireNonNull(oplogTs); + if (oplogTs == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "oplogTs"); + } + this.oplogTs = oplogTs; return this; } @CustomType.Setter public Builder pointInTimeUtcSeconds(Integer pointInTimeUtcSeconds) { - this.pointInTimeUtcSeconds = Objects.requireNonNull(pointInTimeUtcSeconds); + if (pointInTimeUtcSeconds == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "pointInTimeUtcSeconds"); + } + this.pointInTimeUtcSeconds = pointInTimeUtcSeconds; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder targetClusterName(String targetClusterName) { - this.targetClusterName = Objects.requireNonNull(targetClusterName); + if (targetClusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "targetClusterName"); + } + this.targetClusterName = targetClusterName; return this; } @CustomType.Setter public Builder targetProjectId(String targetProjectId) { - this.targetProjectId = Objects.requireNonNull(targetProjectId); + if (targetProjectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "targetProjectId"); + } + this.targetProjectId = targetProjectId; return this; } @CustomType.Setter public Builder timestamp(String timestamp) { - this.timestamp = Objects.requireNonNull(timestamp); + if (timestamp == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "timestamp"); + } + this.timestamp = timestamp; return this; } public GetCloudBackupSnapshotRestoreJobResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsInvokeResult.java index a885b99c..eee0a1f9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotRestoreJobsResult; import java.lang.Integer; import java.lang.String; @@ -91,32 +92,46 @@ public Builder(GetCloudBackupSnapshotRestoreJobsInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetCloudBackupSnapshotRestoreJobsResult... results) { @@ -124,7 +139,10 @@ public Builder results(GetCloudBackupSnapshotRestoreJobsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetCloudBackupSnapshotRestoreJobsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java index a5e3d198..aafc22e1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -217,22 +218,34 @@ public Builder(GetCloudBackupSnapshotRestoreJobsResult defaults) { @CustomType.Setter public Builder cancelled(Boolean cancelled) { - this.cancelled = Objects.requireNonNull(cancelled); + if (cancelled == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "cancelled"); + } + this.cancelled = cancelled; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder deliveryType(String deliveryType) { - this.deliveryType = Objects.requireNonNull(deliveryType); + if (deliveryType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "deliveryType"); + } + this.deliveryType = deliveryType; return this; } @CustomType.Setter public Builder deliveryUrls(List deliveryUrls) { - this.deliveryUrls = Objects.requireNonNull(deliveryUrls); + if (deliveryUrls == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "deliveryUrls"); + } + this.deliveryUrls = deliveryUrls; return this; } public Builder deliveryUrls(String... deliveryUrls) { @@ -240,57 +253,90 @@ public Builder deliveryUrls(String... deliveryUrls) { } @CustomType.Setter public Builder expired(Boolean expired) { - this.expired = Objects.requireNonNull(expired); + if (expired == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "expired"); + } + this.expired = expired; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder finishedAt(String finishedAt) { - this.finishedAt = Objects.requireNonNull(finishedAt); + if (finishedAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "finishedAt"); + } + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder oplogInc(Integer oplogInc) { - this.oplogInc = Objects.requireNonNull(oplogInc); + if (oplogInc == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "oplogInc"); + } + this.oplogInc = oplogInc; return this; } @CustomType.Setter public Builder oplogTs(Integer oplogTs) { - this.oplogTs = Objects.requireNonNull(oplogTs); + if (oplogTs == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "oplogTs"); + } + this.oplogTs = oplogTs; return this; } @CustomType.Setter public Builder pointInTimeUtcSeconds(Integer pointInTimeUtcSeconds) { - this.pointInTimeUtcSeconds = Objects.requireNonNull(pointInTimeUtcSeconds); + if (pointInTimeUtcSeconds == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "pointInTimeUtcSeconds"); + } + this.pointInTimeUtcSeconds = pointInTimeUtcSeconds; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder targetClusterName(String targetClusterName) { - this.targetClusterName = Objects.requireNonNull(targetClusterName); + if (targetClusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "targetClusterName"); + } + this.targetClusterName = targetClusterName; return this; } @CustomType.Setter public Builder targetProjectId(String targetProjectId) { - this.targetProjectId = Objects.requireNonNull(targetProjectId); + if (targetProjectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "targetProjectId"); + } + this.targetProjectId = targetProjectId; return this; } @CustomType.Setter public Builder timestamp(String timestamp) { - this.timestamp = Objects.requireNonNull(timestamp); + if (timestamp == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobsResult", "timestamp"); + } + this.timestamp = timestamp; return this; } public GetCloudBackupSnapshotRestoreJobsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotResult.java index 75e08ede..3f228046 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotMember; import java.lang.Integer; import java.lang.String; @@ -245,42 +246,66 @@ public Builder(GetCloudBackupSnapshotResult defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder masterKeyUuid(String masterKeyUuid) { - this.masterKeyUuid = Objects.requireNonNull(masterKeyUuid); + if (masterKeyUuid == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "masterKeyUuid"); + } + this.masterKeyUuid = masterKeyUuid; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "members"); + } + this.members = members; return this; } public Builder members(GetCloudBackupSnapshotMember... members) { @@ -288,27 +313,42 @@ public Builder members(GetCloudBackupSnapshotMember... members) { } @CustomType.Setter public Builder mongodVersion(String mongodVersion) { - this.mongodVersion = Objects.requireNonNull(mongodVersion); + if (mongodVersion == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "mongodVersion"); + } + this.mongodVersion = mongodVersion; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder snapshotIds(List snapshotIds) { - this.snapshotIds = Objects.requireNonNull(snapshotIds); + if (snapshotIds == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "snapshotIds"); + } + this.snapshotIds = snapshotIds; return this; } public Builder snapshotIds(String... snapshotIds) { @@ -316,22 +356,34 @@ public Builder snapshotIds(String... snapshotIds) { } @CustomType.Setter public Builder snapshotType(String snapshotType) { - this.snapshotType = Objects.requireNonNull(snapshotType); + if (snapshotType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "snapshotType"); + } + this.snapshotType = snapshotType; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder storageSizeBytes(Integer storageSizeBytes) { - this.storageSizeBytes = Objects.requireNonNull(storageSizeBytes); + if (storageSizeBytes == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "storageSizeBytes"); + } + this.storageSizeBytes = storageSizeBytes; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotResult", "type"); + } + this.type = type; return this; } public GetCloudBackupSnapshotResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsInvokeResult.java index c91723fe..26709b7f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotsResult; import java.lang.Integer; import java.lang.String; @@ -91,32 +92,46 @@ public Builder(GetCloudBackupSnapshotsInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetCloudBackupSnapshotsResult... results) { @@ -124,7 +139,10 @@ public Builder results(GetCloudBackupSnapshotsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetCloudBackupSnapshotsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResult.java index f6e3ab44..4f480e89 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudBackupSnapshotsResultMember; import java.lang.Integer; import java.lang.String; @@ -227,37 +228,58 @@ public Builder(GetCloudBackupSnapshotsResult defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder masterKeyUuid(String masterKeyUuid) { - this.masterKeyUuid = Objects.requireNonNull(masterKeyUuid); + if (masterKeyUuid == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "masterKeyUuid"); + } + this.masterKeyUuid = masterKeyUuid; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "members"); + } + this.members = members; return this; } public Builder members(GetCloudBackupSnapshotsResultMember... members) { @@ -265,17 +287,26 @@ public Builder members(GetCloudBackupSnapshotsResultMember... members) { } @CustomType.Setter public Builder mongodVersion(String mongodVersion) { - this.mongodVersion = Objects.requireNonNull(mongodVersion); + if (mongodVersion == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "mongodVersion"); + } + this.mongodVersion = mongodVersion; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } @CustomType.Setter public Builder snapshotIds(List snapshotIds) { - this.snapshotIds = Objects.requireNonNull(snapshotIds); + if (snapshotIds == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "snapshotIds"); + } + this.snapshotIds = snapshotIds; return this; } public Builder snapshotIds(String... snapshotIds) { @@ -283,22 +314,34 @@ public Builder snapshotIds(String... snapshotIds) { } @CustomType.Setter public Builder snapshotType(String snapshotType) { - this.snapshotType = Objects.requireNonNull(snapshotType); + if (snapshotType == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "snapshotType"); + } + this.snapshotType = snapshotType; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder storageSizeBytes(Integer storageSizeBytes) { - this.storageSizeBytes = Objects.requireNonNull(storageSizeBytes); + if (storageSizeBytes == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "storageSizeBytes"); + } + this.storageSizeBytes = storageSizeBytes; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResult", "type"); + } + this.type = type; return this; } public GetCloudBackupSnapshotsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResultMember.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResultMember.java index a46db3e4..44e74266 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResultMember.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotsResultMember.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudBackupSnapshotsResultMember defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResultMember", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResultMember", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetCloudBackupSnapshotsResultMember", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } public GetCloudBackupSnapshotsResultMember build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRole.java index a00e89a5..1e3d09e6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudProviderAccessAwsIamRoleFeatureUsage; import java.lang.String; import java.util.List; @@ -142,27 +143,42 @@ public Builder(GetCloudProviderAccessAwsIamRole defaults) { @CustomType.Setter public Builder atlasAssumedRoleExternalId(String atlasAssumedRoleExternalId) { - this.atlasAssumedRoleExternalId = Objects.requireNonNull(atlasAssumedRoleExternalId); + if (atlasAssumedRoleExternalId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "atlasAssumedRoleExternalId"); + } + this.atlasAssumedRoleExternalId = atlasAssumedRoleExternalId; return this; } @CustomType.Setter public Builder atlasAwsAccountArn(String atlasAwsAccountArn) { - this.atlasAwsAccountArn = Objects.requireNonNull(atlasAwsAccountArn); + if (atlasAwsAccountArn == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "atlasAwsAccountArn"); + } + this.atlasAwsAccountArn = atlasAwsAccountArn; return this; } @CustomType.Setter public Builder authorizedDate(String authorizedDate) { - this.authorizedDate = Objects.requireNonNull(authorizedDate); + if (authorizedDate == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "authorizedDate"); + } + this.authorizedDate = authorizedDate; return this; } @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder featureUsages(List featureUsages) { - this.featureUsages = Objects.requireNonNull(featureUsages); + if (featureUsages == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "featureUsages"); + } + this.featureUsages = featureUsages; return this; } public Builder featureUsages(GetCloudProviderAccessAwsIamRoleFeatureUsage... featureUsages) { @@ -170,17 +186,26 @@ public Builder featureUsages(GetCloudProviderAccessAwsIamRoleFeatureUsage... fea } @CustomType.Setter public Builder iamAssumedRoleArn(String iamAssumedRoleArn) { - this.iamAssumedRoleArn = Objects.requireNonNull(iamAssumedRoleArn); + if (iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "iamAssumedRoleArn"); + } + this.iamAssumedRoleArn = iamAssumedRoleArn; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder roleId(String roleId) { - this.roleId = Objects.requireNonNull(roleId); + if (roleId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRole", "roleId"); + } + this.roleId = roleId; return this; } public GetCloudProviderAccessAwsIamRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRoleFeatureUsage.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRoleFeatureUsage.java index 7fc93db9..2e84371a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRoleFeatureUsage.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessAwsIamRoleFeatureUsage.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -42,12 +43,18 @@ public Builder(GetCloudProviderAccessAwsIamRoleFeatureUsage defaults) { @CustomType.Setter public Builder featureId(Map featureId) { - this.featureId = Objects.requireNonNull(featureId); + if (featureId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRoleFeatureUsage", "featureId"); + } + this.featureId = featureId; return this; } @CustomType.Setter public Builder featureType(String featureType) { - this.featureType = Objects.requireNonNull(featureType); + if (featureType == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessAwsIamRoleFeatureUsage", "featureType"); + } + this.featureType = featureType; return this; } public GetCloudProviderAccessAwsIamRoleFeatureUsage build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessResult.java index 248a1b54..4b5f90d2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudProviderAccessAwsIamRole; import java.lang.String; import java.util.List; @@ -64,7 +65,10 @@ public Builder(GetCloudProviderAccessResult defaults) { @CustomType.Setter public Builder awsIamRoles(List awsIamRoles) { - this.awsIamRoles = Objects.requireNonNull(awsIamRoles); + if (awsIamRoles == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessResult", "awsIamRoles"); + } + this.awsIamRoles = awsIamRoles; return this; } public Builder awsIamRoles(GetCloudProviderAccessAwsIamRole... awsIamRoles) { @@ -72,12 +76,18 @@ public Builder awsIamRoles(GetCloudProviderAccessAwsIamRole... awsIamRoles) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessResult", "projectId"); + } + this.projectId = projectId; return this; } public GetCloudProviderAccessResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAwsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAwsConfig.java index 0b00b970..d42f1000 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAwsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAwsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudProviderAccessSetupAwsConfig defaults) { @CustomType.Setter public Builder atlasAssumedRoleExternalId(String atlasAssumedRoleExternalId) { - this.atlasAssumedRoleExternalId = Objects.requireNonNull(atlasAssumedRoleExternalId); + if (atlasAssumedRoleExternalId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAwsConfig", "atlasAssumedRoleExternalId"); + } + this.atlasAssumedRoleExternalId = atlasAssumedRoleExternalId; return this; } @CustomType.Setter public Builder atlasAwsAccountArn(String atlasAwsAccountArn) { - this.atlasAwsAccountArn = Objects.requireNonNull(atlasAwsAccountArn); + if (atlasAwsAccountArn == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAwsConfig", "atlasAwsAccountArn"); + } + this.atlasAwsAccountArn = atlasAwsAccountArn; return this; } public GetCloudProviderAccessSetupAwsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAzureConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAzureConfig.java index 8787dbd3..1adc75fa 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAzureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupAzureConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCloudProviderAccessSetupAzureConfig defaults) { @CustomType.Setter public Builder atlasAzureAppId(String atlasAzureAppId) { - this.atlasAzureAppId = Objects.requireNonNull(atlasAzureAppId); + if (atlasAzureAppId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "atlasAzureAppId"); + } + this.atlasAzureAppId = atlasAzureAppId; return this; } @CustomType.Setter public Builder servicePrincipalId(String servicePrincipalId) { - this.servicePrincipalId = Objects.requireNonNull(servicePrincipalId); + if (servicePrincipalId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "servicePrincipalId"); + } + this.servicePrincipalId = servicePrincipalId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupAzureConfig", "tenantId"); + } + this.tenantId = tenantId; return this; } public GetCloudProviderAccessSetupAzureConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupResult.java index a58d3de0..9905380d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudProviderAccessSetupResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCloudProviderAccessSetupAwsConfig; import com.pulumi.mongodbatlas.outputs.GetCloudProviderAccessSetupAzureConfig; import java.lang.String; @@ -135,12 +136,18 @@ public Builder(GetCloudProviderAccessSetupResult defaults) { @CustomType.Setter public Builder aws(Map aws) { - this.aws = Objects.requireNonNull(aws); + if (aws == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "aws"); + } + this.aws = aws; return this; } @CustomType.Setter public Builder awsConfigs(List awsConfigs) { - this.awsConfigs = Objects.requireNonNull(awsConfigs); + if (awsConfigs == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "awsConfigs"); + } + this.awsConfigs = awsConfigs; return this; } public Builder awsConfigs(GetCloudProviderAccessSetupAwsConfig... awsConfigs) { @@ -148,6 +155,7 @@ public Builder awsConfigs(GetCloudProviderAccessSetupAwsConfig... awsConfigs) { } @CustomType.Setter public Builder azureConfigs(@Nullable List azureConfigs) { + this.azureConfigs = azureConfigs; return this; } @@ -156,32 +164,50 @@ public Builder azureConfigs(GetCloudProviderAccessSetupAzureConfig... azureConfi } @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { - this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); + if (lastUpdatedDate == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "lastUpdatedDate"); + } + this.lastUpdatedDate = lastUpdatedDate; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder roleId(String roleId) { - this.roleId = Objects.requireNonNull(roleId); + if (roleId == null) { + throw new MissingRequiredPropertyException("GetCloudProviderAccessSetupResult", "roleId"); + } + this.roleId = roleId; return this; } public GetCloudProviderAccessSetupResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterAdvancedConfiguration.java index f8339c4c..b0e14a87 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterAdvancedConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -184,57 +185,90 @@ public Builder(GetClusterAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(String defaultReadConcern) { - this.defaultReadConcern = Objects.requireNonNull(defaultReadConcern); + if (defaultReadConcern == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "defaultReadConcern"); + } + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(String defaultWriteConcern) { - this.defaultWriteConcern = Objects.requireNonNull(defaultWriteConcern); + if (defaultWriteConcern == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "defaultWriteConcern"); + } + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(Boolean failIndexKeyTooLong) { - this.failIndexKeyTooLong = Objects.requireNonNull(failIndexKeyTooLong); + if (failIndexKeyTooLong == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "failIndexKeyTooLong"); + } + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(Boolean javascriptEnabled) { - this.javascriptEnabled = Objects.requireNonNull(javascriptEnabled); + if (javascriptEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "javascriptEnabled"); + } + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(String minimumEnabledTlsProtocol) { - this.minimumEnabledTlsProtocol = Objects.requireNonNull(minimumEnabledTlsProtocol); + if (minimumEnabledTlsProtocol == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "minimumEnabledTlsProtocol"); + } + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(Boolean noTableScan) { - this.noTableScan = Objects.requireNonNull(noTableScan); + if (noTableScan == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "noTableScan"); + } + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(Integer oplogMinRetentionHours) { - this.oplogMinRetentionHours = Objects.requireNonNull(oplogMinRetentionHours); + if (oplogMinRetentionHours == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "oplogMinRetentionHours"); + } + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(Integer oplogSizeMb) { - this.oplogSizeMb = Objects.requireNonNull(oplogSizeMb); + if (oplogSizeMb == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "oplogSizeMb"); + } + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(Integer sampleRefreshIntervalBiConnector) { - this.sampleRefreshIntervalBiConnector = Objects.requireNonNull(sampleRefreshIntervalBiConnector); + if (sampleRefreshIntervalBiConnector == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "sampleRefreshIntervalBiConnector"); + } + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(Integer sampleSizeBiConnector) { - this.sampleSizeBiConnector = Objects.requireNonNull(sampleSizeBiConnector); + if (sampleSizeBiConnector == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "sampleSizeBiConnector"); + } + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(Integer transactionLifetimeLimitSeconds) { - this.transactionLifetimeLimitSeconds = Objects.requireNonNull(transactionLifetimeLimitSeconds); + if (transactionLifetimeLimitSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAdvancedConfiguration", "transactionLifetimeLimitSeconds"); + } + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } public GetClusterAdvancedConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterBiConnectorConfig.java index c126b773..a1e00826 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterBiConnectorConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetClusterBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetClusterBiConnectorConfig", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(String readPreference) { - this.readPreference = Objects.requireNonNull(readPreference); + if (readPreference == null) { + throw new MissingRequiredPropertyException("GetClusterBiConnectorConfig", "readPreference"); + } + this.readPreference = readPreference; return this; } public GetClusterBiConnectorConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionString.java index 0dad3d6a..8c1b6adc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionString.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterConnectionStringPrivateEndpoint; import java.lang.Object; import java.lang.String; @@ -74,22 +75,34 @@ public Builder(GetClusterConnectionString defaults) { @CustomType.Setter public Builder awsPrivateLink(Map awsPrivateLink) { - this.awsPrivateLink = Objects.requireNonNull(awsPrivateLink); + if (awsPrivateLink == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "awsPrivateLink"); + } + this.awsPrivateLink = awsPrivateLink; return this; } @CustomType.Setter public Builder awsPrivateLinkSrv(Map awsPrivateLinkSrv) { - this.awsPrivateLinkSrv = Objects.requireNonNull(awsPrivateLinkSrv); + if (awsPrivateLinkSrv == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "awsPrivateLinkSrv"); + } + this.awsPrivateLinkSrv = awsPrivateLinkSrv; return this; } @CustomType.Setter("private") public Builder private_(String private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(List privateEndpoints) { - this.privateEndpoints = Objects.requireNonNull(privateEndpoints); + if (privateEndpoints == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "privateEndpoints"); + } + this.privateEndpoints = privateEndpoints; return this; } public Builder privateEndpoints(GetClusterConnectionStringPrivateEndpoint... privateEndpoints) { @@ -97,17 +110,26 @@ public Builder privateEndpoints(GetClusterConnectionStringPrivateEndpoint... pri } @CustomType.Setter public Builder privateSrv(String privateSrv) { - this.privateSrv = Objects.requireNonNull(privateSrv); + if (privateSrv == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "privateSrv"); + } + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(String standard) { - this.standard = Objects.requireNonNull(standard); + if (standard == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "standard"); + } + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(String standardSrv) { - this.standardSrv = Objects.requireNonNull(standardSrv); + if (standardSrv == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionString", "standardSrv"); + } + this.standardSrv = standardSrv; return this; } public GetClusterConnectionString build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpoint.java index 05a8cc57..429dcc19 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterConnectionStringPrivateEndpointEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetClusterConnectionStringPrivateEndpoint defaults) { @CustomType.Setter public Builder connectionString(String connectionString) { - this.connectionString = Objects.requireNonNull(connectionString); + if (connectionString == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpoint", "connectionString"); + } + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpoint", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(GetClusterConnectionStringPrivateEndpointEndpoint... endpoints) { @@ -73,17 +80,26 @@ public Builder endpoints(GetClusterConnectionStringPrivateEndpointEndpoint... en } @CustomType.Setter public Builder srvConnectionString(String srvConnectionString) { - this.srvConnectionString = Objects.requireNonNull(srvConnectionString); + if (srvConnectionString == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpoint", "srvConnectionString"); + } + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(String srvShardOptimizedConnectionString) { - this.srvShardOptimizedConnectionString = Objects.requireNonNull(srvShardOptimizedConnectionString); + if (srvShardOptimizedConnectionString == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpoint", "srvShardOptimizedConnectionString"); + } + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpoint", "type"); + } + this.type = type; return this; } public GetClusterConnectionStringPrivateEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpointEndpoint.java index 867a0ef0..347df338 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterConnectionStringPrivateEndpointEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetClusterConnectionStringPrivateEndpointEndpoint defaults) { @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpointEndpoint", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpointEndpoint", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterConnectionStringPrivateEndpointEndpoint", "region"); + } + this.region = region; return this; } public GetClusterConnectionStringPrivateEndpointEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterLabel.java index 95a905eb..05157a59 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetClusterLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClusterLabel", "value"); + } + this.value = value; return this; } public GetClusterLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationOutageFilter.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationOutageFilter.java index 2c7cd43f..e9ef7d23 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationOutageFilter.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationOutageFilter.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetClusterOutageSimulationOutageFilter defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationOutageFilter", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationOutageFilter", "regionName"); + } + this.regionName = regionName; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationOutageFilter", "type"); + } + this.type = type; return this; } public GetClusterOutageSimulationOutageFilter build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationResult.java index e917bdf4..7d952407 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterOutageSimulationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterOutageSimulationOutageFilter; import java.lang.String; import java.util.List; @@ -112,17 +113,26 @@ public Builder(GetClusterOutageSimulationResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder outageFilters(List outageFilters) { - this.outageFilters = Objects.requireNonNull(outageFilters); + if (outageFilters == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "outageFilters"); + } + this.outageFilters = outageFilters; return this; } public Builder outageFilters(GetClusterOutageSimulationOutageFilter... outageFilters) { @@ -130,22 +140,34 @@ public Builder outageFilters(GetClusterOutageSimulationOutageFilter... outageFil } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder simulationId(String simulationId) { - this.simulationId = Objects.requireNonNull(simulationId); + if (simulationId == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "simulationId"); + } + this.simulationId = simulationId; return this; } @CustomType.Setter public Builder startRequestDate(String startRequestDate) { - this.startRequestDate = Objects.requireNonNull(startRequestDate); + if (startRequestDate == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "startRequestDate"); + } + this.startRequestDate = startRequestDate; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetClusterOutageSimulationResult", "state"); + } + this.state = state; return this; } public GetClusterOutageSimulationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpec.java index 15dafc9f..11a118b2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterReplicationSpecRegionsConfig; import java.lang.Integer; import java.lang.String; @@ -87,17 +88,26 @@ public Builder(GetClusterReplicationSpec defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpec", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpec", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionsConfigs(List regionsConfigs) { - this.regionsConfigs = Objects.requireNonNull(regionsConfigs); + if (regionsConfigs == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpec", "regionsConfigs"); + } + this.regionsConfigs = regionsConfigs; return this; } public Builder regionsConfigs(GetClusterReplicationSpecRegionsConfig... regionsConfigs) { @@ -105,7 +115,10 @@ public Builder regionsConfigs(GetClusterReplicationSpecRegionsConfig... regionsC } @CustomType.Setter public Builder zoneName(String zoneName) { - this.zoneName = Objects.requireNonNull(zoneName); + if (zoneName == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpec", "zoneName"); + } + this.zoneName = zoneName; return this; } public GetClusterReplicationSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpecRegionsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpecRegionsConfig.java index ed601cda..11f05081 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpecRegionsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterReplicationSpecRegionsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetClusterReplicationSpecRegionsConfig defaults) { @CustomType.Setter public Builder analyticsNodes(Integer analyticsNodes) { - this.analyticsNodes = Objects.requireNonNull(analyticsNodes); + if (analyticsNodes == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpecRegionsConfig", "analyticsNodes"); + } + this.analyticsNodes = analyticsNodes; return this; } @CustomType.Setter public Builder electableNodes(Integer electableNodes) { - this.electableNodes = Objects.requireNonNull(electableNodes); + if (electableNodes == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpecRegionsConfig", "electableNodes"); + } + this.electableNodes = electableNodes; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpecRegionsConfig", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder readOnlyNodes(Integer readOnlyNodes) { - this.readOnlyNodes = Objects.requireNonNull(readOnlyNodes); + if (readOnlyNodes == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpecRegionsConfig", "readOnlyNodes"); + } + this.readOnlyNodes = readOnlyNodes; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetClusterReplicationSpecRegionsConfig", "regionName"); + } + this.regionName = regionName; return this; } public GetClusterReplicationSpecRegionsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterResult.java index 853db576..5a9d308d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterAdvancedConfiguration; import com.pulumi.mongodbatlas.outputs.GetClusterBiConnectorConfig; import com.pulumi.mongodbatlas.outputs.GetClusterConnectionString; @@ -639,7 +640,10 @@ public Builder(GetClusterResult defaults) { @CustomType.Setter public Builder advancedConfigurations(List advancedConfigurations) { - this.advancedConfigurations = Objects.requireNonNull(advancedConfigurations); + if (advancedConfigurations == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "advancedConfigurations"); + } + this.advancedConfigurations = advancedConfigurations; return this; } public Builder advancedConfigurations(GetClusterAdvancedConfiguration... advancedConfigurations) { @@ -647,32 +651,50 @@ public Builder advancedConfigurations(GetClusterAdvancedConfiguration... advance } @CustomType.Setter public Builder autoScalingComputeEnabled(Boolean autoScalingComputeEnabled) { - this.autoScalingComputeEnabled = Objects.requireNonNull(autoScalingComputeEnabled); + if (autoScalingComputeEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "autoScalingComputeEnabled"); + } + this.autoScalingComputeEnabled = autoScalingComputeEnabled; return this; } @CustomType.Setter public Builder autoScalingComputeScaleDownEnabled(Boolean autoScalingComputeScaleDownEnabled) { - this.autoScalingComputeScaleDownEnabled = Objects.requireNonNull(autoScalingComputeScaleDownEnabled); + if (autoScalingComputeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "autoScalingComputeScaleDownEnabled"); + } + this.autoScalingComputeScaleDownEnabled = autoScalingComputeScaleDownEnabled; return this; } @CustomType.Setter public Builder autoScalingDiskGbEnabled(Boolean autoScalingDiskGbEnabled) { - this.autoScalingDiskGbEnabled = Objects.requireNonNull(autoScalingDiskGbEnabled); + if (autoScalingDiskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "autoScalingDiskGbEnabled"); + } + this.autoScalingDiskGbEnabled = autoScalingDiskGbEnabled; return this; } @CustomType.Setter public Builder backingProviderName(String backingProviderName) { - this.backingProviderName = Objects.requireNonNull(backingProviderName); + if (backingProviderName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "backingProviderName"); + } + this.backingProviderName = backingProviderName; return this; } @CustomType.Setter public Builder backupEnabled(Boolean backupEnabled) { - this.backupEnabled = Objects.requireNonNull(backupEnabled); + if (backupEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "backupEnabled"); + } + this.backupEnabled = backupEnabled; return this; } @CustomType.Setter public Builder biConnectorConfigs(List biConnectorConfigs) { - this.biConnectorConfigs = Objects.requireNonNull(biConnectorConfigs); + if (biConnectorConfigs == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "biConnectorConfigs"); + } + this.biConnectorConfigs = biConnectorConfigs; return this; } public Builder biConnectorConfigs(GetClusterBiConnectorConfig... biConnectorConfigs) { @@ -680,12 +702,18 @@ public Builder biConnectorConfigs(GetClusterBiConnectorConfig... biConnectorConf } @CustomType.Setter public Builder clusterType(String clusterType) { - this.clusterType = Objects.requireNonNull(clusterType); + if (clusterType == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterType"); + } + this.clusterType = clusterType; return this; } @CustomType.Setter public Builder connectionStrings(List connectionStrings) { - this.connectionStrings = Objects.requireNonNull(connectionStrings); + if (connectionStrings == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "connectionStrings"); + } + this.connectionStrings = connectionStrings; return this; } public Builder connectionStrings(GetClusterConnectionString... connectionStrings) { @@ -693,27 +721,42 @@ public Builder connectionStrings(GetClusterConnectionString... connectionStrings } @CustomType.Setter public Builder containerId(String containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder diskSizeGb(Double diskSizeGb) { - this.diskSizeGb = Objects.requireNonNull(diskSizeGb); + if (diskSizeGb == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "diskSizeGb"); + } + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder encryptionAtRestProvider(String encryptionAtRestProvider) { - this.encryptionAtRestProvider = Objects.requireNonNull(encryptionAtRestProvider); + if (encryptionAtRestProvider == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "encryptionAtRestProvider"); + } + this.encryptionAtRestProvider = encryptionAtRestProvider; 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 labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetClusterLabel... labels) { @@ -721,117 +764,186 @@ public Builder labels(GetClusterLabel... labels) { } @CustomType.Setter public Builder mongoDbMajorVersion(String mongoDbMajorVersion) { - this.mongoDbMajorVersion = Objects.requireNonNull(mongoDbMajorVersion); + if (mongoDbMajorVersion == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "mongoDbMajorVersion"); + } + this.mongoDbMajorVersion = mongoDbMajorVersion; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder mongoUri(String mongoUri) { - this.mongoUri = Objects.requireNonNull(mongoUri); + if (mongoUri == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "mongoUri"); + } + this.mongoUri = mongoUri; return this; } @CustomType.Setter public Builder mongoUriUpdated(String mongoUriUpdated) { - this.mongoUriUpdated = Objects.requireNonNull(mongoUriUpdated); + if (mongoUriUpdated == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "mongoUriUpdated"); + } + this.mongoUriUpdated = mongoUriUpdated; return this; } @CustomType.Setter public Builder mongoUriWithOptions(String mongoUriWithOptions) { - this.mongoUriWithOptions = Objects.requireNonNull(mongoUriWithOptions); + if (mongoUriWithOptions == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "mongoUriWithOptions"); + } + this.mongoUriWithOptions = mongoUriWithOptions; 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 numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder pitEnabled(Boolean pitEnabled) { - this.pitEnabled = Objects.requireNonNull(pitEnabled); + if (pitEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "pitEnabled"); + } + this.pitEnabled = pitEnabled; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerAutoScalingComputeMaxInstanceSize(String providerAutoScalingComputeMaxInstanceSize) { - this.providerAutoScalingComputeMaxInstanceSize = Objects.requireNonNull(providerAutoScalingComputeMaxInstanceSize); + if (providerAutoScalingComputeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerAutoScalingComputeMaxInstanceSize"); + } + this.providerAutoScalingComputeMaxInstanceSize = providerAutoScalingComputeMaxInstanceSize; return this; } @CustomType.Setter public Builder providerAutoScalingComputeMinInstanceSize(String providerAutoScalingComputeMinInstanceSize) { - this.providerAutoScalingComputeMinInstanceSize = Objects.requireNonNull(providerAutoScalingComputeMinInstanceSize); + if (providerAutoScalingComputeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerAutoScalingComputeMinInstanceSize"); + } + this.providerAutoScalingComputeMinInstanceSize = providerAutoScalingComputeMinInstanceSize; return this; } @CustomType.Setter public Builder providerBackupEnabled(Boolean providerBackupEnabled) { - this.providerBackupEnabled = Objects.requireNonNull(providerBackupEnabled); + if (providerBackupEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerBackupEnabled"); + } + this.providerBackupEnabled = providerBackupEnabled; return this; } @CustomType.Setter public Builder providerDiskIops(Integer providerDiskIops) { - this.providerDiskIops = Objects.requireNonNull(providerDiskIops); + if (providerDiskIops == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerDiskIops"); + } + this.providerDiskIops = providerDiskIops; return this; } @CustomType.Setter public Builder providerDiskTypeName(String providerDiskTypeName) { - this.providerDiskTypeName = Objects.requireNonNull(providerDiskTypeName); + if (providerDiskTypeName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerDiskTypeName"); + } + this.providerDiskTypeName = providerDiskTypeName; return this; } @CustomType.Setter public Builder providerEncryptEbsVolume(Boolean providerEncryptEbsVolume) { - this.providerEncryptEbsVolume = Objects.requireNonNull(providerEncryptEbsVolume); + if (providerEncryptEbsVolume == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerEncryptEbsVolume"); + } + this.providerEncryptEbsVolume = providerEncryptEbsVolume; return this; } @CustomType.Setter public Builder providerEncryptEbsVolumeFlag(Boolean providerEncryptEbsVolumeFlag) { - this.providerEncryptEbsVolumeFlag = Objects.requireNonNull(providerEncryptEbsVolumeFlag); + if (providerEncryptEbsVolumeFlag == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerEncryptEbsVolumeFlag"); + } + this.providerEncryptEbsVolumeFlag = providerEncryptEbsVolumeFlag; return this; } @CustomType.Setter public Builder providerInstanceSizeName(String providerInstanceSizeName) { - this.providerInstanceSizeName = Objects.requireNonNull(providerInstanceSizeName); + if (providerInstanceSizeName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerInstanceSizeName"); + } + this.providerInstanceSizeName = providerInstanceSizeName; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder providerRegionName(String providerRegionName) { - this.providerRegionName = Objects.requireNonNull(providerRegionName); + if (providerRegionName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerRegionName"); + } + this.providerRegionName = providerRegionName; return this; } @CustomType.Setter public Builder providerVolumeType(String providerVolumeType) { - this.providerVolumeType = Objects.requireNonNull(providerVolumeType); + if (providerVolumeType == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "providerVolumeType"); + } + this.providerVolumeType = providerVolumeType; return this; } @CustomType.Setter public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = Objects.requireNonNull(replicationFactor); + if (replicationFactor == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "replicationFactor"); + } + this.replicationFactor = replicationFactor; return this; } @CustomType.Setter public Builder replicationSpecs(List replicationSpecs) { - this.replicationSpecs = Objects.requireNonNull(replicationSpecs); + if (replicationSpecs == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "replicationSpecs"); + } + this.replicationSpecs = replicationSpecs; return this; } public Builder replicationSpecs(GetClusterReplicationSpec... replicationSpecs) { @@ -839,7 +951,10 @@ public Builder replicationSpecs(GetClusterReplicationSpec... replicationSpecs) { } @CustomType.Setter public Builder snapshotBackupPolicies(List snapshotBackupPolicies) { - this.snapshotBackupPolicies = Objects.requireNonNull(snapshotBackupPolicies); + if (snapshotBackupPolicies == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "snapshotBackupPolicies"); + } + this.snapshotBackupPolicies = snapshotBackupPolicies; return this; } public Builder snapshotBackupPolicies(GetClusterSnapshotBackupPolicy... snapshotBackupPolicies) { @@ -847,17 +962,26 @@ public Builder snapshotBackupPolicies(GetClusterSnapshotBackupPolicy... snapshot } @CustomType.Setter public Builder srvAddress(String srvAddress) { - this.srvAddress = Objects.requireNonNull(srvAddress); + if (srvAddress == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "srvAddress"); + } + this.srvAddress = srvAddress; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetClusterTag... tags) { @@ -865,12 +989,18 @@ public Builder tags(GetClusterTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } @CustomType.Setter public Builder versionReleaseSystem(String versionReleaseSystem) { - this.versionReleaseSystem = Objects.requireNonNull(versionReleaseSystem); + if (versionReleaseSystem == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "versionReleaseSystem"); + } + this.versionReleaseSystem = versionReleaseSystem; return this; } public GetClusterResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicy.java index 1ed8137b..321ece4b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterSnapshotBackupPolicyPolicy; import java.lang.Boolean; import java.lang.Integer; @@ -80,22 +81,34 @@ public Builder(GetClusterSnapshotBackupPolicy defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder nextSnapshot(String nextSnapshot) { - this.nextSnapshot = Objects.requireNonNull(nextSnapshot); + if (nextSnapshot == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "nextSnapshot"); + } + this.nextSnapshot = nextSnapshot; return this; } @CustomType.Setter public Builder policies(List policies) { - this.policies = Objects.requireNonNull(policies); + if (policies == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "policies"); + } + this.policies = policies; return this; } public Builder policies(GetClusterSnapshotBackupPolicyPolicy... policies) { @@ -103,22 +116,34 @@ public Builder policies(GetClusterSnapshotBackupPolicyPolicy... policies) { } @CustomType.Setter public Builder referenceHourOfDay(Integer referenceHourOfDay) { - this.referenceHourOfDay = Objects.requireNonNull(referenceHourOfDay); + if (referenceHourOfDay == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "referenceHourOfDay"); + } + this.referenceHourOfDay = referenceHourOfDay; return this; } @CustomType.Setter public Builder referenceMinuteOfHour(Integer referenceMinuteOfHour) { - this.referenceMinuteOfHour = Objects.requireNonNull(referenceMinuteOfHour); + if (referenceMinuteOfHour == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "referenceMinuteOfHour"); + } + this.referenceMinuteOfHour = referenceMinuteOfHour; return this; } @CustomType.Setter public Builder restoreWindowDays(Integer restoreWindowDays) { - this.restoreWindowDays = Objects.requireNonNull(restoreWindowDays); + if (restoreWindowDays == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "restoreWindowDays"); + } + this.restoreWindowDays = restoreWindowDays; return this; } @CustomType.Setter public Builder updateSnapshots(Boolean updateSnapshots) { - this.updateSnapshots = Objects.requireNonNull(updateSnapshots); + if (updateSnapshots == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicy", "updateSnapshots"); + } + this.updateSnapshots = updateSnapshots; return this; } public GetClusterSnapshotBackupPolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicy.java index b752c064..91ed2e63 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClusterSnapshotBackupPolicyPolicyPolicyItem; import java.lang.String; import java.util.List; @@ -50,12 +51,18 @@ public Builder(GetClusterSnapshotBackupPolicyPolicy defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicy", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder policyItems(List policyItems) { - this.policyItems = Objects.requireNonNull(policyItems); + if (policyItems == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicy", "policyItems"); + } + this.policyItems = policyItems; return this; } public Builder policyItems(GetClusterSnapshotBackupPolicyPolicyPolicyItem... policyItems) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicyPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicyPolicyItem.java index a3024fef..0c6811ff 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicyPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterSnapshotBackupPolicyPolicyPolicyItem.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +68,42 @@ public Builder(GetClusterSnapshotBackupPolicyPolicyPolicyItem defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicyPolicyItem", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicyPolicyItem", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicyPolicyItem", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicyPolicyItem", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetClusterSnapshotBackupPolicyPolicyPolicyItem", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetClusterSnapshotBackupPolicyPolicyPolicyItem build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterTag.java index 312df60e..7477412e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClusterTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetClusterTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClusterTag", "value"); + } + this.value = value; return this; } public GetClusterTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersInvokeResult.java index a0faac94..49104831 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetClustersInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClustersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClustersInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetClustersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetClustersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResult.java index 3205c74f..6e361da5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultAdvancedConfiguration; import com.pulumi.mongodbatlas.outputs.GetClustersResultBiConnectorConfig; import com.pulumi.mongodbatlas.outputs.GetClustersResultConnectionString; @@ -645,7 +646,10 @@ public Builder(GetClustersResult defaults) { @CustomType.Setter public Builder advancedConfigurations(List advancedConfigurations) { - this.advancedConfigurations = Objects.requireNonNull(advancedConfigurations); + if (advancedConfigurations == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "advancedConfigurations"); + } + this.advancedConfigurations = advancedConfigurations; return this; } public Builder advancedConfigurations(GetClustersResultAdvancedConfiguration... advancedConfigurations) { @@ -653,32 +657,50 @@ public Builder advancedConfigurations(GetClustersResultAdvancedConfiguration... } @CustomType.Setter public Builder autoScalingComputeEnabled(Boolean autoScalingComputeEnabled) { - this.autoScalingComputeEnabled = Objects.requireNonNull(autoScalingComputeEnabled); + if (autoScalingComputeEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "autoScalingComputeEnabled"); + } + this.autoScalingComputeEnabled = autoScalingComputeEnabled; return this; } @CustomType.Setter public Builder autoScalingComputeScaleDownEnabled(Boolean autoScalingComputeScaleDownEnabled) { - this.autoScalingComputeScaleDownEnabled = Objects.requireNonNull(autoScalingComputeScaleDownEnabled); + if (autoScalingComputeScaleDownEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "autoScalingComputeScaleDownEnabled"); + } + this.autoScalingComputeScaleDownEnabled = autoScalingComputeScaleDownEnabled; return this; } @CustomType.Setter public Builder autoScalingDiskGbEnabled(Boolean autoScalingDiskGbEnabled) { - this.autoScalingDiskGbEnabled = Objects.requireNonNull(autoScalingDiskGbEnabled); + if (autoScalingDiskGbEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "autoScalingDiskGbEnabled"); + } + this.autoScalingDiskGbEnabled = autoScalingDiskGbEnabled; return this; } @CustomType.Setter public Builder backingProviderName(String backingProviderName) { - this.backingProviderName = Objects.requireNonNull(backingProviderName); + if (backingProviderName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "backingProviderName"); + } + this.backingProviderName = backingProviderName; return this; } @CustomType.Setter public Builder backupEnabled(Boolean backupEnabled) { - this.backupEnabled = Objects.requireNonNull(backupEnabled); + if (backupEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "backupEnabled"); + } + this.backupEnabled = backupEnabled; return this; } @CustomType.Setter public Builder biConnectorConfigs(List biConnectorConfigs) { - this.biConnectorConfigs = Objects.requireNonNull(biConnectorConfigs); + if (biConnectorConfigs == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "biConnectorConfigs"); + } + this.biConnectorConfigs = biConnectorConfigs; return this; } public Builder biConnectorConfigs(GetClustersResultBiConnectorConfig... biConnectorConfigs) { @@ -686,12 +708,18 @@ public Builder biConnectorConfigs(GetClustersResultBiConnectorConfig... biConnec } @CustomType.Setter public Builder clusterType(String clusterType) { - this.clusterType = Objects.requireNonNull(clusterType); + if (clusterType == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "clusterType"); + } + this.clusterType = clusterType; return this; } @CustomType.Setter public Builder connectionStrings(List connectionStrings) { - this.connectionStrings = Objects.requireNonNull(connectionStrings); + if (connectionStrings == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "connectionStrings"); + } + this.connectionStrings = connectionStrings; return this; } public Builder connectionStrings(GetClustersResultConnectionString... connectionStrings) { @@ -699,22 +727,34 @@ public Builder connectionStrings(GetClustersResultConnectionString... connection } @CustomType.Setter public Builder containerId(String containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder diskSizeGb(Double diskSizeGb) { - this.diskSizeGb = Objects.requireNonNull(diskSizeGb); + if (diskSizeGb == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "diskSizeGb"); + } + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder encryptionAtRestProvider(String encryptionAtRestProvider) { - this.encryptionAtRestProvider = Objects.requireNonNull(encryptionAtRestProvider); + if (encryptionAtRestProvider == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "encryptionAtRestProvider"); + } + this.encryptionAtRestProvider = encryptionAtRestProvider; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetClustersResultLabel... labels) { @@ -722,107 +762,170 @@ public Builder labels(GetClustersResultLabel... labels) { } @CustomType.Setter public Builder mongoDbMajorVersion(String mongoDbMajorVersion) { - this.mongoDbMajorVersion = Objects.requireNonNull(mongoDbMajorVersion); + if (mongoDbMajorVersion == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "mongoDbMajorVersion"); + } + this.mongoDbMajorVersion = mongoDbMajorVersion; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder mongoUri(String mongoUri) { - this.mongoUri = Objects.requireNonNull(mongoUri); + if (mongoUri == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "mongoUri"); + } + this.mongoUri = mongoUri; return this; } @CustomType.Setter public Builder mongoUriUpdated(String mongoUriUpdated) { - this.mongoUriUpdated = Objects.requireNonNull(mongoUriUpdated); + if (mongoUriUpdated == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "mongoUriUpdated"); + } + this.mongoUriUpdated = mongoUriUpdated; return this; } @CustomType.Setter public Builder mongoUriWithOptions(String mongoUriWithOptions) { - this.mongoUriWithOptions = Objects.requireNonNull(mongoUriWithOptions); + if (mongoUriWithOptions == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "mongoUriWithOptions"); + } + this.mongoUriWithOptions = mongoUriWithOptions; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder pitEnabled(Boolean pitEnabled) { - this.pitEnabled = Objects.requireNonNull(pitEnabled); + if (pitEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "pitEnabled"); + } + this.pitEnabled = pitEnabled; return this; } @CustomType.Setter public Builder providerAutoScalingComputeMaxInstanceSize(String providerAutoScalingComputeMaxInstanceSize) { - this.providerAutoScalingComputeMaxInstanceSize = Objects.requireNonNull(providerAutoScalingComputeMaxInstanceSize); + if (providerAutoScalingComputeMaxInstanceSize == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerAutoScalingComputeMaxInstanceSize"); + } + this.providerAutoScalingComputeMaxInstanceSize = providerAutoScalingComputeMaxInstanceSize; return this; } @CustomType.Setter public Builder providerAutoScalingComputeMinInstanceSize(String providerAutoScalingComputeMinInstanceSize) { - this.providerAutoScalingComputeMinInstanceSize = Objects.requireNonNull(providerAutoScalingComputeMinInstanceSize); + if (providerAutoScalingComputeMinInstanceSize == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerAutoScalingComputeMinInstanceSize"); + } + this.providerAutoScalingComputeMinInstanceSize = providerAutoScalingComputeMinInstanceSize; return this; } @CustomType.Setter public Builder providerBackupEnabled(Boolean providerBackupEnabled) { - this.providerBackupEnabled = Objects.requireNonNull(providerBackupEnabled); + if (providerBackupEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerBackupEnabled"); + } + this.providerBackupEnabled = providerBackupEnabled; return this; } @CustomType.Setter public Builder providerDiskIops(Integer providerDiskIops) { - this.providerDiskIops = Objects.requireNonNull(providerDiskIops); + if (providerDiskIops == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerDiskIops"); + } + this.providerDiskIops = providerDiskIops; return this; } @CustomType.Setter public Builder providerDiskTypeName(String providerDiskTypeName) { - this.providerDiskTypeName = Objects.requireNonNull(providerDiskTypeName); + if (providerDiskTypeName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerDiskTypeName"); + } + this.providerDiskTypeName = providerDiskTypeName; return this; } @CustomType.Setter public Builder providerEncryptEbsVolume(Boolean providerEncryptEbsVolume) { - this.providerEncryptEbsVolume = Objects.requireNonNull(providerEncryptEbsVolume); + if (providerEncryptEbsVolume == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerEncryptEbsVolume"); + } + this.providerEncryptEbsVolume = providerEncryptEbsVolume; return this; } @CustomType.Setter public Builder providerInstanceSizeName(String providerInstanceSizeName) { - this.providerInstanceSizeName = Objects.requireNonNull(providerInstanceSizeName); + if (providerInstanceSizeName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerInstanceSizeName"); + } + this.providerInstanceSizeName = providerInstanceSizeName; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder providerRegionName(String providerRegionName) { - this.providerRegionName = Objects.requireNonNull(providerRegionName); + if (providerRegionName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerRegionName"); + } + this.providerRegionName = providerRegionName; return this; } @CustomType.Setter public Builder providerVolumeType(String providerVolumeType) { - this.providerVolumeType = Objects.requireNonNull(providerVolumeType); + if (providerVolumeType == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "providerVolumeType"); + } + this.providerVolumeType = providerVolumeType; return this; } @CustomType.Setter public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = Objects.requireNonNull(replicationFactor); + if (replicationFactor == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "replicationFactor"); + } + this.replicationFactor = replicationFactor; return this; } @CustomType.Setter public Builder replicationSpecs(List replicationSpecs) { - this.replicationSpecs = Objects.requireNonNull(replicationSpecs); + if (replicationSpecs == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "replicationSpecs"); + } + this.replicationSpecs = replicationSpecs; return this; } public Builder replicationSpecs(GetClustersResultReplicationSpec... replicationSpecs) { @@ -830,7 +933,10 @@ public Builder replicationSpecs(GetClustersResultReplicationSpec... replicationS } @CustomType.Setter public Builder snapshotBackupPolicies(List snapshotBackupPolicies) { - this.snapshotBackupPolicies = Objects.requireNonNull(snapshotBackupPolicies); + if (snapshotBackupPolicies == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "snapshotBackupPolicies"); + } + this.snapshotBackupPolicies = snapshotBackupPolicies; return this; } public Builder snapshotBackupPolicies(GetClustersResultSnapshotBackupPolicy... snapshotBackupPolicies) { @@ -838,17 +944,26 @@ public Builder snapshotBackupPolicies(GetClustersResultSnapshotBackupPolicy... s } @CustomType.Setter public Builder srvAddress(String srvAddress) { - this.srvAddress = Objects.requireNonNull(srvAddress); + if (srvAddress == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "srvAddress"); + } + this.srvAddress = srvAddress; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetClustersResultTag... tags) { @@ -856,12 +971,18 @@ public Builder tags(GetClustersResultTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } @CustomType.Setter public Builder versionReleaseSystem(String versionReleaseSystem) { - this.versionReleaseSystem = Objects.requireNonNull(versionReleaseSystem); + if (versionReleaseSystem == null) { + throw new MissingRequiredPropertyException("GetClustersResult", "versionReleaseSystem"); + } + this.versionReleaseSystem = versionReleaseSystem; return this; } public GetClustersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultAdvancedConfiguration.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultAdvancedConfiguration.java index a74cdc17..c4c067bf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultAdvancedConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultAdvancedConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -176,57 +177,90 @@ public Builder(GetClustersResultAdvancedConfiguration defaults) { @CustomType.Setter public Builder defaultReadConcern(String defaultReadConcern) { - this.defaultReadConcern = Objects.requireNonNull(defaultReadConcern); + if (defaultReadConcern == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "defaultReadConcern"); + } + this.defaultReadConcern = defaultReadConcern; return this; } @CustomType.Setter public Builder defaultWriteConcern(String defaultWriteConcern) { - this.defaultWriteConcern = Objects.requireNonNull(defaultWriteConcern); + if (defaultWriteConcern == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "defaultWriteConcern"); + } + this.defaultWriteConcern = defaultWriteConcern; return this; } @CustomType.Setter public Builder failIndexKeyTooLong(Boolean failIndexKeyTooLong) { - this.failIndexKeyTooLong = Objects.requireNonNull(failIndexKeyTooLong); + if (failIndexKeyTooLong == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "failIndexKeyTooLong"); + } + this.failIndexKeyTooLong = failIndexKeyTooLong; return this; } @CustomType.Setter public Builder javascriptEnabled(Boolean javascriptEnabled) { - this.javascriptEnabled = Objects.requireNonNull(javascriptEnabled); + if (javascriptEnabled == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "javascriptEnabled"); + } + this.javascriptEnabled = javascriptEnabled; return this; } @CustomType.Setter public Builder minimumEnabledTlsProtocol(String minimumEnabledTlsProtocol) { - this.minimumEnabledTlsProtocol = Objects.requireNonNull(minimumEnabledTlsProtocol); + if (minimumEnabledTlsProtocol == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "minimumEnabledTlsProtocol"); + } + this.minimumEnabledTlsProtocol = minimumEnabledTlsProtocol; return this; } @CustomType.Setter public Builder noTableScan(Boolean noTableScan) { - this.noTableScan = Objects.requireNonNull(noTableScan); + if (noTableScan == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "noTableScan"); + } + this.noTableScan = noTableScan; return this; } @CustomType.Setter public Builder oplogMinRetentionHours(Integer oplogMinRetentionHours) { - this.oplogMinRetentionHours = Objects.requireNonNull(oplogMinRetentionHours); + if (oplogMinRetentionHours == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "oplogMinRetentionHours"); + } + this.oplogMinRetentionHours = oplogMinRetentionHours; return this; } @CustomType.Setter public Builder oplogSizeMb(Integer oplogSizeMb) { - this.oplogSizeMb = Objects.requireNonNull(oplogSizeMb); + if (oplogSizeMb == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "oplogSizeMb"); + } + this.oplogSizeMb = oplogSizeMb; return this; } @CustomType.Setter public Builder sampleRefreshIntervalBiConnector(Integer sampleRefreshIntervalBiConnector) { - this.sampleRefreshIntervalBiConnector = Objects.requireNonNull(sampleRefreshIntervalBiConnector); + if (sampleRefreshIntervalBiConnector == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "sampleRefreshIntervalBiConnector"); + } + this.sampleRefreshIntervalBiConnector = sampleRefreshIntervalBiConnector; return this; } @CustomType.Setter public Builder sampleSizeBiConnector(Integer sampleSizeBiConnector) { - this.sampleSizeBiConnector = Objects.requireNonNull(sampleSizeBiConnector); + if (sampleSizeBiConnector == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "sampleSizeBiConnector"); + } + this.sampleSizeBiConnector = sampleSizeBiConnector; return this; } @CustomType.Setter public Builder transactionLifetimeLimitSeconds(Integer transactionLifetimeLimitSeconds) { - this.transactionLifetimeLimitSeconds = Objects.requireNonNull(transactionLifetimeLimitSeconds); + if (transactionLifetimeLimitSeconds == null) { + throw new MissingRequiredPropertyException("GetClustersResultAdvancedConfiguration", "transactionLifetimeLimitSeconds"); + } + this.transactionLifetimeLimitSeconds = transactionLifetimeLimitSeconds; return this; } public GetClustersResultAdvancedConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultBiConnectorConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultBiConnectorConfig.java index a215c42c..df88d03e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultBiConnectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultBiConnectorConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetClustersResultBiConnectorConfig defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetClustersResultBiConnectorConfig", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder readPreference(String readPreference) { - this.readPreference = Objects.requireNonNull(readPreference); + if (readPreference == null) { + throw new MissingRequiredPropertyException("GetClustersResultBiConnectorConfig", "readPreference"); + } + this.readPreference = readPreference; return this; } public GetClustersResultBiConnectorConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionString.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionString.java index ff54769e..17f9689e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionString.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionString.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultConnectionStringPrivateEndpoint; import java.lang.Object; import java.lang.String; @@ -74,22 +75,34 @@ public Builder(GetClustersResultConnectionString defaults) { @CustomType.Setter public Builder awsPrivateLink(Map awsPrivateLink) { - this.awsPrivateLink = Objects.requireNonNull(awsPrivateLink); + if (awsPrivateLink == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "awsPrivateLink"); + } + this.awsPrivateLink = awsPrivateLink; return this; } @CustomType.Setter public Builder awsPrivateLinkSrv(Map awsPrivateLinkSrv) { - this.awsPrivateLinkSrv = Objects.requireNonNull(awsPrivateLinkSrv); + if (awsPrivateLinkSrv == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "awsPrivateLinkSrv"); + } + this.awsPrivateLinkSrv = awsPrivateLinkSrv; return this; } @CustomType.Setter("private") public Builder private_(String private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder privateEndpoints(List privateEndpoints) { - this.privateEndpoints = Objects.requireNonNull(privateEndpoints); + if (privateEndpoints == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "privateEndpoints"); + } + this.privateEndpoints = privateEndpoints; return this; } public Builder privateEndpoints(GetClustersResultConnectionStringPrivateEndpoint... privateEndpoints) { @@ -97,17 +110,26 @@ public Builder privateEndpoints(GetClustersResultConnectionStringPrivateEndpoint } @CustomType.Setter public Builder privateSrv(String privateSrv) { - this.privateSrv = Objects.requireNonNull(privateSrv); + if (privateSrv == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "privateSrv"); + } + this.privateSrv = privateSrv; return this; } @CustomType.Setter public Builder standard(String standard) { - this.standard = Objects.requireNonNull(standard); + if (standard == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "standard"); + } + this.standard = standard; return this; } @CustomType.Setter public Builder standardSrv(String standardSrv) { - this.standardSrv = Objects.requireNonNull(standardSrv); + if (standardSrv == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionString", "standardSrv"); + } + this.standardSrv = standardSrv; return this; } public GetClustersResultConnectionString build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpoint.java index 2aad6976..01f9b768 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultConnectionStringPrivateEndpointEndpoint; import java.lang.String; import java.util.List; @@ -60,12 +61,18 @@ public Builder(GetClustersResultConnectionStringPrivateEndpoint defaults) { @CustomType.Setter public Builder connectionString(String connectionString) { - this.connectionString = Objects.requireNonNull(connectionString); + if (connectionString == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpoint", "connectionString"); + } + this.connectionString = connectionString; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpoint", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(GetClustersResultConnectionStringPrivateEndpointEndpoint... endpoints) { @@ -73,17 +80,26 @@ public Builder endpoints(GetClustersResultConnectionStringPrivateEndpointEndpoin } @CustomType.Setter public Builder srvConnectionString(String srvConnectionString) { - this.srvConnectionString = Objects.requireNonNull(srvConnectionString); + if (srvConnectionString == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpoint", "srvConnectionString"); + } + this.srvConnectionString = srvConnectionString; return this; } @CustomType.Setter public Builder srvShardOptimizedConnectionString(String srvShardOptimizedConnectionString) { - this.srvShardOptimizedConnectionString = Objects.requireNonNull(srvShardOptimizedConnectionString); + if (srvShardOptimizedConnectionString == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpoint", "srvShardOptimizedConnectionString"); + } + this.srvShardOptimizedConnectionString = srvShardOptimizedConnectionString; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpoint", "type"); + } + this.type = type; return this; } public GetClustersResultConnectionStringPrivateEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpointEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpointEndpoint.java index dd3041cc..e913d5f0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpointEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultConnectionStringPrivateEndpointEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetClustersResultConnectionStringPrivateEndpointEndpoint defaults @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpointEndpoint", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpointEndpoint", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClustersResultConnectionStringPrivateEndpointEndpoint", "region"); + } + this.region = region; return this; } public GetClustersResultConnectionStringPrivateEndpointEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultLabel.java index 3d788e4a..026c4525 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetClustersResultLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClustersResultLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClustersResultLabel", "value"); + } + this.value = value; return this; } public GetClustersResultLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpec.java index 430d50ef..5018047c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultReplicationSpecRegionsConfig; import java.lang.Integer; import java.lang.String; @@ -87,17 +88,26 @@ public Builder(GetClustersResultReplicationSpec defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpec", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder numShards(Integer numShards) { - this.numShards = Objects.requireNonNull(numShards); + if (numShards == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpec", "numShards"); + } + this.numShards = numShards; return this; } @CustomType.Setter public Builder regionsConfigs(List regionsConfigs) { - this.regionsConfigs = Objects.requireNonNull(regionsConfigs); + if (regionsConfigs == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpec", "regionsConfigs"); + } + this.regionsConfigs = regionsConfigs; return this; } public Builder regionsConfigs(GetClustersResultReplicationSpecRegionsConfig... regionsConfigs) { @@ -105,7 +115,10 @@ public Builder regionsConfigs(GetClustersResultReplicationSpecRegionsConfig... r } @CustomType.Setter public Builder zoneName(String zoneName) { - this.zoneName = Objects.requireNonNull(zoneName); + if (zoneName == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpec", "zoneName"); + } + this.zoneName = zoneName; return this; } public GetClustersResultReplicationSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpecRegionsConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpecRegionsConfig.java index e8b4a73e..cabb2d74 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpecRegionsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultReplicationSpecRegionsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetClustersResultReplicationSpecRegionsConfig defaults) { @CustomType.Setter public Builder analyticsNodes(Integer analyticsNodes) { - this.analyticsNodes = Objects.requireNonNull(analyticsNodes); + if (analyticsNodes == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpecRegionsConfig", "analyticsNodes"); + } + this.analyticsNodes = analyticsNodes; return this; } @CustomType.Setter public Builder electableNodes(Integer electableNodes) { - this.electableNodes = Objects.requireNonNull(electableNodes); + if (electableNodes == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpecRegionsConfig", "electableNodes"); + } + this.electableNodes = electableNodes; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpecRegionsConfig", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder readOnlyNodes(Integer readOnlyNodes) { - this.readOnlyNodes = Objects.requireNonNull(readOnlyNodes); + if (readOnlyNodes == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpecRegionsConfig", "readOnlyNodes"); + } + this.readOnlyNodes = readOnlyNodes; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetClustersResultReplicationSpecRegionsConfig", "regionName"); + } + this.regionName = regionName; return this; } public GetClustersResultReplicationSpecRegionsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicy.java index 6753ce01..19d42d6b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultSnapshotBackupPolicyPolicy; import java.lang.Boolean; import java.lang.Integer; @@ -80,22 +81,34 @@ public Builder(GetClustersResultSnapshotBackupPolicy defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder nextSnapshot(String nextSnapshot) { - this.nextSnapshot = Objects.requireNonNull(nextSnapshot); + if (nextSnapshot == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "nextSnapshot"); + } + this.nextSnapshot = nextSnapshot; return this; } @CustomType.Setter public Builder policies(List policies) { - this.policies = Objects.requireNonNull(policies); + if (policies == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "policies"); + } + this.policies = policies; return this; } public Builder policies(GetClustersResultSnapshotBackupPolicyPolicy... policies) { @@ -103,22 +116,34 @@ public Builder policies(GetClustersResultSnapshotBackupPolicyPolicy... policies) } @CustomType.Setter public Builder referenceHourOfDay(Integer referenceHourOfDay) { - this.referenceHourOfDay = Objects.requireNonNull(referenceHourOfDay); + if (referenceHourOfDay == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "referenceHourOfDay"); + } + this.referenceHourOfDay = referenceHourOfDay; return this; } @CustomType.Setter public Builder referenceMinuteOfHour(Integer referenceMinuteOfHour) { - this.referenceMinuteOfHour = Objects.requireNonNull(referenceMinuteOfHour); + if (referenceMinuteOfHour == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "referenceMinuteOfHour"); + } + this.referenceMinuteOfHour = referenceMinuteOfHour; return this; } @CustomType.Setter public Builder restoreWindowDays(Integer restoreWindowDays) { - this.restoreWindowDays = Objects.requireNonNull(restoreWindowDays); + if (restoreWindowDays == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "restoreWindowDays"); + } + this.restoreWindowDays = restoreWindowDays; return this; } @CustomType.Setter public Builder updateSnapshots(Boolean updateSnapshots) { - this.updateSnapshots = Objects.requireNonNull(updateSnapshots); + if (updateSnapshots == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicy", "updateSnapshots"); + } + this.updateSnapshots = updateSnapshots; return this; } public GetClustersResultSnapshotBackupPolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicy.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicy.java index 014b8019..c442a92a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetClustersResultSnapshotBackupPolicyPolicyPolicyItem; import java.lang.String; import java.util.List; @@ -50,12 +51,18 @@ public Builder(GetClustersResultSnapshotBackupPolicyPolicy defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicy", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder policyItems(List policyItems) { - this.policyItems = Objects.requireNonNull(policyItems); + if (policyItems == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicy", "policyItems"); + } + this.policyItems = policyItems; return this; } public Builder policyItems(GetClustersResultSnapshotBackupPolicyPolicyPolicyItem... policyItems) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicyPolicyItem.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicyPolicyItem.java index a84925b0..feab6eb1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicyPolicyItem.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultSnapshotBackupPolicyPolicyPolicyItem.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +68,42 @@ public Builder(GetClustersResultSnapshotBackupPolicyPolicyPolicyItem defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicyPolicyItem", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicyPolicyItem", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicyPolicyItem", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicyPolicyItem", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetClustersResultSnapshotBackupPolicyPolicyPolicyItem", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetClustersResultSnapshotBackupPolicyPolicyPolicyItem build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultTag.java index 4a672bb8..6f4e3259 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetClustersResultTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetClustersResultTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClustersResultTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClustersResultTag", "value"); + } + this.value = value; return this; } public GetClustersResultTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleAction.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleAction.java index 10f2a3e6..f316870b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleAction.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleAction.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCustomDbRoleActionResource; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetCustomDbRoleAction defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleAction", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleAction", "resources"); + } + this.resources = resources; return this; } public Builder resources(GetCustomDbRoleActionResource... resources) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleActionResource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleActionResource.java index 9428f4cb..6fd7ae1d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleActionResource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleActionResource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,17 +56,26 @@ public Builder(GetCustomDbRoleActionResource defaults) { @CustomType.Setter public Builder cluster(Boolean cluster) { - this.cluster = Objects.requireNonNull(cluster); + if (cluster == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleActionResource", "cluster"); + } + this.cluster = cluster; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleActionResource", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleActionResource", "databaseName"); + } + this.databaseName = databaseName; return this; } public GetCustomDbRoleActionResource build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleInheritedRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleInheritedRole.java index 0578ae7f..fc9d9868 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleInheritedRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleInheritedRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCustomDbRoleInheritedRole defaults) { @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleInheritedRole", "roleName"); + } + this.roleName = roleName; return this; } public GetCustomDbRoleInheritedRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleResult.java index 65fd39e6..b518eab6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRoleResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCustomDbRoleAction; import com.pulumi.mongodbatlas.outputs.GetCustomDbRoleInheritedRole; import java.lang.String; @@ -78,7 +79,10 @@ public Builder(GetCustomDbRoleResult defaults) { @CustomType.Setter public Builder actions(List actions) { - this.actions = Objects.requireNonNull(actions); + if (actions == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleResult", "actions"); + } + this.actions = actions; return this; } public Builder actions(GetCustomDbRoleAction... actions) { @@ -86,11 +90,15 @@ public Builder actions(GetCustomDbRoleAction... actions) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inheritedRoles(@Nullable List inheritedRoles) { + this.inheritedRoles = inheritedRoles; return this; } @@ -99,12 +107,18 @@ public Builder inheritedRoles(GetCustomDbRoleInheritedRole... inheritedRoles) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRoleResult", "roleName"); + } + this.roleName = roleName; return this; } public GetCustomDbRoleResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesInvokeResult.java index 25072b3d..40805ef2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCustomDbRolesResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetCustomDbRolesInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetCustomDbRolesResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResult.java index 0caab1dd..4aea0572 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCustomDbRolesResultAction; import com.pulumi.mongodbatlas.outputs.GetCustomDbRolesResultInheritedRole; import java.lang.String; @@ -57,7 +58,10 @@ public Builder(GetCustomDbRolesResult defaults) { @CustomType.Setter public Builder actions(List actions) { - this.actions = Objects.requireNonNull(actions); + if (actions == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResult", "actions"); + } + this.actions = actions; return this; } public Builder actions(GetCustomDbRolesResultAction... actions) { @@ -65,7 +69,10 @@ public Builder actions(GetCustomDbRolesResultAction... actions) { } @CustomType.Setter public Builder inheritedRoles(List inheritedRoles) { - this.inheritedRoles = Objects.requireNonNull(inheritedRoles); + if (inheritedRoles == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResult", "inheritedRoles"); + } + this.inheritedRoles = inheritedRoles; return this; } public Builder inheritedRoles(GetCustomDbRolesResultInheritedRole... inheritedRoles) { @@ -73,7 +80,10 @@ public Builder inheritedRoles(GetCustomDbRolesResultInheritedRole... inheritedRo } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResult", "roleName"); + } + this.roleName = roleName; return this; } public GetCustomDbRolesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultAction.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultAction.java index 30167eb4..64ab91e7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultAction.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultAction.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetCustomDbRolesResultActionResource; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetCustomDbRolesResultAction defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultAction", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultAction", "resources"); + } + this.resources = resources; return this; } public Builder resources(GetCustomDbRolesResultActionResource... resources) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultActionResource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultActionResource.java index 68fe8b9c..36d99980 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultActionResource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultActionResource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,17 +56,26 @@ public Builder(GetCustomDbRolesResultActionResource defaults) { @CustomType.Setter public Builder cluster(Boolean cluster) { - this.cluster = Objects.requireNonNull(cluster); + if (cluster == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultActionResource", "cluster"); + } + this.cluster = cluster; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultActionResource", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultActionResource", "databaseName"); + } + this.databaseName = databaseName; return this; } public GetCustomDbRolesResultActionResource build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultInheritedRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultInheritedRole.java index 17953b7e..05ee0a35 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultInheritedRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDbRolesResultInheritedRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetCustomDbRolesResultInheritedRole defaults) { @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultInheritedRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetCustomDbRolesResultInheritedRole", "roleName"); + } + this.roleName = roleName; return this; } public GetCustomDbRolesResultInheritedRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDnsConfigurationClusterAwsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDnsConfigurationClusterAwsResult.java index 86aff518..0ea210cf 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDnsConfigurationClusterAwsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCustomDnsConfigurationClusterAwsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -63,17 +64,26 @@ public Builder(GetCustomDnsConfigurationClusterAwsResult defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetCustomDnsConfigurationClusterAwsResult", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCustomDnsConfigurationClusterAwsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCustomDnsConfigurationClusterAwsResult", "projectId"); + } + this.projectId = projectId; return this; } public GetCustomDnsConfigurationClusterAwsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineIngestionSchedule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineIngestionSchedule.java index 94af9a9e..32f6924c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineIngestionSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineIngestionSchedule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +68,42 @@ public Builder(GetDataLakePipelineIngestionSchedule defaults) { @CustomType.Setter public Builder frequencyInterval(Integer frequencyInterval) { - this.frequencyInterval = Objects.requireNonNull(frequencyInterval); + if (frequencyInterval == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineIngestionSchedule", "frequencyInterval"); + } + this.frequencyInterval = frequencyInterval; return this; } @CustomType.Setter public Builder frequencyType(String frequencyType) { - this.frequencyType = Objects.requireNonNull(frequencyType); + if (frequencyType == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineIngestionSchedule", "frequencyType"); + } + this.frequencyType = frequencyType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineIngestionSchedule", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder retentionUnit(String retentionUnit) { - this.retentionUnit = Objects.requireNonNull(retentionUnit); + if (retentionUnit == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineIngestionSchedule", "retentionUnit"); + } + this.retentionUnit = retentionUnit; return this; } @CustomType.Setter public Builder retentionValue(Integer retentionValue) { - this.retentionValue = Objects.requireNonNull(retentionValue); + if (retentionValue == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineIngestionSchedule", "retentionValue"); + } + this.retentionValue = retentionValue; return this; } public GetDataLakePipelineIngestionSchedule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineResult.java index 6db06266..4a89ab16 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineIngestionSchedule; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineSink; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineSnapshot; @@ -206,17 +207,26 @@ public Builder(GetDataLakePipelineResult defaults) { @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ingestionSchedules(List ingestionSchedules) { - this.ingestionSchedules = Objects.requireNonNull(ingestionSchedules); + if (ingestionSchedules == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "ingestionSchedules"); + } + this.ingestionSchedules = ingestionSchedules; return this; } public Builder ingestionSchedules(GetDataLakePipelineIngestionSchedule... ingestionSchedules) { @@ -224,22 +234,34 @@ public Builder ingestionSchedules(GetDataLakePipelineIngestionSchedule... ingest } @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { - this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); + if (lastUpdatedDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "lastUpdatedDate"); + } + this.lastUpdatedDate = lastUpdatedDate; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder sinks(List sinks) { - this.sinks = Objects.requireNonNull(sinks); + if (sinks == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "sinks"); + } + this.sinks = sinks; return this; } public Builder sinks(GetDataLakePipelineSink... sinks) { @@ -247,7 +269,10 @@ public Builder sinks(GetDataLakePipelineSink... sinks) { } @CustomType.Setter public Builder snapshots(List snapshots) { - this.snapshots = Objects.requireNonNull(snapshots); + if (snapshots == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "snapshots"); + } + this.snapshots = snapshots; return this; } public Builder snapshots(GetDataLakePipelineSnapshot... snapshots) { @@ -255,7 +280,10 @@ public Builder snapshots(GetDataLakePipelineSnapshot... snapshots) { } @CustomType.Setter public Builder sources(List sources) { - this.sources = Objects.requireNonNull(sources); + if (sources == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "sources"); + } + this.sources = sources; return this; } public Builder sources(GetDataLakePipelineSource... sources) { @@ -263,12 +291,18 @@ public Builder sources(GetDataLakePipelineSource... sources) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder transformations(List transformations) { - this.transformations = Objects.requireNonNull(transformations); + if (transformations == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineResult", "transformations"); + } + this.transformations = transformations; return this; } public Builder transformations(GetDataLakePipelineTransformation... transformations) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunResult.java index 0c6a034f..a456ce26 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineRunStat; import java.lang.String; import java.util.List; @@ -188,67 +189,106 @@ public Builder(GetDataLakePipelineRunResult defaults) { @CustomType.Setter public Builder backupFrequencyType(String backupFrequencyType) { - this.backupFrequencyType = Objects.requireNonNull(backupFrequencyType); + if (backupFrequencyType == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "backupFrequencyType"); + } + this.backupFrequencyType = backupFrequencyType; return this; } @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder datasetName(String datasetName) { - this.datasetName = Objects.requireNonNull(datasetName); + if (datasetName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "datasetName"); + } + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { - this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); + if (lastUpdatedDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "lastUpdatedDate"); + } + this.lastUpdatedDate = lastUpdatedDate; return this; } @CustomType.Setter public Builder phase(String phase) { - this.phase = Objects.requireNonNull(phase); + if (phase == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "phase"); + } + this.phase = phase; return this; } @CustomType.Setter public Builder pipelineId(String pipelineId) { - this.pipelineId = Objects.requireNonNull(pipelineId); + if (pipelineId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "pipelineId"); + } + this.pipelineId = pipelineId; return this; } @CustomType.Setter public Builder pipelineName(String pipelineName) { - this.pipelineName = Objects.requireNonNull(pipelineName); + if (pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "pipelineName"); + } + this.pipelineName = pipelineName; return this; } @CustomType.Setter public Builder pipelineRunId(String pipelineRunId) { - this.pipelineRunId = Objects.requireNonNull(pipelineRunId); + if (pipelineRunId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "pipelineRunId"); + } + this.pipelineRunId = pipelineRunId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder stats(List stats) { - this.stats = Objects.requireNonNull(stats); + if (stats == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunResult", "stats"); + } + this.stats = stats; return this; } public Builder stats(GetDataLakePipelineRunStat... stats) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunStat.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunStat.java index a2a39c41..38b6793e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunStat.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunStat.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelineRunStat defaults) { @CustomType.Setter public Builder bytesExported(Integer bytesExported) { - this.bytesExported = Objects.requireNonNull(bytesExported); + if (bytesExported == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunStat", "bytesExported"); + } + this.bytesExported = bytesExported; return this; } @CustomType.Setter public Builder numDocs(Integer numDocs) { - this.numDocs = Objects.requireNonNull(numDocs); + if (numDocs == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunStat", "numDocs"); + } + this.numDocs = numDocs; return this; } public GetDataLakePipelineRunStat build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsInvokeResult.java index 14de3176..dc282a0c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineRunsResult; import java.lang.String; import java.util.List; @@ -70,22 +71,34 @@ public Builder(GetDataLakePipelineRunsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder pipelineName(String pipelineName) { - this.pipelineName = Objects.requireNonNull(pipelineName); + if (pipelineName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsInvokeResult", "pipelineName"); + } + this.pipelineName = pipelineName; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetDataLakePipelineRunsResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResult.java index ecb11b49..9599fba8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineRunsResultStat; import java.lang.String; import java.util.List; @@ -170,52 +171,82 @@ public Builder(GetDataLakePipelineRunsResult defaults) { @CustomType.Setter public Builder backupFrequencyType(String backupFrequencyType) { - this.backupFrequencyType = Objects.requireNonNull(backupFrequencyType); + if (backupFrequencyType == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "backupFrequencyType"); + } + this.backupFrequencyType = backupFrequencyType; return this; } @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { - this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); + if (lastUpdatedDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "lastUpdatedDate"); + } + this.lastUpdatedDate = lastUpdatedDate; return this; } @CustomType.Setter public Builder phase(String phase) { - this.phase = Objects.requireNonNull(phase); + if (phase == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "phase"); + } + this.phase = phase; return this; } @CustomType.Setter public Builder pipelineId(String pipelineId) { - this.pipelineId = Objects.requireNonNull(pipelineId); + if (pipelineId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "pipelineId"); + } + this.pipelineId = pipelineId; return this; } @CustomType.Setter public Builder pipelineRunId(String pipelineRunId) { - this.pipelineRunId = Objects.requireNonNull(pipelineRunId); + if (pipelineRunId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "pipelineRunId"); + } + this.pipelineRunId = pipelineRunId; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder stats(List stats) { - this.stats = Objects.requireNonNull(stats); + if (stats == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResult", "stats"); + } + this.stats = stats; return this; } public Builder stats(GetDataLakePipelineRunsResultStat... stats) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResultStat.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResultStat.java index dc28f03d..461ca917 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResultStat.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineRunsResultStat.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelineRunsResultStat defaults) { @CustomType.Setter public Builder bytesExported(Integer bytesExported) { - this.bytesExported = Objects.requireNonNull(bytesExported); + if (bytesExported == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResultStat", "bytesExported"); + } + this.bytesExported = bytesExported; return this; } @CustomType.Setter public Builder numDocs(Integer numDocs) { - this.numDocs = Objects.requireNonNull(numDocs); + if (numDocs == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineRunsResultStat", "numDocs"); + } + this.numDocs = numDocs; return this; } public GetDataLakePipelineRunsResultStat build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSink.java index f6e63417..6058412c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelineSinkPartitionField; import java.lang.String; import java.util.List; @@ -90,7 +91,10 @@ public Builder(GetDataLakePipelineSink defaults) { @CustomType.Setter public Builder partitionFields(List partitionFields) { - this.partitionFields = Objects.requireNonNull(partitionFields); + if (partitionFields == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSink", "partitionFields"); + } + this.partitionFields = partitionFields; return this; } public Builder partitionFields(GetDataLakePipelineSinkPartitionField... partitionFields) { @@ -98,17 +102,26 @@ public Builder partitionFields(GetDataLakePipelineSinkPartitionField... partitio } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSink", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSink", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSink", "type"); + } + this.type = type; return this; } public GetDataLakePipelineSink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSinkPartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSinkPartitionField.java index ae03c904..566d76d7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSinkPartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSinkPartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelineSinkPartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSinkPartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSinkPartitionField", "order"); + } + this.order = order; return this; } public GetDataLakePipelineSinkPartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSnapshot.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSnapshot.java index 72ef94e3..91d5ac90 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSnapshot.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -132,42 +133,66 @@ public Builder(GetDataLakePipelineSnapshot defaults) { @CustomType.Setter public Builder copyRegion(String copyRegion) { - this.copyRegion = Objects.requireNonNull(copyRegion); + if (copyRegion == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "copyRegion"); + } + this.copyRegion = copyRegion; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder frequencyYype(String frequencyYype) { - this.frequencyYype = Objects.requireNonNull(frequencyYype); + if (frequencyYype == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "frequencyYype"); + } + this.frequencyYype = frequencyYype; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder masterKey(String masterKey) { - this.masterKey = Objects.requireNonNull(masterKey); + if (masterKey == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "masterKey"); + } + this.masterKey = masterKey; return this; } @CustomType.Setter public Builder mongodVersion(String mongodVersion) { - this.mongodVersion = Objects.requireNonNull(mongodVersion); + if (mongodVersion == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "mongodVersion"); + } + this.mongodVersion = mongodVersion; return this; } @CustomType.Setter public Builder policies(List policies) { - this.policies = Objects.requireNonNull(policies); + if (policies == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "policies"); + } + this.policies = policies; return this; } public Builder policies(String... policies) { @@ -175,27 +200,42 @@ public Builder policies(String... policies) { } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder replicaSetName(String replicaSetName) { - this.replicaSetName = Objects.requireNonNull(replicaSetName); + if (replicaSetName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "replicaSetName"); + } + this.replicaSetName = replicaSetName; return this; } @CustomType.Setter public Builder size(Integer size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSnapshot", "type"); + } + this.type = type; return this; } public GetDataLakePipelineSnapshot build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSource.java index cd053c17..b03e08a2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineSource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetDataLakePipelineSource defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSource", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSource", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSource", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSource", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineSource", "type"); + } + this.type = type; return this; } public GetDataLakePipelineSource build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineTransformation.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineTransformation.java index 3d745175..582c5ac2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelineTransformation.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelineTransformation defaults) { @CustomType.Setter public Builder field(String field) { - this.field = Objects.requireNonNull(field); + if (field == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineTransformation", "field"); + } + this.field = field; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelineTransformation", "type"); + } + this.type = type; return this; } public GetDataLakePipelineTransformation build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesInvokeResult.java index e51a6fcc..78486b73 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelinesResult; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetDataLakePipelinesInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetDataLakePipelinesResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResult.java index 125cf62f..3743d9a6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelinesResultSink; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelinesResultSource; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelinesResultTransformation; @@ -138,32 +139,50 @@ public Builder(GetDataLakePipelinesResult defaults) { @CustomType.Setter public Builder createdDate(String createdDate) { - this.createdDate = Objects.requireNonNull(createdDate); + if (createdDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "createdDate"); + } + this.createdDate = createdDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastUpdatedDate(String lastUpdatedDate) { - this.lastUpdatedDate = Objects.requireNonNull(lastUpdatedDate); + if (lastUpdatedDate == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "lastUpdatedDate"); + } + this.lastUpdatedDate = lastUpdatedDate; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder sinks(List sinks) { - this.sinks = Objects.requireNonNull(sinks); + if (sinks == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "sinks"); + } + this.sinks = sinks; return this; } public Builder sinks(GetDataLakePipelinesResultSink... sinks) { @@ -171,7 +190,10 @@ public Builder sinks(GetDataLakePipelinesResultSink... sinks) { } @CustomType.Setter public Builder sources(List sources) { - this.sources = Objects.requireNonNull(sources); + if (sources == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "sources"); + } + this.sources = sources; return this; } public Builder sources(GetDataLakePipelinesResultSource... sources) { @@ -179,12 +201,18 @@ public Builder sources(GetDataLakePipelinesResultSource... sources) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder transformations(List transformations) { - this.transformations = Objects.requireNonNull(transformations); + if (transformations == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResult", "transformations"); + } + this.transformations = transformations; return this; } public Builder transformations(GetDataLakePipelinesResultTransformation... transformations) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSink.java index 506797c0..7e743d3e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDataLakePipelinesResultSinkPartitionField; import java.lang.String; import java.util.List; @@ -90,7 +91,10 @@ public Builder(GetDataLakePipelinesResultSink defaults) { @CustomType.Setter public Builder partitionFields(List partitionFields) { - this.partitionFields = Objects.requireNonNull(partitionFields); + if (partitionFields == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSink", "partitionFields"); + } + this.partitionFields = partitionFields; return this; } public Builder partitionFields(GetDataLakePipelinesResultSinkPartitionField... partitionFields) { @@ -98,17 +102,26 @@ public Builder partitionFields(GetDataLakePipelinesResultSinkPartitionField... p } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSink", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSink", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSink", "type"); + } + this.type = type; return this; } public GetDataLakePipelinesResultSink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSinkPartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSinkPartitionField.java index 4e686ad5..97f8d2bb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSinkPartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSinkPartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelinesResultSinkPartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSinkPartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSinkPartitionField", "order"); + } + this.order = order; return this; } public GetDataLakePipelinesResultSinkPartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSource.java index 0e1adb3f..3f40c9e2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultSource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetDataLakePipelinesResultSource defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSource", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSource", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSource", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSource", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultSource", "type"); + } + this.type = type; return this; } public GetDataLakePipelinesResultSource build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultTransformation.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultTransformation.java index a129bff2..f2602de5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultTransformation.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDataLakePipelinesResultTransformation.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDataLakePipelinesResultTransformation defaults) { @CustomType.Setter public Builder field(String field) { - this.field = Objects.requireNonNull(field); + if (field == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultTransformation", "field"); + } + this.field = field; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDataLakePipelinesResultTransformation", "type"); + } + this.type = type; return this; } public GetDataLakePipelinesResultTransformation build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserLabel.java index fde658d2..9475cc04 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUserLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserLabel", "value"); + } + this.value = value; return this; } public GetDatabaseUserLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserResult.java index d93f1e43..31491e6e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDatabaseUserLabel; import com.pulumi.mongodbatlas.outputs.GetDatabaseUserRole; import com.pulumi.mongodbatlas.outputs.GetDatabaseUserScope; @@ -160,22 +161,34 @@ public Builder(GetDatabaseUserResult defaults) { @CustomType.Setter public Builder authDatabaseName(String authDatabaseName) { - this.authDatabaseName = Objects.requireNonNull(authDatabaseName); + if (authDatabaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "authDatabaseName"); + } + this.authDatabaseName = authDatabaseName; return this; } @CustomType.Setter public Builder awsIamType(String awsIamType) { - this.awsIamType = Objects.requireNonNull(awsIamType); + if (awsIamType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "awsIamType"); + } + this.awsIamType = awsIamType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetDatabaseUserLabel... labels) { @@ -183,27 +196,42 @@ public Builder labels(GetDatabaseUserLabel... labels) { } @CustomType.Setter public Builder ldapAuthType(String ldapAuthType) { - this.ldapAuthType = Objects.requireNonNull(ldapAuthType); + if (ldapAuthType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "ldapAuthType"); + } + this.ldapAuthType = ldapAuthType; return this; } @CustomType.Setter public Builder oidcAuthType(String oidcAuthType) { - this.oidcAuthType = Objects.requireNonNull(oidcAuthType); + if (oidcAuthType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "oidcAuthType"); + } + this.oidcAuthType = oidcAuthType; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(GetDatabaseUserRole... roles) { @@ -211,7 +239,10 @@ public Builder roles(GetDatabaseUserRole... roles) { } @CustomType.Setter public Builder scopes(List scopes) { - this.scopes = Objects.requireNonNull(scopes); + if (scopes == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "scopes"); + } + this.scopes = scopes; return this; } public Builder scopes(GetDatabaseUserScope... scopes) { @@ -219,12 +250,18 @@ public Builder scopes(GetDatabaseUserScope... scopes) { } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder x509Type(String x509Type) { - this.x509Type = Objects.requireNonNull(x509Type); + if (x509Type == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "x509Type"); + } + this.x509Type = x509Type; return this; } public GetDatabaseUserResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserRole.java index d1dd8045..bf06cd1b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUserRole defaults) { @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserRole", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserRole", "roleName"); + } + this.roleName = roleName; return this; } public GetDatabaseUserRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserScope.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserScope.java index 7490c2ae..43af4467 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserScope.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUserScope.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUserScope defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserScope", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserScope", "type"); + } + this.type = type; return this; } public GetDatabaseUserScope build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersInvokeResult.java index b466de86..6ac395d2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDatabaseUsersResult; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetDatabaseUsersInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetDatabaseUsersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResult.java index f08a85ca..255083ef 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetDatabaseUsersResultLabel; import com.pulumi.mongodbatlas.outputs.GetDatabaseUsersResultRole; import com.pulumi.mongodbatlas.outputs.GetDatabaseUsersResultScope; @@ -186,22 +187,34 @@ public Builder(GetDatabaseUsersResult defaults) { @CustomType.Setter public Builder authDatabaseName(String authDatabaseName) { - this.authDatabaseName = Objects.requireNonNull(authDatabaseName); + if (authDatabaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "authDatabaseName"); + } + this.authDatabaseName = authDatabaseName; return this; } @CustomType.Setter public Builder awsIamType(String awsIamType) { - this.awsIamType = Objects.requireNonNull(awsIamType); + if (awsIamType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "awsIamType"); + } + this.awsIamType = awsIamType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(GetDatabaseUsersResultLabel... labels) { @@ -209,27 +222,42 @@ public Builder labels(GetDatabaseUsersResultLabel... labels) { } @CustomType.Setter public Builder ldapAuthType(String ldapAuthType) { - this.ldapAuthType = Objects.requireNonNull(ldapAuthType); + if (ldapAuthType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "ldapAuthType"); + } + this.ldapAuthType = ldapAuthType; return this; } @CustomType.Setter public Builder oidcAuthType(String oidcAuthType) { - this.oidcAuthType = Objects.requireNonNull(oidcAuthType); + if (oidcAuthType == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "oidcAuthType"); + } + this.oidcAuthType = oidcAuthType; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(GetDatabaseUsersResultRole... roles) { @@ -237,7 +265,10 @@ public Builder roles(GetDatabaseUsersResultRole... roles) { } @CustomType.Setter public Builder scopes(List scopes) { - this.scopes = Objects.requireNonNull(scopes); + if (scopes == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "scopes"); + } + this.scopes = scopes; return this; } public Builder scopes(GetDatabaseUsersResultScope... scopes) { @@ -245,12 +276,18 @@ public Builder scopes(GetDatabaseUsersResultScope... scopes) { } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder x509Type(String x509Type) { - this.x509Type = Objects.requireNonNull(x509Type); + if (x509Type == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResult", "x509Type"); + } + this.x509Type = x509Type; return this; } public GetDatabaseUsersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultLabel.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultLabel.java index 09f208b7..087ec464 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultLabel.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultLabel.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUsersResultLabel defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultLabel", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultLabel", "value"); + } + this.value = value; return this; } public GetDatabaseUsersResultLabel build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultRole.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultRole.java index 7379b4e7..2036758c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultRole.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultRole.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUsersResultRole defaults) { @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultRole", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultRole", "databaseName"); + } + this.databaseName = databaseName; return this; } @CustomType.Setter public Builder roleName(String roleName) { - this.roleName = Objects.requireNonNull(roleName); + if (roleName == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultRole", "roleName"); + } + this.roleName = roleName; return this; } public GetDatabaseUsersResultRole build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultScope.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultScope.java index 884d56b1..b21e9381 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultScope.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetDatabaseUsersResultScope.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetDatabaseUsersResultScope defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultScope", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDatabaseUsersResultScope", "type"); + } + this.type = type; return this; } public GetDatabaseUsersResultScope build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessor.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessor.java index c623cb1c..f0117ac0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessor.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetEventTriggerEventProcessorAwsEventbridge; import java.util.List; import java.util.Objects; @@ -35,7 +36,10 @@ public Builder(GetEventTriggerEventProcessor defaults) { @CustomType.Setter public Builder awsEventbridges(List awsEventbridges) { - this.awsEventbridges = Objects.requireNonNull(awsEventbridges); + if (awsEventbridges == null) { + throw new MissingRequiredPropertyException("GetEventTriggerEventProcessor", "awsEventbridges"); + } + this.awsEventbridges = awsEventbridges; return this; } public Builder awsEventbridges(GetEventTriggerEventProcessorAwsEventbridge... awsEventbridges) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessorAwsEventbridge.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessorAwsEventbridge.java index 46606cc5..46d3e862 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessorAwsEventbridge.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerEventProcessorAwsEventbridge.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetEventTriggerEventProcessorAwsEventbridge defaults) { @CustomType.Setter public Builder configAccountId(String configAccountId) { - this.configAccountId = Objects.requireNonNull(configAccountId); + if (configAccountId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerEventProcessorAwsEventbridge", "configAccountId"); + } + this.configAccountId = configAccountId; return this; } @CustomType.Setter public Builder configRegion(String configRegion) { - this.configRegion = Objects.requireNonNull(configRegion); + if (configRegion == null) { + throw new MissingRequiredPropertyException("GetEventTriggerEventProcessorAwsEventbridge", "configRegion"); + } + this.configRegion = configRegion; return this; } public GetEventTriggerEventProcessorAwsEventbridge build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerResult.java index 9e1c7511..452c2153 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggerResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetEventTriggerEventProcessor; import java.lang.Boolean; import java.lang.String; @@ -317,42 +318,66 @@ public Builder(GetEventTriggerResult defaults) { @CustomType.Setter public Builder appId(String appId) { - this.appId = Objects.requireNonNull(appId); + if (appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "appId"); + } + this.appId = appId; return this; } @CustomType.Setter public Builder configCollection(String configCollection) { - this.configCollection = Objects.requireNonNull(configCollection); + if (configCollection == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configCollection"); + } + this.configCollection = configCollection; return this; } @CustomType.Setter public Builder configDatabase(String configDatabase) { - this.configDatabase = Objects.requireNonNull(configDatabase); + if (configDatabase == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configDatabase"); + } + this.configDatabase = configDatabase; return this; } @CustomType.Setter public Builder configFullDocument(Boolean configFullDocument) { - this.configFullDocument = Objects.requireNonNull(configFullDocument); + if (configFullDocument == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configFullDocument"); + } + this.configFullDocument = configFullDocument; return this; } @CustomType.Setter public Builder configFullDocumentBefore(Boolean configFullDocumentBefore) { - this.configFullDocumentBefore = Objects.requireNonNull(configFullDocumentBefore); + if (configFullDocumentBefore == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configFullDocumentBefore"); + } + this.configFullDocumentBefore = configFullDocumentBefore; return this; } @CustomType.Setter public Builder configMatch(String configMatch) { - this.configMatch = Objects.requireNonNull(configMatch); + if (configMatch == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configMatch"); + } + this.configMatch = configMatch; return this; } @CustomType.Setter public Builder configOperationType(String configOperationType) { - this.configOperationType = Objects.requireNonNull(configOperationType); + if (configOperationType == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configOperationType"); + } + this.configOperationType = configOperationType; return this; } @CustomType.Setter public Builder configOperationTypes(List configOperationTypes) { - this.configOperationTypes = Objects.requireNonNull(configOperationTypes); + if (configOperationTypes == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configOperationTypes"); + } + this.configOperationTypes = configOperationTypes; return this; } public Builder configOperationTypes(String... configOperationTypes) { @@ -360,12 +385,18 @@ public Builder configOperationTypes(String... configOperationTypes) { } @CustomType.Setter public Builder configProject(String configProject) { - this.configProject = Objects.requireNonNull(configProject); + if (configProject == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configProject"); + } + this.configProject = configProject; return this; } @CustomType.Setter public Builder configProviders(List configProviders) { - this.configProviders = Objects.requireNonNull(configProviders); + if (configProviders == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configProviders"); + } + this.configProviders = configProviders; return this; } public Builder configProviders(String... configProviders) { @@ -373,27 +404,42 @@ public Builder configProviders(String... configProviders) { } @CustomType.Setter public Builder configSchedule(String configSchedule) { - this.configSchedule = Objects.requireNonNull(configSchedule); + if (configSchedule == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configSchedule"); + } + this.configSchedule = configSchedule; return this; } @CustomType.Setter public Builder configScheduleType(String configScheduleType) { - this.configScheduleType = Objects.requireNonNull(configScheduleType); + if (configScheduleType == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configScheduleType"); + } + this.configScheduleType = configScheduleType; return this; } @CustomType.Setter public Builder configServiceId(String configServiceId) { - this.configServiceId = Objects.requireNonNull(configServiceId); + if (configServiceId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "configServiceId"); + } + this.configServiceId = configServiceId; return this; } @CustomType.Setter public Builder disabled(Boolean disabled) { - this.disabled = Objects.requireNonNull(disabled); + if (disabled == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "disabled"); + } + this.disabled = disabled; return this; } @CustomType.Setter public Builder eventProcessors(List eventProcessors) { - this.eventProcessors = Objects.requireNonNull(eventProcessors); + if (eventProcessors == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "eventProcessors"); + } + this.eventProcessors = eventProcessors; return this; } public Builder eventProcessors(GetEventTriggerEventProcessor... eventProcessors) { @@ -401,42 +447,66 @@ public Builder eventProcessors(GetEventTriggerEventProcessor... eventProcessors) } @CustomType.Setter public Builder functionId(String functionId) { - this.functionId = Objects.requireNonNull(functionId); + if (functionId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "functionId"); + } + this.functionId = functionId; return this; } @CustomType.Setter public Builder functionName(String functionName) { - this.functionName = Objects.requireNonNull(functionName); + if (functionName == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "functionName"); + } + this.functionName = functionName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder triggerId(String triggerId) { - this.triggerId = Objects.requireNonNull(triggerId); + if (triggerId == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "triggerId"); + } + this.triggerId = triggerId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder unordered(Boolean unordered) { - this.unordered = Objects.requireNonNull(unordered); + if (unordered == null) { + throw new MissingRequiredPropertyException("GetEventTriggerResult", "unordered"); + } + this.unordered = unordered; return this; } public GetEventTriggerResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersInvokeResult.java index 71543555..28a5c13c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetEventTriggersResult; import java.lang.String; import java.util.List; @@ -70,22 +71,34 @@ public Builder(GetEventTriggersInvokeResult defaults) { @CustomType.Setter public Builder appId(String appId) { - this.appId = Objects.requireNonNull(appId); + if (appId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersInvokeResult", "appId"); + } + this.appId = appId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetEventTriggersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetEventTriggersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetEventTriggersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResult.java index 434f5679..07417556 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetEventTriggersResultEventProcessor; import java.lang.Boolean; import java.lang.String; @@ -291,37 +292,58 @@ public Builder(GetEventTriggersResult defaults) { @CustomType.Setter public Builder configCollection(String configCollection) { - this.configCollection = Objects.requireNonNull(configCollection); + if (configCollection == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configCollection"); + } + this.configCollection = configCollection; return this; } @CustomType.Setter public Builder configDatabase(String configDatabase) { - this.configDatabase = Objects.requireNonNull(configDatabase); + if (configDatabase == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configDatabase"); + } + this.configDatabase = configDatabase; return this; } @CustomType.Setter public Builder configFullDocument(Boolean configFullDocument) { - this.configFullDocument = Objects.requireNonNull(configFullDocument); + if (configFullDocument == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configFullDocument"); + } + this.configFullDocument = configFullDocument; return this; } @CustomType.Setter public Builder configFullDocumentBefore(Boolean configFullDocumentBefore) { - this.configFullDocumentBefore = Objects.requireNonNull(configFullDocumentBefore); + if (configFullDocumentBefore == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configFullDocumentBefore"); + } + this.configFullDocumentBefore = configFullDocumentBefore; return this; } @CustomType.Setter public Builder configMatch(String configMatch) { - this.configMatch = Objects.requireNonNull(configMatch); + if (configMatch == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configMatch"); + } + this.configMatch = configMatch; return this; } @CustomType.Setter public Builder configOperationType(String configOperationType) { - this.configOperationType = Objects.requireNonNull(configOperationType); + if (configOperationType == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configOperationType"); + } + this.configOperationType = configOperationType; return this; } @CustomType.Setter public Builder configOperationTypes(List configOperationTypes) { - this.configOperationTypes = Objects.requireNonNull(configOperationTypes); + if (configOperationTypes == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configOperationTypes"); + } + this.configOperationTypes = configOperationTypes; return this; } public Builder configOperationTypes(String... configOperationTypes) { @@ -329,12 +351,18 @@ public Builder configOperationTypes(String... configOperationTypes) { } @CustomType.Setter public Builder configProject(String configProject) { - this.configProject = Objects.requireNonNull(configProject); + if (configProject == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configProject"); + } + this.configProject = configProject; return this; } @CustomType.Setter public Builder configProviders(List configProviders) { - this.configProviders = Objects.requireNonNull(configProviders); + if (configProviders == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configProviders"); + } + this.configProviders = configProviders; return this; } public Builder configProviders(String... configProviders) { @@ -342,27 +370,42 @@ public Builder configProviders(String... configProviders) { } @CustomType.Setter public Builder configSchedule(String configSchedule) { - this.configSchedule = Objects.requireNonNull(configSchedule); + if (configSchedule == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configSchedule"); + } + this.configSchedule = configSchedule; return this; } @CustomType.Setter public Builder configScheduleType(String configScheduleType) { - this.configScheduleType = Objects.requireNonNull(configScheduleType); + if (configScheduleType == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configScheduleType"); + } + this.configScheduleType = configScheduleType; return this; } @CustomType.Setter public Builder configServiceId(String configServiceId) { - this.configServiceId = Objects.requireNonNull(configServiceId); + if (configServiceId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "configServiceId"); + } + this.configServiceId = configServiceId; return this; } @CustomType.Setter public Builder disabled(Boolean disabled) { - this.disabled = Objects.requireNonNull(disabled); + if (disabled == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "disabled"); + } + this.disabled = disabled; return this; } @CustomType.Setter public Builder eventProcessors(List eventProcessors) { - this.eventProcessors = Objects.requireNonNull(eventProcessors); + if (eventProcessors == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "eventProcessors"); + } + this.eventProcessors = eventProcessors; return this; } public Builder eventProcessors(GetEventTriggersResultEventProcessor... eventProcessors) { @@ -370,32 +413,50 @@ public Builder eventProcessors(GetEventTriggersResultEventProcessor... eventProc } @CustomType.Setter public Builder functionId(String functionId) { - this.functionId = Objects.requireNonNull(functionId); + if (functionId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "functionId"); + } + this.functionId = functionId; return this; } @CustomType.Setter public Builder functionName(String functionName) { - this.functionName = Objects.requireNonNull(functionName); + if (functionName == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "functionName"); + } + this.functionName = functionName; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder triggerId(String triggerId) { - this.triggerId = Objects.requireNonNull(triggerId); + if (triggerId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "triggerId"); + } + this.triggerId = triggerId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder unordered(Boolean unordered) { - this.unordered = Objects.requireNonNull(unordered); + if (unordered == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResult", "unordered"); + } + this.unordered = unordered; return this; } public GetEventTriggersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessor.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessor.java index 13e4f8ae..195a2937 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessor.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessor.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetEventTriggersResultEventProcessorAwsEventbridge; import java.util.List; import java.util.Objects; @@ -35,7 +36,10 @@ public Builder(GetEventTriggersResultEventProcessor defaults) { @CustomType.Setter public Builder awsEventbridges(List awsEventbridges) { - this.awsEventbridges = Objects.requireNonNull(awsEventbridges); + if (awsEventbridges == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResultEventProcessor", "awsEventbridges"); + } + this.awsEventbridges = awsEventbridges; return this; } public Builder awsEventbridges(GetEventTriggersResultEventProcessorAwsEventbridge... awsEventbridges) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessorAwsEventbridge.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessorAwsEventbridge.java index 70d176c6..6682671b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessorAwsEventbridge.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetEventTriggersResultEventProcessorAwsEventbridge.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetEventTriggersResultEventProcessorAwsEventbridge defaults) { @CustomType.Setter public Builder configAccountId(String configAccountId) { - this.configAccountId = Objects.requireNonNull(configAccountId); + if (configAccountId == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResultEventProcessorAwsEventbridge", "configAccountId"); + } + this.configAccountId = configAccountId; return this; } @CustomType.Setter public Builder configRegion(String configRegion) { - this.configRegion = Objects.requireNonNull(configRegion); + if (configRegion == null) { + throw new MissingRequiredPropertyException("GetEventTriggersResultEventProcessorAwsEventbridge", "configRegion"); + } + this.configRegion = configRegion; return this; } public GetEventTriggersResultEventProcessorAwsEventbridge build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfig.java index 7929daa3..c6fcd919 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceCloudProviderConfigAws; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetFederatedDatabaseInstanceCloudProviderConfig defaults) { @CustomType.Setter public Builder aws(GetFederatedDatabaseInstanceCloudProviderConfigAws aws) { - this.aws = Objects.requireNonNull(aws); + if (aws == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfig", "aws"); + } + this.aws = aws; return this; } public GetFederatedDatabaseInstanceCloudProviderConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java index 665a4a70..7beda10e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceCloudProviderConfigAws.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -96,27 +97,42 @@ public Builder(GetFederatedDatabaseInstanceCloudProviderConfigAws defaults) { @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder iamAssumedRoleArn(String iamAssumedRoleArn) { - this.iamAssumedRoleArn = Objects.requireNonNull(iamAssumedRoleArn); + if (iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "iamAssumedRoleArn"); + } + this.iamAssumedRoleArn = iamAssumedRoleArn; return this; } @CustomType.Setter public Builder iamUserArn(String iamUserArn) { - this.iamUserArn = Objects.requireNonNull(iamUserArn); + if (iamUserArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "iamUserArn"); + } + this.iamUserArn = iamUserArn; return this; } @CustomType.Setter public Builder roleId(String roleId) { - this.roleId = Objects.requireNonNull(roleId); + if (roleId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "roleId"); + } + this.roleId = roleId; return this; } @CustomType.Setter public Builder testS3Bucket(String testS3Bucket) { - this.testS3Bucket = Objects.requireNonNull(testS3Bucket); + if (testS3Bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceCloudProviderConfigAws", "testS3Bucket"); + } + this.testS3Bucket = testS3Bucket; return this; } public GetFederatedDatabaseInstanceCloudProviderConfigAws build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceDataProcessRegion.java index 7e90e9c4..47e40271 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceDataProcessRegion.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedDatabaseInstanceDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceDataProcessRegion", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceDataProcessRegion", "region"); + } + this.region = region; return this; } public GetFederatedDatabaseInstanceDataProcessRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceResult.java index ad8e209f..c8b87afd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceCloudProviderConfig; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceDataProcessRegion; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageDatabase; @@ -207,12 +208,18 @@ public Builder(GetFederatedDatabaseInstanceResult defaults) { @CustomType.Setter public Builder cloudProviderConfig(GetFederatedDatabaseInstanceCloudProviderConfig cloudProviderConfig) { - this.cloudProviderConfig = Objects.requireNonNull(cloudProviderConfig); + if (cloudProviderConfig == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "cloudProviderConfig"); + } + this.cloudProviderConfig = cloudProviderConfig; return this; } @CustomType.Setter public Builder dataProcessRegions(List dataProcessRegions) { - this.dataProcessRegions = Objects.requireNonNull(dataProcessRegions); + if (dataProcessRegions == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "dataProcessRegions"); + } + this.dataProcessRegions = dataProcessRegions; return this; } public Builder dataProcessRegions(GetFederatedDatabaseInstanceDataProcessRegion... dataProcessRegions) { @@ -220,7 +227,10 @@ public Builder dataProcessRegions(GetFederatedDatabaseInstanceDataProcessRegion. } @CustomType.Setter public Builder hostnames(List hostnames) { - this.hostnames = Objects.requireNonNull(hostnames); + if (hostnames == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "hostnames"); + } + this.hostnames = hostnames; return this; } public Builder hostnames(String... hostnames) { @@ -228,27 +238,42 @@ public Builder hostnames(String... hostnames) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder storageDatabases(List storageDatabases) { - this.storageDatabases = Objects.requireNonNull(storageDatabases); + if (storageDatabases == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "storageDatabases"); + } + this.storageDatabases = storageDatabases; return this; } public Builder storageDatabases(GetFederatedDatabaseInstanceStorageDatabase... storageDatabases) { @@ -256,7 +281,10 @@ public Builder storageDatabases(GetFederatedDatabaseInstanceStorageDatabase... s } @CustomType.Setter public Builder storageStores(List storageStores) { - this.storageStores = Objects.requireNonNull(storageStores); + if (storageStores == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceResult", "storageStores"); + } + this.storageStores = storageStores; return this; } public Builder storageStores(GetFederatedDatabaseInstanceStorageStore... storageStores) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabase.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabase.java index c8521f01..50617b72 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabase.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageDatabaseCollection; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageDatabaseView; import java.lang.Integer; @@ -64,7 +65,10 @@ public Builder(GetFederatedDatabaseInstanceStorageDatabase defaults) { @CustomType.Setter public Builder collections(List collections) { - this.collections = Objects.requireNonNull(collections); + if (collections == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabase", "collections"); + } + this.collections = collections; return this; } public Builder collections(GetFederatedDatabaseInstanceStorageDatabaseCollection... collections) { @@ -72,17 +76,26 @@ public Builder collections(GetFederatedDatabaseInstanceStorageDatabaseCollection } @CustomType.Setter public Builder maxWildcardCollections(Integer maxWildcardCollections) { - this.maxWildcardCollections = Objects.requireNonNull(maxWildcardCollections); + if (maxWildcardCollections == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabase", "maxWildcardCollections"); + } + this.maxWildcardCollections = maxWildcardCollections; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabase", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder views(List views) { - this.views = Objects.requireNonNull(views); + if (views == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabase", "views"); + } + this.views = views; return this; } public Builder views(GetFederatedDatabaseInstanceStorageDatabaseView... views) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollection.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollection.java index 971dc02c..fc9a2257 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollection.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollection.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource; import java.lang.String; import java.util.List; @@ -50,7 +51,10 @@ public Builder(GetFederatedDatabaseInstanceStorageDatabaseCollection defaults) { @CustomType.Setter public Builder dataSources(List dataSources) { - this.dataSources = Objects.requireNonNull(dataSources); + if (dataSources == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollection", "dataSources"); + } + this.dataSources = dataSources; return this; } public Builder dataSources(GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource... dataSources) { @@ -58,7 +62,10 @@ public Builder dataSources(GetFederatedDatabaseInstanceStorageDatabaseCollection } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollection", "name"); + } + this.name = name; return this; } public GetFederatedDatabaseInstanceStorageDatabaseCollection build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java index 577d9c2c..ecee0a49 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -96,57 +97,90 @@ public Builder(GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource d @CustomType.Setter public Builder allowInsecure(Boolean allowInsecure) { - this.allowInsecure = Objects.requireNonNull(allowInsecure); + if (allowInsecure == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "allowInsecure"); + } + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder collection(String collection) { - this.collection = Objects.requireNonNull(collection); + if (collection == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "collection"); + } + this.collection = collection; return this; } @CustomType.Setter public Builder collectionRegex(String collectionRegex) { - this.collectionRegex = Objects.requireNonNull(collectionRegex); + if (collectionRegex == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "collectionRegex"); + } + this.collectionRegex = collectionRegex; return this; } @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder databaseRegex(String databaseRegex) { - this.databaseRegex = Objects.requireNonNull(databaseRegex); + if (databaseRegex == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "databaseRegex"); + } + this.databaseRegex = databaseRegex; return this; } @CustomType.Setter public Builder datasetName(String datasetName) { - this.datasetName = Objects.requireNonNull(datasetName); + if (datasetName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "datasetName"); + } + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder defaultFormat(String defaultFormat) { - this.defaultFormat = Objects.requireNonNull(defaultFormat); + if (defaultFormat == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "defaultFormat"); + } + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder provenanceFieldName(String provenanceFieldName) { - this.provenanceFieldName = Objects.requireNonNull(provenanceFieldName); + if (provenanceFieldName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "provenanceFieldName"); + } + this.provenanceFieldName = provenanceFieldName; return this; } @CustomType.Setter public Builder storeName(String storeName) { - this.storeName = Objects.requireNonNull(storeName); + if (storeName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "storeName"); + } + this.storeName = storeName; return this; } @CustomType.Setter public Builder urls(List urls) { - this.urls = Objects.requireNonNull(urls); + if (urls == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseCollectionDataSource", "urls"); + } + this.urls = urls; return this; } public Builder urls(String... urls) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseView.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseView.java index 722067c4..508ceaed 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseView.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageDatabaseView.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,17 +55,26 @@ public Builder(GetFederatedDatabaseInstanceStorageDatabaseView defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseView", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder pipeline(String pipeline) { - this.pipeline = Objects.requireNonNull(pipeline); + if (pipeline == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseView", "pipeline"); + } + this.pipeline = pipeline; return this; } @CustomType.Setter public Builder source(String source) { - this.source = Objects.requireNonNull(source); + if (source == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageDatabaseView", "source"); + } + this.source = source; return this; } public GetFederatedDatabaseInstanceStorageDatabaseView build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStore.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStore.java index 1609d9c5..a4d6942a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStore.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStore.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageStoreReadPreference; import java.lang.Boolean; import java.lang.String; @@ -163,7 +164,10 @@ public Builder(GetFederatedDatabaseInstanceStorageStore defaults) { @CustomType.Setter public Builder additionalStorageClasses(List additionalStorageClasses) { - this.additionalStorageClasses = Objects.requireNonNull(additionalStorageClasses); + if (additionalStorageClasses == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "additionalStorageClasses"); + } + this.additionalStorageClasses = additionalStorageClasses; return this; } public Builder additionalStorageClasses(String... additionalStorageClasses) { @@ -171,67 +175,106 @@ public Builder additionalStorageClasses(String... additionalStorageClasses) { } @CustomType.Setter public Builder allowInsecure(Boolean allowInsecure) { - this.allowInsecure = Objects.requireNonNull(allowInsecure); + if (allowInsecure == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "allowInsecure"); + } + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder defaultFormat(String defaultFormat) { - this.defaultFormat = Objects.requireNonNull(defaultFormat); + if (defaultFormat == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "defaultFormat"); + } + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder delimiter(String delimiter) { - this.delimiter = Objects.requireNonNull(delimiter); + if (delimiter == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "delimiter"); + } + this.delimiter = delimiter; return this; } @CustomType.Setter public Builder includeTags(Boolean includeTags) { - this.includeTags = Objects.requireNonNull(includeTags); + if (includeTags == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "includeTags"); + } + this.includeTags = includeTags; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder prefix(String prefix) { - this.prefix = Objects.requireNonNull(prefix); + if (prefix == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "prefix"); + } + this.prefix = prefix; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter("public") public Builder public_(String public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "public_"); + } + this.public_ = public_; return this; } @CustomType.Setter public Builder readPreferences(List readPreferences) { - this.readPreferences = Objects.requireNonNull(readPreferences); + if (readPreferences == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "readPreferences"); + } + this.readPreferences = readPreferences; return this; } public Builder readPreferences(GetFederatedDatabaseInstanceStorageStoreReadPreference... readPreferences) { @@ -239,12 +282,18 @@ public Builder readPreferences(GetFederatedDatabaseInstanceStorageStoreReadPrefe } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urls(List urls) { - this.urls = Objects.requireNonNull(urls); + if (urls == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStore", "urls"); + } + this.urls = urls; return this; } public Builder urls(String... urls) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreference.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreference.java index 99080c91..59093b95 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreference.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreference.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet; import java.lang.Integer; import java.lang.String; @@ -49,17 +50,26 @@ public Builder(GetFederatedDatabaseInstanceStorageStoreReadPreference defaults) @CustomType.Setter public Builder maxStalenessSeconds(Integer maxStalenessSeconds) { - this.maxStalenessSeconds = Objects.requireNonNull(maxStalenessSeconds); + if (maxStalenessSeconds == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreference", "maxStalenessSeconds"); + } + this.maxStalenessSeconds = maxStalenessSeconds; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreference", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder tagSets(List tagSets) { - this.tagSets = Objects.requireNonNull(tagSets); + if (tagSets == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreference", "tagSets"); + } + this.tagSets = tagSets; return this; } public Builder tagSets(GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet... tagSets) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java index a9b46ee7..15d26a95 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag; import java.util.List; import java.util.Objects; @@ -35,7 +36,10 @@ public Builder(GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet defa @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSet", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java index 90ac67b2..8d4a423c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag d @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag", "value"); + } + this.value = value; return this; } public GetFederatedDatabaseInstanceStorageStoreReadPreferenceTagSetTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesInvokeResult.java index 1492e501..798aee44 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetFederatedDatabaseInstancesInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetFederatedDatabaseInstancesResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResult.java index 33164fe7..8ae68c43 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultCloudProviderConfig; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultDataProcessRegion; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageDatabase; @@ -201,12 +202,18 @@ public Builder(GetFederatedDatabaseInstancesResult defaults) { @CustomType.Setter public Builder cloudProviderConfig(GetFederatedDatabaseInstancesResultCloudProviderConfig cloudProviderConfig) { - this.cloudProviderConfig = Objects.requireNonNull(cloudProviderConfig); + if (cloudProviderConfig == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "cloudProviderConfig"); + } + this.cloudProviderConfig = cloudProviderConfig; return this; } @CustomType.Setter public Builder dataProcessRegions(List dataProcessRegions) { - this.dataProcessRegions = Objects.requireNonNull(dataProcessRegions); + if (dataProcessRegions == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "dataProcessRegions"); + } + this.dataProcessRegions = dataProcessRegions; return this; } public Builder dataProcessRegions(GetFederatedDatabaseInstancesResultDataProcessRegion... dataProcessRegions) { @@ -214,7 +221,10 @@ public Builder dataProcessRegions(GetFederatedDatabaseInstancesResultDataProcess } @CustomType.Setter public Builder hostnames(List hostnames) { - this.hostnames = Objects.requireNonNull(hostnames); + if (hostnames == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "hostnames"); + } + this.hostnames = hostnames; return this; } public Builder hostnames(String... hostnames) { @@ -222,22 +232,34 @@ public Builder hostnames(String... hostnames) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder storageDatabases(List storageDatabases) { - this.storageDatabases = Objects.requireNonNull(storageDatabases); + if (storageDatabases == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "storageDatabases"); + } + this.storageDatabases = storageDatabases; return this; } public Builder storageDatabases(GetFederatedDatabaseInstancesResultStorageDatabase... storageDatabases) { @@ -245,7 +267,10 @@ public Builder storageDatabases(GetFederatedDatabaseInstancesResultStorageDataba } @CustomType.Setter public Builder storageStores(List storageStores) { - this.storageStores = Objects.requireNonNull(storageStores); + if (storageStores == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResult", "storageStores"); + } + this.storageStores = storageStores; return this; } public Builder storageStores(GetFederatedDatabaseInstancesResultStorageStore... storageStores) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfig.java index 08210a63..7408c69e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfig.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultCloudProviderConfigAws; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetFederatedDatabaseInstancesResultCloudProviderConfig defaults) @CustomType.Setter public Builder aws(GetFederatedDatabaseInstancesResultCloudProviderConfigAws aws) { - this.aws = Objects.requireNonNull(aws); + if (aws == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfig", "aws"); + } + this.aws = aws; return this; } public GetFederatedDatabaseInstancesResultCloudProviderConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfigAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfigAws.java index c5d66d80..1c9b8c77 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfigAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultCloudProviderConfigAws.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetFederatedDatabaseInstancesResultCloudProviderConfigAws default @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfigAws", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder iamAssumedRoleArn(String iamAssumedRoleArn) { - this.iamAssumedRoleArn = Objects.requireNonNull(iamAssumedRoleArn); + if (iamAssumedRoleArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfigAws", "iamAssumedRoleArn"); + } + this.iamAssumedRoleArn = iamAssumedRoleArn; return this; } @CustomType.Setter public Builder iamUserArn(String iamUserArn) { - this.iamUserArn = Objects.requireNonNull(iamUserArn); + if (iamUserArn == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfigAws", "iamUserArn"); + } + this.iamUserArn = iamUserArn; return this; } @CustomType.Setter public Builder roleId(String roleId) { - this.roleId = Objects.requireNonNull(roleId); + if (roleId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfigAws", "roleId"); + } + this.roleId = roleId; return this; } @CustomType.Setter public Builder testS3Bucket(String testS3Bucket) { - this.testS3Bucket = Objects.requireNonNull(testS3Bucket); + if (testS3Bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultCloudProviderConfigAws", "testS3Bucket"); + } + this.testS3Bucket = testS3Bucket; return this; } public GetFederatedDatabaseInstancesResultCloudProviderConfigAws build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultDataProcessRegion.java index 56781224..89782236 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultDataProcessRegion.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedDatabaseInstancesResultDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultDataProcessRegion", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultDataProcessRegion", "region"); + } + this.region = region; return this; } public GetFederatedDatabaseInstancesResultDataProcessRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabase.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabase.java index 12486737..16304012 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabase.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageDatabaseCollection; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageDatabaseView; import java.lang.Integer; @@ -56,7 +57,10 @@ public Builder(GetFederatedDatabaseInstancesResultStorageDatabase defaults) { @CustomType.Setter public Builder collections(List collections) { - this.collections = Objects.requireNonNull(collections); + if (collections == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabase", "collections"); + } + this.collections = collections; return this; } public Builder collections(GetFederatedDatabaseInstancesResultStorageDatabaseCollection... collections) { @@ -64,17 +68,26 @@ public Builder collections(GetFederatedDatabaseInstancesResultStorageDatabaseCol } @CustomType.Setter public Builder maxWildcardCollections(Integer maxWildcardCollections) { - this.maxWildcardCollections = Objects.requireNonNull(maxWildcardCollections); + if (maxWildcardCollections == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabase", "maxWildcardCollections"); + } + this.maxWildcardCollections = maxWildcardCollections; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabase", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder views(List views) { - this.views = Objects.requireNonNull(views); + if (views == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabase", "views"); + } + this.views = views; return this; } public Builder views(GetFederatedDatabaseInstancesResultStorageDatabaseView... views) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollection.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollection.java index 63d8e0da..631b40cd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollection.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollection.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource; import java.lang.String; import java.util.List; @@ -42,7 +43,10 @@ public Builder(GetFederatedDatabaseInstancesResultStorageDatabaseCollection defa @CustomType.Setter public Builder dataSources(List dataSources) { - this.dataSources = Objects.requireNonNull(dataSources); + if (dataSources == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollection", "dataSources"); + } + this.dataSources = dataSources; return this; } public Builder dataSources(GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource... dataSources) { @@ -50,7 +54,10 @@ public Builder dataSources(GetFederatedDatabaseInstancesResultStorageDatabaseCol } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollection", "name"); + } + this.name = name; return this; } public GetFederatedDatabaseInstancesResultStorageDatabaseCollection build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource.java index a329b776..c05a1a99 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -96,57 +97,90 @@ public Builder(GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataS @CustomType.Setter public Builder allowInsecure(Boolean allowInsecure) { - this.allowInsecure = Objects.requireNonNull(allowInsecure); + if (allowInsecure == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "allowInsecure"); + } + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder collection(String collection) { - this.collection = Objects.requireNonNull(collection); + if (collection == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "collection"); + } + this.collection = collection; return this; } @CustomType.Setter public Builder collectionRegex(String collectionRegex) { - this.collectionRegex = Objects.requireNonNull(collectionRegex); + if (collectionRegex == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "collectionRegex"); + } + this.collectionRegex = collectionRegex; return this; } @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder databaseRegex(String databaseRegex) { - this.databaseRegex = Objects.requireNonNull(databaseRegex); + if (databaseRegex == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "databaseRegex"); + } + this.databaseRegex = databaseRegex; return this; } @CustomType.Setter public Builder datasetName(String datasetName) { - this.datasetName = Objects.requireNonNull(datasetName); + if (datasetName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "datasetName"); + } + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder defaultFormat(String defaultFormat) { - this.defaultFormat = Objects.requireNonNull(defaultFormat); + if (defaultFormat == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "defaultFormat"); + } + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder provenanceFieldName(String provenanceFieldName) { - this.provenanceFieldName = Objects.requireNonNull(provenanceFieldName); + if (provenanceFieldName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "provenanceFieldName"); + } + this.provenanceFieldName = provenanceFieldName; return this; } @CustomType.Setter public Builder storeName(String storeName) { - this.storeName = Objects.requireNonNull(storeName); + if (storeName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "storeName"); + } + this.storeName = storeName; return this; } @CustomType.Setter public Builder urls(List urls) { - this.urls = Objects.requireNonNull(urls); + if (urls == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseCollectionDataSource", "urls"); + } + this.urls = urls; return this; } public Builder urls(String... urls) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseView.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseView.java index fb515f56..e26cdd67 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseView.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageDatabaseView.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedDatabaseInstancesResultStorageDatabaseView defaults) @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseView", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder pipeline(String pipeline) { - this.pipeline = Objects.requireNonNull(pipeline); + if (pipeline == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseView", "pipeline"); + } + this.pipeline = pipeline; return this; } @CustomType.Setter public Builder source(String source) { - this.source = Objects.requireNonNull(source); + if (source == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageDatabaseView", "source"); + } + this.source = source; return this; } public GetFederatedDatabaseInstancesResultStorageDatabaseView build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStore.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStore.java index a81dae0d..fb353e48 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStore.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStore.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageStoreReadPreference; import java.lang.Boolean; import java.lang.String; @@ -155,7 +156,10 @@ public Builder(GetFederatedDatabaseInstancesResultStorageStore defaults) { @CustomType.Setter public Builder additionalStorageClasses(List additionalStorageClasses) { - this.additionalStorageClasses = Objects.requireNonNull(additionalStorageClasses); + if (additionalStorageClasses == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "additionalStorageClasses"); + } + this.additionalStorageClasses = additionalStorageClasses; return this; } public Builder additionalStorageClasses(String... additionalStorageClasses) { @@ -163,67 +167,106 @@ public Builder additionalStorageClasses(String... additionalStorageClasses) { } @CustomType.Setter public Builder allowInsecure(Boolean allowInsecure) { - this.allowInsecure = Objects.requireNonNull(allowInsecure); + if (allowInsecure == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "allowInsecure"); + } + this.allowInsecure = allowInsecure; return this; } @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder defaultFormat(String defaultFormat) { - this.defaultFormat = Objects.requireNonNull(defaultFormat); + if (defaultFormat == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "defaultFormat"); + } + this.defaultFormat = defaultFormat; return this; } @CustomType.Setter public Builder delimiter(String delimiter) { - this.delimiter = Objects.requireNonNull(delimiter); + if (delimiter == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "delimiter"); + } + this.delimiter = delimiter; return this; } @CustomType.Setter public Builder includeTags(Boolean includeTags) { - this.includeTags = Objects.requireNonNull(includeTags); + if (includeTags == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "includeTags"); + } + this.includeTags = includeTags; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder prefix(String prefix) { - this.prefix = Objects.requireNonNull(prefix); + if (prefix == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "prefix"); + } + this.prefix = prefix; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter("public") public Builder public_(String public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "public_"); + } + this.public_ = public_; return this; } @CustomType.Setter public Builder readPreferences(List readPreferences) { - this.readPreferences = Objects.requireNonNull(readPreferences); + if (readPreferences == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "readPreferences"); + } + this.readPreferences = readPreferences; return this; } public Builder readPreferences(GetFederatedDatabaseInstancesResultStorageStoreReadPreference... readPreferences) { @@ -231,12 +274,18 @@ public Builder readPreferences(GetFederatedDatabaseInstancesResultStorageStoreRe } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urls(List urls) { - this.urls = Objects.requireNonNull(urls); + if (urls == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStore", "urls"); + } + this.urls = urls; return this; } public Builder urls(String... urls) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreference.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreference.java index 0bf59697..10119f96 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreference.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreference.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet; import java.lang.Integer; import java.lang.String; @@ -49,17 +50,26 @@ public Builder(GetFederatedDatabaseInstancesResultStorageStoreReadPreference def @CustomType.Setter public Builder maxStalenessSeconds(Integer maxStalenessSeconds) { - this.maxStalenessSeconds = Objects.requireNonNull(maxStalenessSeconds); + if (maxStalenessSeconds == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreference", "maxStalenessSeconds"); + } + this.maxStalenessSeconds = maxStalenessSeconds; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreference", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder tagSets(List tagSets) { - this.tagSets = Objects.requireNonNull(tagSets); + if (tagSets == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreference", "tagSets"); + } + this.tagSets = tagSets; return this; } public Builder tagSets(GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet... tagSets) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet.java index e9391ac9..d01ecf40 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag; import java.util.List; import java.util.Objects; @@ -35,7 +36,10 @@ public Builder(GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagS @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSet", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag.java index 00d95743..cb936fbc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagS @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag", "value"); + } + this.value = value; return this; } public GetFederatedDatabaseInstancesResultStorageStoreReadPreferenceTagSetTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitResult.java index 6c9511bb..2370e130 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -113,52 +114,82 @@ public Builder(GetFederatedQueryLimitResult defaults) { @CustomType.Setter public Builder currentUsage(Integer currentUsage) { - this.currentUsage = Objects.requireNonNull(currentUsage); + if (currentUsage == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "currentUsage"); + } + this.currentUsage = currentUsage; return this; } @CustomType.Setter public Builder defaultLimit(Integer defaultLimit) { - this.defaultLimit = Objects.requireNonNull(defaultLimit); + if (defaultLimit == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "defaultLimit"); + } + this.defaultLimit = defaultLimit; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastModifiedDate(String lastModifiedDate) { - this.lastModifiedDate = Objects.requireNonNull(lastModifiedDate); + if (lastModifiedDate == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "lastModifiedDate"); + } + this.lastModifiedDate = lastModifiedDate; return this; } @CustomType.Setter public Builder limitName(String limitName) { - this.limitName = Objects.requireNonNull(limitName); + if (limitName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "limitName"); + } + this.limitName = limitName; return this; } @CustomType.Setter public Builder maximumLimit(Integer maximumLimit) { - this.maximumLimit = Objects.requireNonNull(maximumLimit); + if (maximumLimit == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "maximumLimit"); + } + this.maximumLimit = maximumLimit; return this; } @CustomType.Setter public Builder overrunPolicy(String overrunPolicy) { - this.overrunPolicy = Objects.requireNonNull(overrunPolicy); + if (overrunPolicy == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "overrunPolicy"); + } + this.overrunPolicy = overrunPolicy; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder tenantName(String tenantName) { - this.tenantName = Objects.requireNonNull(tenantName); + if (tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "tenantName"); + } + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitResult", "value"); + } + this.value = value; return this; } public GetFederatedQueryLimitResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsInvokeResult.java index 846b5b3e..18ae9072 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedQueryLimitsResult; import java.lang.String; import java.util.List; @@ -70,17 +71,26 @@ public Builder(GetFederatedQueryLimitsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetFederatedQueryLimitsResult... results) { @@ -88,7 +98,10 @@ public Builder results(GetFederatedQueryLimitsResult... results) { } @CustomType.Setter public Builder tenantName(String tenantName) { - this.tenantName = Objects.requireNonNull(tenantName); + if (tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsInvokeResult", "tenantName"); + } + this.tenantName = tenantName; return this; } public GetFederatedQueryLimitsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsResult.java index 784df4e5..f3ebef00 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedQueryLimitsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,47 +116,74 @@ public Builder(GetFederatedQueryLimitsResult defaults) { @CustomType.Setter public Builder currentUsage(Integer currentUsage) { - this.currentUsage = Objects.requireNonNull(currentUsage); + if (currentUsage == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "currentUsage"); + } + this.currentUsage = currentUsage; return this; } @CustomType.Setter public Builder defaultLimit(Integer defaultLimit) { - this.defaultLimit = Objects.requireNonNull(defaultLimit); + if (defaultLimit == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "defaultLimit"); + } + this.defaultLimit = defaultLimit; return this; } @CustomType.Setter public Builder lastModifiedDate(String lastModifiedDate) { - this.lastModifiedDate = Objects.requireNonNull(lastModifiedDate); + if (lastModifiedDate == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "lastModifiedDate"); + } + this.lastModifiedDate = lastModifiedDate; return this; } @CustomType.Setter public Builder limitName(String limitName) { - this.limitName = Objects.requireNonNull(limitName); + if (limitName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "limitName"); + } + this.limitName = limitName; return this; } @CustomType.Setter public Builder maximumLimit(Integer maximumLimit) { - this.maximumLimit = Objects.requireNonNull(maximumLimit); + if (maximumLimit == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "maximumLimit"); + } + this.maximumLimit = maximumLimit; return this; } @CustomType.Setter public Builder overrunPolicy(String overrunPolicy) { - this.overrunPolicy = Objects.requireNonNull(overrunPolicy); + if (overrunPolicy == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "overrunPolicy"); + } + this.overrunPolicy = overrunPolicy; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder tenantName(String tenantName) { - this.tenantName = Objects.requireNonNull(tenantName); + if (tenantName == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "tenantName"); + } + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetFederatedQueryLimitsResult", "value"); + } + this.value = value; return this; } public GetFederatedQueryLimitsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrg.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrg.java index 9c87c561..aee64a6c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrg.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrg.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict; import java.lang.Boolean; @@ -114,7 +115,10 @@ public Builder(GetFederatedSettingsIdentityProviderAssociatedOrg defaults) { @CustomType.Setter public Builder domainAllowLists(List domainAllowLists) { - this.domainAllowLists = Objects.requireNonNull(domainAllowLists); + if (domainAllowLists == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "domainAllowLists"); + } + this.domainAllowLists = domainAllowLists; return this; } public Builder domainAllowLists(String... domainAllowLists) { @@ -122,22 +126,34 @@ public Builder domainAllowLists(String... domainAllowLists) { } @CustomType.Setter public Builder domainRestrictionEnabled(Boolean domainRestrictionEnabled) { - this.domainRestrictionEnabled = Objects.requireNonNull(domainRestrictionEnabled); + if (domainRestrictionEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "domainRestrictionEnabled"); + } + this.domainRestrictionEnabled = domainRestrictionEnabled; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder postAuthRoleGrants(List postAuthRoleGrants) { - this.postAuthRoleGrants = Objects.requireNonNull(postAuthRoleGrants); + if (postAuthRoleGrants == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "postAuthRoleGrants"); + } + this.postAuthRoleGrants = postAuthRoleGrants; return this; } public Builder postAuthRoleGrants(String... postAuthRoleGrants) { @@ -145,7 +161,10 @@ public Builder postAuthRoleGrants(String... postAuthRoleGrants) { } @CustomType.Setter public Builder roleMappings(List roleMappings) { - this.roleMappings = Objects.requireNonNull(roleMappings); + if (roleMappings == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "roleMappings"); + } + this.roleMappings = roleMappings; return this; } public Builder roleMappings(GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping... roleMappings) { @@ -153,7 +172,10 @@ public Builder roleMappings(GetFederatedSettingsIdentityProviderAssociatedOrgRol } @CustomType.Setter public Builder userConflicts(List userConflicts) { - this.userConflicts = Objects.requireNonNull(userConflicts); + if (userConflicts == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrg", "userConflicts"); + } + this.userConflicts = userConflicts; return this; } public Builder userConflicts(GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict... userConflicts) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping.java index 3079b279..e6c0a09c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping defa @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMapping", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment... roleAssignments) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment.java index f3123129..d913d6cd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleA @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsIdentityProviderAssociatedOrgRoleMappingRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict.java index 41409580..b34a4a6d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict def @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict", "userId"); + } + this.userId = userId; return this; } public GetFederatedSettingsIdentityProviderAssociatedOrgUserConflict build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfo.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfo.java index 0b22ae13..fbce1308 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfo.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfo.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderPemFileInfoCertificate; import java.lang.String; import java.util.List; @@ -50,7 +51,10 @@ public Builder(GetFederatedSettingsIdentityProviderPemFileInfo defaults) { @CustomType.Setter public Builder certificates(List certificates) { - this.certificates = Objects.requireNonNull(certificates); + if (certificates == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPemFileInfo", "certificates"); + } + this.certificates = certificates; return this; } public Builder certificates(GetFederatedSettingsIdentityProviderPemFileInfoCertificate... certificates) { @@ -58,7 +62,10 @@ public Builder certificates(GetFederatedSettingsIdentityProviderPemFileInfoCerti } @CustomType.Setter public Builder fileName(String fileName) { - this.fileName = Objects.requireNonNull(fileName); + if (fileName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPemFileInfo", "fileName"); + } + this.fileName = fileName; return this; } public GetFederatedSettingsIdentityProviderPemFileInfo build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfoCertificate.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfoCertificate.java index 5c933970..c0de6de6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfoCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderPemFileInfoCertificate.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsIdentityProviderPemFileInfoCertificate defaul @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPemFileInfoCertificate", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder notBefore(String notBefore) { - this.notBefore = Objects.requireNonNull(notBefore); + if (notBefore == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderPemFileInfoCertificate", "notBefore"); + } + this.notBefore = notBefore; return this; } public GetFederatedSettingsIdentityProviderPemFileInfoCertificate build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderResult.java index ee0c757d..976ad957 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProviderResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderAssociatedOrg; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProviderPemFileInfo; import java.lang.Boolean; @@ -248,12 +249,18 @@ public Builder(GetFederatedSettingsIdentityProviderResult defaults) { @CustomType.Setter public Builder acsUrl(String acsUrl) { - this.acsUrl = Objects.requireNonNull(acsUrl); + if (acsUrl == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "acsUrl"); + } + this.acsUrl = acsUrl; return this; } @CustomType.Setter public Builder associatedDomains(List associatedDomains) { - this.associatedDomains = Objects.requireNonNull(associatedDomains); + if (associatedDomains == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "associatedDomains"); + } + this.associatedDomains = associatedDomains; return this; } public Builder associatedDomains(String... associatedDomains) { @@ -261,7 +268,10 @@ public Builder associatedDomains(String... associatedDomains) { } @CustomType.Setter public Builder associatedOrgs(List associatedOrgs) { - this.associatedOrgs = Objects.requireNonNull(associatedOrgs); + if (associatedOrgs == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "associatedOrgs"); + } + this.associatedOrgs = associatedOrgs; return this; } public Builder associatedOrgs(GetFederatedSettingsIdentityProviderAssociatedOrg... associatedOrgs) { @@ -269,42 +279,66 @@ public Builder associatedOrgs(GetFederatedSettingsIdentityProviderAssociatedOrg. } @CustomType.Setter public Builder audienceUri(String audienceUri) { - this.audienceUri = Objects.requireNonNull(audienceUri); + if (audienceUri == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "audienceUri"); + } + this.audienceUri = audienceUri; return this; } @CustomType.Setter public Builder displayName(String displayName) { - this.displayName = Objects.requireNonNull(displayName); + if (displayName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "displayName"); + } + this.displayName = displayName; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder issuerUri(String issuerUri) { - this.issuerUri = Objects.requireNonNull(issuerUri); + if (issuerUri == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "issuerUri"); + } + this.issuerUri = issuerUri; return this; } @CustomType.Setter public Builder oktaIdpId(String oktaIdpId) { - this.oktaIdpId = Objects.requireNonNull(oktaIdpId); + if (oktaIdpId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "oktaIdpId"); + } + this.oktaIdpId = oktaIdpId; return this; } @CustomType.Setter public Builder pemFileInfos(List pemFileInfos) { - this.pemFileInfos = Objects.requireNonNull(pemFileInfos); + if (pemFileInfos == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "pemFileInfos"); + } + this.pemFileInfos = pemFileInfos; return this; } public Builder pemFileInfos(GetFederatedSettingsIdentityProviderPemFileInfo... pemFileInfos) { @@ -312,27 +346,42 @@ public Builder pemFileInfos(GetFederatedSettingsIdentityProviderPemFileInfo... p } @CustomType.Setter public Builder requestBinding(String requestBinding) { - this.requestBinding = Objects.requireNonNull(requestBinding); + if (requestBinding == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "requestBinding"); + } + this.requestBinding = requestBinding; return this; } @CustomType.Setter public Builder responseSignatureAlgorithm(String responseSignatureAlgorithm) { - this.responseSignatureAlgorithm = Objects.requireNonNull(responseSignatureAlgorithm); + if (responseSignatureAlgorithm == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "responseSignatureAlgorithm"); + } + this.responseSignatureAlgorithm = responseSignatureAlgorithm; return this; } @CustomType.Setter public Builder ssoDebugEnabled(Boolean ssoDebugEnabled) { - this.ssoDebugEnabled = Objects.requireNonNull(ssoDebugEnabled); + if (ssoDebugEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "ssoDebugEnabled"); + } + this.ssoDebugEnabled = ssoDebugEnabled; return this; } @CustomType.Setter public Builder ssoUrl(String ssoUrl) { - this.ssoUrl = Objects.requireNonNull(ssoUrl); + if (ssoUrl == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "ssoUrl"); + } + this.ssoUrl = ssoUrl; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProviderResult", "status"); + } + this.status = status; return this; } public GetFederatedSettingsIdentityProviderResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersInvokeResult.java index 7cd48de4..b630cf29 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResult; import java.lang.Integer; import java.lang.String; @@ -87,27 +88,38 @@ public Builder(GetFederatedSettingsIdentityProvidersInvokeResult defaults) { @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersInvokeResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetFederatedSettingsIdentityProvidersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResult.java index a5d5b887..b6c02f6c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultAssociatedOrg; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultPemFileInfo; import java.lang.Boolean; @@ -206,12 +207,18 @@ public Builder(GetFederatedSettingsIdentityProvidersResult defaults) { @CustomType.Setter public Builder acsUrl(String acsUrl) { - this.acsUrl = Objects.requireNonNull(acsUrl); + if (acsUrl == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "acsUrl"); + } + this.acsUrl = acsUrl; return this; } @CustomType.Setter public Builder associatedDomains(List associatedDomains) { - this.associatedDomains = Objects.requireNonNull(associatedDomains); + if (associatedDomains == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "associatedDomains"); + } + this.associatedDomains = associatedDomains; return this; } public Builder associatedDomains(String... associatedDomains) { @@ -219,7 +226,10 @@ public Builder associatedDomains(String... associatedDomains) { } @CustomType.Setter public Builder associatedOrgs(List associatedOrgs) { - this.associatedOrgs = Objects.requireNonNull(associatedOrgs); + if (associatedOrgs == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "associatedOrgs"); + } + this.associatedOrgs = associatedOrgs; return this; } public Builder associatedOrgs(GetFederatedSettingsIdentityProvidersResultAssociatedOrg... associatedOrgs) { @@ -227,27 +237,42 @@ public Builder associatedOrgs(GetFederatedSettingsIdentityProvidersResultAssocia } @CustomType.Setter public Builder audienceUri(String audienceUri) { - this.audienceUri = Objects.requireNonNull(audienceUri); + if (audienceUri == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "audienceUri"); + } + this.audienceUri = audienceUri; return this; } @CustomType.Setter public Builder displayName(String displayName) { - this.displayName = Objects.requireNonNull(displayName); + if (displayName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "displayName"); + } + this.displayName = displayName; return this; } @CustomType.Setter public Builder issuerUri(String issuerUri) { - this.issuerUri = Objects.requireNonNull(issuerUri); + if (issuerUri == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "issuerUri"); + } + this.issuerUri = issuerUri; return this; } @CustomType.Setter public Builder oktaIdpId(String oktaIdpId) { - this.oktaIdpId = Objects.requireNonNull(oktaIdpId); + if (oktaIdpId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "oktaIdpId"); + } + this.oktaIdpId = oktaIdpId; return this; } @CustomType.Setter public Builder pemFileInfos(List pemFileInfos) { - this.pemFileInfos = Objects.requireNonNull(pemFileInfos); + if (pemFileInfos == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "pemFileInfos"); + } + this.pemFileInfos = pemFileInfos; return this; } public Builder pemFileInfos(GetFederatedSettingsIdentityProvidersResultPemFileInfo... pemFileInfos) { @@ -255,27 +280,42 @@ public Builder pemFileInfos(GetFederatedSettingsIdentityProvidersResultPemFileIn } @CustomType.Setter public Builder requestBinding(String requestBinding) { - this.requestBinding = Objects.requireNonNull(requestBinding); + if (requestBinding == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "requestBinding"); + } + this.requestBinding = requestBinding; return this; } @CustomType.Setter public Builder responseSignatureAlgorithm(String responseSignatureAlgorithm) { - this.responseSignatureAlgorithm = Objects.requireNonNull(responseSignatureAlgorithm); + if (responseSignatureAlgorithm == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "responseSignatureAlgorithm"); + } + this.responseSignatureAlgorithm = responseSignatureAlgorithm; return this; } @CustomType.Setter public Builder ssoDebugEnabled(Boolean ssoDebugEnabled) { - this.ssoDebugEnabled = Objects.requireNonNull(ssoDebugEnabled); + if (ssoDebugEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "ssoDebugEnabled"); + } + this.ssoDebugEnabled = ssoDebugEnabled; return this; } @CustomType.Setter public Builder ssoUrl(String ssoUrl) { - this.ssoUrl = Objects.requireNonNull(ssoUrl); + if (ssoUrl == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "ssoUrl"); + } + this.ssoUrl = ssoUrl; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResult", "status"); + } + this.status = status; return this; } public GetFederatedSettingsIdentityProvidersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrg.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrg.java index c61ea9e4..b723b363 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrg.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrg.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict; import java.lang.Boolean; @@ -114,7 +115,10 @@ public Builder(GetFederatedSettingsIdentityProvidersResultAssociatedOrg defaults @CustomType.Setter public Builder domainAllowLists(List domainAllowLists) { - this.domainAllowLists = Objects.requireNonNull(domainAllowLists); + if (domainAllowLists == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "domainAllowLists"); + } + this.domainAllowLists = domainAllowLists; return this; } public Builder domainAllowLists(String... domainAllowLists) { @@ -122,22 +126,34 @@ public Builder domainAllowLists(String... domainAllowLists) { } @CustomType.Setter public Builder domainRestrictionEnabled(Boolean domainRestrictionEnabled) { - this.domainRestrictionEnabled = Objects.requireNonNull(domainRestrictionEnabled); + if (domainRestrictionEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "domainRestrictionEnabled"); + } + this.domainRestrictionEnabled = domainRestrictionEnabled; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder postAuthRoleGrants(List postAuthRoleGrants) { - this.postAuthRoleGrants = Objects.requireNonNull(postAuthRoleGrants); + if (postAuthRoleGrants == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "postAuthRoleGrants"); + } + this.postAuthRoleGrants = postAuthRoleGrants; return this; } public Builder postAuthRoleGrants(String... postAuthRoleGrants) { @@ -145,7 +161,10 @@ public Builder postAuthRoleGrants(String... postAuthRoleGrants) { } @CustomType.Setter public Builder roleMappings(List roleMappings) { - this.roleMappings = Objects.requireNonNull(roleMappings); + if (roleMappings == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "roleMappings"); + } + this.roleMappings = roleMappings; return this; } public Builder roleMappings(GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping... roleMappings) { @@ -153,7 +172,10 @@ public Builder roleMappings(GetFederatedSettingsIdentityProvidersResultAssociate } @CustomType.Setter public Builder userConflicts(List userConflicts) { - this.userConflicts = Objects.requireNonNull(userConflicts); + if (userConflicts == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrg", "userConflicts"); + } + this.userConflicts = userConflicts; return this; } public Builder userConflicts(GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict... userConflicts) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping.java index 67c467e5..ba6d75fb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappi @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMapping", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment... roleAssignments) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment.java index 50c98f15..c2214db7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappi @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsIdentityProvidersResultAssociatedOrgRoleMappingRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict.java index b4533737..5cf14f10 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConfl @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict", "userId"); + } + this.userId = userId; return this; } public GetFederatedSettingsIdentityProvidersResultAssociatedOrgUserConflict build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfo.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfo.java index ed01dbf8..e0fd7ccc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfo.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfo.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate; import java.lang.String; import java.util.List; @@ -50,7 +51,10 @@ public Builder(GetFederatedSettingsIdentityProvidersResultPemFileInfo defaults) @CustomType.Setter public Builder certificates(List certificates) { - this.certificates = Objects.requireNonNull(certificates); + if (certificates == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultPemFileInfo", "certificates"); + } + this.certificates = certificates; return this; } public Builder certificates(GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate... certificates) { @@ -58,7 +62,10 @@ public Builder certificates(GetFederatedSettingsIdentityProvidersResultPemFileIn } @CustomType.Setter public Builder fileName(String fileName) { - this.fileName = Objects.requireNonNull(fileName); + if (fileName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultPemFileInfo", "fileName"); + } + this.fileName = fileName; return this; } public GetFederatedSettingsIdentityProvidersResultPemFileInfo build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate.java index c6f4c264..293e1a04 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder notBefore(String notBefore) { - this.notBefore = Objects.requireNonNull(notBefore); + if (notBefore == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate", "notBefore"); + } + this.notBefore = notBefore; return this; } public GetFederatedSettingsIdentityProvidersResultPemFileInfoCertificate build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigResult.java index e127ebc8..b99e5f38 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigRoleMapping; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigUserConflict; import java.lang.Boolean; @@ -134,7 +135,10 @@ public Builder(GetFederatedSettingsOrgConfigResult defaults) { @CustomType.Setter public Builder domainAllowLists(List domainAllowLists) { - this.domainAllowLists = Objects.requireNonNull(domainAllowLists); + if (domainAllowLists == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "domainAllowLists"); + } + this.domainAllowLists = domainAllowLists; return this; } public Builder domainAllowLists(String... domainAllowLists) { @@ -142,32 +146,50 @@ public Builder domainAllowLists(String... domainAllowLists) { } @CustomType.Setter public Builder domainRestrictionEnabled(Boolean domainRestrictionEnabled) { - this.domainRestrictionEnabled = Objects.requireNonNull(domainRestrictionEnabled); + if (domainRestrictionEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "domainRestrictionEnabled"); + } + this.domainRestrictionEnabled = domainRestrictionEnabled; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder postAuthRoleGrants(List postAuthRoleGrants) { - this.postAuthRoleGrants = Objects.requireNonNull(postAuthRoleGrants); + if (postAuthRoleGrants == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "postAuthRoleGrants"); + } + this.postAuthRoleGrants = postAuthRoleGrants; return this; } public Builder postAuthRoleGrants(String... postAuthRoleGrants) { @@ -175,7 +197,10 @@ public Builder postAuthRoleGrants(String... postAuthRoleGrants) { } @CustomType.Setter public Builder roleMappings(List roleMappings) { - this.roleMappings = Objects.requireNonNull(roleMappings); + if (roleMappings == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "roleMappings"); + } + this.roleMappings = roleMappings; return this; } public Builder roleMappings(GetFederatedSettingsOrgConfigRoleMapping... roleMappings) { @@ -183,7 +208,10 @@ public Builder roleMappings(GetFederatedSettingsOrgConfigRoleMapping... roleMapp } @CustomType.Setter public Builder userConflicts(List userConflicts) { - this.userConflicts = Objects.requireNonNull(userConflicts); + if (userConflicts == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigResult", "userConflicts"); + } + this.userConflicts = userConflicts; return this; } public Builder userConflicts(GetFederatedSettingsOrgConfigUserConflict... userConflicts) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMapping.java index 21265d25..35fe57a5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMapping.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigRoleMappingRoleAssignment; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetFederatedSettingsOrgConfigRoleMapping defaults) { @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMapping", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMapping", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMapping", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsOrgConfigRoleMappingRoleAssignment... roleAssignments) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMappingRoleAssignment.java index 8f76e47e..9e6d53e6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigRoleMappingRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsOrgConfigRoleMappingRoleAssignment defaults) @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMappingRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMappingRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigRoleMappingRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsOrgConfigRoleMappingRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigUserConflict.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigUserConflict.java index b1e348fb..187a76d8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigUserConflict.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigUserConflict.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetFederatedSettingsOrgConfigUserConflict defaults) { @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigUserConflict", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigUserConflict", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigUserConflict", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigUserConflict", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigUserConflict", "userId"); + } + this.userId = userId; return this; } public GetFederatedSettingsOrgConfigUserConflict build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsInvokeResult.java index 39c7a9bc..326b5b96 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigsResult; import java.lang.Integer; import java.lang.String; @@ -87,27 +88,38 @@ public Builder(GetFederatedSettingsOrgConfigsInvokeResult defaults) { @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsInvokeResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetFederatedSettingsOrgConfigsResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResult.java index 31f316db..261f8add 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigsResultRoleMapping; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigsResultUserConflict; import java.lang.Boolean; @@ -114,7 +115,10 @@ public Builder(GetFederatedSettingsOrgConfigsResult defaults) { @CustomType.Setter public Builder domainAllowLists(List domainAllowLists) { - this.domainAllowLists = Objects.requireNonNull(domainAllowLists); + if (domainAllowLists == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "domainAllowLists"); + } + this.domainAllowLists = domainAllowLists; return this; } public Builder domainAllowLists(String... domainAllowLists) { @@ -122,22 +126,34 @@ public Builder domainAllowLists(String... domainAllowLists) { } @CustomType.Setter public Builder domainRestrictionEnabled(Boolean domainRestrictionEnabled) { - this.domainRestrictionEnabled = Objects.requireNonNull(domainRestrictionEnabled); + if (domainRestrictionEnabled == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "domainRestrictionEnabled"); + } + this.domainRestrictionEnabled = domainRestrictionEnabled; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder postAuthRoleGrants(List postAuthRoleGrants) { - this.postAuthRoleGrants = Objects.requireNonNull(postAuthRoleGrants); + if (postAuthRoleGrants == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "postAuthRoleGrants"); + } + this.postAuthRoleGrants = postAuthRoleGrants; return this; } public Builder postAuthRoleGrants(String... postAuthRoleGrants) { @@ -145,7 +161,10 @@ public Builder postAuthRoleGrants(String... postAuthRoleGrants) { } @CustomType.Setter public Builder roleMappings(List roleMappings) { - this.roleMappings = Objects.requireNonNull(roleMappings); + if (roleMappings == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "roleMappings"); + } + this.roleMappings = roleMappings; return this; } public Builder roleMappings(GetFederatedSettingsOrgConfigsResultRoleMapping... roleMappings) { @@ -153,7 +172,10 @@ public Builder roleMappings(GetFederatedSettingsOrgConfigsResultRoleMapping... r } @CustomType.Setter public Builder userConflicts(List userConflicts) { - this.userConflicts = Objects.requireNonNull(userConflicts); + if (userConflicts == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResult", "userConflicts"); + } + this.userConflicts = userConflicts; return this; } public Builder userConflicts(GetFederatedSettingsOrgConfigsResultUserConflict... userConflicts) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMapping.java index 557ea027..1da817e9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMapping.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetFederatedSettingsOrgConfigsResultRoleMapping defaults) { @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMapping", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMapping", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMapping", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment... roleAssignments) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment.java index f068f5b8..fe730a52 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment def @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultUserConflict.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultUserConflict.java index 3bed8223..78207d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultUserConflict.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgConfigsResultUserConflict.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetFederatedSettingsOrgConfigsResultUserConflict defaults) { @CustomType.Setter public Builder emailAddress(String emailAddress) { - this.emailAddress = Objects.requireNonNull(emailAddress); + if (emailAddress == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultUserConflict", "emailAddress"); + } + this.emailAddress = emailAddress; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultUserConflict", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder firstName(String firstName) { - this.firstName = Objects.requireNonNull(firstName); + if (firstName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultUserConflict", "firstName"); + } + this.firstName = firstName; return this; } @CustomType.Setter public Builder lastName(String lastName) { - this.lastName = Objects.requireNonNull(lastName); + if (lastName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultUserConflict", "lastName"); + } + this.lastName = lastName; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgConfigsResultUserConflict", "userId"); + } + this.userId = userId; return this; } public GetFederatedSettingsOrgConfigsResultUserConflict build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingResult.java index e908e8f4..c60fddab 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgRoleMappingRoleAssignment; import java.lang.String; import java.util.List; @@ -90,27 +91,42 @@ public Builder(GetFederatedSettingsOrgRoleMappingResult defaults) { @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsOrgRoleMappingRoleAssignment... roleAssignments) { @@ -118,7 +134,10 @@ public Builder roleAssignments(GetFederatedSettingsOrgRoleMappingRoleAssignment. } @CustomType.Setter public Builder roleMappingId(String roleMappingId) { - this.roleMappingId = Objects.requireNonNull(roleMappingId); + if (roleMappingId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingResult", "roleMappingId"); + } + this.roleMappingId = roleMappingId; return this; } public GetFederatedSettingsOrgRoleMappingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingRoleAssignment.java index 504099a0..b9e565d8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsOrgRoleMappingRoleAssignment defaults) { @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsOrgRoleMappingRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsInvokeResult.java index ba2b400e..81c574ea 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgRoleMappingsResult; import java.lang.Integer; import java.lang.String; @@ -85,32 +86,46 @@ public Builder(GetFederatedSettingsOrgRoleMappingsInvokeResult defaults) { @CustomType.Setter public Builder federationSettingsId(String federationSettingsId) { - this.federationSettingsId = Objects.requireNonNull(federationSettingsId); + if (federationSettingsId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsInvokeResult", "federationSettingsId"); + } + this.federationSettingsId = federationSettingsId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsInvokeResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetFederatedSettingsOrgRoleMappingsResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResult.java index e3290172..d5cd39dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetFederatedSettingsOrgRoleMappingsResultRoleAssignment; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetFederatedSettingsOrgRoleMappingsResult defaults) { @CustomType.Setter public Builder externalGroupName(String externalGroupName) { - this.externalGroupName = Objects.requireNonNull(externalGroupName); + if (externalGroupName == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResult", "externalGroupName"); + } + this.externalGroupName = externalGroupName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder roleAssignments(List roleAssignments) { - this.roleAssignments = Objects.requireNonNull(roleAssignments); + if (roleAssignments == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResult", "roleAssignments"); + } + this.roleAssignments = roleAssignments; return this; } public Builder roleAssignments(GetFederatedSettingsOrgRoleMappingsResultRoleAssignment... roleAssignments) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResultRoleAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResultRoleAssignment.java index 6dd89762..9c986e50 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResultRoleAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsOrgRoleMappingsResultRoleAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetFederatedSettingsOrgRoleMappingsResultRoleAssignment defaults) @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResultRoleAssignment", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResultRoleAssignment", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsOrgRoleMappingsResultRoleAssignment", "role"); + } + this.role = role; return this; } public GetFederatedSettingsOrgRoleMappingsResultRoleAssignment build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsResult.java index 3111211d..85c2800a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetFederatedSettingsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -106,7 +107,10 @@ public Builder(GetFederatedSettingsResult defaults) { @CustomType.Setter public Builder federatedDomains(List federatedDomains) { - this.federatedDomains = Objects.requireNonNull(federatedDomains); + if (federatedDomains == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "federatedDomains"); + } + this.federatedDomains = federatedDomains; return this; } public Builder federatedDomains(String... federatedDomains) { @@ -114,27 +118,42 @@ public Builder federatedDomains(String... federatedDomains) { } @CustomType.Setter public Builder hasRoleMappings(Boolean hasRoleMappings) { - this.hasRoleMappings = Objects.requireNonNull(hasRoleMappings); + if (hasRoleMappings == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "hasRoleMappings"); + } + this.hasRoleMappings = hasRoleMappings; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder identityProviderId(String identityProviderId) { - this.identityProviderId = Objects.requireNonNull(identityProviderId); + if (identityProviderId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "identityProviderId"); + } + this.identityProviderId = identityProviderId; return this; } @CustomType.Setter public Builder identityProviderStatus(String identityProviderStatus) { - this.identityProviderStatus = Objects.requireNonNull(identityProviderStatus); + if (identityProviderStatus == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "identityProviderStatus"); + } + this.identityProviderStatus = identityProviderStatus; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetFederatedSettingsResult", "orgId"); + } + this.orgId = orgId; return this; } public GetFederatedSettingsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigManagedNamespace.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigManagedNamespace.java index 27ba3c81..71cb24ec 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigManagedNamespace.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigManagedNamespace.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetGlobalClusterConfigManagedNamespace defaults) { @CustomType.Setter public Builder collection(String collection) { - this.collection = Objects.requireNonNull(collection); + if (collection == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "collection"); + } + this.collection = collection; return this; } @CustomType.Setter public Builder customShardKey(String customShardKey) { - this.customShardKey = Objects.requireNonNull(customShardKey); + if (customShardKey == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "customShardKey"); + } + this.customShardKey = customShardKey; return this; } @CustomType.Setter public Builder db(String db) { - this.db = Objects.requireNonNull(db); + if (db == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "db"); + } + this.db = db; return this; } @CustomType.Setter public Builder isCustomShardKeyHashed(Boolean isCustomShardKeyHashed) { - this.isCustomShardKeyHashed = Objects.requireNonNull(isCustomShardKeyHashed); + if (isCustomShardKeyHashed == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "isCustomShardKeyHashed"); + } + this.isCustomShardKeyHashed = isCustomShardKeyHashed; return this; } @CustomType.Setter public Builder isShardKeyUnique(Boolean isShardKeyUnique) { - this.isShardKeyUnique = Objects.requireNonNull(isShardKeyUnique); + if (isShardKeyUnique == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigManagedNamespace", "isShardKeyUnique"); + } + this.isShardKeyUnique = isShardKeyUnique; return this; } public GetGlobalClusterConfigManagedNamespace build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigResult.java index 2df537bd..958de722 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetGlobalClusterConfigResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetGlobalClusterConfigManagedNamespace; import java.lang.Object; import java.lang.String; @@ -86,22 +87,34 @@ public Builder(GetGlobalClusterConfigResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder customZoneMapping(Map customZoneMapping) { - this.customZoneMapping = Objects.requireNonNull(customZoneMapping); + if (customZoneMapping == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigResult", "customZoneMapping"); + } + this.customZoneMapping = customZoneMapping; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder managedNamespaces(List managedNamespaces) { - this.managedNamespaces = Objects.requireNonNull(managedNamespaces); + if (managedNamespaces == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigResult", "managedNamespaces"); + } + this.managedNamespaces = managedNamespaces; return this; } public Builder managedNamespaces(GetGlobalClusterConfigManagedNamespace... managedNamespaces) { @@ -109,7 +122,10 @@ public Builder managedNamespaces(GetGlobalClusterConfigManagedNamespace... manag } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetGlobalClusterConfigResult", "projectId"); + } + this.projectId = projectId; return this; } public GetGlobalClusterConfigResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationResult.java index 5ccb2633..d230c4f7 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetLdapConfigurationUserToDnMapping; import java.lang.Boolean; import java.lang.Integer; @@ -184,57 +185,90 @@ public Builder(GetLdapConfigurationResult defaults) { @CustomType.Setter public Builder authenticationEnabled(Boolean authenticationEnabled) { - this.authenticationEnabled = Objects.requireNonNull(authenticationEnabled); + if (authenticationEnabled == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "authenticationEnabled"); + } + this.authenticationEnabled = authenticationEnabled; return this; } @CustomType.Setter public Builder authorizationEnabled(Boolean authorizationEnabled) { - this.authorizationEnabled = Objects.requireNonNull(authorizationEnabled); + if (authorizationEnabled == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "authorizationEnabled"); + } + this.authorizationEnabled = authorizationEnabled; return this; } @CustomType.Setter public Builder authzQueryTemplate(String authzQueryTemplate) { - this.authzQueryTemplate = Objects.requireNonNull(authzQueryTemplate); + if (authzQueryTemplate == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "authzQueryTemplate"); + } + this.authzQueryTemplate = authzQueryTemplate; return this; } @CustomType.Setter public Builder bindPassword(String bindPassword) { - this.bindPassword = Objects.requireNonNull(bindPassword); + if (bindPassword == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "bindPassword"); + } + this.bindPassword = bindPassword; return this; } @CustomType.Setter public Builder bindUsername(String bindUsername) { - this.bindUsername = Objects.requireNonNull(bindUsername); + if (bindUsername == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "bindUsername"); + } + this.bindUsername = bindUsername; return this; } @CustomType.Setter public Builder caCertificate(String caCertificate) { - this.caCertificate = Objects.requireNonNull(caCertificate); + if (caCertificate == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "caCertificate"); + } + this.caCertificate = caCertificate; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder userToDnMappings(List userToDnMappings) { - this.userToDnMappings = Objects.requireNonNull(userToDnMappings); + if (userToDnMappings == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationResult", "userToDnMappings"); + } + this.userToDnMappings = userToDnMappings; return this; } public Builder userToDnMappings(GetLdapConfigurationUserToDnMapping... userToDnMappings) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationUserToDnMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationUserToDnMapping.java index b8c7cd9f..33b89d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationUserToDnMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapConfigurationUserToDnMapping.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetLdapConfigurationUserToDnMapping defaults) { @CustomType.Setter public Builder ldapQuery(String ldapQuery) { - this.ldapQuery = Objects.requireNonNull(ldapQuery); + if (ldapQuery == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationUserToDnMapping", "ldapQuery"); + } + this.ldapQuery = ldapQuery; return this; } @CustomType.Setter public Builder match(String match) { - this.match = Objects.requireNonNull(match); + if (match == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationUserToDnMapping", "match"); + } + this.match = match; return this; } @CustomType.Setter public Builder substitution(String substitution) { - this.substitution = Objects.requireNonNull(substitution); + if (substitution == null) { + throw new MissingRequiredPropertyException("GetLdapConfigurationUserToDnMapping", "substitution"); + } + this.substitution = substitution; return this; } public GetLdapConfigurationUserToDnMapping build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyLink.java index 1252d100..f205f3dc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetLdapVerifyLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyLink", "rel"); + } + this.rel = rel; return this; } public GetLdapVerifyLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyResult.java index 1e6f4ae9..9e30f6d5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetLdapVerifyLink; import com.pulumi.mongodbatlas.outputs.GetLdapVerifyValidation; import java.lang.Integer; @@ -150,22 +151,34 @@ public Builder(GetLdapVerifyResult defaults) { @CustomType.Setter public Builder bindUsername(String bindUsername) { - this.bindUsername = Objects.requireNonNull(bindUsername); + if (bindUsername == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "bindUsername"); + } + this.bindUsername = bindUsername; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "links"); + } + this.links = links; return this; } public Builder links(GetLdapVerifyLink... links) { @@ -173,27 +186,42 @@ public Builder links(GetLdapVerifyLink... links) { } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder requestId(String requestId) { - this.requestId = Objects.requireNonNull(requestId); + if (requestId == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "requestId"); + } + this.requestId = requestId; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder validations(List validations) { - this.validations = Objects.requireNonNull(validations); + if (validations == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyResult", "validations"); + } + this.validations = validations; return this; } public Builder validations(GetLdapVerifyValidation... validations) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyValidation.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyValidation.java index 1d6f9ff5..bbc35ced 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyValidation.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetLdapVerifyValidation.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetLdapVerifyValidation defaults) { @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyValidation", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder validationType(String validationType) { - this.validationType = Objects.requireNonNull(validationType); + if (validationType == null) { + throw new MissingRequiredPropertyException("GetLdapVerifyValidation", "validationType"); + } + this.validationType = validationType; return this; } public GetLdapVerifyValidation build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetMaintenanceWindowResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetMaintenanceWindowResult.java index ae00962b..4d394db3 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetMaintenanceWindowResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetMaintenanceWindowResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -122,37 +123,58 @@ public Builder(GetMaintenanceWindowResult defaults) { @CustomType.Setter public Builder autoDeferOnceEnabled(Boolean autoDeferOnceEnabled) { - this.autoDeferOnceEnabled = Objects.requireNonNull(autoDeferOnceEnabled); + if (autoDeferOnceEnabled == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "autoDeferOnceEnabled"); + } + this.autoDeferOnceEnabled = autoDeferOnceEnabled; return this; } @CustomType.Setter public Builder dayOfWeek(Integer dayOfWeek) { - this.dayOfWeek = Objects.requireNonNull(dayOfWeek); + if (dayOfWeek == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "dayOfWeek"); + } + this.dayOfWeek = dayOfWeek; return this; } @CustomType.Setter public Builder hourOfDay(Integer hourOfDay) { - this.hourOfDay = Objects.requireNonNull(hourOfDay); + if (hourOfDay == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "hourOfDay"); + } + this.hourOfDay = hourOfDay; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder numberOfDeferrals(Integer numberOfDeferrals) { - this.numberOfDeferrals = Objects.requireNonNull(numberOfDeferrals); + if (numberOfDeferrals == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "numberOfDeferrals"); + } + this.numberOfDeferrals = numberOfDeferrals; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder startAsap(Boolean startAsap) { - this.startAsap = Objects.requireNonNull(startAsap); + if (startAsap == null) { + throw new MissingRequiredPropertyException("GetMaintenanceWindowResult", "startAsap"); + } + this.startAsap = startAsap; return this; } public GetMaintenanceWindowResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainerResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainerResult.java index 70e278e9..7bfb12e6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainerResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainerResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -210,62 +211,98 @@ public Builder(GetNetworkContainerResult defaults) { @CustomType.Setter public Builder atlasCidrBlock(String atlasCidrBlock) { - this.atlasCidrBlock = Objects.requireNonNull(atlasCidrBlock); + if (atlasCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "atlasCidrBlock"); + } + this.atlasCidrBlock = atlasCidrBlock; return this; } @CustomType.Setter public Builder azureSubscriptionId(String azureSubscriptionId) { - this.azureSubscriptionId = Objects.requireNonNull(azureSubscriptionId); + if (azureSubscriptionId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "azureSubscriptionId"); + } + this.azureSubscriptionId = azureSubscriptionId; return this; } @CustomType.Setter public Builder containerId(String containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder gcpProjectId(String gcpProjectId) { - this.gcpProjectId = Objects.requireNonNull(gcpProjectId); + if (gcpProjectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "gcpProjectId"); + } + this.gcpProjectId = gcpProjectId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder networkName(String networkName) { - this.networkName = Objects.requireNonNull(networkName); + if (networkName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "networkName"); + } + this.networkName = networkName; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder provisioned(Boolean provisioned) { - this.provisioned = Objects.requireNonNull(provisioned); + if (provisioned == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "provisioned"); + } + this.provisioned = provisioned; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "regionName"); + } + this.regionName = regionName; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -273,12 +310,18 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainerResult", "vpcId"); + } + this.vpcId = vpcId; return this; } public GetNetworkContainerResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersInvokeResult.java index a1bf51b0..9e1e15be 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetNetworkContainersResult; import java.lang.String; import java.util.List; @@ -78,22 +79,34 @@ public Builder(GetNetworkContainersInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersInvokeResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetNetworkContainersResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersResult.java index 8283977d..fbcbb299 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkContainersResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -198,52 +199,82 @@ public Builder(GetNetworkContainersResult defaults) { @CustomType.Setter public Builder atlasCidrBlock(String atlasCidrBlock) { - this.atlasCidrBlock = Objects.requireNonNull(atlasCidrBlock); + if (atlasCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "atlasCidrBlock"); + } + this.atlasCidrBlock = atlasCidrBlock; return this; } @CustomType.Setter public Builder azureSubscriptionId(String azureSubscriptionId) { - this.azureSubscriptionId = Objects.requireNonNull(azureSubscriptionId); + if (azureSubscriptionId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "azureSubscriptionId"); + } + this.azureSubscriptionId = azureSubscriptionId; return this; } @CustomType.Setter public Builder gcpProjectId(String gcpProjectId) { - this.gcpProjectId = Objects.requireNonNull(gcpProjectId); + if (gcpProjectId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "gcpProjectId"); + } + this.gcpProjectId = gcpProjectId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder networkName(String networkName) { - this.networkName = Objects.requireNonNull(networkName); + if (networkName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "networkName"); + } + this.networkName = networkName; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder provisioned(Boolean provisioned) { - this.provisioned = Objects.requireNonNull(provisioned); + if (provisioned == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "provisioned"); + } + this.provisioned = provisioned; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "regionName"); + } + this.regionName = regionName; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -251,12 +282,18 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("GetNetworkContainersResult", "vpcId"); + } + this.vpcId = vpcId; return this; } public GetNetworkContainersResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringResult.java index d8331eb2..c3a1465e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -310,117 +311,186 @@ public Builder(GetNetworkPeeringResult defaults) { @CustomType.Setter public Builder accepterRegionName(String accepterRegionName) { - this.accepterRegionName = Objects.requireNonNull(accepterRegionName); + if (accepterRegionName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "accepterRegionName"); + } + this.accepterRegionName = accepterRegionName; return this; } @CustomType.Setter public Builder atlasCidrBlock(String atlasCidrBlock) { - this.atlasCidrBlock = Objects.requireNonNull(atlasCidrBlock); + if (atlasCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "atlasCidrBlock"); + } + this.atlasCidrBlock = atlasCidrBlock; return this; } @CustomType.Setter public Builder atlasId(String atlasId) { - this.atlasId = Objects.requireNonNull(atlasId); + if (atlasId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "atlasId"); + } + this.atlasId = atlasId; return this; } @CustomType.Setter public Builder awsAccountId(String awsAccountId) { - this.awsAccountId = Objects.requireNonNull(awsAccountId); + if (awsAccountId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "awsAccountId"); + } + this.awsAccountId = awsAccountId; return this; } @CustomType.Setter public Builder azureDirectoryId(String azureDirectoryId) { - this.azureDirectoryId = Objects.requireNonNull(azureDirectoryId); + if (azureDirectoryId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "azureDirectoryId"); + } + this.azureDirectoryId = azureDirectoryId; return this; } @CustomType.Setter public Builder azureSubscriptionId(String azureSubscriptionId) { - this.azureSubscriptionId = Objects.requireNonNull(azureSubscriptionId); + if (azureSubscriptionId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "azureSubscriptionId"); + } + this.azureSubscriptionId = azureSubscriptionId; return this; } @CustomType.Setter public Builder connectionId(String connectionId) { - this.connectionId = Objects.requireNonNull(connectionId); + if (connectionId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "connectionId"); + } + this.connectionId = connectionId; return this; } @CustomType.Setter public Builder containerId(String containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder errorState(String errorState) { - this.errorState = Objects.requireNonNull(errorState); + if (errorState == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "errorState"); + } + this.errorState = errorState; return this; } @CustomType.Setter public Builder errorStateName(String errorStateName) { - this.errorStateName = Objects.requireNonNull(errorStateName); + if (errorStateName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "errorStateName"); + } + this.errorStateName = errorStateName; return this; } @CustomType.Setter public Builder gcpProjectId(String gcpProjectId) { - this.gcpProjectId = Objects.requireNonNull(gcpProjectId); + if (gcpProjectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "gcpProjectId"); + } + this.gcpProjectId = gcpProjectId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder networkName(String networkName) { - this.networkName = Objects.requireNonNull(networkName); + if (networkName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "networkName"); + } + this.networkName = networkName; return this; } @CustomType.Setter public Builder peeringId(String peeringId) { - this.peeringId = Objects.requireNonNull(peeringId); + if (peeringId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "peeringId"); + } + this.peeringId = peeringId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder resourceGroupName(String resourceGroupName) { - this.resourceGroupName = Objects.requireNonNull(resourceGroupName); + if (resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "resourceGroupName"); + } + this.resourceGroupName = resourceGroupName; return this; } @CustomType.Setter public Builder routeTableCidrBlock(String routeTableCidrBlock) { - this.routeTableCidrBlock = Objects.requireNonNull(routeTableCidrBlock); + if (routeTableCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "routeTableCidrBlock"); + } + this.routeTableCidrBlock = routeTableCidrBlock; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder statusName(String statusName) { - this.statusName = Objects.requireNonNull(statusName); + if (statusName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "statusName"); + } + this.statusName = statusName; return this; } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringResult", "vpcId"); + } + this.vpcId = vpcId; return this; } public GetNetworkPeeringResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsInvokeResult.java index 83ab004d..e8c6b53f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetNetworkPeeringsResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetNetworkPeeringsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetNetworkPeeringsResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsResult.java index 72a6f9eb..68023b08 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetNetworkPeeringsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -292,102 +293,162 @@ public Builder(GetNetworkPeeringsResult defaults) { @CustomType.Setter public Builder accepterRegionName(String accepterRegionName) { - this.accepterRegionName = Objects.requireNonNull(accepterRegionName); + if (accepterRegionName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "accepterRegionName"); + } + this.accepterRegionName = accepterRegionName; return this; } @CustomType.Setter public Builder atlasCidrBlock(String atlasCidrBlock) { - this.atlasCidrBlock = Objects.requireNonNull(atlasCidrBlock); + if (atlasCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "atlasCidrBlock"); + } + this.atlasCidrBlock = atlasCidrBlock; return this; } @CustomType.Setter public Builder awsAccountId(String awsAccountId) { - this.awsAccountId = Objects.requireNonNull(awsAccountId); + if (awsAccountId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "awsAccountId"); + } + this.awsAccountId = awsAccountId; return this; } @CustomType.Setter public Builder azureDirectoryId(String azureDirectoryId) { - this.azureDirectoryId = Objects.requireNonNull(azureDirectoryId); + if (azureDirectoryId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "azureDirectoryId"); + } + this.azureDirectoryId = azureDirectoryId; return this; } @CustomType.Setter public Builder azureSubscriptionId(String azureSubscriptionId) { - this.azureSubscriptionId = Objects.requireNonNull(azureSubscriptionId); + if (azureSubscriptionId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "azureSubscriptionId"); + } + this.azureSubscriptionId = azureSubscriptionId; return this; } @CustomType.Setter public Builder connectionId(String connectionId) { - this.connectionId = Objects.requireNonNull(connectionId); + if (connectionId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "connectionId"); + } + this.connectionId = connectionId; return this; } @CustomType.Setter public Builder containerId(String containerId) { - this.containerId = Objects.requireNonNull(containerId); + if (containerId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "containerId"); + } + this.containerId = containerId; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder errorState(String errorState) { - this.errorState = Objects.requireNonNull(errorState); + if (errorState == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "errorState"); + } + this.errorState = errorState; return this; } @CustomType.Setter public Builder errorStateName(String errorStateName) { - this.errorStateName = Objects.requireNonNull(errorStateName); + if (errorStateName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "errorStateName"); + } + this.errorStateName = errorStateName; return this; } @CustomType.Setter public Builder gcpProjectId(String gcpProjectId) { - this.gcpProjectId = Objects.requireNonNull(gcpProjectId); + if (gcpProjectId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "gcpProjectId"); + } + this.gcpProjectId = gcpProjectId; return this; } @CustomType.Setter public Builder networkName(String networkName) { - this.networkName = Objects.requireNonNull(networkName); + if (networkName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "networkName"); + } + this.networkName = networkName; return this; } @CustomType.Setter public Builder peeringId(String peeringId) { - this.peeringId = Objects.requireNonNull(peeringId); + if (peeringId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "peeringId"); + } + this.peeringId = peeringId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder resourceGroupName(String resourceGroupName) { - this.resourceGroupName = Objects.requireNonNull(resourceGroupName); + if (resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "resourceGroupName"); + } + this.resourceGroupName = resourceGroupName; return this; } @CustomType.Setter public Builder routeTableCidrBlock(String routeTableCidrBlock) { - this.routeTableCidrBlock = Objects.requireNonNull(routeTableCidrBlock); + if (routeTableCidrBlock == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "routeTableCidrBlock"); + } + this.routeTableCidrBlock = routeTableCidrBlock; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder statusName(String statusName) { - this.statusName = Objects.requireNonNull(statusName); + if (statusName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "statusName"); + } + this.statusName = statusName; return this; } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("GetNetworkPeeringsResult", "vpcId"); + } + this.vpcId = vpcId; return this; } public GetNetworkPeeringsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveCriteria.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveCriteria.java index 90db4c38..c1cfd8e2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveCriteria.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(GetOnlineArchiveCriteria defaults) { @CustomType.Setter public Builder dateField(String dateField) { - this.dateField = Objects.requireNonNull(dateField); + if (dateField == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveCriteria", "dateField"); + } + this.dateField = dateField; return this; } @CustomType.Setter public Builder dateFormat(String dateFormat) { - this.dateFormat = Objects.requireNonNull(dateFormat); + if (dateFormat == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveCriteria", "dateFormat"); + } + this.dateFormat = dateFormat; return this; } @CustomType.Setter public Builder expireAfterDays(Integer expireAfterDays) { - this.expireAfterDays = Objects.requireNonNull(expireAfterDays); + if (expireAfterDays == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveCriteria", "expireAfterDays"); + } + this.expireAfterDays = expireAfterDays; return this; } @CustomType.Setter public Builder query(String query) { - this.query = Objects.requireNonNull(query); + if (query == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveCriteria", "query"); + } + this.query = query; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveCriteria", "type"); + } + this.type = type; return this; } public GetOnlineArchiveCriteria build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataExpirationRule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataExpirationRule.java index bfdabc17..9d9c65fd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataExpirationRule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataExpirationRule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOnlineArchiveDataExpirationRule defaults) { @CustomType.Setter public Builder expireAfterDays(Integer expireAfterDays) { - this.expireAfterDays = Objects.requireNonNull(expireAfterDays); + if (expireAfterDays == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveDataExpirationRule", "expireAfterDays"); + } + this.expireAfterDays = expireAfterDays; return this; } public GetOnlineArchiveDataExpirationRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataProcessRegion.java index d0347607..d7e9f70f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveDataProcessRegion.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOnlineArchiveDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveDataProcessRegion", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveDataProcessRegion", "region"); + } + this.region = region; return this; } public GetOnlineArchiveDataProcessRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivePartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivePartitionField.java index a2c69aab..1230a629 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivePartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivePartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetOnlineArchivePartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder fieldType(String fieldType) { - this.fieldType = Objects.requireNonNull(fieldType); + if (fieldType == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePartitionField", "fieldType"); + } + this.fieldType = fieldType; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivePartitionField", "order"); + } + this.order = order; return this; } public GetOnlineArchivePartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveResult.java index c5b3e59d..e34b0aac 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOnlineArchiveCriteria; import com.pulumi.mongodbatlas.outputs.GetOnlineArchiveDataExpirationRule; import com.pulumi.mongodbatlas.outputs.GetOnlineArchiveDataProcessRegion; @@ -127,27 +128,42 @@ public Builder(GetOnlineArchiveResult defaults) { @CustomType.Setter public Builder archiveId(String archiveId) { - this.archiveId = Objects.requireNonNull(archiveId); + if (archiveId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "archiveId"); + } + this.archiveId = archiveId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collName(String collName) { - this.collName = Objects.requireNonNull(collName); + if (collName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "collName"); + } + this.collName = collName; return this; } @CustomType.Setter public Builder collectionType(String collectionType) { - this.collectionType = Objects.requireNonNull(collectionType); + if (collectionType == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "collectionType"); + } + this.collectionType = collectionType; return this; } @CustomType.Setter public Builder criterias(List criterias) { - this.criterias = Objects.requireNonNull(criterias); + if (criterias == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "criterias"); + } + this.criterias = criterias; return this; } public Builder criterias(GetOnlineArchiveCriteria... criterias) { @@ -155,7 +171,10 @@ public Builder criterias(GetOnlineArchiveCriteria... criterias) { } @CustomType.Setter public Builder dataExpirationRules(List dataExpirationRules) { - this.dataExpirationRules = Objects.requireNonNull(dataExpirationRules); + if (dataExpirationRules == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "dataExpirationRules"); + } + this.dataExpirationRules = dataExpirationRules; return this; } public Builder dataExpirationRules(GetOnlineArchiveDataExpirationRule... dataExpirationRules) { @@ -163,7 +182,10 @@ public Builder dataExpirationRules(GetOnlineArchiveDataExpirationRule... dataExp } @CustomType.Setter public Builder dataProcessRegions(List dataProcessRegions) { - this.dataProcessRegions = Objects.requireNonNull(dataProcessRegions); + if (dataProcessRegions == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "dataProcessRegions"); + } + this.dataProcessRegions = dataProcessRegions; return this; } public Builder dataProcessRegions(GetOnlineArchiveDataProcessRegion... dataProcessRegions) { @@ -171,17 +193,26 @@ public Builder dataProcessRegions(GetOnlineArchiveDataProcessRegion... dataProce } @CustomType.Setter public Builder dbName(String dbName) { - this.dbName = Objects.requireNonNull(dbName); + if (dbName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "dbName"); + } + this.dbName = dbName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder partitionFields(List partitionFields) { - this.partitionFields = Objects.requireNonNull(partitionFields); + if (partitionFields == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "partitionFields"); + } + this.partitionFields = partitionFields; return this; } public Builder partitionFields(GetOnlineArchivePartitionField... partitionFields) { @@ -189,17 +220,26 @@ public Builder partitionFields(GetOnlineArchivePartitionField... partitionFields } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder schedules(List schedules) { - this.schedules = Objects.requireNonNull(schedules); + if (schedules == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "schedules"); + } + this.schedules = schedules; return this; } public Builder schedules(GetOnlineArchiveSchedule... schedules) { @@ -207,7 +247,10 @@ public Builder schedules(GetOnlineArchiveSchedule... schedules) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveResult", "state"); + } + this.state = state; return this; } public GetOnlineArchiveResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveSchedule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveSchedule.java index 45e9aa61..9ca201f6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchiveSchedule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,37 +74,54 @@ public Builder(GetOnlineArchiveSchedule defaults) { @CustomType.Setter public Builder dayOfMonth(@Nullable Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; return this; } @CustomType.Setter public Builder dayOfWeek(@Nullable Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; return this; } @CustomType.Setter public Builder endHour(Integer endHour) { - this.endHour = Objects.requireNonNull(endHour); + if (endHour == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveSchedule", "endHour"); + } + this.endHour = endHour; return this; } @CustomType.Setter public Builder endMinute(Integer endMinute) { - this.endMinute = Objects.requireNonNull(endMinute); + if (endMinute == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveSchedule", "endMinute"); + } + this.endMinute = endMinute; return this; } @CustomType.Setter public Builder startHour(Integer startHour) { - this.startHour = Objects.requireNonNull(startHour); + if (startHour == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveSchedule", "startHour"); + } + this.startHour = startHour; return this; } @CustomType.Setter public Builder startMinute(Integer startMinute) { - this.startMinute = Objects.requireNonNull(startMinute); + if (startMinute == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveSchedule", "startMinute"); + } + this.startMinute = startMinute; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetOnlineArchiveSchedule", "type"); + } + this.type = type; return this; } public GetOnlineArchiveSchedule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesInvokeResult.java index f5ac4d57..0c873edb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOnlineArchivesResult; import java.lang.Integer; import java.lang.String; @@ -69,22 +70,34 @@ public Builder(GetOnlineArchivesInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetOnlineArchivesResult... results) { @@ -92,7 +105,10 @@ public Builder results(GetOnlineArchivesResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetOnlineArchivesInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResult.java index 959ac0c1..53c34374 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOnlineArchivesResultCriteria; import com.pulumi.mongodbatlas.outputs.GetOnlineArchivesResultDataExpirationRule; import com.pulumi.mongodbatlas.outputs.GetOnlineArchivesResultDataProcessRegion; @@ -137,27 +138,42 @@ public Builder(GetOnlineArchivesResult defaults) { @CustomType.Setter public Builder archiveId(String archiveId) { - this.archiveId = Objects.requireNonNull(archiveId); + if (archiveId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "archiveId"); + } + this.archiveId = archiveId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collName(String collName) { - this.collName = Objects.requireNonNull(collName); + if (collName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "collName"); + } + this.collName = collName; return this; } @CustomType.Setter public Builder collectionType(String collectionType) { - this.collectionType = Objects.requireNonNull(collectionType); + if (collectionType == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "collectionType"); + } + this.collectionType = collectionType; return this; } @CustomType.Setter public Builder criterias(List criterias) { - this.criterias = Objects.requireNonNull(criterias); + if (criterias == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "criterias"); + } + this.criterias = criterias; return this; } public Builder criterias(GetOnlineArchivesResultCriteria... criterias) { @@ -165,7 +181,10 @@ public Builder criterias(GetOnlineArchivesResultCriteria... criterias) { } @CustomType.Setter public Builder dataExpirationRules(List dataExpirationRules) { - this.dataExpirationRules = Objects.requireNonNull(dataExpirationRules); + if (dataExpirationRules == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "dataExpirationRules"); + } + this.dataExpirationRules = dataExpirationRules; return this; } public Builder dataExpirationRules(GetOnlineArchivesResultDataExpirationRule... dataExpirationRules) { @@ -173,7 +192,10 @@ public Builder dataExpirationRules(GetOnlineArchivesResultDataExpirationRule... } @CustomType.Setter public Builder dataProcessRegions(List dataProcessRegions) { - this.dataProcessRegions = Objects.requireNonNull(dataProcessRegions); + if (dataProcessRegions == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "dataProcessRegions"); + } + this.dataProcessRegions = dataProcessRegions; return this; } public Builder dataProcessRegions(GetOnlineArchivesResultDataProcessRegion... dataProcessRegions) { @@ -181,12 +203,18 @@ public Builder dataProcessRegions(GetOnlineArchivesResultDataProcessRegion... da } @CustomType.Setter public Builder dbName(String dbName) { - this.dbName = Objects.requireNonNull(dbName); + if (dbName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "dbName"); + } + this.dbName = dbName; return this; } @CustomType.Setter public Builder partitionFields(List partitionFields) { - this.partitionFields = Objects.requireNonNull(partitionFields); + if (partitionFields == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "partitionFields"); + } + this.partitionFields = partitionFields; return this; } public Builder partitionFields(GetOnlineArchivesResultPartitionField... partitionFields) { @@ -194,17 +222,26 @@ public Builder partitionFields(GetOnlineArchivesResultPartitionField... partitio } @CustomType.Setter public Builder paused(Boolean paused) { - this.paused = Objects.requireNonNull(paused); + if (paused == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "paused"); + } + this.paused = paused; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder schedules(List schedules) { - this.schedules = Objects.requireNonNull(schedules); + if (schedules == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "schedules"); + } + this.schedules = schedules; return this; } public Builder schedules(GetOnlineArchivesResultSchedule... schedules) { @@ -212,7 +249,10 @@ public Builder schedules(GetOnlineArchivesResultSchedule... schedules) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResult", "state"); + } + this.state = state; return this; } public GetOnlineArchivesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultCriteria.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultCriteria.java index 279486b1..cb8de993 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultCriteria.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(GetOnlineArchivesResultCriteria defaults) { @CustomType.Setter public Builder dateField(String dateField) { - this.dateField = Objects.requireNonNull(dateField); + if (dateField == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultCriteria", "dateField"); + } + this.dateField = dateField; return this; } @CustomType.Setter public Builder dateFormat(String dateFormat) { - this.dateFormat = Objects.requireNonNull(dateFormat); + if (dateFormat == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultCriteria", "dateFormat"); + } + this.dateFormat = dateFormat; return this; } @CustomType.Setter public Builder expireAfterDays(Integer expireAfterDays) { - this.expireAfterDays = Objects.requireNonNull(expireAfterDays); + if (expireAfterDays == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultCriteria", "expireAfterDays"); + } + this.expireAfterDays = expireAfterDays; return this; } @CustomType.Setter public Builder query(String query) { - this.query = Objects.requireNonNull(query); + if (query == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultCriteria", "query"); + } + this.query = query; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultCriteria", "type"); + } + this.type = type; return this; } public GetOnlineArchivesResultCriteria build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataExpirationRule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataExpirationRule.java index 176f13cb..83209776 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataExpirationRule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataExpirationRule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOnlineArchivesResultDataExpirationRule defaults) { @CustomType.Setter public Builder expireAfterDays(Integer expireAfterDays) { - this.expireAfterDays = Objects.requireNonNull(expireAfterDays); + if (expireAfterDays == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultDataExpirationRule", "expireAfterDays"); + } + this.expireAfterDays = expireAfterDays; return this; } public GetOnlineArchivesResultDataExpirationRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataProcessRegion.java index 886ed1da..10d9bff4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultDataProcessRegion.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOnlineArchivesResultDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultDataProcessRegion", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultDataProcessRegion", "region"); + } + this.region = region; return this; } public GetOnlineArchivesResultDataProcessRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultPartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultPartitionField.java index d8ebd0f7..671fb057 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultPartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultPartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetOnlineArchivesResultPartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultPartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder fieldType(String fieldType) { - this.fieldType = Objects.requireNonNull(fieldType); + if (fieldType == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultPartitionField", "fieldType"); + } + this.fieldType = fieldType; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultPartitionField", "order"); + } + this.order = order; return this; } public GetOnlineArchivesResultPartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultSchedule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultSchedule.java index 0a9b9a56..1e5ffd95 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOnlineArchivesResultSchedule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,37 +74,54 @@ public Builder(GetOnlineArchivesResultSchedule defaults) { @CustomType.Setter public Builder dayOfMonth(@Nullable Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; return this; } @CustomType.Setter public Builder dayOfWeek(@Nullable Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; return this; } @CustomType.Setter public Builder endHour(Integer endHour) { - this.endHour = Objects.requireNonNull(endHour); + if (endHour == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultSchedule", "endHour"); + } + this.endHour = endHour; return this; } @CustomType.Setter public Builder endMinute(Integer endMinute) { - this.endMinute = Objects.requireNonNull(endMinute); + if (endMinute == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultSchedule", "endMinute"); + } + this.endMinute = endMinute; return this; } @CustomType.Setter public Builder startHour(Integer startHour) { - this.startHour = Objects.requireNonNull(startHour); + if (startHour == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultSchedule", "startHour"); + } + this.startHour = startHour; return this; } @CustomType.Setter public Builder startMinute(Integer startMinute) { - this.startMinute = Objects.requireNonNull(startMinute); + if (startMinute == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultSchedule", "startMinute"); + } + this.startMinute = startMinute; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetOnlineArchivesResultSchedule", "type"); + } + this.type = type; return this; } public GetOnlineArchivesResultSchedule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrgInvitationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrgInvitationResult.java index 2ad85ac8..81f6eafc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrgInvitationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrgInvitationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -131,37 +132,58 @@ public Builder(GetOrgInvitationResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder invitationId(String invitationId) { - this.invitationId = Objects.requireNonNull(invitationId); + if (invitationId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "invitationId"); + } + this.invitationId = invitationId; return this; } @CustomType.Setter public Builder inviterUsername(String inviterUsername) { - this.inviterUsername = Objects.requireNonNull(inviterUsername); + if (inviterUsername == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "inviterUsername"); + } + this.inviterUsername = inviterUsername; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -169,7 +191,10 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder teamsIds(List teamsIds) { - this.teamsIds = Objects.requireNonNull(teamsIds); + if (teamsIds == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "teamsIds"); + } + this.teamsIds = teamsIds; return this; } public Builder teamsIds(String... teamsIds) { @@ -177,7 +202,10 @@ public Builder teamsIds(String... teamsIds) { } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetOrgInvitationResult", "username"); + } + this.username = username; return this; } public GetOrgInvitationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationLink.java index 7ae029b1..f7ff84d8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOrganizationLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetOrganizationLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetOrganizationLink", "rel"); + } + this.rel = rel; return this; } public GetOrganizationLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationResult.java index 839f22f7..fe96691b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOrganizationLink; import java.lang.Boolean; import java.lang.String; @@ -85,17 +86,26 @@ public Builder(GetOrganizationResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isDeleted(Boolean isDeleted) { - this.isDeleted = Objects.requireNonNull(isDeleted); + if (isDeleted == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "isDeleted"); + } + this.isDeleted = isDeleted; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "links"); + } + this.links = links; return this; } public Builder links(GetOrganizationLink... links) { @@ -103,12 +113,18 @@ public Builder links(GetOrganizationLink... links) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "orgId"); + } + this.orgId = orgId; return this; } public GetOrganizationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsInvokeResult.java index 0c2c4c6c..062bb25d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOrganizationsResult; import java.lang.Boolean; import java.lang.Integer; @@ -84,32 +85,42 @@ public Builder(GetOrganizationsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOrganizationsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder includeDeletedOrgs(@Nullable Boolean includeDeletedOrgs) { + this.includeDeletedOrgs = includeDeletedOrgs; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetOrganizationsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetOrganizationsResult... results) { @@ -117,7 +128,10 @@ public Builder results(GetOrganizationsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetOrganizationsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetOrganizationsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResult.java index 808e6ed5..0f7fc49f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetOrganizationsResultLink; import java.lang.Boolean; import java.lang.String; @@ -83,17 +84,26 @@ public Builder(GetOrganizationsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isDeleted(Boolean isDeleted) { - this.isDeleted = Objects.requireNonNull(isDeleted); + if (isDeleted == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResult", "isDeleted"); + } + this.isDeleted = isDeleted; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResult", "links"); + } + this.links = links; return this; } public Builder links(GetOrganizationsResultLink... links) { @@ -101,7 +111,10 @@ public Builder links(GetOrganizationsResultLink... links) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResult", "name"); + } + this.name = name; return this; } public GetOrganizationsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResultLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResultLink.java index acc96c01..9fc7cfc4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResultLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetOrganizationsResultLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetOrganizationsResultLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResultLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetOrganizationsResultLink", "rel"); + } + this.rel = rel; return this; } public GetOrganizationsResultLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateEndpointRegionalModeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateEndpointRegionalModeResult.java index def6bb69..ce3a8f95 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateEndpointRegionalModeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateEndpointRegionalModeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,17 +58,24 @@ public Builder(GetPrivateEndpointRegionalModeResult defaults) { @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("GetPrivateEndpointRegionalModeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateEndpointRegionalModeResult", "projectId"); + } + this.projectId = projectId; return this; } public GetPrivateEndpointRegionalModeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointResult.java index be907273..edd80707 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -203,7 +204,10 @@ public Builder(GetPrivateLinkEndpointResult defaults) { @CustomType.Setter public Builder endpointGroupNames(List endpointGroupNames) { - this.endpointGroupNames = Objects.requireNonNull(endpointGroupNames); + if (endpointGroupNames == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "endpointGroupNames"); + } + this.endpointGroupNames = endpointGroupNames; return this; } public Builder endpointGroupNames(String... endpointGroupNames) { @@ -211,22 +215,34 @@ public Builder endpointGroupNames(String... endpointGroupNames) { } @CustomType.Setter public Builder endpointServiceName(String endpointServiceName) { - this.endpointServiceName = Objects.requireNonNull(endpointServiceName); + if (endpointServiceName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "endpointServiceName"); + } + this.endpointServiceName = endpointServiceName; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder interfaceEndpoints(List interfaceEndpoints) { - this.interfaceEndpoints = Objects.requireNonNull(interfaceEndpoints); + if (interfaceEndpoints == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "interfaceEndpoints"); + } + this.interfaceEndpoints = interfaceEndpoints; return this; } public Builder interfaceEndpoints(String... interfaceEndpoints) { @@ -234,7 +250,10 @@ public Builder interfaceEndpoints(String... interfaceEndpoints) { } @CustomType.Setter public Builder privateEndpoints(List privateEndpoints) { - this.privateEndpoints = Objects.requireNonNull(privateEndpoints); + if (privateEndpoints == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "privateEndpoints"); + } + this.privateEndpoints = privateEndpoints; return this; } public Builder privateEndpoints(String... privateEndpoints) { @@ -242,37 +261,58 @@ public Builder privateEndpoints(String... privateEndpoints) { } @CustomType.Setter public Builder privateLinkId(String privateLinkId) { - this.privateLinkId = Objects.requireNonNull(privateLinkId); + if (privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "privateLinkId"); + } + this.privateLinkId = privateLinkId; return this; } @CustomType.Setter public Builder privateLinkServiceName(String privateLinkServiceName) { - this.privateLinkServiceName = Objects.requireNonNull(privateLinkServiceName); + if (privateLinkServiceName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "privateLinkServiceName"); + } + this.privateLinkServiceName = privateLinkServiceName; return this; } @CustomType.Setter public Builder privateLinkServiceResourceId(String privateLinkServiceResourceId) { - this.privateLinkServiceResourceId = Objects.requireNonNull(privateLinkServiceResourceId); + if (privateLinkServiceResourceId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "privateLinkServiceResourceId"); + } + this.privateLinkServiceResourceId = privateLinkServiceResourceId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder regionName(String regionName) { - this.regionName = Objects.requireNonNull(regionName); + if (regionName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "regionName"); + } + this.regionName = regionName; return this; } @CustomType.Setter public Builder serviceAttachmentNames(List serviceAttachmentNames) { - this.serviceAttachmentNames = Objects.requireNonNull(serviceAttachmentNames); + if (serviceAttachmentNames == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "serviceAttachmentNames"); + } + this.serviceAttachmentNames = serviceAttachmentNames; return this; } public Builder serviceAttachmentNames(String... serviceAttachmentNames) { @@ -280,7 +320,10 @@ public Builder serviceAttachmentNames(String... serviceAttachmentNames) { } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointResult", "status"); + } + this.status = status; return this; } public GetPrivateLinkEndpointResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceEndpoint.java index 8c56d5bb..2cb15eb9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetPrivateLinkEndpointServiceEndpoint defaults) { @CustomType.Setter public Builder endpointName(String endpointName) { - this.endpointName = Objects.requireNonNull(endpointName); + if (endpointName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceEndpoint", "endpointName"); + } + this.endpointName = endpointName; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceEndpoint", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder serviceAttachmentName(String serviceAttachmentName) { - this.serviceAttachmentName = Objects.requireNonNull(serviceAttachmentName); + if (serviceAttachmentName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceEndpoint", "serviceAttachmentName"); + } + this.serviceAttachmentName = serviceAttachmentName; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceEndpoint", "status"); + } + this.status = status; return this; } public GetPrivateLinkEndpointServiceEndpoint build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceResult.java index 2204b331..58c32a74 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivateLinkEndpointServiceResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetPrivateLinkEndpointServiceEndpoint; import java.lang.Boolean; import java.lang.String; @@ -215,27 +216,42 @@ public Builder(GetPrivateLinkEndpointServiceResult defaults) { @CustomType.Setter public Builder awsConnectionStatus(String awsConnectionStatus) { - this.awsConnectionStatus = Objects.requireNonNull(awsConnectionStatus); + if (awsConnectionStatus == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "awsConnectionStatus"); + } + this.awsConnectionStatus = awsConnectionStatus; return this; } @CustomType.Setter public Builder azureStatus(String azureStatus) { - this.azureStatus = Objects.requireNonNull(azureStatus); + if (azureStatus == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "azureStatus"); + } + this.azureStatus = azureStatus; return this; } @CustomType.Setter public Builder deleteRequested(Boolean deleteRequested) { - this.deleteRequested = Objects.requireNonNull(deleteRequested); + if (deleteRequested == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "deleteRequested"); + } + this.deleteRequested = deleteRequested; return this; } @CustomType.Setter public Builder endpointServiceId(String endpointServiceId) { - this.endpointServiceId = Objects.requireNonNull(endpointServiceId); + if (endpointServiceId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "endpointServiceId"); + } + this.endpointServiceId = endpointServiceId; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(GetPrivateLinkEndpointServiceEndpoint... endpoints) { @@ -243,52 +259,82 @@ public Builder endpoints(GetPrivateLinkEndpointServiceEndpoint... endpoints) { } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder gcpStatus(String gcpStatus) { - this.gcpStatus = Objects.requireNonNull(gcpStatus); + if (gcpStatus == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "gcpStatus"); + } + this.gcpStatus = gcpStatus; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder interfaceEndpointId(String interfaceEndpointId) { - this.interfaceEndpointId = Objects.requireNonNull(interfaceEndpointId); + if (interfaceEndpointId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "interfaceEndpointId"); + } + this.interfaceEndpointId = interfaceEndpointId; return this; } @CustomType.Setter public Builder privateEndpointConnectionName(String privateEndpointConnectionName) { - this.privateEndpointConnectionName = Objects.requireNonNull(privateEndpointConnectionName); + if (privateEndpointConnectionName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "privateEndpointConnectionName"); + } + this.privateEndpointConnectionName = privateEndpointConnectionName; return this; } @CustomType.Setter public Builder privateEndpointIpAddress(String privateEndpointIpAddress) { - this.privateEndpointIpAddress = Objects.requireNonNull(privateEndpointIpAddress); + if (privateEndpointIpAddress == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "privateEndpointIpAddress"); + } + this.privateEndpointIpAddress = privateEndpointIpAddress; return this; } @CustomType.Setter public Builder privateEndpointResourceId(String privateEndpointResourceId) { - this.privateEndpointResourceId = Objects.requireNonNull(privateEndpointResourceId); + if (privateEndpointResourceId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "privateEndpointResourceId"); + } + this.privateEndpointResourceId = privateEndpointResourceId; return this; } @CustomType.Setter public Builder privateLinkId(String privateLinkId) { - this.privateLinkId = Objects.requireNonNull(privateLinkId); + if (privateLinkId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "privateLinkId"); + } + this.privateLinkId = privateLinkId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetPrivateLinkEndpointServiceResult", "providerName"); + } + this.providerName = providerName; return this; } public GetPrivateLinkEndpointServiceResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult.java index ec9e981f..553511a8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -96,32 +97,50 @@ public Builder(GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult de @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult", "type"); + } + this.type = type; return this; } public GetPrivatelinkEndpointServiceDataFederationOnlineArchiveResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult.java index 561ad189..d8095449 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeRe @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult.java index 539deb2e..6b90d44c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult d @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder providerName(String providerName) { - this.providerName = Objects.requireNonNull(providerName); + if (providerName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult", "providerName"); + } + this.providerName = providerName; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult", "type"); + } + this.type = type; return this; } public GetPrivatelinkEndpointServiceDataFederationOnlineArchivesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceServerlessResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceServerlessResult.java index 6b8ca247..98606f85 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceServerlessResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointServiceServerlessResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -134,57 +135,90 @@ public Builder(GetPrivatelinkEndpointServiceServerlessResult defaults) { @CustomType.Setter public Builder cloudProviderEndpointId(String cloudProviderEndpointId) { - this.cloudProviderEndpointId = Objects.requireNonNull(cloudProviderEndpointId); + if (cloudProviderEndpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "cloudProviderEndpointId"); + } + this.cloudProviderEndpointId = cloudProviderEndpointId; return this; } @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder endpointServiceName(String endpointServiceName) { - this.endpointServiceName = Objects.requireNonNull(endpointServiceName); + if (endpointServiceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "endpointServiceName"); + } + this.endpointServiceName = endpointServiceName; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder instanceName(String instanceName) { - this.instanceName = Objects.requireNonNull(instanceName); + if (instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "instanceName"); + } + this.instanceName = instanceName; return this; } @CustomType.Setter public Builder privateEndpointIpAddress(String privateEndpointIpAddress) { - this.privateEndpointIpAddress = Objects.requireNonNull(privateEndpointIpAddress); + if (privateEndpointIpAddress == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "privateEndpointIpAddress"); + } + this.privateEndpointIpAddress = privateEndpointIpAddress; return this; } @CustomType.Setter public Builder privateLinkServiceResourceId(String privateLinkServiceResourceId) { - this.privateLinkServiceResourceId = Objects.requireNonNull(privateLinkServiceResourceId); + if (privateLinkServiceResourceId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "privateLinkServiceResourceId"); + } + this.privateLinkServiceResourceId = privateLinkServiceResourceId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointServiceServerlessResult", "status"); + } + this.status = status; return this; } public GetPrivatelinkEndpointServiceServerlessResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessInvokeResult.java index 433afe2b..0edb2a81 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetPrivatelinkEndpointsServiceServerlessResult; import java.lang.Integer; import java.lang.String; @@ -85,32 +86,46 @@ public Builder(GetPrivatelinkEndpointsServiceServerlessInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder instanceName(String instanceName) { - this.instanceName = Objects.requireNonNull(instanceName); + if (instanceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessInvokeResult", "instanceName"); + } + this.instanceName = instanceName; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetPrivatelinkEndpointsServiceServerlessResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessResult.java index fcd07967..edea5c41 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetPrivatelinkEndpointsServiceServerlessResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -132,42 +133,66 @@ public Builder(GetPrivatelinkEndpointsServiceServerlessResult defaults) { @CustomType.Setter public Builder cloudProviderEndpointId(String cloudProviderEndpointId) { - this.cloudProviderEndpointId = Objects.requireNonNull(cloudProviderEndpointId); + if (cloudProviderEndpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "cloudProviderEndpointId"); + } + this.cloudProviderEndpointId = cloudProviderEndpointId; return this; } @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder endpointId(String endpointId) { - this.endpointId = Objects.requireNonNull(endpointId); + if (endpointId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "endpointId"); + } + this.endpointId = endpointId; return this; } @CustomType.Setter public Builder endpointServiceName(String endpointServiceName) { - this.endpointServiceName = Objects.requireNonNull(endpointServiceName); + if (endpointServiceName == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "endpointServiceName"); + } + this.endpointServiceName = endpointServiceName; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder privateEndpointIpAddress(String privateEndpointIpAddress) { - this.privateEndpointIpAddress = Objects.requireNonNull(privateEndpointIpAddress); + if (privateEndpointIpAddress == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "privateEndpointIpAddress"); + } + this.privateEndpointIpAddress = privateEndpointIpAddress; return this; } @CustomType.Setter public Builder privateLinkServiceResourceId(String privateLinkServiceResourceId) { - this.privateLinkServiceResourceId = Objects.requireNonNull(privateLinkServiceResourceId); + if (privateLinkServiceResourceId == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "privateLinkServiceResourceId"); + } + this.privateLinkServiceResourceId = privateLinkServiceResourceId; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetPrivatelinkEndpointsServiceServerlessResult", "status"); + } + this.status = status; return this; } public GetPrivatelinkEndpointsServiceServerlessResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyProjectAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyProjectAssignment.java index a9012332..c0528c62 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyProjectAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyProjectAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetProjectApiKeyProjectAssignment defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyProjectAssignment", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyProjectAssignment", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyResult.java index 5d5eee88..9333db97 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeyResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectApiKeyProjectAssignment; import java.lang.String; import java.util.List; @@ -112,27 +113,42 @@ public Builder(GetProjectApiKeyResult defaults) { @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder privateKey(String privateKey) { - this.privateKey = Objects.requireNonNull(privateKey); + if (privateKey == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "privateKey"); + } + this.privateKey = privateKey; return this; } @CustomType.Setter public Builder projectAssignments(List projectAssignments) { - this.projectAssignments = Objects.requireNonNull(projectAssignments); + if (projectAssignments == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "projectAssignments"); + } + this.projectAssignments = projectAssignments; return this; } public Builder projectAssignments(GetProjectApiKeyProjectAssignment... projectAssignments) { @@ -140,12 +156,18 @@ public Builder projectAssignments(GetProjectApiKeyProjectAssignment... projectAs } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeyResult", "publicKey"); + } + this.publicKey = publicKey; return this; } public GetProjectApiKeyResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysInvokeResult.java index 89700296..cfd39e82 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectApiKeysResult; import java.lang.Integer; import java.lang.String; @@ -87,27 +88,38 @@ public Builder(GetProjectApiKeysInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetProjectApiKeysResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResult.java index 9d8e7c65..4b81a624 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectApiKeysResultProjectAssignment; import java.lang.String; import java.util.List; @@ -77,21 +78,31 @@ public Builder(GetProjectApiKeysResult defaults) { @CustomType.Setter public Builder apiKeyId(String apiKeyId) { - this.apiKeyId = Objects.requireNonNull(apiKeyId); + if (apiKeyId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResult", "apiKeyId"); + } + this.apiKeyId = apiKeyId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder privateKey(String privateKey) { - this.privateKey = Objects.requireNonNull(privateKey); + if (privateKey == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResult", "privateKey"); + } + this.privateKey = privateKey; return this; } @CustomType.Setter public Builder projectAssignments(@Nullable List projectAssignments) { + this.projectAssignments = projectAssignments; return this; } @@ -100,7 +111,10 @@ public Builder projectAssignments(GetProjectApiKeysResultProjectAssignment... pr } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResult", "publicKey"); + } + this.publicKey = publicKey; return this; } public GetProjectApiKeysResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResultProjectAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResultProjectAssignment.java index c6a96353..02e25965 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResultProjectAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectApiKeysResultProjectAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetProjectApiKeysResultProjectAssignment defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResultProjectAssignment", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetProjectApiKeysResultProjectAssignment", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectInvitationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectInvitationResult.java index 55fe7158..2af6e44e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectInvitationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectInvitationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -117,37 +118,58 @@ public Builder(GetProjectInvitationResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder invitationId(String invitationId) { - this.invitationId = Objects.requireNonNull(invitationId); + if (invitationId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "invitationId"); + } + this.invitationId = invitationId; return this; } @CustomType.Setter public Builder inviterUsername(String inviterUsername) { - this.inviterUsername = Objects.requireNonNull(inviterUsername); + if (inviterUsername == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "inviterUsername"); + } + this.inviterUsername = inviterUsername; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -155,7 +177,10 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetProjectInvitationResult", "username"); + } + this.username = username; return this; } public GetProjectInvitationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectIpAccessListResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectIpAccessListResult.java index f45f0013..9d779fab 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectIpAccessListResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectIpAccessListResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,32 +73,50 @@ public Builder(GetProjectIpAccessListResult defaults) { @CustomType.Setter public Builder awsSecurityGroup(String awsSecurityGroup) { - this.awsSecurityGroup = Objects.requireNonNull(awsSecurityGroup); + if (awsSecurityGroup == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "awsSecurityGroup"); + } + this.awsSecurityGroup = awsSecurityGroup; return this; } @CustomType.Setter public Builder cidrBlock(String cidrBlock) { - this.cidrBlock = Objects.requireNonNull(cidrBlock); + if (cidrBlock == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "cidrBlock"); + } + this.cidrBlock = cidrBlock; return this; } @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectIpAccessListResult", "projectId"); + } + this.projectId = projectId; return this; } public GetProjectIpAccessListResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectLimit.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectLimit.java index b21a6ac0..c45cf241 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectLimit.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectLimit.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -71,27 +72,42 @@ public Builder(GetProjectLimit defaults) { @CustomType.Setter public Builder currentUsage(Integer currentUsage) { - this.currentUsage = Objects.requireNonNull(currentUsage); + if (currentUsage == null) { + throw new MissingRequiredPropertyException("GetProjectLimit", "currentUsage"); + } + this.currentUsage = currentUsage; return this; } @CustomType.Setter public Builder defaultLimit(Integer defaultLimit) { - this.defaultLimit = Objects.requireNonNull(defaultLimit); + if (defaultLimit == null) { + throw new MissingRequiredPropertyException("GetProjectLimit", "defaultLimit"); + } + this.defaultLimit = defaultLimit; return this; } @CustomType.Setter public Builder maximumLimit(Integer maximumLimit) { - this.maximumLimit = Objects.requireNonNull(maximumLimit); + if (maximumLimit == null) { + throw new MissingRequiredPropertyException("GetProjectLimit", "maximumLimit"); + } + this.maximumLimit = maximumLimit; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectLimit", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetProjectLimit", "value"); + } + this.value = value; return this; } public GetProjectLimit build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectResult.java index c4206796..a4bbcc1c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectLimit; import com.pulumi.mongodbatlas.outputs.GetProjectTeam; import java.lang.Boolean; @@ -227,52 +228,82 @@ public Builder(GetProjectResult defaults) { @CustomType.Setter public Builder clusterCount(Integer clusterCount) { - this.clusterCount = Objects.requireNonNull(clusterCount); + if (clusterCount == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "clusterCount"); + } + this.clusterCount = clusterCount; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "created"); + } + this.created = created; 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 isCollectDatabaseSpecificsStatisticsEnabled(Boolean isCollectDatabaseSpecificsStatisticsEnabled) { - this.isCollectDatabaseSpecificsStatisticsEnabled = Objects.requireNonNull(isCollectDatabaseSpecificsStatisticsEnabled); + if (isCollectDatabaseSpecificsStatisticsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isCollectDatabaseSpecificsStatisticsEnabled"); + } + this.isCollectDatabaseSpecificsStatisticsEnabled = isCollectDatabaseSpecificsStatisticsEnabled; return this; } @CustomType.Setter public Builder isDataExplorerEnabled(Boolean isDataExplorerEnabled) { - this.isDataExplorerEnabled = Objects.requireNonNull(isDataExplorerEnabled); + if (isDataExplorerEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isDataExplorerEnabled"); + } + this.isDataExplorerEnabled = isDataExplorerEnabled; return this; } @CustomType.Setter public Builder isExtendedStorageSizesEnabled(Boolean isExtendedStorageSizesEnabled) { - this.isExtendedStorageSizesEnabled = Objects.requireNonNull(isExtendedStorageSizesEnabled); + if (isExtendedStorageSizesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isExtendedStorageSizesEnabled"); + } + this.isExtendedStorageSizesEnabled = isExtendedStorageSizesEnabled; return this; } @CustomType.Setter public Builder isPerformanceAdvisorEnabled(Boolean isPerformanceAdvisorEnabled) { - this.isPerformanceAdvisorEnabled = Objects.requireNonNull(isPerformanceAdvisorEnabled); + if (isPerformanceAdvisorEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isPerformanceAdvisorEnabled"); + } + this.isPerformanceAdvisorEnabled = isPerformanceAdvisorEnabled; return this; } @CustomType.Setter public Builder isRealtimePerformancePanelEnabled(Boolean isRealtimePerformancePanelEnabled) { - this.isRealtimePerformancePanelEnabled = Objects.requireNonNull(isRealtimePerformancePanelEnabled); + if (isRealtimePerformancePanelEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isRealtimePerformancePanelEnabled"); + } + this.isRealtimePerformancePanelEnabled = isRealtimePerformancePanelEnabled; return this; } @CustomType.Setter public Builder isSchemaAdvisorEnabled(Boolean isSchemaAdvisorEnabled) { - this.isSchemaAdvisorEnabled = Objects.requireNonNull(isSchemaAdvisorEnabled); + if (isSchemaAdvisorEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isSchemaAdvisorEnabled"); + } + this.isSchemaAdvisorEnabled = isSchemaAdvisorEnabled; return this; } @CustomType.Setter public Builder limits(List limits) { - this.limits = Objects.requireNonNull(limits); + if (limits == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "limits"); + } + this.limits = limits; return this; } public Builder limits(GetProjectLimit... limits) { @@ -280,27 +311,38 @@ public Builder limits(GetProjectLimit... limits) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder regionUsageRestrictions(String regionUsageRestrictions) { - this.regionUsageRestrictions = Objects.requireNonNull(regionUsageRestrictions); + if (regionUsageRestrictions == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "regionUsageRestrictions"); + } + this.regionUsageRestrictions = regionUsageRestrictions; return this; } @CustomType.Setter public Builder teams(List teams) { - this.teams = Objects.requireNonNull(teams); + if (teams == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "teams"); + } + this.teams = teams; return this; } public Builder teams(GetProjectTeam... teams) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectTeam.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectTeam.java index e42646dd..84e68850 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectTeam.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectTeam.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetProjectTeam defaults) { @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetProjectTeam", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { @@ -49,7 +53,10 @@ public Builder roleNames(String... roleNames) { } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetProjectTeam", "teamId"); + } + this.teamId = teamId; return this; } public GetProjectTeam build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsInvokeResult.java index 616c5ab8..ffb488dd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectsResult; import java.lang.Integer; import java.lang.String; @@ -75,22 +76,30 @@ public Builder(GetProjectsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetProjectsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetProjectsResult... results) { @@ -98,7 +107,10 @@ public Builder results(GetProjectsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetProjectsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetProjectsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResult.java index cd47612c..3aa0fda4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetProjectsResultLimit; import com.pulumi.mongodbatlas.outputs.GetProjectsResultTeam; import java.lang.Boolean; @@ -237,52 +238,82 @@ public Builder(GetProjectsResult defaults) { @CustomType.Setter public Builder clusterCount(Integer clusterCount) { - this.clusterCount = Objects.requireNonNull(clusterCount); + if (clusterCount == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "clusterCount"); + } + this.clusterCount = clusterCount; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isCollectDatabaseSpecificsStatisticsEnabled(Boolean isCollectDatabaseSpecificsStatisticsEnabled) { - this.isCollectDatabaseSpecificsStatisticsEnabled = Objects.requireNonNull(isCollectDatabaseSpecificsStatisticsEnabled); + if (isCollectDatabaseSpecificsStatisticsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isCollectDatabaseSpecificsStatisticsEnabled"); + } + this.isCollectDatabaseSpecificsStatisticsEnabled = isCollectDatabaseSpecificsStatisticsEnabled; return this; } @CustomType.Setter public Builder isDataExplorerEnabled(Boolean isDataExplorerEnabled) { - this.isDataExplorerEnabled = Objects.requireNonNull(isDataExplorerEnabled); + if (isDataExplorerEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isDataExplorerEnabled"); + } + this.isDataExplorerEnabled = isDataExplorerEnabled; return this; } @CustomType.Setter public Builder isExtendedStorageSizesEnabled(Boolean isExtendedStorageSizesEnabled) { - this.isExtendedStorageSizesEnabled = Objects.requireNonNull(isExtendedStorageSizesEnabled); + if (isExtendedStorageSizesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isExtendedStorageSizesEnabled"); + } + this.isExtendedStorageSizesEnabled = isExtendedStorageSizesEnabled; return this; } @CustomType.Setter public Builder isPerformanceAdvisorEnabled(Boolean isPerformanceAdvisorEnabled) { - this.isPerformanceAdvisorEnabled = Objects.requireNonNull(isPerformanceAdvisorEnabled); + if (isPerformanceAdvisorEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isPerformanceAdvisorEnabled"); + } + this.isPerformanceAdvisorEnabled = isPerformanceAdvisorEnabled; return this; } @CustomType.Setter public Builder isRealtimePerformancePanelEnabled(Boolean isRealtimePerformancePanelEnabled) { - this.isRealtimePerformancePanelEnabled = Objects.requireNonNull(isRealtimePerformancePanelEnabled); + if (isRealtimePerformancePanelEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isRealtimePerformancePanelEnabled"); + } + this.isRealtimePerformancePanelEnabled = isRealtimePerformancePanelEnabled; return this; } @CustomType.Setter public Builder isSchemaAdvisorEnabled(Boolean isSchemaAdvisorEnabled) { - this.isSchemaAdvisorEnabled = Objects.requireNonNull(isSchemaAdvisorEnabled); + if (isSchemaAdvisorEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "isSchemaAdvisorEnabled"); + } + this.isSchemaAdvisorEnabled = isSchemaAdvisorEnabled; return this; } @CustomType.Setter public Builder limits(List limits) { - this.limits = Objects.requireNonNull(limits); + if (limits == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "limits"); + } + this.limits = limits; return this; } public Builder limits(GetProjectsResultLimit... limits) { @@ -290,27 +321,42 @@ public Builder limits(GetProjectsResultLimit... limits) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder regionUsageRestrictions(String regionUsageRestrictions) { - this.regionUsageRestrictions = Objects.requireNonNull(regionUsageRestrictions); + if (regionUsageRestrictions == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "regionUsageRestrictions"); + } + this.regionUsageRestrictions = regionUsageRestrictions; return this; } @CustomType.Setter public Builder teams(List teams) { - this.teams = Objects.requireNonNull(teams); + if (teams == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "teams"); + } + this.teams = teams; return this; } public Builder teams(GetProjectsResultTeam... teams) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultLimit.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultLimit.java index 8332f6f1..0ed4562d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultLimit.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultLimit.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,27 +68,42 @@ public Builder(GetProjectsResultLimit defaults) { @CustomType.Setter public Builder currentUsage(Integer currentUsage) { - this.currentUsage = Objects.requireNonNull(currentUsage); + if (currentUsage == null) { + throw new MissingRequiredPropertyException("GetProjectsResultLimit", "currentUsage"); + } + this.currentUsage = currentUsage; return this; } @CustomType.Setter public Builder defaultLimit(Integer defaultLimit) { - this.defaultLimit = Objects.requireNonNull(defaultLimit); + if (defaultLimit == null) { + throw new MissingRequiredPropertyException("GetProjectsResultLimit", "defaultLimit"); + } + this.defaultLimit = defaultLimit; return this; } @CustomType.Setter public Builder maximumLimit(Integer maximumLimit) { - this.maximumLimit = Objects.requireNonNull(maximumLimit); + if (maximumLimit == null) { + throw new MissingRequiredPropertyException("GetProjectsResultLimit", "maximumLimit"); + } + this.maximumLimit = maximumLimit; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsResultLimit", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetProjectsResultLimit", "value"); + } + this.value = value; return this; } public GetProjectsResultLimit build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultTeam.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultTeam.java index 3e2e92f3..ee3d688f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultTeam.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetProjectsResultTeam.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetProjectsResultTeam defaults) { @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("GetProjectsResultTeam", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { @@ -49,7 +53,10 @@ public Builder roleNames(String... roleNames) { } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetProjectsResultTeam", "teamId"); + } + this.teamId = teamId; return this; } public GetProjectsResultTeam build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetRolesOrgIdResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetRolesOrgIdResult.java index b2f643f0..076420bd 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetRolesOrgIdResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetRolesOrgIdResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetRolesOrgIdResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRolesOrgIdResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetRolesOrgIdResult", "orgId"); + } + this.orgId = orgId; return this; } public GetRolesOrgIdResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentResult.java index 0ec91afa..30e8323c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSearchDeploymentSpec; import java.lang.String; import java.util.List; @@ -76,22 +77,34 @@ public Builder(GetSearchDeploymentResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder specs(List specs) { - this.specs = Objects.requireNonNull(specs); + if (specs == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentResult", "specs"); + } + this.specs = specs; return this; } public Builder specs(GetSearchDeploymentSpec... specs) { @@ -99,7 +112,10 @@ public Builder specs(GetSearchDeploymentSpec... specs) { } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentResult", "stateName"); + } + this.stateName = stateName; return this; } public GetSearchDeploymentResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentSpec.java index 9b4cf6a3..2fb0cf9e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchDeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,12 +58,18 @@ public Builder(GetSearchDeploymentSpec defaults) { @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentSpec", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(Integer nodeCount) { - this.nodeCount = Objects.requireNonNull(nodeCount); + if (nodeCount == null) { + throw new MissingRequiredPropertyException("GetSearchDeploymentSpec", "nodeCount"); + } + this.nodeCount = nodeCount; return this; } public GetSearchDeploymentSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexResult.java index 8fd9078e..c860164f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSearchIndexSynonym; import java.lang.Boolean; import java.lang.String; @@ -215,77 +216,104 @@ public Builder(GetSearchIndexResult defaults) { @CustomType.Setter public Builder analyzer(@Nullable String analyzer) { + this.analyzer = analyzer; return this; } @CustomType.Setter public Builder analyzers(@Nullable String analyzers) { + this.analyzers = analyzers; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(@Nullable String collectionName) { + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder database(@Nullable String database) { + this.database = database; return this; } @CustomType.Setter public Builder fields(@Nullable String fields) { + this.fields = fields; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder indexId(String indexId) { - this.indexId = Objects.requireNonNull(indexId); + if (indexId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "indexId"); + } + this.indexId = indexId; return this; } @CustomType.Setter public Builder mappingsDynamic(@Nullable Boolean mappingsDynamic) { + this.mappingsDynamic = mappingsDynamic; return this; } @CustomType.Setter public Builder mappingsFields(@Nullable String mappingsFields) { + this.mappingsFields = mappingsFields; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder searchAnalyzer(@Nullable String searchAnalyzer) { + this.searchAnalyzer = searchAnalyzer; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder synonyms(List synonyms) { - this.synonyms = Objects.requireNonNull(synonyms); + if (synonyms == null) { + throw new MissingRequiredPropertyException("GetSearchIndexResult", "synonyms"); + } + this.synonyms = synonyms; return this; } public Builder synonyms(GetSearchIndexSynonym... synonyms) { @@ -293,6 +321,7 @@ public Builder synonyms(GetSearchIndexSynonym... synonyms) { } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexSynonym.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexSynonym.java index 985ce1d5..7f5c7711 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexSynonym.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexSynonym.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetSearchIndexSynonym defaults) { @CustomType.Setter public Builder analyzer(String analyzer) { - this.analyzer = Objects.requireNonNull(analyzer); + if (analyzer == null) { + throw new MissingRequiredPropertyException("GetSearchIndexSynonym", "analyzer"); + } + this.analyzer = analyzer; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSearchIndexSynonym", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder sourceCollection(String sourceCollection) { - this.sourceCollection = Objects.requireNonNull(sourceCollection); + if (sourceCollection == null) { + throw new MissingRequiredPropertyException("GetSearchIndexSynonym", "sourceCollection"); + } + this.sourceCollection = sourceCollection; return this; } public GetSearchIndexSynonym build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesInvokeResult.java index c99cf46f..affa109b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSearchIndexesResult; import java.lang.Integer; import java.lang.String; @@ -151,42 +152,62 @@ public Builder(GetSearchIndexesInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder itemsPerPage(@Nullable Integer itemsPerPage) { + this.itemsPerPage = itemsPerPage; return this; } @CustomType.Setter public Builder pageNum(@Nullable Integer pageNum) { + this.pageNum = pageNum; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetSearchIndexesResult... results) { @@ -194,7 +215,10 @@ public Builder results(GetSearchIndexesResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetSearchIndexesInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResult.java index 9b4e616f..fc180d9a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSearchIndexesResultSynonym; import java.lang.Boolean; import java.lang.String; @@ -223,71 +224,99 @@ public Builder(GetSearchIndexesResult defaults) { @CustomType.Setter public Builder analyzer(@Nullable String analyzer) { + this.analyzer = analyzer; return this; } @CustomType.Setter public Builder analyzers(@Nullable String analyzers) { + this.analyzers = analyzers; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder collectionName(String collectionName) { - this.collectionName = Objects.requireNonNull(collectionName); + if (collectionName == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "collectionName"); + } + this.collectionName = collectionName; return this; } @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder fields(@Nullable String fields) { + this.fields = fields; return this; } @CustomType.Setter public Builder indexId(String indexId) { - this.indexId = Objects.requireNonNull(indexId); + if (indexId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "indexId"); + } + this.indexId = indexId; return this; } @CustomType.Setter public Builder mappingsDynamic(@Nullable Boolean mappingsDynamic) { + this.mappingsDynamic = mappingsDynamic; return this; } @CustomType.Setter public Builder mappingsFields(@Nullable String mappingsFields) { + this.mappingsFields = mappingsFields; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder searchAnalyzer(@Nullable String searchAnalyzer) { + this.searchAnalyzer = searchAnalyzer; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder synonyms(@Nullable List synonyms) { + this.synonyms = synonyms; return this; } @@ -296,11 +325,13 @@ public Builder synonyms(GetSearchIndexesResultSynonym... synonyms) { } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder waitForIndexBuildCompletion(@Nullable Boolean waitForIndexBuildCompletion) { + this.waitForIndexBuildCompletion = waitForIndexBuildCompletion; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResultSynonym.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResultSynonym.java index 53e45de9..570eb49c 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResultSynonym.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSearchIndexesResultSynonym.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetSearchIndexesResultSynonym defaults) { @CustomType.Setter public Builder analyzer(String analyzer) { - this.analyzer = Objects.requireNonNull(analyzer); + if (analyzer == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResultSynonym", "analyzer"); + } + this.analyzer = analyzer; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResultSynonym", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder sourceCollection(String sourceCollection) { - this.sourceCollection = Objects.requireNonNull(sourceCollection); + if (sourceCollection == null) { + throw new MissingRequiredPropertyException("GetSearchIndexesResultSynonym", "sourceCollection"); + } + this.sourceCollection = sourceCollection; return this; } public GetSearchIndexesResultSynonym build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceLink.java index a2295600..30fb5876 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetServerlessInstanceLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceLink", "rel"); + } + this.rel = rel; return this; } public GetServerlessInstanceLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceResult.java index e50d3d1a..4dc8c4a9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetServerlessInstanceLink; import com.pulumi.mongodbatlas.outputs.GetServerlessInstanceTag; import java.lang.Boolean; @@ -210,7 +211,10 @@ public Builder(GetServerlessInstanceResult defaults) { @CustomType.Setter public Builder connectionStringsPrivateEndpointSrvs(List connectionStringsPrivateEndpointSrvs) { - this.connectionStringsPrivateEndpointSrvs = Objects.requireNonNull(connectionStringsPrivateEndpointSrvs); + if (connectionStringsPrivateEndpointSrvs == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "connectionStringsPrivateEndpointSrvs"); + } + this.connectionStringsPrivateEndpointSrvs = connectionStringsPrivateEndpointSrvs; return this; } public Builder connectionStringsPrivateEndpointSrvs(String... connectionStringsPrivateEndpointSrvs) { @@ -218,27 +222,42 @@ public Builder connectionStringsPrivateEndpointSrvs(String... connectionStringsP } @CustomType.Setter public Builder connectionStringsStandardSrv(String connectionStringsStandardSrv) { - this.connectionStringsStandardSrv = Objects.requireNonNull(connectionStringsStandardSrv); + if (connectionStringsStandardSrv == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "connectionStringsStandardSrv"); + } + this.connectionStringsStandardSrv = connectionStringsStandardSrv; return this; } @CustomType.Setter public Builder continuousBackupEnabled(Boolean continuousBackupEnabled) { - this.continuousBackupEnabled = Objects.requireNonNull(continuousBackupEnabled); + if (continuousBackupEnabled == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "continuousBackupEnabled"); + } + this.continuousBackupEnabled = continuousBackupEnabled; return this; } @CustomType.Setter public Builder createDate(String createDate) { - this.createDate = Objects.requireNonNull(createDate); + if (createDate == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "createDate"); + } + this.createDate = createDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "links"); + } + this.links = links; return this; } public Builder links(GetServerlessInstanceLink... links) { @@ -246,42 +265,66 @@ public Builder links(GetServerlessInstanceLink... links) { } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerSettingsBackingProviderName(String providerSettingsBackingProviderName) { - this.providerSettingsBackingProviderName = Objects.requireNonNull(providerSettingsBackingProviderName); + if (providerSettingsBackingProviderName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "providerSettingsBackingProviderName"); + } + this.providerSettingsBackingProviderName = providerSettingsBackingProviderName; return this; } @CustomType.Setter public Builder providerSettingsProviderName(String providerSettingsProviderName) { - this.providerSettingsProviderName = Objects.requireNonNull(providerSettingsProviderName); + if (providerSettingsProviderName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "providerSettingsProviderName"); + } + this.providerSettingsProviderName = providerSettingsProviderName; return this; } @CustomType.Setter public Builder providerSettingsRegionName(String providerSettingsRegionName) { - this.providerSettingsRegionName = Objects.requireNonNull(providerSettingsRegionName); + if (providerSettingsRegionName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "providerSettingsRegionName"); + } + this.providerSettingsRegionName = providerSettingsRegionName; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetServerlessInstanceTag... tags) { @@ -289,7 +332,10 @@ public Builder tags(GetServerlessInstanceTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } public GetServerlessInstanceResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceTag.java index 103b5ffb..cc8b98d2 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstanceTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetServerlessInstanceTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetServerlessInstanceTag", "value"); + } + this.value = value; return this; } public GetServerlessInstanceTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesInvokeResult.java index 4ed225e2..54d8848b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetServerlessInstancesResult; import java.lang.String; import java.util.List; @@ -64,17 +65,26 @@ public Builder(GetServerlessInstancesInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetServerlessInstancesResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResult.java index 4dcc8dbd..e5a792b9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetServerlessInstancesResultLink; import com.pulumi.mongodbatlas.outputs.GetServerlessInstancesResultTag; import java.lang.Boolean; @@ -218,7 +219,10 @@ public Builder(GetServerlessInstancesResult defaults) { @CustomType.Setter public Builder connectionStringsPrivateEndpointSrvs(List connectionStringsPrivateEndpointSrvs) { - this.connectionStringsPrivateEndpointSrvs = Objects.requireNonNull(connectionStringsPrivateEndpointSrvs); + if (connectionStringsPrivateEndpointSrvs == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "connectionStringsPrivateEndpointSrvs"); + } + this.connectionStringsPrivateEndpointSrvs = connectionStringsPrivateEndpointSrvs; return this; } public Builder connectionStringsPrivateEndpointSrvs(String... connectionStringsPrivateEndpointSrvs) { @@ -226,27 +230,42 @@ public Builder connectionStringsPrivateEndpointSrvs(String... connectionStringsP } @CustomType.Setter public Builder connectionStringsStandardSrv(String connectionStringsStandardSrv) { - this.connectionStringsStandardSrv = Objects.requireNonNull(connectionStringsStandardSrv); + if (connectionStringsStandardSrv == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "connectionStringsStandardSrv"); + } + this.connectionStringsStandardSrv = connectionStringsStandardSrv; return this; } @CustomType.Setter public Builder continuousBackupEnabled(Boolean continuousBackupEnabled) { - this.continuousBackupEnabled = Objects.requireNonNull(continuousBackupEnabled); + if (continuousBackupEnabled == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "continuousBackupEnabled"); + } + this.continuousBackupEnabled = continuousBackupEnabled; return this; } @CustomType.Setter public Builder createDate(String createDate) { - this.createDate = Objects.requireNonNull(createDate); + if (createDate == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "createDate"); + } + this.createDate = createDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder links(List links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "links"); + } + this.links = links; return this; } public Builder links(GetServerlessInstancesResultLink... links) { @@ -254,42 +273,66 @@ public Builder links(GetServerlessInstancesResultLink... links) { } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder providerSettingsBackingProviderName(String providerSettingsBackingProviderName) { - this.providerSettingsBackingProviderName = Objects.requireNonNull(providerSettingsBackingProviderName); + if (providerSettingsBackingProviderName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "providerSettingsBackingProviderName"); + } + this.providerSettingsBackingProviderName = providerSettingsBackingProviderName; return this; } @CustomType.Setter public Builder providerSettingsProviderName(String providerSettingsProviderName) { - this.providerSettingsProviderName = Objects.requireNonNull(providerSettingsProviderName); + if (providerSettingsProviderName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "providerSettingsProviderName"); + } + this.providerSettingsProviderName = providerSettingsProviderName; return this; } @CustomType.Setter public Builder providerSettingsRegionName(String providerSettingsRegionName) { - this.providerSettingsRegionName = Objects.requireNonNull(providerSettingsRegionName); + if (providerSettingsRegionName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "providerSettingsRegionName"); + } + this.providerSettingsRegionName = providerSettingsRegionName; return this; } @CustomType.Setter public Builder stateName(String stateName) { - this.stateName = Objects.requireNonNull(stateName); + if (stateName == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "stateName"); + } + this.stateName = stateName; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetServerlessInstancesResultTag... tags) { @@ -297,7 +340,10 @@ public Builder tags(GetServerlessInstancesResultTag... tags) { } @CustomType.Setter public Builder terminationProtectionEnabled(Boolean terminationProtectionEnabled) { - this.terminationProtectionEnabled = Objects.requireNonNull(terminationProtectionEnabled); + if (terminationProtectionEnabled == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResult", "terminationProtectionEnabled"); + } + this.terminationProtectionEnabled = terminationProtectionEnabled; return this; } public GetServerlessInstancesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultLink.java index 292ec5cb..b8a7365e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultLink.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetServerlessInstancesResultLink defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResultLink", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder rel(String rel) { - this.rel = Objects.requireNonNull(rel); + if (rel == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResultLink", "rel"); + } + this.rel = rel; return this; } public GetServerlessInstancesResultLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultTag.java index 501030ae..40e4730f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetServerlessInstancesResultTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(GetServerlessInstancesResultTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResultTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetServerlessInstancesResultTag", "value"); + } + this.value = value; return this; } public GetServerlessInstancesResultTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobResult.java index 25ed91d3..f77c213d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -120,72 +121,114 @@ public Builder(GetSharedTierRestoreJobResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder deliveryType(String deliveryType) { - this.deliveryType = Objects.requireNonNull(deliveryType); + if (deliveryType == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "deliveryType"); + } + this.deliveryType = deliveryType; return this; } @CustomType.Setter public Builder expirationDate(String expirationDate) { - this.expirationDate = Objects.requireNonNull(expirationDate); + if (expirationDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "expirationDate"); + } + this.expirationDate = expirationDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder jobId(String jobId) { - this.jobId = Objects.requireNonNull(jobId); + if (jobId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "jobId"); + } + this.jobId = jobId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder restoreFinishedDate(String restoreFinishedDate) { - this.restoreFinishedDate = Objects.requireNonNull(restoreFinishedDate); + if (restoreFinishedDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "restoreFinishedDate"); + } + this.restoreFinishedDate = restoreFinishedDate; return this; } @CustomType.Setter public Builder restoreScheduledDate(String restoreScheduledDate) { - this.restoreScheduledDate = Objects.requireNonNull(restoreScheduledDate); + if (restoreScheduledDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "restoreScheduledDate"); + } + this.restoreScheduledDate = restoreScheduledDate; return this; } @CustomType.Setter public Builder snapshotFinishedDate(String snapshotFinishedDate) { - this.snapshotFinishedDate = Objects.requireNonNull(snapshotFinishedDate); + if (snapshotFinishedDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "snapshotFinishedDate"); + } + this.snapshotFinishedDate = snapshotFinishedDate; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder snapshotUrl(String snapshotUrl) { - this.snapshotUrl = Objects.requireNonNull(snapshotUrl); + if (snapshotUrl == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "snapshotUrl"); + } + this.snapshotUrl = snapshotUrl; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder targetDeploymentItemName(String targetDeploymentItemName) { - this.targetDeploymentItemName = Objects.requireNonNull(targetDeploymentItemName); + if (targetDeploymentItemName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "targetDeploymentItemName"); + } + this.targetDeploymentItemName = targetDeploymentItemName; return this; } @CustomType.Setter public Builder targetProjectId(String targetProjectId) { - this.targetProjectId = Objects.requireNonNull(targetProjectId); + if (targetProjectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobResult", "targetProjectId"); + } + this.targetProjectId = targetProjectId; return this; } public GetSharedTierRestoreJobResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsInvokeResult.java index 334604f2..29bea03d 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSharedTierRestoreJobsResult; import java.lang.Integer; import java.lang.String; @@ -69,22 +70,34 @@ public Builder(GetSharedTierRestoreJobsInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetSharedTierRestoreJobsResult... results) { @@ -92,7 +105,10 @@ public Builder results(GetSharedTierRestoreJobsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetSharedTierRestoreJobsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsResult.java index e911c2a0..bc63b031 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierRestoreJobsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -94,57 +95,90 @@ public Builder(GetSharedTierRestoreJobsResult defaults) { @CustomType.Setter public Builder deliveryType(String deliveryType) { - this.deliveryType = Objects.requireNonNull(deliveryType); + if (deliveryType == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "deliveryType"); + } + this.deliveryType = deliveryType; return this; } @CustomType.Setter public Builder expirationDate(String expirationDate) { - this.expirationDate = Objects.requireNonNull(expirationDate); + if (expirationDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "expirationDate"); + } + this.expirationDate = expirationDate; return this; } @CustomType.Setter public Builder jobId(String jobId) { - this.jobId = Objects.requireNonNull(jobId); + if (jobId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "jobId"); + } + this.jobId = jobId; return this; } @CustomType.Setter public Builder restoreFinishedDate(String restoreFinishedDate) { - this.restoreFinishedDate = Objects.requireNonNull(restoreFinishedDate); + if (restoreFinishedDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "restoreFinishedDate"); + } + this.restoreFinishedDate = restoreFinishedDate; return this; } @CustomType.Setter public Builder restoreScheduledDate(String restoreScheduledDate) { - this.restoreScheduledDate = Objects.requireNonNull(restoreScheduledDate); + if (restoreScheduledDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "restoreScheduledDate"); + } + this.restoreScheduledDate = restoreScheduledDate; return this; } @CustomType.Setter public Builder snapshotFinishedDate(String snapshotFinishedDate) { - this.snapshotFinishedDate = Objects.requireNonNull(snapshotFinishedDate); + if (snapshotFinishedDate == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "snapshotFinishedDate"); + } + this.snapshotFinishedDate = snapshotFinishedDate; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder snapshotUrl(String snapshotUrl) { - this.snapshotUrl = Objects.requireNonNull(snapshotUrl); + if (snapshotUrl == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "snapshotUrl"); + } + this.snapshotUrl = snapshotUrl; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder targetDeploymentItemName(String targetDeploymentItemName) { - this.targetDeploymentItemName = Objects.requireNonNull(targetDeploymentItemName); + if (targetDeploymentItemName == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "targetDeploymentItemName"); + } + this.targetDeploymentItemName = targetDeploymentItemName; return this; } @CustomType.Setter public Builder targetProjectId(String targetProjectId) { - this.targetProjectId = Objects.requireNonNull(targetProjectId); + if (targetProjectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierRestoreJobsResult", "targetProjectId"); + } + this.targetProjectId = targetProjectId; return this; } public GetSharedTierRestoreJobsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotResult.java index 3cbfd340..3c7572ec 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -96,52 +97,82 @@ public Builder(GetSharedTierSnapshotResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder expiration(String expiration) { - this.expiration = Objects.requireNonNull(expiration); + if (expiration == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "expiration"); + } + this.expiration = expiration; return this; } @CustomType.Setter public Builder finishTime(String finishTime) { - this.finishTime = Objects.requireNonNull(finishTime); + if (finishTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "finishTime"); + } + this.finishTime = finishTime; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder scheduledTime(String scheduledTime) { - this.scheduledTime = Objects.requireNonNull(scheduledTime); + if (scheduledTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "scheduledTime"); + } + this.scheduledTime = scheduledTime; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder startTime(String startTime) { - this.startTime = Objects.requireNonNull(startTime); + if (startTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "startTime"); + } + this.startTime = startTime; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotResult", "status"); + } + this.status = status; return this; } public GetSharedTierSnapshotResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsInvokeResult.java index 0bb7174d..2266002a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetSharedTierSnapshotsResult; import java.lang.Integer; import java.lang.String; @@ -69,22 +70,34 @@ public Builder(GetSharedTierSnapshotsInvokeResult defaults) { @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsInvokeResult", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetSharedTierSnapshotsResult... results) { @@ -92,7 +105,10 @@ public Builder results(GetSharedTierSnapshotsResult... results) { } @CustomType.Setter public Builder totalCount(Integer totalCount) { - this.totalCount = Objects.requireNonNull(totalCount); + if (totalCount == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsInvokeResult", "totalCount"); + } + this.totalCount = totalCount; return this; } public GetSharedTierSnapshotsInvokeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsResult.java index 7f69b098..75ac3558 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetSharedTierSnapshotsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,37 +71,58 @@ public Builder(GetSharedTierSnapshotsResult defaults) { @CustomType.Setter public Builder expiration(String expiration) { - this.expiration = Objects.requireNonNull(expiration); + if (expiration == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "expiration"); + } + this.expiration = expiration; return this; } @CustomType.Setter public Builder finishTime(String finishTime) { - this.finishTime = Objects.requireNonNull(finishTime); + if (finishTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "finishTime"); + } + this.finishTime = finishTime; return this; } @CustomType.Setter public Builder mongoDbVersion(String mongoDbVersion) { - this.mongoDbVersion = Objects.requireNonNull(mongoDbVersion); + if (mongoDbVersion == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "mongoDbVersion"); + } + this.mongoDbVersion = mongoDbVersion; return this; } @CustomType.Setter public Builder scheduledTime(String scheduledTime) { - this.scheduledTime = Objects.requireNonNull(scheduledTime); + if (scheduledTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "scheduledTime"); + } + this.scheduledTime = scheduledTime; return this; } @CustomType.Setter public Builder snapshotId(String snapshotId) { - this.snapshotId = Objects.requireNonNull(snapshotId); + if (snapshotId == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "snapshotId"); + } + this.snapshotId = snapshotId; return this; } @CustomType.Setter public Builder startTime(String startTime) { - this.startTime = Objects.requireNonNull(startTime); + if (startTime == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "startTime"); + } + this.startTime = startTime; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetSharedTierSnapshotsResult", "status"); + } + this.status = status; return this; } public GetSharedTierSnapshotsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamResult.java index 9689e97d..fa415710 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -67,27 +68,42 @@ public Builder(GetTeamResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTeamResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTeamResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetTeamResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetTeamResult", "teamId"); + } + this.teamId = teamId; return this; } @CustomType.Setter public Builder usernames(List usernames) { - this.usernames = Objects.requireNonNull(usernames); + if (usernames == null) { + throw new MissingRequiredPropertyException("GetTeamResult", "usernames"); + } + this.usernames = usernames; return this; } public Builder usernames(String... usernames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamsResult.java index 994c344a..1157029e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetTeamsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -67,27 +68,42 @@ public Builder(GetTeamsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTeamsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTeamsResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orgId(String orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetTeamsResult", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("GetTeamsResult", "teamId"); + } + this.teamId = teamId; return this; } @CustomType.Setter public Builder usernames(List usernames) { - this.usernames = Objects.requireNonNull(usernames); + if (usernames == null) { + throw new MissingRequiredPropertyException("GetTeamsResult", "usernames"); + } + this.usernames = usernames; return this; } public Builder usernames(String... usernames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationResult.java index acb76afe..de845005 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -237,86 +238,127 @@ public Builder(GetThirdPartyIntegrationResult defaults) { @CustomType.Setter public Builder accountId(String accountId) { - this.accountId = Objects.requireNonNull(accountId); + if (accountId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "accountId"); + } + this.accountId = accountId; return this; } @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder channelName(String channelName) { - this.channelName = Objects.requireNonNull(channelName); + if (channelName == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "channelName"); + } + this.channelName = channelName; 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("GetThirdPartyIntegrationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder microsoftTeamsWebhookUrl(@Nullable String microsoftTeamsWebhookUrl) { + this.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder routingKey(String routingKey) { - this.routingKey = Objects.requireNonNull(routingKey); + if (routingKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "routingKey"); + } + this.routingKey = routingKey; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } @CustomType.Setter public Builder secret(String secret) { - this.secret = Objects.requireNonNull(secret); + if (secret == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "secret"); + } + this.secret = secret; return this; } @CustomType.Setter public Builder serviceDiscovery(@Nullable String serviceDiscovery) { + this.serviceDiscovery = serviceDiscovery; return this; } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } @CustomType.Setter public Builder teamName(String teamName) { - this.teamName = Objects.requireNonNull(teamName); + if (teamName == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "teamName"); + } + this.teamName = teamName; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationResult", "url"); + } + this.url = url; 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/mongodbatlas/outputs/GetThirdPartyIntegrationsInvokeResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsInvokeResult.java index c85d9452..66a63c74 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsInvokeResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsInvokeResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetThirdPartyIntegrationsResult; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetThirdPartyIntegrationsInvokeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsInvokeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsInvokeResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsInvokeResult", "results"); + } + this.results = results; return this; } public Builder results(GetThirdPartyIntegrationsResult... results) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsResult.java index d70065ef..cb32dc7b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetThirdPartyIntegrationsResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -231,81 +232,119 @@ public Builder(GetThirdPartyIntegrationsResult defaults) { @CustomType.Setter public Builder accountId(String accountId) { - this.accountId = Objects.requireNonNull(accountId); + if (accountId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "accountId"); + } + this.accountId = accountId; return this; } @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder channelName(String channelName) { - this.channelName = Objects.requireNonNull(channelName); + if (channelName == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "channelName"); + } + this.channelName = channelName; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder microsoftTeamsWebhookUrl(@Nullable String microsoftTeamsWebhookUrl) { + this.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder routingKey(String routingKey) { - this.routingKey = Objects.requireNonNull(routingKey); + if (routingKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "routingKey"); + } + this.routingKey = routingKey; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } @CustomType.Setter public Builder secret(String secret) { - this.secret = Objects.requireNonNull(secret); + if (secret == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "secret"); + } + this.secret = secret; return this; } @CustomType.Setter public Builder serviceDiscovery(@Nullable String serviceDiscovery) { + this.serviceDiscovery = serviceDiscovery; return this; } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } @CustomType.Setter public Builder teamName(String teamName) { - this.teamName = Objects.requireNonNull(teamName); + if (teamName == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "teamName"); + } + this.teamName = teamName; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetThirdPartyIntegrationsResult", "url"); + } + this.url = url; 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/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserCertificate.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserCertificate.java index 092913f4..9f90d884 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserCertificate.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(GetX509AuthenticationDatabaseUserCertificate defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserCertificate", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserCertificate", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserCertificate", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserCertificate", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder subject(String subject) { - this.subject = Objects.requireNonNull(subject); + if (subject == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserCertificate", "subject"); + } + this.subject = subject; return this; } public GetX509AuthenticationDatabaseUserCertificate build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserResult.java index 3a371e5c..2cf50150 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetX509AuthenticationDatabaseUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.mongodbatlas.outputs.GetX509AuthenticationDatabaseUserCertificate; import java.lang.String; import java.util.List; @@ -78,7 +79,10 @@ public Builder(GetX509AuthenticationDatabaseUserResult defaults) { @CustomType.Setter public Builder certificates(List certificates) { - this.certificates = Objects.requireNonNull(certificates); + if (certificates == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserResult", "certificates"); + } + this.certificates = certificates; return this; } public Builder certificates(GetX509AuthenticationDatabaseUserCertificate... certificates) { @@ -86,21 +90,31 @@ public Builder certificates(GetX509AuthenticationDatabaseUserCertificate... cert } @CustomType.Setter public Builder customerX509Cas(String customerX509Cas) { - this.customerX509Cas = Objects.requireNonNull(customerX509Cas); + if (customerX509Cas == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserResult", "customerX509Cas"); + } + this.customerX509Cas = customerX509Cas; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetX509AuthenticationDatabaseUserResult", "projectId"); + } + this.projectId = projectId; 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/mongodbatlas/outputs/GlobalClusterConfigCustomZoneMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigCustomZoneMapping.java index 3a8813bb..f7cbe61f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigCustomZoneMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigCustomZoneMapping.java @@ -58,11 +58,13 @@ public Builder(GlobalClusterConfigCustomZoneMapping defaults) { @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; 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/mongodbatlas/outputs/GlobalClusterConfigManagedNamespace.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigManagedNamespace.java index f12470e8..302567a6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigManagedNamespace.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GlobalClusterConfigManagedNamespace.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,37 @@ public Builder(GlobalClusterConfigManagedNamespace defaults) { @CustomType.Setter public Builder collection(String collection) { - this.collection = Objects.requireNonNull(collection); + if (collection == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespace", "collection"); + } + this.collection = collection; return this; } @CustomType.Setter public Builder customShardKey(String customShardKey) { - this.customShardKey = Objects.requireNonNull(customShardKey); + if (customShardKey == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespace", "customShardKey"); + } + this.customShardKey = customShardKey; return this; } @CustomType.Setter public Builder db(String db) { - this.db = Objects.requireNonNull(db); + if (db == null) { + throw new MissingRequiredPropertyException("GlobalClusterConfigManagedNamespace", "db"); + } + this.db = db; return this; } @CustomType.Setter public Builder isCustomShardKeyHashed(@Nullable Boolean isCustomShardKeyHashed) { + this.isCustomShardKeyHashed = isCustomShardKeyHashed; return this; } @CustomType.Setter public Builder isShardKeyUnique(@Nullable Boolean isShardKeyUnique) { + this.isShardKeyUnique = isShardKeyUnique; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapConfigurationUserToDnMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapConfigurationUserToDnMapping.java index 48df1ea6..0ad6d80b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapConfigurationUserToDnMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapConfigurationUserToDnMapping.java @@ -48,16 +48,19 @@ public Builder(LdapConfigurationUserToDnMapping defaults) { @CustomType.Setter public Builder ldapQuery(@Nullable String ldapQuery) { + this.ldapQuery = ldapQuery; return this; } @CustomType.Setter public Builder match(@Nullable String match) { + this.match = match; return this; } @CustomType.Setter public Builder substitution(@Nullable String substitution) { + this.substitution = substitution; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyLink.java index 2351bde5..89cec799 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyLink.java @@ -42,11 +42,13 @@ public Builder(LdapVerifyLink defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder rel(@Nullable String rel) { + this.rel = rel; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyValidation.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyValidation.java index b6ab66b5..f960984f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyValidation.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/LdapVerifyValidation.java @@ -50,11 +50,13 @@ public Builder(LdapVerifyValidation defaults) { @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder validationType(@Nullable String validationType) { + this.validationType = validationType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveCriteria.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveCriteria.java index 835036f8..e877e45e 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveCriteria.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveCriteria.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -113,27 +114,34 @@ public Builder(OnlineArchiveCriteria defaults) { @CustomType.Setter public Builder dateField(@Nullable String dateField) { + this.dateField = dateField; return this; } @CustomType.Setter public Builder dateFormat(@Nullable String dateFormat) { + this.dateFormat = dateFormat; return this; } @CustomType.Setter public Builder expireAfterDays(@Nullable Integer expireAfterDays) { + this.expireAfterDays = expireAfterDays; return this; } @CustomType.Setter public Builder query(@Nullable String query) { + this.query = query; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("OnlineArchiveCriteria", "type"); + } + this.type = type; return this; } public OnlineArchiveCriteria build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataExpirationRule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataExpirationRule.java index d816c80f..51cc0083 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataExpirationRule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataExpirationRule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(OnlineArchiveDataExpirationRule defaults) { @CustomType.Setter public Builder expireAfterDays(Integer expireAfterDays) { - this.expireAfterDays = Objects.requireNonNull(expireAfterDays); + if (expireAfterDays == null) { + throw new MissingRequiredPropertyException("OnlineArchiveDataExpirationRule", "expireAfterDays"); + } + this.expireAfterDays = expireAfterDays; return this; } public OnlineArchiveDataExpirationRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataProcessRegion.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataProcessRegion.java index 3993254e..51e47e4f 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataProcessRegion.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveDataProcessRegion.java @@ -58,11 +58,13 @@ public Builder(OnlineArchiveDataProcessRegion defaults) { @CustomType.Setter public Builder cloudProvider(@Nullable String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchivePartitionField.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchivePartitionField.java index b1eb0e70..cc4c6134 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchivePartitionField.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchivePartitionField.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,17 +74,24 @@ public Builder(OnlineArchivePartitionField defaults) { @CustomType.Setter public Builder fieldName(String fieldName) { - this.fieldName = Objects.requireNonNull(fieldName); + if (fieldName == null) { + throw new MissingRequiredPropertyException("OnlineArchivePartitionField", "fieldName"); + } + this.fieldName = fieldName; return this; } @CustomType.Setter public Builder fieldType(@Nullable String fieldType) { + this.fieldType = fieldType; return this; } @CustomType.Setter public Builder order(Integer order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("OnlineArchivePartitionField", "order"); + } + this.order = order; return this; } public OnlineArchivePartitionField build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveSchedule.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveSchedule.java index 679a5cd1..2c5f77af 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/OnlineArchiveSchedule.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -129,37 +130,46 @@ public Builder(OnlineArchiveSchedule defaults) { @CustomType.Setter public Builder dayOfMonth(@Nullable Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; return this; } @CustomType.Setter public Builder dayOfWeek(@Nullable Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; return this; } @CustomType.Setter public Builder endHour(@Nullable Integer endHour) { + this.endHour = endHour; return this; } @CustomType.Setter public Builder endMinute(@Nullable Integer endMinute) { + this.endMinute = endMinute; return this; } @CustomType.Setter public Builder startHour(@Nullable Integer startHour) { + this.startHour = startHour; return this; } @CustomType.Setter public Builder startMinute(@Nullable Integer startMinute) { + this.startMinute = startMinute; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("OnlineArchiveSchedule", "type"); + } + this.type = type; return this; } public OnlineArchiveSchedule build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java index 2cd68ada..7ca455b9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java @@ -86,21 +86,25 @@ public Builder(PrivateLinkEndpointServiceEndpoint defaults) { @CustomType.Setter public Builder endpointName(@Nullable String endpointName) { + this.endpointName = endpointName; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder serviceAttachmentName(@Nullable String serviceAttachmentName) { + this.serviceAttachmentName = serviceAttachmentName; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectApiKeyProjectAssignment.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectApiKeyProjectAssignment.java index 7ce706d3..b9feefbc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectApiKeyProjectAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectApiKeyProjectAssignment.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(ProjectApiKeyProjectAssignment defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyProjectAssignment", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyProjectAssignment", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectIpAccessListTimeouts.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectIpAccessListTimeouts.java index 60103eea..03d686c6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectIpAccessListTimeouts.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectIpAccessListTimeouts.java @@ -42,11 +42,13 @@ public Builder(ProjectIpAccessListTimeouts defaults) { @CustomType.Setter public Builder delete(@Nullable String delete) { + this.delete = delete; return this; } @CustomType.Setter public Builder read(@Nullable String read) { + this.read = read; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectLimit.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectLimit.java index 137438f3..56161a93 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectLimit.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectLimit.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -77,27 +78,36 @@ public Builder(ProjectLimit defaults) { @CustomType.Setter public Builder currentUsage(@Nullable Integer currentUsage) { + this.currentUsage = currentUsage; return this; } @CustomType.Setter public Builder defaultLimit(@Nullable Integer defaultLimit) { + this.defaultLimit = defaultLimit; return this; } @CustomType.Setter public Builder maximumLimit(@Nullable Integer maximumLimit) { + this.maximumLimit = maximumLimit; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ProjectLimit", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ProjectLimit", "value"); + } + this.value = value; return this; } public ProjectLimit build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectTeam.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectTeam.java index 218e935a..a922e48b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectTeam.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ProjectTeam.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -61,7 +62,10 @@ public Builder(ProjectTeam defaults) { @CustomType.Setter public Builder roleNames(List roleNames) { - this.roleNames = Objects.requireNonNull(roleNames); + if (roleNames == null) { + throw new MissingRequiredPropertyException("ProjectTeam", "roleNames"); + } + this.roleNames = roleNames; return this; } public Builder roleNames(String... roleNames) { @@ -69,7 +73,10 @@ public Builder roleNames(String... roleNames) { } @CustomType.Setter public Builder teamId(String teamId) { - this.teamId = Objects.requireNonNull(teamId); + if (teamId == null) { + throw new MissingRequiredPropertyException("ProjectTeam", "teamId"); + } + this.teamId = teamId; return this; } public ProjectTeam build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentSpec.java index 796587b4..c7cdaecc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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,12 +58,18 @@ public Builder(SearchDeploymentSpec defaults) { @CustomType.Setter public Builder instanceSize(String instanceSize) { - this.instanceSize = Objects.requireNonNull(instanceSize); + if (instanceSize == null) { + throw new MissingRequiredPropertyException("SearchDeploymentSpec", "instanceSize"); + } + this.instanceSize = instanceSize; return this; } @CustomType.Setter public Builder nodeCount(Integer nodeCount) { - this.nodeCount = Objects.requireNonNull(nodeCount); + if (nodeCount == null) { + throw new MissingRequiredPropertyException("SearchDeploymentSpec", "nodeCount"); + } + this.nodeCount = nodeCount; return this; } public SearchDeploymentSpec build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentTimeouts.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentTimeouts.java index 328d315a..3b29f2a5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentTimeouts.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchDeploymentTimeouts.java @@ -48,16 +48,19 @@ public Builder(SearchDeploymentTimeouts defaults) { @CustomType.Setter public Builder create(@Nullable String create) { + this.create = create; return this; } @CustomType.Setter public Builder delete(@Nullable String delete) { + this.delete = delete; return this; } @CustomType.Setter public Builder update(@Nullable String update) { + this.update = update; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchIndexSynonym.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchIndexSynonym.java index fe40d626..b80d7b4a 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchIndexSynonym.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/SearchIndexSynonym.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.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(SearchIndexSynonym defaults) { @CustomType.Setter public Builder analyzer(String analyzer) { - this.analyzer = Objects.requireNonNull(analyzer); + if (analyzer == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonym", "analyzer"); + } + this.analyzer = analyzer; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonym", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder sourceCollection(String sourceCollection) { - this.sourceCollection = Objects.requireNonNull(sourceCollection); + if (sourceCollection == null) { + throw new MissingRequiredPropertyException("SearchIndexSynonym", "sourceCollection"); + } + this.sourceCollection = sourceCollection; return this; } public SearchIndexSynonym build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceLink.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceLink.java index 88eab5dd..798bd4f9 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceLink.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceLink.java @@ -42,11 +42,13 @@ public Builder(ServerlessInstanceLink defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder rel(@Nullable String rel) { + this.rel = rel; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceTag.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceTag.java index 0d96857f..1d231092 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceTag.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/ServerlessInstanceTag.java @@ -4,6 +4,7 @@ package com.pulumi.mongodbatlas.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -60,12 +61,18 @@ public Builder(ServerlessInstanceTag defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceTag", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ServerlessInstanceTag", "value"); + } + this.value = value; return this; } public ServerlessInstanceTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/X509AuthenticationDatabaseUserCertificate.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/X509AuthenticationDatabaseUserCertificate.java index 43a49ff0..05c052d8 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/X509AuthenticationDatabaseUserCertificate.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/X509AuthenticationDatabaseUserCertificate.java @@ -61,26 +61,31 @@ public Builder(X509AuthenticationDatabaseUserCertificate defaults) { @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder groupId(@Nullable String groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder notAfter(@Nullable String notAfter) { + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder subject(@Nullable String subject) { + this.subject = subject; return this; }