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 b3eee8dc..8d23c742 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-fastly/examples/v7 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.98.0 +require github.com/pulumi/pulumi/pkg/v3 v3.99.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -138,8 +138,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.98.0 // indirect + github.com/pulumi/esc v0.6.2 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.99.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 91d4a077..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= diff --git a/provider/go.mod b/provider/go.mod index 6bf30ee3..2c3820cc 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -4,8 +4,8 @@ go 1.21 require ( github.com/fastly/terraform-provider-fastly v0.0.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/v3 v3.69.1-0.20231228171213-2bb619413b2c + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -172,11 +172,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.4 // indirect - github.com/pulumi/pulumi-yaml v1.4.3 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.98.0 // indirect + github.com/pulumi/pulumi-yaml v1.4.4 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.99.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index 8aa59ca4..6b891b1b 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2177,22 +2177,22 @@ 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/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.69.1-0.20231228171213-2bb619413b2c h1:n5mqCF/nfJQqA19HYfu038U5NU3QricQdFmX6FBl2Tw= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.1-0.20231228171213-2bb619413b2c/go.mod h1:jcdXdda230ZJJjzeRwWuFPRzq1EI8APwYVQIH32MoRk= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= -github.com/pulumi/pulumi-yaml v1.4.3 h1:GO36c7FTl8If20Dn/w2Hi3huP7kmsO00KNaz3GJU0Ws= -github.com/pulumi/pulumi-yaml v1.4.3/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/pulumi-yaml v1.4.4 h1:BODM3hnmy/kjmbjxySNI5dmGURn2fczVql2MSGjdeQw= +github.com/pulumi/pulumi-yaml v1.4.4/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 5ca5396d..10815bcc 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -57,7 +57,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 2f94a452..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= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 6db4b01c..1e032c7b 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/fastly/ConfigstoreEntriesArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ConfigstoreEntriesArgs.java index 57534c33..350d2c42 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ConfigstoreEntriesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ConfigstoreEntriesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -157,8 +158,12 @@ public Builder storeId(String storeId) { } public ConfigstoreEntriesArgs build() { - $.entries = Objects.requireNonNull($.entries, "expected parameter 'entries' to be non-null"); - $.storeId = Objects.requireNonNull($.storeId, "expected parameter 'storeId' to be non-null"); + if ($.entries == null) { + throw new MissingRequiredPropertyException("ConfigstoreEntriesArgs", "entries"); + } + if ($.storeId == null) { + throw new MissingRequiredPropertyException("ConfigstoreEntriesArgs", "storeId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceACLEntriesArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceACLEntriesArgs.java index c99ea4ad..b9314fbf 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceACLEntriesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceACLEntriesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.inputs.ServiceACLEntriesEntryArgs; import java.lang.Boolean; import java.lang.String; @@ -200,8 +201,12 @@ public Builder serviceId(String serviceId) { } public ServiceACLEntriesArgs build() { - $.aclId = Objects.requireNonNull($.aclId, "expected parameter 'aclId' to be non-null"); - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); + if ($.aclId == null) { + throw new MissingRequiredPropertyException("ServiceACLEntriesArgs", "aclId"); + } + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("ServiceACLEntriesArgs", "serviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceAuthorizationArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceAuthorizationArgs.java index c71ec7fd..eade3b9c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceAuthorizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceAuthorizationArgs.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 userId(String userId) { } public ServiceAuthorizationArgs build() { - $.permission = Objects.requireNonNull($.permission, "expected parameter 'permission' to be non-null"); - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); - $.userId = Objects.requireNonNull($.userId, "expected parameter 'userId' to be non-null"); + if ($.permission == null) { + throw new MissingRequiredPropertyException("ServiceAuthorizationArgs", "permission"); + } + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("ServiceAuthorizationArgs", "serviceId"); + } + if ($.userId == null) { + throw new MissingRequiredPropertyException("ServiceAuthorizationArgs", "userId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceComputeArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceComputeArgs.java index b8bb6fdd..8661a410 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceComputeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceComputeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.inputs.ServiceComputeBackendArgs; import com.pulumi.fastly.inputs.ServiceComputeDictionaryArgs; import com.pulumi.fastly.inputs.ServiceComputeDomainArgs; @@ -1039,7 +1040,9 @@ public Builder versionComment(String versionComment) { } public ServiceComputeArgs build() { - $.domains = Objects.requireNonNull($.domains, "expected parameter 'domains' to be non-null"); + if ($.domains == null) { + throw new MissingRequiredPropertyException("ServiceComputeArgs", "domains"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceDictionaryItemsArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceDictionaryItemsArgs.java index b3e0d3f7..322f8116 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceDictionaryItemsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceDictionaryItemsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -190,8 +191,12 @@ public Builder serviceId(String serviceId) { } public ServiceDictionaryItemsArgs build() { - $.dictionaryId = Objects.requireNonNull($.dictionaryId, "expected parameter 'dictionaryId' to be non-null"); - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); + if ($.dictionaryId == null) { + throw new MissingRequiredPropertyException("ServiceDictionaryItemsArgs", "dictionaryId"); + } + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("ServiceDictionaryItemsArgs", "serviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceDynamicSnippetContentArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceDynamicSnippetContentArgs.java index bc82fd79..e2518842 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceDynamicSnippetContentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceDynamicSnippetContentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder snippetId(String snippetId) { } public ServiceDynamicSnippetContentArgs build() { - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); - $.snippetId = Objects.requireNonNull($.snippetId, "expected parameter 'snippetId' to be non-null"); + if ($.content == null) { + throw new MissingRequiredPropertyException("ServiceDynamicSnippetContentArgs", "content"); + } + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("ServiceDynamicSnippetContentArgs", "serviceId"); + } + if ($.snippetId == null) { + throw new MissingRequiredPropertyException("ServiceDynamicSnippetContentArgs", "snippetId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceVclArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceVclArgs.java index 7d6a597a..d0289411 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceVclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceVclArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.inputs.ServiceVclAclArgs; import com.pulumi.fastly.inputs.ServiceVclBackendArgs; import com.pulumi.fastly.inputs.ServiceVclCacheSettingArgs; @@ -1521,7 +1522,9 @@ public Builder waf(ServiceVclWafArgs waf) { } public ServiceVclArgs build() { - $.domains = Objects.requireNonNull($.domains, "expected parameter 'domains' to be non-null"); + if ($.domains == null) { + throw new MissingRequiredPropertyException("ServiceVclArgs", "domains"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceWafConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceWafConfigurationArgs.java index c263ec2b..ff411e10 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceWafConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceWafConfigurationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.inputs.ServiceWafConfigurationRuleArgs; import com.pulumi.fastly.inputs.ServiceWafConfigurationRuleExclusionArgs; import java.lang.Boolean; @@ -1196,7 +1197,9 @@ public Builder xssScoreThreshold(Integer xssScoreThreshold) { } public ServiceWafConfigurationArgs build() { - $.wafId = Objects.requireNonNull($.wafId, "expected parameter 'wafId' to be non-null"); + if ($.wafId == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationArgs", "wafId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsActivationArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsActivationArgs.java index 93f85b4c..b183998d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsActivationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsActivationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,8 +188,12 @@ public Builder mutualAuthenticationId(String mutualAuthenticationId) { } public TlsActivationArgs build() { - $.certificateId = Objects.requireNonNull($.certificateId, "expected parameter 'certificateId' to be non-null"); - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); + if ($.certificateId == null) { + throw new MissingRequiredPropertyException("TlsActivationArgs", "certificateId"); + } + if ($.domain == null) { + throw new MissingRequiredPropertyException("TlsActivationArgs", "domain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsCertificateArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsCertificateArgs.java index f4075676..8f79876d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsCertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsCertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public TlsCertificateArgs build() { - $.certificateBody = Objects.requireNonNull($.certificateBody, "expected parameter 'certificateBody' to be non-null"); + if ($.certificateBody == null) { + throw new MissingRequiredPropertyException("TlsCertificateArgs", "certificateBody"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsMutualAuthenticationArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsMutualAuthenticationArgs.java index da0a847a..65032754 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsMutualAuthenticationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsMutualAuthenticationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder name(String name) { } public TlsMutualAuthenticationArgs build() { - $.certBundle = Objects.requireNonNull($.certBundle, "expected parameter 'certBundle' to be non-null"); + if ($.certBundle == null) { + throw new MissingRequiredPropertyException("TlsMutualAuthenticationArgs", "certBundle"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsPlatformCertificateArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsPlatformCertificateArgs.java index fd35ca82..7a497ae6 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsPlatformCertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsPlatformCertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder intermediatesBlob(String intermediatesBlob) { } public TlsPlatformCertificateArgs build() { - $.certificateBody = Objects.requireNonNull($.certificateBody, "expected parameter 'certificateBody' to be non-null"); - $.configurationId = Objects.requireNonNull($.configurationId, "expected parameter 'configurationId' to be non-null"); - $.intermediatesBlob = Objects.requireNonNull($.intermediatesBlob, "expected parameter 'intermediatesBlob' to be non-null"); + if ($.certificateBody == null) { + throw new MissingRequiredPropertyException("TlsPlatformCertificateArgs", "certificateBody"); + } + if ($.configurationId == null) { + throw new MissingRequiredPropertyException("TlsPlatformCertificateArgs", "configurationId"); + } + if ($.intermediatesBlob == null) { + throw new MissingRequiredPropertyException("TlsPlatformCertificateArgs", "intermediatesBlob"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsPrivateKeyArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsPrivateKeyArgs.java index e69e45bf..88f8c27b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsPrivateKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsPrivateKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public TlsPrivateKeyArgs build() { - $.keyPem = Objects.requireNonNull($.keyPem, "expected parameter 'keyPem' to be non-null"); + if ($.keyPem == null) { + throw new MissingRequiredPropertyException("TlsPrivateKeyArgs", "keyPem"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionArgs.java index 5610c977..fc6693f3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionArgs.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; @@ -281,8 +282,12 @@ public Builder forceUpdate(Boolean forceUpdate) { } public TlsSubscriptionArgs build() { - $.certificateAuthority = Objects.requireNonNull($.certificateAuthority, "expected parameter 'certificateAuthority' to be non-null"); - $.domains = Objects.requireNonNull($.domains, "expected parameter 'domains' to be non-null"); + if ($.certificateAuthority == null) { + throw new MissingRequiredPropertyException("TlsSubscriptionArgs", "certificateAuthority"); + } + if ($.domains == null) { + throw new MissingRequiredPropertyException("TlsSubscriptionArgs", "domains"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionValidationArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionValidationArgs.java index ce8cec26..9277b543 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionValidationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/TlsSubscriptionValidationArgs.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 subscriptionId(String subscriptionId) { } public TlsSubscriptionValidationArgs build() { - $.subscriptionId = Objects.requireNonNull($.subscriptionId, "expected parameter 'subscriptionId' to be non-null"); + if ($.subscriptionId == null) { + throw new MissingRequiredPropertyException("TlsSubscriptionValidationArgs", "subscriptionId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/UserArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/UserArgs.java index f598eee1..ae6281f5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/UserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/UserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,7 +151,9 @@ public Builder role(String role) { } public UserArgs build() { - $.login = Objects.requireNonNull($.login, "expected parameter 'login' to be non-null"); + if ($.login == null) { + throw new MissingRequiredPropertyException("UserArgs", "login"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesArgs.java index e040500d..41aaef0f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesArgs.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 serviceVersion(Integer serviceVersion) { } public GetDictionariesArgs build() { - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); - $.serviceVersion = Objects.requireNonNull($.serviceVersion, "expected parameter 'serviceVersion' to be non-null"); + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("GetDictionariesArgs", "serviceId"); + } + if ($.serviceVersion == null) { + throw new MissingRequiredPropertyException("GetDictionariesArgs", "serviceVersion"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesPlainArgs.java index 52b271b5..acc61f42 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetDictionariesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder serviceVersion(Integer serviceVersion) { } public GetDictionariesPlainArgs build() { - $.serviceId = Objects.requireNonNull($.serviceId, "expected parameter 'serviceId' to be non-null"); - $.serviceVersion = Objects.requireNonNull($.serviceVersion, "expected parameter 'serviceVersion' to be non-null"); + if ($.serviceId == null) { + throw new MissingRequiredPropertyException("GetDictionariesPlainArgs", "serviceId"); + } + if ($.serviceVersion == null) { + throw new MissingRequiredPropertyException("GetDictionariesPlainArgs", "serviceVersion"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainArgs.java index a9fc0dac..69617d4e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainArgs.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 domain(String domain) { } public GetTlsDomainArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetTlsDomainArgs", "domain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainPlainArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainPlainArgs.java index c21efd7b..6c887625 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/GetTlsDomainPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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 domain(String domain) { } public GetTlsDomainPlainArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetTlsDomainPlainArgs", "domain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceACLEntriesEntryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceACLEntriesEntryArgs.java index aee7156b..6d695b8d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceACLEntriesEntryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceACLEntriesEntryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder subnet(String subnet) { } public ServiceACLEntriesEntryArgs build() { - $.ip = Objects.requireNonNull($.ip, "expected parameter 'ip' to be non-null"); + if ($.ip == null) { + throw new MissingRequiredPropertyException("ServiceACLEntriesEntryArgs", "ip"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeBackendArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeBackendArgs.java index d11b9dd6..0984f0fc 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeBackendArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeBackendArgs.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; @@ -929,8 +930,12 @@ public Builder weight(Integer weight) { } public ServiceComputeBackendArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceComputeBackendArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeBackendArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDictionaryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDictionaryArgs.java index 4fa75b5d..20d478fe 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDictionaryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDictionaryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -168,7 +169,9 @@ public Builder writeOnly(Boolean writeOnly) { } public ServiceComputeDictionaryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeDictionaryArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDomainArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDomainArgs.java index 3b60fe9b..cb8b271b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeDomainArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public ServiceComputeDomainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeDomainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBigqueryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBigqueryArgs.java index 37d10137..b954b69a 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBigqueryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBigqueryArgs.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; @@ -335,12 +336,24 @@ public Builder template(String template) { } public ServiceComputeLoggingBigqueryArgs build() { - $.dataset = Objects.requireNonNull($.dataset, "expected parameter 'dataset' to be non-null"); - $.email = Objects.requireNonNull($.email, "expected parameter 'email' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); - $.table = Objects.requireNonNull($.table, "expected parameter 'table' to be non-null"); + if ($.dataset == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "dataset"); + } + if ($.email == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "email"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "projectId"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "secretKey"); + } + if ($.table == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigqueryArgs", "table"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBlobstorageArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBlobstorageArgs.java index 0ba0c72d..fb951ab3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBlobstorageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingBlobstorageArgs.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; @@ -484,10 +485,18 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceComputeLoggingBlobstorageArgs build() { - $.accountName = Objects.requireNonNull($.accountName, "expected parameter 'accountName' to be non-null"); - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.sasToken = Objects.requireNonNull($.sasToken, "expected parameter 'sasToken' to be non-null"); + if ($.accountName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorageArgs", "accountName"); + } + if ($.container == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorageArgs", "container"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorageArgs", "name"); + } + if ($.sasToken == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorageArgs", "sasToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingCloudfileArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingCloudfileArgs.java index 9f076df8..fb31cfd7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingCloudfileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingCloudfileArgs.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; @@ -484,10 +485,18 @@ public Builder user(String user) { } public ServiceComputeLoggingCloudfileArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfileArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfileArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfileArgs", "name"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfileArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDatadogArgs.java index f60fcc6f..2e5df775 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDatadogArgs.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 token(String token) { } public ServiceComputeLoggingDatadogArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDatadogArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDatadogArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDigitaloceanArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDigitaloceanArgs.java index 781ab3b1..342607b8 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDigitaloceanArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingDigitaloceanArgs.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; @@ -484,10 +485,18 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceComputeLoggingDigitaloceanArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitaloceanArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitaloceanArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitaloceanArgs", "name"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitaloceanArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingElasticsearchArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingElasticsearchArgs.java index 9fa0caa6..1d7f199c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingElasticsearchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingElasticsearchArgs.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; @@ -484,9 +485,15 @@ public Builder user(String user) { } public ServiceComputeLoggingElasticsearchArgs build() { - $.index = Objects.requireNonNull($.index, "expected parameter 'index' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.index == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearchArgs", "index"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearchArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearchArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingFtpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingFtpArgs.java index 744f2d55..6c9717ed 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingFtpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingFtpArgs.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; @@ -484,11 +485,21 @@ public Builder user(String user) { } public ServiceComputeLoggingFtpArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtpArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtpArgs", "name"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtpArgs", "password"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtpArgs", "path"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtpArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGcArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGcArgs.java index e7543660..bdb1caeb 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGcArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGcArgs.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; @@ -484,8 +485,12 @@ public Builder user(String user) { } public ServiceComputeLoggingGcArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGcArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGcArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGooglepubsubArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGooglepubsubArgs.java index b2fa88e8..93c6d704 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGooglepubsubArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingGooglepubsubArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,11 +262,21 @@ public Builder user(String user) { } public ServiceComputeLoggingGooglepubsubArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsubArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsubArgs", "projectId"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsubArgs", "secretKey"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsubArgs", "topic"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsubArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHerokuArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHerokuArgs.java index 8695123a..c159847f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHerokuArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHerokuArgs.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 url(String url) { } public ServiceComputeLoggingHerokuArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHerokuArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHerokuArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHerokuArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHoneycombArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHoneycombArgs.java index 35894c59..61eac5b6 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHoneycombArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHoneycombArgs.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 token(String token) { } public ServiceComputeLoggingHoneycombArgs build() { - $.dataset = Objects.requireNonNull($.dataset, "expected parameter 'dataset' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.dataset == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycombArgs", "dataset"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycombArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycombArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHttpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHttpArgs.java index 92c37630..72cd00aa 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHttpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingHttpArgs.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; @@ -558,8 +559,12 @@ public Builder url(String url) { } public ServiceComputeLoggingHttpArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHttpArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHttpArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKafkaArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKafkaArgs.java index 068ec11c..112c3d24 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKafkaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKafkaArgs.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; @@ -596,9 +597,15 @@ public Builder user(String user) { } public ServiceComputeLoggingKafkaArgs build() { - $.brokers = Objects.requireNonNull($.brokers, "expected parameter 'brokers' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); + if ($.brokers == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafkaArgs", "brokers"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafkaArgs", "name"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafkaArgs", "topic"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKineseArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKineseArgs.java index dcf2807d..6437ccc3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKineseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingKineseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,8 +262,12 @@ public Builder topic(String topic) { } public ServiceComputeLoggingKineseArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKineseArgs", "name"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKineseArgs", "topic"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogentryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogentryArgs.java index 0eb22d2f..6ed91f60 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogentryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogentryArgs.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; @@ -189,8 +190,12 @@ public Builder useTls(Boolean useTls) { } public ServiceComputeLoggingLogentryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogentryArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogentryArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogglyArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogglyArgs.java index 5c25d3d7..5acd6422 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogglyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogglyArgs.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 token(String token) { } public ServiceComputeLoggingLogglyArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogglyArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogglyArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogshuttleArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogshuttleArgs.java index 5723cbaf..c1bdfb36 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogshuttleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingLogshuttleArgs.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 url(String url) { } public ServiceComputeLoggingLogshuttleArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttleArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttleArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttleArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingNewrelicArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingNewrelicArgs.java index d7083036..8b4d0b08 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingNewrelicArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingNewrelicArgs.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 token(String token) { } public ServiceComputeLoggingNewrelicArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingNewrelicArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingNewrelicArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingOpenstackArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingOpenstackArgs.java index 0db0bfe0..296cfbb9 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingOpenstackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingOpenstackArgs.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; @@ -484,11 +485,21 @@ public Builder user(String user) { } public ServiceComputeLoggingOpenstackArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstackArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstackArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstackArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstackArgs", "url"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstackArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingPapertrailArgs.java index 71855eda..e0ca550e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingPapertrailArgs.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; @@ -149,9 +150,15 @@ public Builder port(Integer port) { } public ServiceComputeLoggingPapertrailArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrailArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrailArgs", "name"); + } + if ($.port == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrailArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingS3Args.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingS3Args.java index fee05202..27826881 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingS3Args.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingS3Args.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; @@ -706,8 +707,12 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceComputeLoggingS3Args build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingS3Args", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingS3Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingScalyrArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingScalyrArgs.java index a706d640..607c0ee3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingScalyrArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingScalyrArgs.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 token(String token) { } public ServiceComputeLoggingScalyrArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingScalyrArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingScalyrArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSftpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSftpArgs.java index f2eadf6b..384f3fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSftpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSftpArgs.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; @@ -558,11 +559,21 @@ public Builder user(String user) { } public ServiceComputeLoggingSftpArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); - $.sshKnownHosts = Objects.requireNonNull($.sshKnownHosts, "expected parameter 'sshKnownHosts' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftpArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftpArgs", "name"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftpArgs", "path"); + } + if ($.sshKnownHosts == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftpArgs", "sshKnownHosts"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftpArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSplunkArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSplunkArgs.java index 294a381f..154aac1c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSplunkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSplunkArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -336,9 +337,15 @@ public Builder useTls(Boolean useTls) { } public ServiceComputeLoggingSplunkArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunkArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunkArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunkArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSumologicArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSumologicArgs.java index 77a31b7e..a4ee37f1 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSumologicArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSumologicArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder url(String url) { } public ServiceComputeLoggingSumologicArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSumologicArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSumologicArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSyslogArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSyslogArgs.java index bcbd987f..d903f693 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSyslogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeLoggingSyslogArgs.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; @@ -411,8 +412,12 @@ public Builder useTls(Boolean useTls) { } public ServiceComputeLoggingSyslogArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSyslogArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSyslogArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeResourceLinkArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeResourceLinkArgs.java index 6210dcea..fb97f19f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeResourceLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeResourceLinkArgs.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 resourceId(String resourceId) { } public ServiceComputeResourceLinkArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.resourceId = Objects.requireNonNull($.resourceId, "expected parameter 'resourceId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceComputeResourceLinkArgs", "name"); + } + if ($.resourceId == null) { + throw new MissingRequiredPropertyException("ServiceComputeResourceLinkArgs", "resourceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclAclArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclAclArgs.java index b9824825..8f112a5f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclAclArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder name(String name) { } public ServiceVclAclArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclAclArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclBackendArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclBackendArgs.java index 25d05dfd..d2d0d005 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclBackendArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclBackendArgs.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; @@ -1003,8 +1004,12 @@ public Builder weight(Integer weight) { } public ServiceVclBackendArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceVclBackendArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclBackendArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclCacheSettingArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclCacheSettingArgs.java index 72c533f6..904bd9f3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclCacheSettingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclCacheSettingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder ttl(Integer ttl) { } public ServiceVclCacheSettingArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclCacheSettingArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclConditionArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclConditionArgs.java index 287a2f9d..76e2132b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclConditionArgs.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,9 +189,15 @@ public Builder type(String type) { } public ServiceVclConditionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.statement = Objects.requireNonNull($.statement, "expected parameter 'statement' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclConditionArgs", "name"); + } + if ($.statement == null) { + throw new MissingRequiredPropertyException("ServiceVclConditionArgs", "statement"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceVclConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDictionaryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDictionaryArgs.java index 32bf493d..3598d8d4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDictionaryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDictionaryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -168,7 +169,9 @@ public Builder writeOnly(Boolean writeOnly) { } public ServiceVclDictionaryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclDictionaryArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDirectorArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDirectorArgs.java index b2ed63fb..85db30ab 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDirectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDirectorArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -310,8 +311,12 @@ public Builder type(Integer type) { } public ServiceVclDirectorArgs build() { - $.backends = Objects.requireNonNull($.backends, "expected parameter 'backends' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.backends == null) { + throw new MissingRequiredPropertyException("ServiceVclDirectorArgs", "backends"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclDirectorArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDomainArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDomainArgs.java index e3527341..bd682210 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDomainArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public ServiceVclDomainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclDomainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDynamicsnippetArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDynamicsnippetArgs.java index f709e522..88c8df4b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDynamicsnippetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclDynamicsnippetArgs.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,8 +226,12 @@ public Builder type(String type) { } public ServiceVclDynamicsnippetArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclDynamicsnippetArgs", "name"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceVclDynamicsnippetArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclGzipArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclGzipArgs.java index 8a9b7dd8..ff8d33fc 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclGzipArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclGzipArgs.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,7 +209,9 @@ public Builder name(String name) { } public ServiceVclGzipArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclGzipArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHeaderArgs.java index 707f5582..a571bc67 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHeaderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHeaderArgs.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; @@ -485,10 +486,18 @@ public Builder type(String type) { } public ServiceVclHeaderArgs build() { - $.action = Objects.requireNonNull($.action, "expected parameter 'action' to be non-null"); - $.destination = Objects.requireNonNull($.destination, "expected parameter 'destination' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.action == null) { + throw new MissingRequiredPropertyException("ServiceVclHeaderArgs", "action"); + } + if ($.destination == null) { + throw new MissingRequiredPropertyException("ServiceVclHeaderArgs", "destination"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclHeaderArgs", "name"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceVclHeaderArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHealthcheckArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHealthcheckArgs.java index aaf1b0f7..c953fd1e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHealthcheckArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclHealthcheckArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -495,9 +496,15 @@ public Builder window(Integer window) { } public ServiceVclHealthcheckArgs build() { - $.host = Objects.requireNonNull($.host, "expected parameter 'host' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.host == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheckArgs", "host"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheckArgs", "name"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheckArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBigqueryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBigqueryArgs.java index 58d8a16c..888bc065 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBigqueryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBigqueryArgs.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; @@ -446,12 +447,24 @@ public Builder template(String template) { } public ServiceVclLoggingBigqueryArgs build() { - $.dataset = Objects.requireNonNull($.dataset, "expected parameter 'dataset' to be non-null"); - $.email = Objects.requireNonNull($.email, "expected parameter 'email' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); - $.table = Objects.requireNonNull($.table, "expected parameter 'table' to be non-null"); + if ($.dataset == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "dataset"); + } + if ($.email == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "email"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "projectId"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "secretKey"); + } + if ($.table == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigqueryArgs", "table"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBlobstorageArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBlobstorageArgs.java index 1cd64109..cccddb11 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBlobstorageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingBlobstorageArgs.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; @@ -632,10 +633,18 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceVclLoggingBlobstorageArgs build() { - $.accountName = Objects.requireNonNull($.accountName, "expected parameter 'accountName' to be non-null"); - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.sasToken = Objects.requireNonNull($.sasToken, "expected parameter 'sasToken' to be non-null"); + if ($.accountName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorageArgs", "accountName"); + } + if ($.container == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorageArgs", "container"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorageArgs", "name"); + } + if ($.sasToken == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorageArgs", "sasToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingCloudfileArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingCloudfileArgs.java index 28ff6f7f..1d3c8d04 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingCloudfileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingCloudfileArgs.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; @@ -632,10 +633,18 @@ public Builder user(String user) { } public ServiceVclLoggingCloudfileArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfileArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfileArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfileArgs", "name"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfileArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDatadogArgs.java index 1c99fc7b..051b5e80 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDatadogArgs.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,8 +300,12 @@ public Builder token(String token) { } public ServiceVclLoggingDatadogArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDatadogArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDatadogArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDigitaloceanArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDigitaloceanArgs.java index 5c413d55..cf57fc3e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDigitaloceanArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingDigitaloceanArgs.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; @@ -632,10 +633,18 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceVclLoggingDigitaloceanArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitaloceanArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitaloceanArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitaloceanArgs", "name"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitaloceanArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingElasticsearchArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingElasticsearchArgs.java index eb15f00b..cba0f7ee 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingElasticsearchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingElasticsearchArgs.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; @@ -632,9 +633,15 @@ public Builder user(String user) { } public ServiceVclLoggingElasticsearchArgs build() { - $.index = Objects.requireNonNull($.index, "expected parameter 'index' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.index == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearchArgs", "index"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearchArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearchArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingFtpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingFtpArgs.java index e8b80cc7..5cfd7b18 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingFtpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingFtpArgs.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; @@ -632,11 +633,21 @@ public Builder user(String user) { } public ServiceVclLoggingFtpArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtpArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtpArgs", "name"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtpArgs", "password"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtpArgs", "path"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtpArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGcArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGcArgs.java index 50ba9222..df0a262f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGcArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGcArgs.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; @@ -632,8 +633,12 @@ public Builder user(String user) { } public ServiceVclLoggingGcArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGcArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGcArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGooglepubsubArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGooglepubsubArgs.java index 8174ab8f..6e94df27 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGooglepubsubArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingGooglepubsubArgs.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; @@ -410,11 +411,21 @@ public Builder user(String user) { } public ServiceVclLoggingGooglepubsubArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsubArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsubArgs", "projectId"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsubArgs", "secretKey"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsubArgs", "topic"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsubArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHerokusArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHerokusArgs.java index abf04e7c..3d20c8a2 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHerokusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHerokusArgs.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,9 +300,15 @@ public Builder url(String url) { } public ServiceVclLoggingHerokusArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokusArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokusArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokusArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHoneycombArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHoneycombArgs.java index 947984eb..cc9ea594 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHoneycombArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHoneycombArgs.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,9 +300,15 @@ public Builder token(String token) { } public ServiceVclLoggingHoneycombArgs build() { - $.dataset = Objects.requireNonNull($.dataset, "expected parameter 'dataset' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.dataset == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycombArgs", "dataset"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycombArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycombArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHttpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHttpArgs.java index 72a3e0c1..d1e6595e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHttpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingHttpArgs.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; @@ -706,8 +707,12 @@ public Builder url(String url) { } public ServiceVclLoggingHttpArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHttpArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHttpArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKafkaArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKafkaArgs.java index ae9d4e8d..7544a0f7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKafkaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKafkaArgs.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; @@ -744,9 +745,15 @@ public Builder user(String user) { } public ServiceVclLoggingKafkaArgs build() { - $.brokers = Objects.requireNonNull($.brokers, "expected parameter 'brokers' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); + if ($.brokers == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafkaArgs", "brokers"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafkaArgs", "name"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafkaArgs", "topic"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKineseArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKineseArgs.java index c33ace9e..07cb5995 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKineseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingKineseArgs.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; @@ -410,8 +411,12 @@ public Builder topic(String topic) { } public ServiceVclLoggingKineseArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKineseArgs", "name"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKineseArgs", "topic"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogentryArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogentryArgs.java index bf751c07..ba2ab753 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogentryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogentryArgs.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; @@ -337,8 +338,12 @@ public Builder useTls(Boolean useTls) { } public ServiceVclLoggingLogentryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogentryArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogentryArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogglyArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogglyArgs.java index e599d1dc..b230e428 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogglyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogglyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -262,8 +263,12 @@ public Builder token(String token) { } public ServiceVclLoggingLogglyArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogglyArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogglyArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogshuttleArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogshuttleArgs.java index 4e5a7cb6..680c66cd 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogshuttleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingLogshuttleArgs.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,9 +300,15 @@ public Builder url(String url) { } public ServiceVclLoggingLogshuttleArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttleArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttleArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttleArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingNewrelicArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingNewrelicArgs.java index 0d0c96e6..de491c43 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingNewrelicArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingNewrelicArgs.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,8 +300,12 @@ public Builder token(String token) { } public ServiceVclLoggingNewrelicArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingNewrelicArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingNewrelicArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingOpenstackArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingOpenstackArgs.java index 25664ecb..5bcf0dad 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingOpenstackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingOpenstackArgs.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; @@ -632,11 +633,21 @@ public Builder user(String user) { } public ServiceVclLoggingOpenstackArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstackArgs", "accessKey"); + } + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstackArgs", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstackArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstackArgs", "url"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstackArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingPapertrailArgs.java index 3aae859a..370bf1f9 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingPapertrailArgs.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,9 +300,15 @@ public Builder responseCondition(String responseCondition) { } public ServiceVclLoggingPapertrailArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrailArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrailArgs", "name"); + } + if ($.port == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrailArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingS3Args.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingS3Args.java index 9f16c8fb..dac93a01 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingS3Args.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingS3Args.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; @@ -854,8 +855,12 @@ public Builder timestampFormat(String timestampFormat) { } public ServiceVclLoggingS3Args build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingS3Args", "bucketName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingS3Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingScalyrArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingScalyrArgs.java index 52c0ab96..559a6e03 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingScalyrArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingScalyrArgs.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,8 +300,12 @@ public Builder token(String token) { } public ServiceVclLoggingScalyrArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingScalyrArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingScalyrArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSftpArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSftpArgs.java index a87df1ad..8235896d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSftpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSftpArgs.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; @@ -706,11 +707,21 @@ public Builder user(String user) { } public ServiceVclLoggingSftpArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); - $.sshKnownHosts = Objects.requireNonNull($.sshKnownHosts, "expected parameter 'sshKnownHosts' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftpArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftpArgs", "name"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftpArgs", "path"); + } + if ($.sshKnownHosts == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftpArgs", "sshKnownHosts"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftpArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSplunkArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSplunkArgs.java index 87ffab5d..db78f5bd 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSplunkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSplunkArgs.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; @@ -485,9 +486,15 @@ public Builder useTls(Boolean useTls) { } public ServiceVclLoggingSplunkArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunkArgs", "name"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunkArgs", "token"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunkArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSumologicArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSumologicArgs.java index 08b055ee..6f5a3a64 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSumologicArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSumologicArgs.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,8 +300,12 @@ public Builder url(String url) { } public ServiceVclLoggingSumologicArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSumologicArgs", "name"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSumologicArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSyslogArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSyslogArgs.java index 105c8592..65e821d5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSyslogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclLoggingSyslogArgs.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; @@ -559,8 +560,12 @@ public Builder useTls(Boolean useTls) { } public ServiceVclLoggingSyslogArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSyslogArgs", "address"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSyslogArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterArgs.java index 1c24b0c8..c66f125d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.inputs.ServiceVclRateLimiterResponseArgs; import java.lang.Integer; import java.lang.String; @@ -522,13 +523,27 @@ public Builder windowSize(Integer windowSize) { } public ServiceVclRateLimiterArgs build() { - $.action = Objects.requireNonNull($.action, "expected parameter 'action' to be non-null"); - $.clientKey = Objects.requireNonNull($.clientKey, "expected parameter 'clientKey' to be non-null"); - $.httpMethods = Objects.requireNonNull($.httpMethods, "expected parameter 'httpMethods' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.penaltyBoxDuration = Objects.requireNonNull($.penaltyBoxDuration, "expected parameter 'penaltyBoxDuration' to be non-null"); - $.rpsLimit = Objects.requireNonNull($.rpsLimit, "expected parameter 'rpsLimit' to be non-null"); - $.windowSize = Objects.requireNonNull($.windowSize, "expected parameter 'windowSize' to be non-null"); + if ($.action == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "action"); + } + if ($.clientKey == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "clientKey"); + } + if ($.httpMethods == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "httpMethods"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "name"); + } + if ($.penaltyBoxDuration == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "penaltyBoxDuration"); + } + if ($.rpsLimit == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "rpsLimit"); + } + if ($.windowSize == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterArgs", "windowSize"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterResponseArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterResponseArgs.java index 43e03e1b..413eb278 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRateLimiterResponseArgs.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; @@ -149,9 +150,15 @@ public Builder status(Integer status) { } public ServiceVclRateLimiterResponseArgs build() { - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.contentType = Objects.requireNonNull($.contentType, "expected parameter 'contentType' to be non-null"); - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); + if ($.content == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponseArgs", "content"); + } + if ($.contentType == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponseArgs", "contentType"); + } + if ($.status == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponseArgs", "status"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRequestSettingArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRequestSettingArgs.java index 4f2c1492..32196d01 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRequestSettingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclRequestSettingArgs.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; @@ -501,7 +502,9 @@ public Builder xff(String xff) { } public ServiceVclRequestSettingArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclRequestSettingArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclResponseObjectArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclResponseObjectArgs.java index d46b3bd0..7876506d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclResponseObjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclResponseObjectArgs.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 status(Integer status) { } public ServiceVclResponseObjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclResponseObjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclSnippetArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclSnippetArgs.java index 7cf77e3d..8ba28639 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclSnippetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclSnippetArgs.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,9 +189,15 @@ public Builder type(String type) { } public ServiceVclSnippetArgs build() { - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.content == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippetArgs", "content"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippetArgs", "name"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippetArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclVclArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclVclArgs.java index 917f3cd5..ac8afaea 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclVclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclVclArgs.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 name(String name) { } public ServiceVclVclArgs build() { - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.content == null) { + throw new MissingRequiredPropertyException("ServiceVclVclArgs", "content"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceVclVclArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclWafArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclWafArgs.java index 4e802172..b24aa6ce 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclWafArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclWafArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder wafId(String wafId) { } public ServiceVclWafArgs build() { - $.responseObject = Objects.requireNonNull($.responseObject, "expected parameter 'responseObject' to be non-null"); + if ($.responseObject == null) { + throw new MissingRequiredPropertyException("ServiceVclWafArgs", "responseObject"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleArgs.java index 3148ac24..dde1a620 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleArgs.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 status(String status) { } public ServiceWafConfigurationRuleArgs build() { - $.modsecRuleId = Objects.requireNonNull($.modsecRuleId, "expected parameter 'modsecRuleId' to be non-null"); - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); + if ($.modsecRuleId == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleArgs", "modsecRuleId"); + } + if ($.status == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleArgs", "status"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleExclusionArgs.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleExclusionArgs.java index 28df78e6..1c934d57 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleExclusionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceWafConfigurationRuleExclusionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -236,9 +237,15 @@ public Builder number(Integer number) { } public ServiceWafConfigurationRuleExclusionArgs build() { - $.condition = Objects.requireNonNull($.condition, "expected parameter 'condition' to be non-null"); - $.exclusionType = Objects.requireNonNull($.exclusionType, "expected parameter 'exclusionType' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.condition == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusionArgs", "condition"); + } + if ($.exclusionType == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusionArgs", "exclusionType"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresResult.java index c5af90e8..77396bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetConfigstoresStore; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetConfigstoresResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConfigstoresResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder stores(List stores) { - this.stores = Objects.requireNonNull(stores); + if (stores == null) { + throw new MissingRequiredPropertyException("GetConfigstoresResult", "stores"); + } + this.stores = stores; return this; } public Builder stores(GetConfigstoresStore... stores) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresStore.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresStore.java index 23494069..6c057158 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresStore.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetConfigstoresStore.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetConfigstoresStore defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConfigstoresStore", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConfigstoresStore", "name"); + } + this.name = name; return this; } public GetConfigstoresStore build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersPop.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersPop.java index cb765bf8..93ae9ca9 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersPop.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersPop.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -52,22 +53,34 @@ public Builder(GetDatacentersPop defaults) { @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetDatacentersPop", "code"); + } + this.code = code; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetDatacentersPop", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatacentersPop", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder shield(String shield) { - this.shield = Objects.requireNonNull(shield); + if (shield == null) { + throw new MissingRequiredPropertyException("GetDatacentersPop", "shield"); + } + this.shield = shield; return this; } public GetDatacentersPop build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersResult.java index f4c860cb..f0fa5711 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDatacentersResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetDatacentersPop; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetDatacentersResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatacentersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder pops(List pops) { - this.pops = Objects.requireNonNull(pops); + if (pops == null) { + throw new MissingRequiredPropertyException("GetDatacentersResult", "pops"); + } + this.pops = pops; return this; } public Builder pops(GetDatacentersPop... pops) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesDictionary.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesDictionary.java index 7eab8610..dcd5c260 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesDictionary.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesDictionary.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetDictionariesDictionary defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDictionariesDictionary", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDictionariesDictionary", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder writeOnly(Boolean writeOnly) { - this.writeOnly = Objects.requireNonNull(writeOnly); + if (writeOnly == null) { + throw new MissingRequiredPropertyException("GetDictionariesDictionary", "writeOnly"); + } + this.writeOnly = writeOnly; return this; } public GetDictionariesDictionary build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesResult.java index e760fdec..a41b50a4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetDictionariesResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetDictionariesDictionary; import java.lang.Integer; import java.lang.String; @@ -87,7 +88,10 @@ public Builder(GetDictionariesResult defaults) { @CustomType.Setter public Builder dictionaries(List dictionaries) { - this.dictionaries = Objects.requireNonNull(dictionaries); + if (dictionaries == null) { + throw new MissingRequiredPropertyException("GetDictionariesResult", "dictionaries"); + } + this.dictionaries = dictionaries; return this; } public Builder dictionaries(GetDictionariesDictionary... dictionaries) { @@ -95,17 +99,26 @@ public Builder dictionaries(GetDictionariesDictionary... dictionaries) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDictionariesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder serviceId(String serviceId) { - this.serviceId = Objects.requireNonNull(serviceId); + if (serviceId == null) { + throw new MissingRequiredPropertyException("GetDictionariesResult", "serviceId"); + } + this.serviceId = serviceId; return this; } @CustomType.Setter public Builder serviceVersion(Integer serviceVersion) { - this.serviceVersion = Objects.requireNonNull(serviceVersion); + if (serviceVersion == null) { + throw new MissingRequiredPropertyException("GetDictionariesResult", "serviceVersion"); + } + this.serviceVersion = serviceVersion; return this; } public GetDictionariesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetFastlyIpRangesResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetFastlyIpRangesResult.java index ef55ffeb..cdc3a687 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetFastlyIpRangesResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetFastlyIpRangesResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -71,7 +72,10 @@ public Builder(GetFastlyIpRangesResult defaults) { @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { - this.cidrBlocks = Objects.requireNonNull(cidrBlocks); + if (cidrBlocks == null) { + throw new MissingRequiredPropertyException("GetFastlyIpRangesResult", "cidrBlocks"); + } + this.cidrBlocks = cidrBlocks; return this; } public Builder cidrBlocks(String... cidrBlocks) { @@ -79,12 +83,18 @@ public Builder cidrBlocks(String... cidrBlocks) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFastlyIpRangesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipv6CidrBlocks(List ipv6CidrBlocks) { - this.ipv6CidrBlocks = Objects.requireNonNull(ipv6CidrBlocks); + if (ipv6CidrBlocks == null) { + throw new MissingRequiredPropertyException("GetFastlyIpRangesResult", "ipv6CidrBlocks"); + } + this.ipv6CidrBlocks = ipv6CidrBlocks; return this; } public Builder ipv6CidrBlocks(String... ipv6CidrBlocks) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresResult.java index 92ddbca4..b643af1f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetKvstoresStore; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetKvstoresResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKvstoresResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder stores(List stores) { - this.stores = Objects.requireNonNull(stores); + if (stores == null) { + throw new MissingRequiredPropertyException("GetKvstoresResult", "stores"); + } + this.stores = stores; return this; } public Builder stores(GetKvstoresStore... stores) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresStore.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresStore.java index 56802db7..a61f3127 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresStore.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetKvstoresStore.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetKvstoresStore defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKvstoresStore", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetKvstoresStore", "name"); + } + this.name = name; return this; } public GetKvstoresStore build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetPackageHashResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetPackageHashResult.java index e615fd38..e58cc8c7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetPackageHashResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetPackageHashResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,22 +87,30 @@ public Builder(GetPackageHashResult defaults) { @CustomType.Setter public Builder content(@Nullable String content) { + this.content = content; return this; } @CustomType.Setter public Builder filename(@Nullable String filename) { + this.filename = filename; return this; } @CustomType.Setter public Builder hash(String hash) { - this.hash = Objects.requireNonNull(hash); + if (hash == null) { + throw new MissingRequiredPropertyException("GetPackageHashResult", "hash"); + } + this.hash = hash; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPackageHashResult", "id"); + } + this.id = id; return this; } public GetPackageHashResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresResult.java index 5826a47a..744fadfa 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetSecretstoresStore; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetSecretstoresResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSecretstoresResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder stores(List stores) { - this.stores = Objects.requireNonNull(stores); + if (stores == null) { + throw new MissingRequiredPropertyException("GetSecretstoresResult", "stores"); + } + this.stores = stores; return this; } public Builder stores(GetSecretstoresStore... stores) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresStore.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresStore.java index 6a748b28..02bfdaa0 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresStore.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetSecretstoresStore.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetSecretstoresStore defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSecretstoresStore", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSecretstoresStore", "name"); + } + this.name = name; return this; } public GetSecretstoresStore build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesDetail.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesDetail.java index 5adb6d92..e8ceac79 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesDetail.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesDetail.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,42 +78,66 @@ public Builder(GetServicesDetail defaults) { @CustomType.Setter public Builder comment(String comment) { - this.comment = Objects.requireNonNull(comment); + if (comment == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "comment"); + } + this.comment = comment; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder customerId(String customerId) { - this.customerId = Objects.requireNonNull(customerId); + if (customerId == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "customerId"); + } + this.customerId = customerId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder version(Integer version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetServicesDetail", "version"); + } + this.version = version; return this; } public GetServicesDetail build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesResult.java index 4c95af6e..81b5bc73 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetServicesResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetServicesDetail; import java.lang.String; import java.util.List; @@ -72,7 +73,10 @@ public Builder(GetServicesResult defaults) { @CustomType.Setter public Builder details(List details) { - this.details = Objects.requireNonNull(details); + if (details == null) { + throw new MissingRequiredPropertyException("GetServicesResult", "details"); + } + this.details = details; return this; } public Builder details(GetServicesDetail... details) { @@ -80,12 +84,18 @@ public Builder details(GetServicesDetail... details) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServicesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetServicesResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationIdsResult.java index 551f2875..dd5c8f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,17 +74,24 @@ public Builder(GetTlsActivationIdsResult defaults) { @CustomType.Setter public Builder certificateId(@Nullable String certificateId) { + this.certificateId = certificateId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsActivationIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsActivationIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationResult.java index caabe3e4..5b47a383 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsActivationResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsActivationResult defaults) { @CustomType.Setter public Builder certificateId(String certificateId) { - this.certificateId = Objects.requireNonNull(certificateId); + if (certificateId == null) { + throw new MissingRequiredPropertyException("GetTlsActivationResult", "certificateId"); + } + this.certificateId = certificateId; return this; } @CustomType.Setter public Builder configurationId(String configurationId) { - this.configurationId = Objects.requireNonNull(configurationId); + if (configurationId == null) { + throw new MissingRequiredPropertyException("GetTlsActivationResult", "configurationId"); + } + this.configurationId = configurationId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsActivationResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder domain(String domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetTlsActivationResult", "domain"); + } + this.domain = domain; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsActivationResult", "id"); + } + this.id = id; return this; } public GetTlsActivationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateIdsResult.java index b26257d8..81280790 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsCertificateIdsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateResult.java index 4af98484..09b76d69 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsCertificateResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -170,12 +171,18 @@ public Builder(GetTlsCertificateResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "domains"); + } + this.domains = domains; return this; } public Builder domains(String... domains) { @@ -183,42 +190,66 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder issuedTo(String issuedTo) { - this.issuedTo = Objects.requireNonNull(issuedTo); + if (issuedTo == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "issuedTo"); + } + this.issuedTo = issuedTo; return this; } @CustomType.Setter public Builder issuer(String issuer) { - this.issuer = Objects.requireNonNull(issuer); + if (issuer == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "issuer"); + } + this.issuer = issuer; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder replace(Boolean replace) { - this.replace = Objects.requireNonNull(replace); + if (replace == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "replace"); + } + this.replace = replace; return this; } @CustomType.Setter public Builder serialNumber(String serialNumber) { - this.serialNumber = Objects.requireNonNull(serialNumber); + if (serialNumber == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "serialNumber"); + } + this.serialNumber = serialNumber; return this; } @CustomType.Setter public Builder signatureAlgorithm(String signatureAlgorithm) { - this.signatureAlgorithm = Objects.requireNonNull(signatureAlgorithm); + if (signatureAlgorithm == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "signatureAlgorithm"); + } + this.signatureAlgorithm = signatureAlgorithm; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetTlsCertificateResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetTlsCertificateResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationDnsRecord.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationDnsRecord.java index 0c24d13e..1d819902 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationDnsRecord.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationDnsRecord.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsConfigurationDnsRecord defaults) { @CustomType.Setter public Builder recordType(String recordType) { - this.recordType = Objects.requireNonNull(recordType); + if (recordType == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationDnsRecord", "recordType"); + } + this.recordType = recordType; return this; } @CustomType.Setter public Builder recordValue(String recordValue) { - this.recordValue = Objects.requireNonNull(recordValue); + if (recordValue == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationDnsRecord", "recordValue"); + } + this.recordValue = recordValue; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationDnsRecord", "region"); + } + this.region = region; return this; } public GetTlsConfigurationDnsRecord build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationIdsResult.java index 8b8affc1..2709d0c2 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsConfigurationIdsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationResult.java index 83253b05..03e02798 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsConfigurationResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetTlsConfigurationDnsRecord; import java.lang.Boolean; import java.lang.String; @@ -157,17 +158,26 @@ public Builder(GetTlsConfigurationResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter("default") public Builder default_(Boolean default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder dnsRecords(List dnsRecords) { - this.dnsRecords = Objects.requireNonNull(dnsRecords); + if (dnsRecords == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "dnsRecords"); + } + this.dnsRecords = dnsRecords; return this; } public Builder dnsRecords(GetTlsConfigurationDnsRecord... dnsRecords) { @@ -175,7 +185,10 @@ public Builder dnsRecords(GetTlsConfigurationDnsRecord... dnsRecords) { } @CustomType.Setter public Builder httpProtocols(List httpProtocols) { - this.httpProtocols = Objects.requireNonNull(httpProtocols); + if (httpProtocols == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "httpProtocols"); + } + this.httpProtocols = httpProtocols; return this; } public Builder httpProtocols(String... httpProtocols) { @@ -183,17 +196,26 @@ public Builder httpProtocols(String... httpProtocols) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder tlsProtocols(List tlsProtocols) { - this.tlsProtocols = Objects.requireNonNull(tlsProtocols); + if (tlsProtocols == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "tlsProtocols"); + } + this.tlsProtocols = tlsProtocols; return this; } public Builder tlsProtocols(String... tlsProtocols) { @@ -201,12 +223,18 @@ public Builder tlsProtocols(String... tlsProtocols) { } @CustomType.Setter public Builder tlsService(String tlsService) { - this.tlsService = Objects.requireNonNull(tlsService); + if (tlsService == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "tlsService"); + } + this.tlsService = tlsService; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetTlsConfigurationResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetTlsConfigurationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsDomainResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsDomainResult.java index 830644d8..273529c5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsDomainResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsDomainResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -99,17 +100,26 @@ public Builder(GetTlsDomainResult defaults) { @CustomType.Setter public Builder domain(String domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetTlsDomainResult", "domain"); + } + this.domain = domain; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsDomainResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder tlsActivationIds(List tlsActivationIds) { - this.tlsActivationIds = Objects.requireNonNull(tlsActivationIds); + if (tlsActivationIds == null) { + throw new MissingRequiredPropertyException("GetTlsDomainResult", "tlsActivationIds"); + } + this.tlsActivationIds = tlsActivationIds; return this; } public Builder tlsActivationIds(String... tlsActivationIds) { @@ -117,7 +127,10 @@ public Builder tlsActivationIds(String... tlsActivationIds) { } @CustomType.Setter public Builder tlsCertificateIds(List tlsCertificateIds) { - this.tlsCertificateIds = Objects.requireNonNull(tlsCertificateIds); + if (tlsCertificateIds == null) { + throw new MissingRequiredPropertyException("GetTlsDomainResult", "tlsCertificateIds"); + } + this.tlsCertificateIds = tlsCertificateIds; return this; } public Builder tlsCertificateIds(String... tlsCertificateIds) { @@ -125,7 +138,10 @@ public Builder tlsCertificateIds(String... tlsCertificateIds) { } @CustomType.Setter public Builder tlsSubscriptionIds(List tlsSubscriptionIds) { - this.tlsSubscriptionIds = Objects.requireNonNull(tlsSubscriptionIds); + if (tlsSubscriptionIds == null) { + throw new MissingRequiredPropertyException("GetTlsDomainResult", "tlsSubscriptionIds"); + } + this.tlsSubscriptionIds = tlsSubscriptionIds; return this; } public Builder tlsSubscriptionIds(String... tlsSubscriptionIds) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateIdsResult.java index f2798d75..d146f955 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsPlatformCertificateIdsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateResult.java index 726fe44a..ac4005fa 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPlatformCertificateResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -142,17 +143,26 @@ public Builder(GetTlsPlatformCertificateResult defaults) { @CustomType.Setter public Builder configurationId(String configurationId) { - this.configurationId = Objects.requireNonNull(configurationId); + if (configurationId == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "configurationId"); + } + this.configurationId = configurationId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "domains"); + } + this.domains = domains; return this; } public Builder domains(String... domains) { @@ -160,27 +170,42 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder notBefore(String notBefore) { - this.notBefore = Objects.requireNonNull(notBefore); + if (notBefore == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "notBefore"); + } + this.notBefore = notBefore; return this; } @CustomType.Setter public Builder replace(Boolean replace) { - this.replace = Objects.requireNonNull(replace); + if (replace == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "replace"); + } + this.replace = replace; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetTlsPlatformCertificateResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetTlsPlatformCertificateResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyIdsResult.java index 8f43748e..b7de6e50 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsPrivateKeyIdsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyResult.java index 474a157a..740994f4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsPrivateKeyResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -128,37 +129,58 @@ public Builder(GetTlsPrivateKeyResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder keyLength(Integer keyLength) { - this.keyLength = Objects.requireNonNull(keyLength); + if (keyLength == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "keyLength"); + } + this.keyLength = keyLength; return this; } @CustomType.Setter public Builder keyType(String keyType) { - this.keyType = Objects.requireNonNull(keyType); + if (keyType == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "keyType"); + } + this.keyType = keyType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder publicKeySha1(String publicKeySha1) { - this.publicKeySha1 = Objects.requireNonNull(publicKeySha1); + if (publicKeySha1 == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "publicKeySha1"); + } + this.publicKeySha1 = publicKeySha1; return this; } @CustomType.Setter public Builder replace(Boolean replace) { - this.replace = Objects.requireNonNull(replace); + if (replace == null) { + throw new MissingRequiredPropertyException("GetTlsPrivateKeyResult", "replace"); + } + this.replace = replace; return this; } public GetTlsPrivateKeyResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionIdsResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionIdsResult.java index cc559785..45454b6b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionIdsResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionIdsResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetTlsSubscriptionIdsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionIdsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ids(List ids) { - this.ids = Objects.requireNonNull(ids); + if (ids == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionIdsResult", "ids"); + } + this.ids = ids; return this; } public Builder ids(String... ids) { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionResult.java index cae304b6..48bacdf1 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetTlsSubscriptionResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -141,27 +142,42 @@ public Builder(GetTlsSubscriptionResult defaults) { @CustomType.Setter public Builder certificateAuthority(String certificateAuthority) { - this.certificateAuthority = Objects.requireNonNull(certificateAuthority); + if (certificateAuthority == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "certificateAuthority"); + } + this.certificateAuthority = certificateAuthority; return this; } @CustomType.Setter public Builder commonName(String commonName) { - this.commonName = Objects.requireNonNull(commonName); + if (commonName == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "commonName"); + } + this.commonName = commonName; return this; } @CustomType.Setter public Builder configurationId(String configurationId) { - this.configurationId = Objects.requireNonNull(configurationId); + if (configurationId == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "configurationId"); + } + this.configurationId = configurationId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "domains"); + } + this.domains = domains; return this; } public Builder domains(String... domains) { @@ -169,17 +185,26 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetTlsSubscriptionResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetTlsSubscriptionResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesResult.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesResult.java index a33f3205..5f2a33f2 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesResult.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesResult.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.GetWafRulesRule; import java.lang.Integer; import java.lang.String; @@ -116,6 +117,7 @@ public Builder(GetWafRulesResult defaults) { @CustomType.Setter public Builder excludeModsecRuleIds(@Nullable List excludeModsecRuleIds) { + this.excludeModsecRuleIds = excludeModsecRuleIds; return this; } @@ -124,11 +126,15 @@ public Builder excludeModsecRuleIds(Integer... excludeModsecRuleIds) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetWafRulesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder modsecRuleIds(@Nullable List modsecRuleIds) { + this.modsecRuleIds = modsecRuleIds; return this; } @@ -137,6 +143,7 @@ public Builder modsecRuleIds(Integer... modsecRuleIds) { } @CustomType.Setter public Builder publishers(@Nullable List publishers) { + this.publishers = publishers; return this; } @@ -145,7 +152,10 @@ public Builder publishers(String... publishers) { } @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("GetWafRulesResult", "rules"); + } + this.rules = rules; return this; } public Builder rules(GetWafRulesRule... rules) { @@ -153,6 +163,7 @@ public Builder rules(GetWafRulesRule... rules) { } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesRule.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesRule.java index 21f4ce69..9ede8f13 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesRule.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/GetWafRulesRule.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(GetWafRulesRule defaults) { @CustomType.Setter public Builder latestRevisionNumber(Integer latestRevisionNumber) { - this.latestRevisionNumber = Objects.requireNonNull(latestRevisionNumber); + if (latestRevisionNumber == null) { + throw new MissingRequiredPropertyException("GetWafRulesRule", "latestRevisionNumber"); + } + this.latestRevisionNumber = latestRevisionNumber; return this; } @CustomType.Setter public Builder modsecRuleId(Integer modsecRuleId) { - this.modsecRuleId = Objects.requireNonNull(modsecRuleId); + if (modsecRuleId == null) { + throw new MissingRequiredPropertyException("GetWafRulesRule", "modsecRuleId"); + } + this.modsecRuleId = modsecRuleId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetWafRulesRule", "type"); + } + this.type = type; return this; } public GetWafRulesRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceACLEntriesEntry.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceACLEntriesEntry.java index 86758de1..dda4c350 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceACLEntriesEntry.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceACLEntriesEntry.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ServiceACLEntriesEntry defaults) { @CustomType.Setter public Builder comment(@Nullable String comment) { + this.comment = comment; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder ip(String ip) { - this.ip = Objects.requireNonNull(ip); + if (ip == null) { + throw new MissingRequiredPropertyException("ServiceACLEntriesEntry", "ip"); + } + this.ip = ip; return this; } @CustomType.Setter public Builder negated(@Nullable Boolean negated) { + this.negated = negated; return this; } @CustomType.Setter public Builder subnet(@Nullable String subnet) { + this.subnet = subnet; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeBackend.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeBackend.java index 8192ef81..b7c89558 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeBackend.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeBackend.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -368,121 +369,149 @@ public Builder(ServiceComputeBackend defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceComputeBackend", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder betweenBytesTimeout(@Nullable Integer betweenBytesTimeout) { + this.betweenBytesTimeout = betweenBytesTimeout; return this; } @CustomType.Setter public Builder connectTimeout(@Nullable Integer connectTimeout) { + this.connectTimeout = connectTimeout; return this; } @CustomType.Setter public Builder errorThreshold(@Nullable Integer errorThreshold) { + this.errorThreshold = errorThreshold; return this; } @CustomType.Setter public Builder firstByteTimeout(@Nullable Integer firstByteTimeout) { + this.firstByteTimeout = firstByteTimeout; return this; } @CustomType.Setter public Builder healthcheck(@Nullable String healthcheck) { + this.healthcheck = healthcheck; return this; } @CustomType.Setter public Builder keepaliveTime(@Nullable Integer keepaliveTime) { + this.keepaliveTime = keepaliveTime; return this; } @CustomType.Setter public Builder maxConn(@Nullable Integer maxConn) { + this.maxConn = maxConn; return this; } @CustomType.Setter public Builder maxTlsVersion(@Nullable String maxTlsVersion) { + this.maxTlsVersion = maxTlsVersion; return this; } @CustomType.Setter public Builder minTlsVersion(@Nullable String minTlsVersion) { + this.minTlsVersion = minTlsVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeBackend", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder overrideHost(@Nullable String overrideHost) { + this.overrideHost = overrideHost; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder shareKey(@Nullable String shareKey) { + this.shareKey = shareKey; return this; } @CustomType.Setter public Builder shield(@Nullable String shield) { + this.shield = shield; return this; } @CustomType.Setter public Builder sslCaCert(@Nullable String sslCaCert) { + this.sslCaCert = sslCaCert; return this; } @CustomType.Setter public Builder sslCertHostname(@Nullable String sslCertHostname) { + this.sslCertHostname = sslCertHostname; return this; } @CustomType.Setter public Builder sslCheckCert(@Nullable Boolean sslCheckCert) { + this.sslCheckCert = sslCheckCert; return this; } @CustomType.Setter public Builder sslCiphers(@Nullable String sslCiphers) { + this.sslCiphers = sslCiphers; return this; } @CustomType.Setter public Builder sslClientCert(@Nullable String sslClientCert) { + this.sslClientCert = sslClientCert; return this; } @CustomType.Setter public Builder sslClientKey(@Nullable String sslClientKey) { + this.sslClientKey = sslClientKey; return this; } @CustomType.Setter public Builder sslSniHostname(@Nullable String sslSniHostname) { + this.sslSniHostname = sslSniHostname; return this; } @CustomType.Setter public Builder useSsl(@Nullable Boolean useSsl) { + this.useSsl = useSsl; return this; } @CustomType.Setter public Builder weight(@Nullable Integer weight) { + this.weight = weight; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDictionary.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDictionary.java index 0d97b24d..df0cda0d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDictionary.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDictionary.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -79,21 +80,27 @@ public Builder(ServiceComputeDictionary defaults) { @CustomType.Setter public Builder dictionaryId(@Nullable String dictionaryId) { + this.dictionaryId = dictionaryId; return this; } @CustomType.Setter public Builder forceDestroy(@Nullable Boolean forceDestroy) { + this.forceDestroy = forceDestroy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeDictionary", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder writeOnly(@Nullable Boolean writeOnly) { + this.writeOnly = writeOnly; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDomain.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDomain.java index 08c3c61d..b0e065d2 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDomain.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeDomain.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(ServiceComputeDomain defaults) { @CustomType.Setter public Builder comment(@Nullable String comment) { + this.comment = comment; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeDomain", "name"); + } + this.name = name; return this; } public ServiceComputeDomain build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBigquery.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBigquery.java index edcb3161..e829a412 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBigquery.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBigquery.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -142,41 +143,61 @@ public Builder(ServiceComputeLoggingBigquery defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder dataset(String dataset) { - this.dataset = Objects.requireNonNull(dataset); + if (dataset == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "dataset"); + } + this.dataset = dataset; return this; } @CustomType.Setter public Builder email(String email) { - this.email = Objects.requireNonNull(email); + if (email == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "email"); + } + this.email = email; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder table(String table) { - this.table = Objects.requireNonNull(table); + if (table == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBigquery", "table"); + } + this.table = table; return this; } @CustomType.Setter public Builder template(@Nullable String template) { + this.template = template; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBlobstorage.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBlobstorage.java index e4ffa510..023761d2 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBlobstorage.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingBlobstorage.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,61 +200,81 @@ public Builder(ServiceComputeLoggingBlobstorage defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorage", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorage", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder fileMaxBytes(@Nullable Integer fileMaxBytes) { + this.fileMaxBytes = fileMaxBytes; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorage", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder sasToken(String sasToken) { - this.sasToken = Objects.requireNonNull(sasToken); + if (sasToken == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingBlobstorage", "sasToken"); + } + this.sasToken = sasToken; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingCloudfile.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingCloudfile.java index 6c3fd587..4940f2d5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingCloudfile.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingCloudfile.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,62 +200,82 @@ public Builder(ServiceComputeLoggingCloudfile defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfile", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfile", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingCloudfile", "user"); + } + this.user = user; return this; } public ServiceComputeLoggingCloudfile build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDatadog.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDatadog.java index 3a8aa375..deec0776 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingDatadog defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDatadog", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDatadog", "token"); + } + this.token = token; return this; } public ServiceComputeLoggingDatadog build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDigitalocean.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDigitalocean.java index ed86c162..d2545af5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDigitalocean.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingDigitalocean.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,61 +200,81 @@ public Builder(ServiceComputeLoggingDigitalocean defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitalocean", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitalocean", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder domain(@Nullable String domain) { + this.domain = domain; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitalocean", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingDigitalocean", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingElasticsearch.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingElasticsearch.java index 8d4fca43..26166768 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingElasticsearch.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingElasticsearch.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,61 +200,79 @@ public Builder(ServiceComputeLoggingElasticsearch defaults) { @CustomType.Setter public Builder index(String index) { - this.index = Objects.requireNonNull(index); + if (index == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearch", "index"); + } + this.index = index; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearch", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder pipeline(@Nullable String pipeline) { + this.pipeline = pipeline; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requestMaxEntries(@Nullable Integer requestMaxEntries) { + this.requestMaxEntries = requestMaxEntries; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingElasticsearch", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingFtp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingFtp.java index 4e0e955d..956c585b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingFtp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingFtp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,62 +200,84 @@ public Builder(ServiceComputeLoggingFtp defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtp", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtp", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtp", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingFtp", "user"); + } + this.user = user; return this; } public ServiceComputeLoggingFtp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGc.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGc.java index 8e3614d7..4ddac6df 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGc.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGc.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,61 +200,77 @@ public Builder(ServiceComputeLoggingGc defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGc", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGc", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGooglepubsub.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGooglepubsub.java index 2eac08de..f04145d3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGooglepubsub.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingGooglepubsub.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -114,32 +115,48 @@ public Builder(ServiceComputeLoggingGooglepubsub defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsub", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsub", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsub", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsub", "topic"); + } + this.topic = topic; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingGooglepubsub", "user"); + } + this.user = user; return this; } public ServiceComputeLoggingGooglepubsub build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHeroku.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHeroku.java index c2d57de9..932d091b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHeroku.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHeroku.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingHeroku defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHeroku", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHeroku", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHeroku", "url"); + } + this.url = url; return this; } public ServiceComputeLoggingHeroku build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHoneycomb.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHoneycomb.java index 8b2370df..34481ef3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHoneycomb.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHoneycomb.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingHoneycomb defaults) { @CustomType.Setter public Builder dataset(String dataset) { - this.dataset = Objects.requireNonNull(dataset); + if (dataset == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycomb", "dataset"); + } + this.dataset = dataset; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycomb", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHoneycomb", "token"); + } + this.token = token; return this; } public ServiceComputeLoggingHoneycomb build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHttp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHttp.java index 7f2972c7..729d04e7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHttp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingHttp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -227,72 +228,90 @@ public Builder(ServiceComputeLoggingHttp defaults) { @CustomType.Setter public Builder contentType(@Nullable String contentType) { + this.contentType = contentType; return this; } @CustomType.Setter public Builder headerName(@Nullable String headerName) { + this.headerName = headerName; return this; } @CustomType.Setter public Builder headerValue(@Nullable String headerValue) { + this.headerValue = headerValue; return this; } @CustomType.Setter public Builder jsonFormat(@Nullable String jsonFormat) { + this.jsonFormat = jsonFormat; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder method(@Nullable String method) { + this.method = method; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHttp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requestMaxEntries(@Nullable Integer requestMaxEntries) { + this.requestMaxEntries = requestMaxEntries; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingHttp", "url"); + } + this.url = url; return this; } public ServiceComputeLoggingHttp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKafka.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKafka.java index ff8d20ea..d55f0fc4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKafka.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKafka.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -242,76 +243,97 @@ public Builder(ServiceComputeLoggingKafka defaults) { @CustomType.Setter public Builder authMethod(@Nullable String authMethod) { + this.authMethod = authMethod; return this; } @CustomType.Setter public Builder brokers(String brokers) { - this.brokers = Objects.requireNonNull(brokers); + if (brokers == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafka", "brokers"); + } + this.brokers = brokers; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafka", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parseLogKeyvals(@Nullable Boolean parseLogKeyvals) { + this.parseLogKeyvals = parseLogKeyvals; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requiredAcks(@Nullable String requiredAcks) { + this.requiredAcks = requiredAcks; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKafka", "topic"); + } + this.topic = topic; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKinese.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKinese.java index d93cb0a9..1546c7ea 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKinese.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingKinese.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -114,32 +115,42 @@ public Builder(ServiceComputeLoggingKinese defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder iamRole(@Nullable String iamRole) { + this.iamRole = iamRole; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKinese", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingKinese", "topic"); + } + this.topic = topic; return this; } public ServiceComputeLoggingKinese build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogentry.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogentry.java index c8779f52..dbdf40ee 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogentry.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogentry.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -88,21 +89,29 @@ public Builder(ServiceComputeLoggingLogentry defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogentry", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogentry", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLoggly.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLoggly.java index 866eeedc..faeabfe8 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLoggly.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLoggly.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingLoggly defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLoggly", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLoggly", "token"); + } + this.token = token; return this; } public ServiceComputeLoggingLoggly build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogshuttle.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogshuttle.java index 7215e9c4..0c75f662 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogshuttle.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingLogshuttle.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingLogshuttle defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttle", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttle", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingLogshuttle", "url"); + } + this.url = url; return this; } public ServiceComputeLoggingLogshuttle build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingNewrelic.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingNewrelic.java index 14c8936c..d145157d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingNewrelic.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingNewrelic.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingNewrelic defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingNewrelic", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingNewrelic", "token"); + } + this.token = token; return this; } public ServiceComputeLoggingNewrelic build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingOpenstack.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingOpenstack.java index e657af85..8bdf6400 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingOpenstack.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingOpenstack.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -199,62 +200,84 @@ public Builder(ServiceComputeLoggingOpenstack defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstack", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstack", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstack", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstack", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingOpenstack", "user"); + } + this.user = user; return this; } public ServiceComputeLoggingOpenstack build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingPapertrail.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingPapertrail.java index ea2b1cb5..194ce31d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,17 +72,26 @@ public Builder(ServiceComputeLoggingPapertrail defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrail", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrail", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingPapertrail", "port"); + } + this.port = port; return this; } public ServiceComputeLoggingPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingS3.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingS3.java index 0d62b7f4..bfa05d22 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingS3.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingS3.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -283,91 +284,113 @@ public Builder(ServiceComputeLoggingS3 defaults) { @CustomType.Setter public Builder acl(@Nullable String acl) { + this.acl = acl; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingS3", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder domain(@Nullable String domain) { + this.domain = domain; return this; } @CustomType.Setter public Builder fileMaxBytes(@Nullable Integer fileMaxBytes) { + this.fileMaxBytes = fileMaxBytes; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingS3", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder redundancy(@Nullable String redundancy) { + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder s3AccessKey(@Nullable String s3AccessKey) { + this.s3AccessKey = s3AccessKey; return this; } @CustomType.Setter public Builder s3IamRole(@Nullable String s3IamRole) { + this.s3IamRole = s3IamRole; return this; } @CustomType.Setter public Builder s3SecretKey(@Nullable String s3SecretKey) { + this.s3SecretKey = s3SecretKey; return this; } @CustomType.Setter public Builder serverSideEncryption(@Nullable String serverSideEncryption) { + this.serverSideEncryption = serverSideEncryption; return this; } @CustomType.Setter public Builder serverSideEncryptionKmsKeyId(@Nullable String serverSideEncryptionKmsKeyId) { + this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingScalyr.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingScalyr.java index 18a464d8..c1bf2469 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingScalyr.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingScalyr.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingScalyr defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingScalyr", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingScalyr", "token"); + } + this.token = token; return this; } public ServiceComputeLoggingScalyr build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSftp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSftp.java index 9fec1f51..092a2209 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSftp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSftp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -227,72 +228,96 @@ public Builder(ServiceComputeLoggingSftp defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftp", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftp", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder sshKnownHosts(String sshKnownHosts) { - this.sshKnownHosts = Objects.requireNonNull(sshKnownHosts); + if (sshKnownHosts == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftp", "sshKnownHosts"); + } + this.sshKnownHosts = sshKnownHosts; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSftp", "user"); + } + this.user = user; return this; } public ServiceComputeLoggingSftp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSplunk.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSplunk.java index 48dffc64..3a237d0c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSplunk.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSplunk.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -143,41 +144,55 @@ public Builder(ServiceComputeLoggingSplunk defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunk", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunk", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSplunk", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSumologic.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSumologic.java index 507be352..ea2a7ba7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSumologic.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSumologic.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeLoggingSumologic defaults) { @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSumologic", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSumologic", "url"); + } + this.url = url; return this; } public ServiceComputeLoggingSumologic build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSyslog.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSyslog.java index c2307c20..10f7299c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSyslog.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeLoggingSyslog.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -172,51 +173,65 @@ public Builder(ServiceComputeLoggingSyslog defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSyslog", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeLoggingSyslog", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputePackage.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputePackage.java index d75e2a3c..f1b556b8 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputePackage.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputePackage.java @@ -72,16 +72,19 @@ public Builder(ServiceComputePackage defaults) { @CustomType.Setter public Builder content(@Nullable String content) { + this.content = content; return this; } @CustomType.Setter public Builder filename(@Nullable String filename) { + this.filename = filename; return this; } @CustomType.Setter public Builder sourceCodeHash(@Nullable String sourceCodeHash) { + this.sourceCodeHash = sourceCodeHash; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeProductEnablement.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeProductEnablement.java index a5aeddef..c041c479 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeProductEnablement.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeProductEnablement.java @@ -73,16 +73,19 @@ public Builder(ServiceComputeProductEnablement defaults) { @CustomType.Setter public Builder fanout(@Nullable Boolean fanout) { + this.fanout = fanout; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder websockets(@Nullable Boolean websockets) { + this.websockets = websockets; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeResourceLink.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeResourceLink.java index b5bf01b4..53fb941e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeResourceLink.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceComputeResourceLink.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceComputeResourceLink defaults) { @CustomType.Setter public Builder linkId(@Nullable String linkId) { + this.linkId = linkId; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceComputeResourceLink", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resourceId(String resourceId) { - this.resourceId = Objects.requireNonNull(resourceId); + if (resourceId == null) { + throw new MissingRequiredPropertyException("ServiceComputeResourceLink", "resourceId"); + } + this.resourceId = resourceId; return this; } public ServiceComputeResourceLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclAcl.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclAcl.java index 1cbb93b9..33e169c3 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclAcl.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclAcl.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,17 +74,22 @@ public Builder(ServiceVclAcl defaults) { @CustomType.Setter public Builder aclId(@Nullable String aclId) { + this.aclId = aclId; return this; } @CustomType.Setter public Builder forceDestroy(@Nullable Boolean forceDestroy) { + this.forceDestroy = forceDestroy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclAcl", "name"); + } + this.name = name; return this; } public ServiceVclAcl build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclBackend.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclBackend.java index 11eb3232..6da8e256 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclBackend.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclBackend.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -396,131 +397,161 @@ public Builder(ServiceVclBackend defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceVclBackend", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder autoLoadbalance(@Nullable Boolean autoLoadbalance) { + this.autoLoadbalance = autoLoadbalance; return this; } @CustomType.Setter public Builder betweenBytesTimeout(@Nullable Integer betweenBytesTimeout) { + this.betweenBytesTimeout = betweenBytesTimeout; return this; } @CustomType.Setter public Builder connectTimeout(@Nullable Integer connectTimeout) { + this.connectTimeout = connectTimeout; return this; } @CustomType.Setter public Builder errorThreshold(@Nullable Integer errorThreshold) { + this.errorThreshold = errorThreshold; return this; } @CustomType.Setter public Builder firstByteTimeout(@Nullable Integer firstByteTimeout) { + this.firstByteTimeout = firstByteTimeout; return this; } @CustomType.Setter public Builder healthcheck(@Nullable String healthcheck) { + this.healthcheck = healthcheck; return this; } @CustomType.Setter public Builder keepaliveTime(@Nullable Integer keepaliveTime) { + this.keepaliveTime = keepaliveTime; return this; } @CustomType.Setter public Builder maxConn(@Nullable Integer maxConn) { + this.maxConn = maxConn; return this; } @CustomType.Setter public Builder maxTlsVersion(@Nullable String maxTlsVersion) { + this.maxTlsVersion = maxTlsVersion; return this; } @CustomType.Setter public Builder minTlsVersion(@Nullable String minTlsVersion) { + this.minTlsVersion = minTlsVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclBackend", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder overrideHost(@Nullable String overrideHost) { + this.overrideHost = overrideHost; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder requestCondition(@Nullable String requestCondition) { + this.requestCondition = requestCondition; return this; } @CustomType.Setter public Builder shareKey(@Nullable String shareKey) { + this.shareKey = shareKey; return this; } @CustomType.Setter public Builder shield(@Nullable String shield) { + this.shield = shield; return this; } @CustomType.Setter public Builder sslCaCert(@Nullable String sslCaCert) { + this.sslCaCert = sslCaCert; return this; } @CustomType.Setter public Builder sslCertHostname(@Nullable String sslCertHostname) { + this.sslCertHostname = sslCertHostname; return this; } @CustomType.Setter public Builder sslCheckCert(@Nullable Boolean sslCheckCert) { + this.sslCheckCert = sslCheckCert; return this; } @CustomType.Setter public Builder sslCiphers(@Nullable String sslCiphers) { + this.sslCiphers = sslCiphers; return this; } @CustomType.Setter public Builder sslClientCert(@Nullable String sslClientCert) { + this.sslClientCert = sslClientCert; return this; } @CustomType.Setter public Builder sslClientKey(@Nullable String sslClientKey) { + this.sslClientKey = sslClientKey; return this; } @CustomType.Setter public Builder sslSniHostname(@Nullable String sslSniHostname) { + this.sslSniHostname = sslSniHostname; return this; } @CustomType.Setter public Builder useSsl(@Nullable Boolean useSsl) { + this.useSsl = useSsl; return this; } @CustomType.Setter public Builder weight(@Nullable Integer weight) { + this.weight = weight; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCacheSetting.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCacheSetting.java index f6164b53..51d05004 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCacheSetting.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCacheSetting.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ServiceVclCacheSetting defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder cacheCondition(@Nullable String cacheCondition) { + this.cacheCondition = cacheCondition; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclCacheSetting", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder staleTtl(@Nullable Integer staleTtl) { + this.staleTtl = staleTtl; return this; } @CustomType.Setter public Builder ttl(@Nullable Integer ttl) { + this.ttl = ttl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCondition.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCondition.java index 41132757..270d72ef 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCondition.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclCondition.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,22 +88,32 @@ public Builder(ServiceVclCondition defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclCondition", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder statement(String statement) { - this.statement = Objects.requireNonNull(statement); + if (statement == null) { + throw new MissingRequiredPropertyException("ServiceVclCondition", "statement"); + } + this.statement = statement; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceVclCondition", "type"); + } + this.type = type; return this; } public ServiceVclCondition build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDictionary.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDictionary.java index e2bb52f6..720b240f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDictionary.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDictionary.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -79,21 +80,27 @@ public Builder(ServiceVclDictionary defaults) { @CustomType.Setter public Builder dictionaryId(@Nullable String dictionaryId) { + this.dictionaryId = dictionaryId; return this; } @CustomType.Setter public Builder forceDestroy(@Nullable Boolean forceDestroy) { + this.forceDestroy = forceDestroy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclDictionary", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder writeOnly(@Nullable Boolean writeOnly) { + this.writeOnly = writeOnly; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDirector.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDirector.java index 5a935e30..7b16ade7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDirector.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDirector.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -130,7 +131,10 @@ public Builder(ServiceVclDirector defaults) { @CustomType.Setter public Builder backends(List backends) { - this.backends = Objects.requireNonNull(backends); + if (backends == null) { + throw new MissingRequiredPropertyException("ServiceVclDirector", "backends"); + } + this.backends = backends; return this; } public Builder backends(String... backends) { @@ -138,31 +142,39 @@ public Builder backends(String... backends) { } @CustomType.Setter public Builder comment(@Nullable String comment) { + this.comment = comment; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclDirector", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder quorum(@Nullable Integer quorum) { + this.quorum = quorum; return this; } @CustomType.Setter public Builder retries(@Nullable Integer retries) { + this.retries = retries; return this; } @CustomType.Setter public Builder shield(@Nullable String shield) { + this.shield = shield; return this; } @CustomType.Setter public Builder type(@Nullable Integer type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDomain.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDomain.java index 985e6942..96508a0f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDomain.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDomain.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(ServiceVclDomain defaults) { @CustomType.Setter public Builder comment(@Nullable String comment) { + this.comment = comment; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclDomain", "name"); + } + this.name = name; return this; } public ServiceVclDomain build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDynamicsnippet.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDynamicsnippet.java index 868d3dc0..d264a160 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDynamicsnippet.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclDynamicsnippet.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,36 @@ public Builder(ServiceVclDynamicsnippet defaults) { @CustomType.Setter public Builder content(@Nullable String content) { + this.content = content; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclDynamicsnippet", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder snippetId(@Nullable String snippetId) { + this.snippetId = snippetId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceVclDynamicsnippet", "type"); + } + this.type = type; return this; } public ServiceVclDynamicsnippet build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclGzip.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclGzip.java index 27fb54c4..ae56ce1d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclGzip.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclGzip.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -87,11 +88,13 @@ public Builder(ServiceVclGzip defaults) { @CustomType.Setter public Builder cacheCondition(@Nullable String cacheCondition) { + this.cacheCondition = cacheCondition; return this; } @CustomType.Setter public Builder contentTypes(@Nullable List contentTypes) { + this.contentTypes = contentTypes; return this; } @@ -100,6 +103,7 @@ public Builder contentTypes(String... contentTypes) { } @CustomType.Setter public Builder extensions(@Nullable List extensions) { + this.extensions = extensions; return this; } @@ -108,7 +112,10 @@ public Builder extensions(String... extensions) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclGzip", "name"); + } + this.name = name; return this; } public ServiceVclGzip build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHeader.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHeader.java index 9aeae63e..05e51875 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHeader.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHeader.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -200,62 +201,82 @@ public Builder(ServiceVclHeader defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("ServiceVclHeader", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder cacheCondition(@Nullable String cacheCondition) { + this.cacheCondition = cacheCondition; return this; } @CustomType.Setter public Builder destination(String destination) { - this.destination = Objects.requireNonNull(destination); + if (destination == null) { + throw new MissingRequiredPropertyException("ServiceVclHeader", "destination"); + } + this.destination = destination; return this; } @CustomType.Setter public Builder ignoreIfSet(@Nullable Boolean ignoreIfSet) { + this.ignoreIfSet = ignoreIfSet; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclHeader", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } @CustomType.Setter public Builder requestCondition(@Nullable String requestCondition) { + this.requestCondition = requestCondition; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder source(@Nullable String source) { + this.source = source; return this; } @CustomType.Setter public Builder substitution(@Nullable String substitution) { + this.substitution = substitution; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceVclHeader", "type"); + } + this.type = type; return this; } public ServiceVclHeader build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHealthcheck.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHealthcheck.java index 26549046..5b07f693 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHealthcheck.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclHealthcheck.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -200,16 +201,19 @@ public Builder(ServiceVclHealthcheck defaults) { @CustomType.Setter public Builder checkInterval(@Nullable Integer checkInterval) { + this.checkInterval = checkInterval; return this; } @CustomType.Setter public Builder expectedResponse(@Nullable Integer expectedResponse) { + this.expectedResponse = expectedResponse; return this; } @CustomType.Setter public Builder headers(@Nullable List headers) { + this.headers = headers; return this; } @@ -218,46 +222,61 @@ public Builder headers(String... headers) { } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheck", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder httpVersion(@Nullable String httpVersion) { + this.httpVersion = httpVersion; return this; } @CustomType.Setter public Builder initial(@Nullable Integer initial) { + this.initial = initial; return this; } @CustomType.Setter public Builder method(@Nullable String method) { + this.method = method; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheck", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceVclHealthcheck", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder threshold(@Nullable Integer threshold) { + this.threshold = threshold; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } @CustomType.Setter public Builder window(@Nullable Integer window) { + this.window = window; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBigquery.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBigquery.java index 51248012..521dd9a5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBigquery.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBigquery.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -184,56 +185,79 @@ public Builder(ServiceVclLoggingBigquery defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder dataset(String dataset) { - this.dataset = Objects.requireNonNull(dataset); + if (dataset == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "dataset"); + } + this.dataset = dataset; return this; } @CustomType.Setter public Builder email(String email) { - this.email = Objects.requireNonNull(email); + if (email == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "email"); + } + this.email = email; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder table(String table) { - this.table = Objects.requireNonNull(table); + if (table == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBigquery", "table"); + } + this.table = table; return this; } @CustomType.Setter public Builder template(@Nullable String template) { + this.template = template; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBlobstorage.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBlobstorage.java index d8727bc0..82bfc9d5 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBlobstorage.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingBlobstorage.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,81 +256,105 @@ public Builder(ServiceVclLoggingBlobstorage defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorage", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorage", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder fileMaxBytes(@Nullable Integer fileMaxBytes) { + this.fileMaxBytes = fileMaxBytes; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorage", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder sasToken(String sasToken) { - this.sasToken = Objects.requireNonNull(sasToken); + if (sasToken == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingBlobstorage", "sasToken"); + } + this.sasToken = sasToken; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingCloudfile.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingCloudfile.java index cf30d0ff..526284c7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingCloudfile.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingCloudfile.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,82 +256,106 @@ public Builder(ServiceVclLoggingCloudfile defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfile", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfile", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingCloudfile", "user"); + } + this.user = user; return this; } public ServiceVclLoggingCloudfile build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDatadog.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDatadog.java index 21839cfc..1bbb3480 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,48 @@ public Builder(ServiceVclLoggingDatadog defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDatadog", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDatadog", "token"); + } + this.token = token; return this; } public ServiceVclLoggingDatadog build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDigitalocean.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDigitalocean.java index 1d4f56a9..8d0b77cb 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDigitalocean.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingDigitalocean.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,81 +256,105 @@ public Builder(ServiceVclLoggingDigitalocean defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitalocean", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitalocean", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder domain(@Nullable String domain) { + this.domain = domain; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitalocean", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingDigitalocean", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingElasticsearch.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingElasticsearch.java index c8180aa7..62a0ca1f 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingElasticsearch.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingElasticsearch.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,81 +256,103 @@ public Builder(ServiceVclLoggingElasticsearch defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder index(String index) { - this.index = Objects.requireNonNull(index); + if (index == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearch", "index"); + } + this.index = index; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearch", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder pipeline(@Nullable String pipeline) { + this.pipeline = pipeline; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requestMaxEntries(@Nullable Integer requestMaxEntries) { + this.requestMaxEntries = requestMaxEntries; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingElasticsearch", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingFtp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingFtp.java index 88db998c..07879976 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingFtp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingFtp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,82 +256,108 @@ public Builder(ServiceVclLoggingFtp defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtp", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtp", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtp", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingFtp", "user"); + } + this.user = user; return this; } public ServiceVclLoggingFtp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGc.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGc.java index cef49368..5ba4eafa 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGc.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGc.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,81 +256,101 @@ public Builder(ServiceVclLoggingGc defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGc", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGc", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGooglepubsub.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGooglepubsub.java index d5331dd4..d2f90fbc 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGooglepubsub.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingGooglepubsub.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -171,52 +172,72 @@ public Builder(ServiceVclLoggingGooglepubsub defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsub", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsub", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsub", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsub", "topic"); + } + this.topic = topic; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingGooglepubsub", "user"); + } + this.user = user; return this; } public ServiceVclLoggingGooglepubsub build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHerokus.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHerokus.java index 4a883ed4..15d725b9 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHerokus.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHerokus.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,50 @@ public Builder(ServiceVclLoggingHerokus defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokus", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokus", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHerokus", "url"); + } + this.url = url; return this; } public ServiceVclLoggingHerokus build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHoneycomb.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHoneycomb.java index 26b4c22e..25052b86 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHoneycomb.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHoneycomb.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,50 @@ public Builder(ServiceVclLoggingHoneycomb defaults) { @CustomType.Setter public Builder dataset(String dataset) { - this.dataset = Objects.requireNonNull(dataset); + if (dataset == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycomb", "dataset"); + } + this.dataset = dataset; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycomb", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHoneycomb", "token"); + } + this.token = token; return this; } public ServiceVclLoggingHoneycomb build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHttp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHttp.java index 16e23d4d..f9e69293 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHttp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingHttp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -283,92 +284,114 @@ public Builder(ServiceVclLoggingHttp defaults) { @CustomType.Setter public Builder contentType(@Nullable String contentType) { + this.contentType = contentType; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder headerName(@Nullable String headerName) { + this.headerName = headerName; return this; } @CustomType.Setter public Builder headerValue(@Nullable String headerValue) { + this.headerValue = headerValue; return this; } @CustomType.Setter public Builder jsonFormat(@Nullable String jsonFormat) { + this.jsonFormat = jsonFormat; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder method(@Nullable String method) { + this.method = method; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHttp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requestMaxEntries(@Nullable Integer requestMaxEntries) { + this.requestMaxEntries = requestMaxEntries; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingHttp", "url"); + } + this.url = url; return this; } public ServiceVclLoggingHttp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKafka.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKafka.java index 1d7b542f..2a640faf 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKafka.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKafka.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -298,96 +299,121 @@ public Builder(ServiceVclLoggingKafka defaults) { @CustomType.Setter public Builder authMethod(@Nullable String authMethod) { + this.authMethod = authMethod; return this; } @CustomType.Setter public Builder brokers(String brokers) { - this.brokers = Objects.requireNonNull(brokers); + if (brokers == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafka", "brokers"); + } + this.brokers = brokers; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafka", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parseLogKeyvals(@Nullable Boolean parseLogKeyvals) { + this.parseLogKeyvals = parseLogKeyvals; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder requestMaxBytes(@Nullable Integer requestMaxBytes) { + this.requestMaxBytes = requestMaxBytes; return this; } @CustomType.Setter public Builder requiredAcks(@Nullable String requiredAcks) { + this.requiredAcks = requiredAcks; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKafka", "topic"); + } + this.topic = topic; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKinese.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKinese.java index a45be1f9..e1243456 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKinese.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingKinese.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -171,52 +172,66 @@ public Builder(ServiceVclLoggingKinese defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder iamRole(@Nullable String iamRole) { + this.iamRole = iamRole; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKinese", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingKinese", "topic"); + } + this.topic = topic; return this; } public ServiceVclLoggingKinese build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogentry.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogentry.java index 228c5298..2dc50f5c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogentry.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogentry.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -144,41 +145,53 @@ public Builder(ServiceVclLoggingLogentry defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogentry", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogentry", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLoggly.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLoggly.java index 8d8901a3..19b80fc9 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLoggly.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLoggly.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -115,32 +116,42 @@ public Builder(ServiceVclLoggingLoggly defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLoggly", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLoggly", "token"); + } + this.token = token; return this; } public ServiceVclLoggingLoggly build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogshuttle.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogshuttle.java index 847c4a73..5e595003 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogshuttle.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingLogshuttle.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,50 @@ public Builder(ServiceVclLoggingLogshuttle defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttle", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttle", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingLogshuttle", "url"); + } + this.url = url; return this; } public ServiceVclLoggingLogshuttle build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingNewrelic.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingNewrelic.java index 9f3359e9..01e47fab 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingNewrelic.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingNewrelic.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,48 @@ public Builder(ServiceVclLoggingNewrelic defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingNewrelic", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingNewrelic", "token"); + } + this.token = token; return this; } public ServiceVclLoggingNewrelic build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingOpenstack.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingOpenstack.java index 3b4d773e..41b2e786 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingOpenstack.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingOpenstack.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -255,82 +256,108 @@ public Builder(ServiceVclLoggingOpenstack defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstack", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstack", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstack", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstack", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingOpenstack", "user"); + } + this.user = user; return this; } public ServiceVclLoggingOpenstack build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingPapertrail.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingPapertrail.java index a5a9dbf9..be120912 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,36 +130,49 @@ public Builder(ServiceVclLoggingPapertrail defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrail", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrail", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingPapertrail", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingS3.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingS3.java index 1e158d9f..5d50351d 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingS3.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingS3.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -339,111 +340,137 @@ public Builder(ServiceVclLoggingS3 defaults) { @CustomType.Setter public Builder acl(@Nullable String acl) { + this.acl = acl; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingS3", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder domain(@Nullable String domain) { + this.domain = domain; return this; } @CustomType.Setter public Builder fileMaxBytes(@Nullable Integer fileMaxBytes) { + this.fileMaxBytes = fileMaxBytes; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingS3", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder redundancy(@Nullable String redundancy) { + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder s3AccessKey(@Nullable String s3AccessKey) { + this.s3AccessKey = s3AccessKey; return this; } @CustomType.Setter public Builder s3IamRole(@Nullable String s3IamRole) { + this.s3IamRole = s3IamRole; return this; } @CustomType.Setter public Builder s3SecretKey(@Nullable String s3SecretKey) { + this.s3SecretKey = s3SecretKey; return this; } @CustomType.Setter public Builder serverSideEncryption(@Nullable String serverSideEncryption) { + this.serverSideEncryption = serverSideEncryption; return this; } @CustomType.Setter public Builder serverSideEncryptionKmsKeyId(@Nullable String serverSideEncryptionKmsKeyId) { + this.serverSideEncryptionKmsKeyId = serverSideEncryptionKmsKeyId; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingScalyr.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingScalyr.java index dc305876..5a51bed7 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingScalyr.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingScalyr.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,48 @@ public Builder(ServiceVclLoggingScalyr defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingScalyr", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingScalyr", "token"); + } + this.token = token; return this; } public ServiceVclLoggingScalyr build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSftp.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSftp.java index b01f67d9..500aef65 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSftp.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSftp.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -283,92 +284,120 @@ public Builder(ServiceVclLoggingSftp defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftp", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder compressionCodec(@Nullable String compressionCodec) { + this.compressionCodec = compressionCodec; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder gzipLevel(@Nullable Integer gzipLevel) { + this.gzipLevel = gzipLevel; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftp", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftp", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder period(@Nullable Integer period) { + this.period = period; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder publicKey(@Nullable String publicKey) { + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder sshKnownHosts(String sshKnownHosts) { - this.sshKnownHosts = Objects.requireNonNull(sshKnownHosts); + if (sshKnownHosts == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftp", "sshKnownHosts"); + } + this.sshKnownHosts = sshKnownHosts; return this; } @CustomType.Setter public Builder timestampFormat(@Nullable String timestampFormat) { + this.timestampFormat = timestampFormat; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSftp", "user"); + } + this.user = user; return this; } public ServiceVclLoggingSftp build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSplunk.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSplunk.java index cd2b8d7f..4d1fc5d4 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSplunk.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSplunk.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -200,61 +201,79 @@ public Builder(ServiceVclLoggingSplunk defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunk", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunk", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSplunk", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSumologic.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSumologic.java index 8fa46afa..996b9674 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSumologic.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSumologic.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,48 @@ public Builder(ServiceVclLoggingSumologic defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSumologic", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSumologic", "url"); + } + this.url = url; return this; } public ServiceVclLoggingSumologic build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSyslog.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSyslog.java index 16780cd6..5e356e45 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSyslog.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclLoggingSyslog.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -228,71 +229,89 @@ public Builder(ServiceVclLoggingSyslog defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSyslog", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder formatVersion(@Nullable Integer formatVersion) { + this.formatVersion = formatVersion; return this; } @CustomType.Setter public Builder messageType(@Nullable String messageType) { + this.messageType = messageType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclLoggingSyslog", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder placement(@Nullable String placement) { + this.placement = placement; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder responseCondition(@Nullable String responseCondition) { + this.responseCondition = responseCondition; return this; } @CustomType.Setter public Builder tlsCaCert(@Nullable String tlsCaCert) { + this.tlsCaCert = tlsCaCert; return this; } @CustomType.Setter public Builder tlsClientCert(@Nullable String tlsClientCert) { + this.tlsClientCert = tlsClientCert; return this; } @CustomType.Setter public Builder tlsClientKey(@Nullable String tlsClientKey) { + this.tlsClientKey = tlsClientKey; return this; } @CustomType.Setter public Builder tlsHostname(@Nullable String tlsHostname) { + this.tlsHostname = tlsHostname; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder useTls(@Nullable Boolean useTls) { + this.useTls = useTls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java index 61d5720c..d2480342 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclProductEnablement.java @@ -115,31 +115,37 @@ public Builder(ServiceVclProductEnablement defaults) { @CustomType.Setter public Builder brotliCompression(@Nullable Boolean brotliCompression) { + this.brotliCompression = brotliCompression; return this; } @CustomType.Setter public Builder domainInspector(@Nullable Boolean domainInspector) { + this.domainInspector = domainInspector; return this; } @CustomType.Setter public Builder imageOptimizer(@Nullable Boolean imageOptimizer) { + this.imageOptimizer = imageOptimizer; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder originInspector(@Nullable Boolean originInspector) { + this.originInspector = originInspector; return this; } @CustomType.Setter public Builder websockets(@Nullable Boolean websockets) { + this.websockets = websockets; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiter.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiter.java index c70b9c4a..d87f2710 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiter.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiter.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.fastly.outputs.ServiceVclRateLimiterResponse; import java.lang.Integer; import java.lang.String; @@ -214,67 +215,94 @@ public Builder(ServiceVclRateLimiter defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder clientKey(String clientKey) { - this.clientKey = Objects.requireNonNull(clientKey); + if (clientKey == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "clientKey"); + } + this.clientKey = clientKey; return this; } @CustomType.Setter public Builder featureRevision(@Nullable Integer featureRevision) { + this.featureRevision = featureRevision; return this; } @CustomType.Setter public Builder httpMethods(String httpMethods) { - this.httpMethods = Objects.requireNonNull(httpMethods); + if (httpMethods == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "httpMethods"); + } + this.httpMethods = httpMethods; return this; } @CustomType.Setter public Builder loggerType(@Nullable String loggerType) { + this.loggerType = loggerType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder penaltyBoxDuration(Integer penaltyBoxDuration) { - this.penaltyBoxDuration = Objects.requireNonNull(penaltyBoxDuration); + if (penaltyBoxDuration == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "penaltyBoxDuration"); + } + this.penaltyBoxDuration = penaltyBoxDuration; return this; } @CustomType.Setter public Builder ratelimiterId(@Nullable String ratelimiterId) { + this.ratelimiterId = ratelimiterId; return this; } @CustomType.Setter public Builder response(@Nullable ServiceVclRateLimiterResponse response) { + this.response = response; return this; } @CustomType.Setter public Builder responseObjectName(@Nullable String responseObjectName) { + this.responseObjectName = responseObjectName; return this; } @CustomType.Setter public Builder rpsLimit(Integer rpsLimit) { - this.rpsLimit = Objects.requireNonNull(rpsLimit); + if (rpsLimit == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "rpsLimit"); + } + this.rpsLimit = rpsLimit; return this; } @CustomType.Setter public Builder uriDictionaryName(@Nullable String uriDictionaryName) { + this.uriDictionaryName = uriDictionaryName; return this; } @CustomType.Setter public Builder windowSize(Integer windowSize) { - this.windowSize = Objects.requireNonNull(windowSize); + if (windowSize == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiter", "windowSize"); + } + this.windowSize = windowSize; return this; } public ServiceVclRateLimiter build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiterResponse.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiterResponse.java index 29ec4032..60ba8136 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiterResponse.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRateLimiterResponse.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,17 +72,26 @@ public Builder(ServiceVclRateLimiterResponse defaults) { @CustomType.Setter public Builder content(String content) { - this.content = Objects.requireNonNull(content); + if (content == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponse", "content"); + } + this.content = content; return this; } @CustomType.Setter public Builder contentType(String contentType) { - this.contentType = Objects.requireNonNull(contentType); + if (contentType == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponse", "contentType"); + } + this.contentType = contentType; return this; } @CustomType.Setter public Builder status(Integer status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ServiceVclRateLimiterResponse", "status"); + } + this.status = status; return this; } public ServiceVclRateLimiterResponse build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRequestSetting.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRequestSetting.java index e3e2dcfb..8ea0a5b0 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRequestSetting.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclRequestSetting.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -208,61 +209,75 @@ public Builder(ServiceVclRequestSetting defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder bypassBusyWait(@Nullable Boolean bypassBusyWait) { + this.bypassBusyWait = bypassBusyWait; return this; } @CustomType.Setter public Builder defaultHost(@Nullable String defaultHost) { + this.defaultHost = defaultHost; return this; } @CustomType.Setter public Builder forceMiss(@Nullable Boolean forceMiss) { + this.forceMiss = forceMiss; return this; } @CustomType.Setter public Builder forceSsl(@Nullable Boolean forceSsl) { + this.forceSsl = forceSsl; return this; } @CustomType.Setter public Builder geoHeaders(@Nullable Boolean geoHeaders) { + this.geoHeaders = geoHeaders; return this; } @CustomType.Setter public Builder hashKeys(@Nullable String hashKeys) { + this.hashKeys = hashKeys; return this; } @CustomType.Setter public Builder maxStaleAge(@Nullable Integer maxStaleAge) { + this.maxStaleAge = maxStaleAge; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclRequestSetting", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder requestCondition(@Nullable String requestCondition) { + this.requestCondition = requestCondition; return this; } @CustomType.Setter public Builder timerSupport(@Nullable Boolean timerSupport) { + this.timerSupport = timerSupport; return this; } @CustomType.Setter public Builder xff(@Nullable String xff) { + this.xff = xff; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclResponseObject.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclResponseObject.java index fb4a1e32..069240ac 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclResponseObject.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclResponseObject.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,36 +130,45 @@ public Builder(ServiceVclResponseObject defaults) { @CustomType.Setter public Builder cacheCondition(@Nullable String cacheCondition) { + this.cacheCondition = cacheCondition; return this; } @CustomType.Setter public Builder content(@Nullable String content) { + this.content = content; return this; } @CustomType.Setter public Builder contentType(@Nullable String contentType) { + this.contentType = contentType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclResponseObject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder requestCondition(@Nullable String requestCondition) { + this.requestCondition = requestCondition; return this; } @CustomType.Setter public Builder response(@Nullable String response) { + this.response = response; return this; } @CustomType.Setter public Builder status(@Nullable Integer status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclSnippet.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclSnippet.java index 2a64a0ee..441a168a 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclSnippet.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclSnippet.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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,22 +88,32 @@ public Builder(ServiceVclSnippet defaults) { @CustomType.Setter public Builder content(String content) { - this.content = Objects.requireNonNull(content); + if (content == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippet", "content"); + } + this.content = content; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippet", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceVclSnippet", "type"); + } + this.type = type; return this; } public ServiceVclSnippet build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclVcl.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclVcl.java index e5b038b1..d14bc8de 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclVcl.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclVcl.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,17 +74,24 @@ public Builder(ServiceVclVcl defaults) { @CustomType.Setter public Builder content(String content) { - this.content = Objects.requireNonNull(content); + if (content == null) { + throw new MissingRequiredPropertyException("ServiceVclVcl", "content"); + } + this.content = content; return this; } @CustomType.Setter public Builder main(@Nullable Boolean main) { + this.main = main; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceVclVcl", "name"); + } + this.name = name; return this; } public ServiceVclVcl build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclWaf.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclWaf.java index fd0c9c93..8d10bc87 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclWaf.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceVclWaf.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,21 +88,27 @@ public Builder(ServiceVclWaf defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder prefetchCondition(@Nullable String prefetchCondition) { + this.prefetchCondition = prefetchCondition; return this; } @CustomType.Setter public Builder responseObject(String responseObject) { - this.responseObject = Objects.requireNonNull(responseObject); + if (responseObject == null) { + throw new MissingRequiredPropertyException("ServiceVclWaf", "responseObject"); + } + this.responseObject = responseObject; return this; } @CustomType.Setter public Builder wafId(@Nullable String wafId) { + this.wafId = wafId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRule.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRule.java index 42ff10e5..c58e5a27 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRule.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRule.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.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(ServiceWafConfigurationRule defaults) { @CustomType.Setter public Builder modsecRuleId(Integer modsecRuleId) { - this.modsecRuleId = Objects.requireNonNull(modsecRuleId); + if (modsecRuleId == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRule", "modsecRuleId"); + } + this.modsecRuleId = modsecRuleId; return this; } @CustomType.Setter public Builder revision(@Nullable Integer revision) { + this.revision = revision; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRule", "status"); + } + this.status = status; return this; } public ServiceWafConfigurationRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRuleExclusion.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRuleExclusion.java index cb77c278..a375078a 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRuleExclusion.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/ServiceWafConfigurationRuleExclusion.java @@ -4,6 +4,7 @@ package com.pulumi.fastly.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -102,16 +103,23 @@ public Builder(ServiceWafConfigurationRuleExclusion defaults) { @CustomType.Setter public Builder condition(String condition) { - this.condition = Objects.requireNonNull(condition); + if (condition == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusion", "condition"); + } + this.condition = condition; return this; } @CustomType.Setter public Builder exclusionType(String exclusionType) { - this.exclusionType = Objects.requireNonNull(exclusionType); + if (exclusionType == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusion", "exclusionType"); + } + this.exclusionType = exclusionType; return this; } @CustomType.Setter public Builder modsecRuleIds(@Nullable List modsecRuleIds) { + this.modsecRuleIds = modsecRuleIds; return this; } @@ -120,11 +128,15 @@ public Builder modsecRuleIds(Integer... modsecRuleIds) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceWafConfigurationRuleExclusion", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder number(@Nullable Integer number) { + this.number = number; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedDnsChallenge.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedDnsChallenge.java index ee593307..592f6d11 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedDnsChallenge.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedDnsChallenge.java @@ -48,16 +48,19 @@ public Builder(TlsSubscriptionManagedDnsChallenge defaults) { @CustomType.Setter public Builder recordName(@Nullable String recordName) { + this.recordName = recordName; return this; } @CustomType.Setter public Builder recordType(@Nullable String recordType) { + this.recordType = recordType; return this; } @CustomType.Setter public Builder recordValue(@Nullable String recordValue) { + this.recordValue = recordValue; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedHttpChallenge.java b/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedHttpChallenge.java index 7810093a..7a37c38e 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedHttpChallenge.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/outputs/TlsSubscriptionManagedHttpChallenge.java @@ -49,16 +49,19 @@ public Builder(TlsSubscriptionManagedHttpChallenge defaults) { @CustomType.Setter public Builder recordName(@Nullable String recordName) { + this.recordName = recordName; return this; } @CustomType.Setter public Builder recordType(@Nullable String recordType) { + this.recordType = recordType; return this; } @CustomType.Setter public Builder recordValues(@Nullable List recordValues) { + this.recordValues = recordValues; return this; }