diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ec0de384..0a08dc9e1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Unreleased +- Update to pulumi-java v0.12.0 #3025 (https://github.com/pulumi/pulumi-kubernetes/pull/3025) + ## 4.12.0 (May 21, 2024) ### Added diff --git a/Makefile b/Makefile index 1fc43d3d4a..b0d4c3cf52 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ SCHEMA_FILE := provider/cmd/pulumi-resource-kubernetes/schema.json GOPATH := $(shell go env GOPATH) JAVA_GEN := pulumi-java-gen -JAVA_GEN_VERSION := v0.8.0 +JAVA_GEN_VERSION := v0.12.0 WORKING_DIR := $(shell pwd) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 3e27b76b25..b02b9401d1 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -29,7 +29,8 @@ java { compileJava { options.fork = true - options.forkOptions.jvmArgs.addAll(["-Xmx4g"]) + options.forkOptions.jvmArgs.addAll(["-Xmx16g"]) + options.encoding = "UTF-8" } repositories { @@ -43,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.8.0") + implementation("com.pulumi:pulumi:0.12.0") } task sourcesJar(type: Jar) { @@ -54,6 +55,7 @@ task sourcesJar(type: Jar) { task javadocJar(type: Jar) { from javadoc archiveClassifier.set('javadoc') + zip64 = true } def genPulumiResources = tasks.register('genPulumiResources') { @@ -126,6 +128,10 @@ javadoc { options.jFlags("-Xmx8g", "-Xms512m") } +jar { + zip64 = true +} + if (publishRepoUsername) { nexusPublishing { repositories { diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/Utilities.java b/sdk/java/src/main/java/com/pulumi/kubernetes/Utilities.java index 3b983c0504..26c981f8d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/Utilities.java @@ -57,7 +57,6 @@ public static Optional getEnvDouble(String... names) { return Optional.empty(); } - // TODO: this probably should be done via a mutator on the InvokeOptions public static InvokeOptions withVersion(@Nullable InvokeOptions options) { if (options != null && options.getVersion().isPresent()) { return options; diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationListArgs.java index 53faa96c2b..3f17734cd2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/MutatingWebhookConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.inputs.MutatingWebhookConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public MutatingWebhookConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("MutatingWebhookConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationListArgs.java index 24f5220a5f..ff8ab17fd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.inputs.ValidatingWebhookConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ValidatingWebhookConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/AuditAnnotationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/AuditAnnotationArgs.java index 1ee2683e4c..d1ce5c1007 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/AuditAnnotationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/AuditAnnotationArgs.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; @@ -155,8 +156,12 @@ public Builder valueExpression(String valueExpression) { } public AuditAnnotationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.valueExpression = Objects.requireNonNull($.valueExpression, "expected parameter 'valueExpression' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "key"); + } + if ($.valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "valueExpression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ExpressionWarningArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ExpressionWarningArgs.java index 8f4791a843..727a608004 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ExpressionWarningArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ExpressionWarningArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder warning(String warning) { } public ExpressionWarningArgs build() { - $.fieldRef = Objects.requireNonNull($.fieldRef, "expected parameter 'fieldRef' to be non-null"); - $.warning = Objects.requireNonNull($.warning, "expected parameter 'warning' to be non-null"); + if ($.fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "fieldRef"); + } + if ($.warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "warning"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MatchConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MatchConditionArgs.java index a8957169af..1c8610dc45 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MatchConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MatchConditionArgs.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; @@ -155,8 +156,12 @@ public Builder name(String name) { } public MatchConditionArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MutatingWebhookArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MutatingWebhookArgs.java index daf0a7e197..8fc5a083f7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MutatingWebhookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/MutatingWebhookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.inputs.MatchConditionArgs; import com.pulumi.kubernetes.admissionregistration.v1.inputs.RuleWithOperationsArgs; import com.pulumi.kubernetes.admissionregistration.v1.inputs.WebhookClientConfigArgs; @@ -726,10 +727,18 @@ public Builder timeoutSeconds(Integer timeoutSeconds) { } public MutatingWebhookArgs build() { - $.admissionReviewVersions = Objects.requireNonNull($.admissionReviewVersions, "expected parameter 'admissionReviewVersions' to be non-null"); - $.clientConfig = Objects.requireNonNull($.clientConfig, "expected parameter 'clientConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.sideEffects = Objects.requireNonNull($.sideEffects, "expected parameter 'sideEffects' to be non-null"); + if ($.admissionReviewVersions == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "admissionReviewVersions"); + } + if ($.clientConfig == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "clientConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "name"); + } + if ($.sideEffects == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "sideEffects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ServiceReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ServiceReferenceArgs.java index bf639364d5..7646b35736 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ServiceReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ServiceReferenceArgs.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; @@ -192,8 +193,12 @@ public Builder port(Integer port) { } public ServiceReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidatingWebhookArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidatingWebhookArgs.java index 451c930893..c0b6b81560 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidatingWebhookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidatingWebhookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.inputs.MatchConditionArgs; import com.pulumi.kubernetes.admissionregistration.v1.inputs.RuleWithOperationsArgs; import com.pulumi.kubernetes.admissionregistration.v1.inputs.WebhookClientConfigArgs; @@ -665,10 +666,18 @@ public Builder timeoutSeconds(Integer timeoutSeconds) { } public ValidatingWebhookArgs build() { - $.admissionReviewVersions = Objects.requireNonNull($.admissionReviewVersions, "expected parameter 'admissionReviewVersions' to be non-null"); - $.clientConfig = Objects.requireNonNull($.clientConfig, "expected parameter 'clientConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.sideEffects = Objects.requireNonNull($.sideEffects, "expected parameter 'sideEffects' to be non-null"); + if ($.admissionReviewVersions == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "admissionReviewVersions"); + } + if ($.clientConfig == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "clientConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "name"); + } + if ($.sideEffects == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "sideEffects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidationArgs.java index c85861fed7..f31a8ba17d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/ValidationArgs.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; @@ -291,7 +292,9 @@ public Builder reason(String reason) { } public ValidationArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("ValidationArgs", "expression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/VariableArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/VariableArgs.java index 35ef59433a..f2ee7b915c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/VariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/VariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder name(String name) { } public VariableArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("VariableArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VariableArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigArgs.java index fabcffc7f9..686175b0c0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferenceArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigPatchArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigPatchArgs.java index 8b995e87e2..24dcab14c4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigPatchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/inputs/WebhookClientConfigPatchArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferencePatchArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotation.java index f2bcd76880..2aff42678b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(AuditAnnotation defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(String valueExpression) { - this.valueExpression = Objects.requireNonNull(valueExpression); + if (valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "valueExpression"); + } + this.valueExpression = valueExpression; return this; } public AuditAnnotation build() { - final var o = new AuditAnnotation(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotation(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotationPatch.java index bbb90692c8..c02891b36b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/AuditAnnotationPatch.java @@ -78,19 +78,21 @@ public Builder(AuditAnnotationPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(@Nullable String valueExpression) { + this.valueExpression = valueExpression; return this; } public AuditAnnotationPatch build() { - final var o = new AuditAnnotationPatch(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotationPatch(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarning.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarning.java index a8cc925b2c..d993145659 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarning.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarning.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ExpressionWarning defaults) { @CustomType.Setter public Builder fieldRef(String fieldRef) { - this.fieldRef = Objects.requireNonNull(fieldRef); + if (fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "fieldRef"); + } + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(String warning) { - this.warning = Objects.requireNonNull(warning); + if (warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "warning"); + } + this.warning = warning; return this; } public ExpressionWarning build() { - final var o = new ExpressionWarning(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarning(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarningPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarningPatch.java index ca777d0269..0327797c63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarningPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ExpressionWarningPatch.java @@ -58,19 +58,21 @@ public Builder(ExpressionWarningPatch defaults) { @CustomType.Setter public Builder fieldRef(@Nullable String fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(@Nullable String warning) { + this.warning = warning; return this; } public ExpressionWarningPatch build() { - final var o = new ExpressionWarningPatch(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarningPatch(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchCondition.java index bde0f8c630..fa18197105 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(MatchCondition defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("MatchCondition", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MatchCondition", "name"); + } + this.name = name; return this; } public MatchCondition build() { - final var o = new MatchCondition(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchCondition(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchConditionPatch.java index 333a16613b..e17345c56a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchConditionPatch.java @@ -78,19 +78,21 @@ public Builder(MatchConditionPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public MatchConditionPatch build() { - final var o = new MatchConditionPatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchConditionPatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResources.java index 15d500e69e..13d90c703d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResources.java @@ -175,6 +175,7 @@ public Builder(MatchResources defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperations... excludeResourceRu } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperations... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResources build() { - final var o = new MatchResources(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResources(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResourcesPatch.java index bcbcfcff31..73d73b365a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MatchResourcesPatch.java @@ -175,6 +175,7 @@ public Builder(MatchResourcesPatch defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperationsPatch... excludeResou } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperationsPatch... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResourcesPatch build() { - final var o = new MatchResourcesPatch(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResourcesPatch(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhook.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhook.java index 28e5edcd23..32dbd9c009 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhook.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.outputs.MatchCondition; import com.pulumi.kubernetes.admissionregistration.v1.outputs.RuleWithOperations; import com.pulumi.kubernetes.admissionregistration.v1.outputs.WebhookClientConfig; @@ -302,7 +303,10 @@ public Builder(MutatingWebhook defaults) { @CustomType.Setter public Builder admissionReviewVersions(List admissionReviewVersions) { - this.admissionReviewVersions = Objects.requireNonNull(admissionReviewVersions); + if (admissionReviewVersions == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "admissionReviewVersions"); + } + this.admissionReviewVersions = admissionReviewVersions; return this; } public Builder admissionReviewVersions(String... admissionReviewVersions) { @@ -310,16 +314,21 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(WebhookClientConfig clientConfig) { - this.clientConfig = Objects.requireNonNull(clientConfig); + if (clientConfig == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "clientConfig"); + } + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -328,31 +337,39 @@ public Builder matchConditions(MatchCondition... matchConditions) { } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder reinvocationPolicy(@Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -361,29 +378,33 @@ public Builder rules(RuleWithOperations... rules) { } @CustomType.Setter public Builder sideEffects(String sideEffects) { - this.sideEffects = Objects.requireNonNull(sideEffects); + if (sideEffects == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "sideEffects"); + } + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public MutatingWebhook build() { - final var o = new MutatingWebhook(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.reinvocationPolicy = reinvocationPolicy; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new MutatingWebhook(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.reinvocationPolicy = reinvocationPolicy; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookConfiguration.java index 2bc787e954..07f92a7823 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookConfiguration.java @@ -89,21 +89,25 @@ public Builder(MutatingWebhookConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder webhooks(@Nullable List webhooks) { + this.webhooks = webhooks; return this; } @@ -111,12 +115,12 @@ public Builder webhooks(MutatingWebhook... webhooks) { return webhooks(List.of(webhooks)); } public MutatingWebhookConfiguration build() { - final var o = new MutatingWebhookConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.webhooks = webhooks; - return o; + final var _resultValue = new MutatingWebhookConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.webhooks = webhooks; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookPatch.java index 7fc985025f..43bd443c5e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/MutatingWebhookPatch.java @@ -302,6 +302,7 @@ public Builder(MutatingWebhookPatch defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -310,16 +311,19 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -328,31 +332,37 @@ public Builder matchConditions(MatchConditionPatch... matchConditions) { } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder reinvocationPolicy(@Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -361,29 +371,31 @@ public Builder rules(RuleWithOperationsPatch... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public MutatingWebhookPatch build() { - final var o = new MutatingWebhookPatch(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.reinvocationPolicy = reinvocationPolicy; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new MutatingWebhookPatch(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.reinvocationPolicy = reinvocationPolicy; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperations.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperations.java index 74794eb433..174e9c6017 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperations.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperations.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperations defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperations build() { - final var o = new NamedRuleWithOperations(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperations(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperationsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperationsPatch.java index a8c5b23f4a..a85267ca71 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperationsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/NamedRuleWithOperationsPatch.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperationsPatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperationsPatch build() { - final var o = new NamedRuleWithOperationsPatch(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperationsPatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKind.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKind.java index 1bbb31d136..fe4fba5ed7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKind.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKind.java @@ -58,19 +58,21 @@ public Builder(ParamKind defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKind build() { - final var o = new ParamKind(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKind(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKindPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKindPatch.java index 348ff839bc..4994207c26 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKindPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamKindPatch.java @@ -58,19 +58,21 @@ public Builder(ParamKindPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKindPatch build() { - final var o = new ParamKindPatch(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKindPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRef.java index 4ba2d9f707..0189aa961f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRef.java @@ -123,31 +123,35 @@ public Builder(ParamRef defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public ParamRef build() { - final var o = new ParamRef(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRef(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRefPatch.java index 862361ff2b..1788019eef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ParamRefPatch.java @@ -123,31 +123,35 @@ public Builder(ParamRefPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public ParamRefPatch build() { - final var o = new ParamRefPatch(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRefPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperations.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperations.java index 615a4dbbd7..915db9c6eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperations.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperations.java @@ -113,6 +113,7 @@ public Builder(RuleWithOperations defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -121,6 +122,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -129,6 +131,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -137,6 +140,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -145,17 +149,18 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public RuleWithOperations build() { - final var o = new RuleWithOperations(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new RuleWithOperations(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperationsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperationsPatch.java index 610f984a6e..337fe5c0c4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperationsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/RuleWithOperationsPatch.java @@ -113,6 +113,7 @@ public Builder(RuleWithOperationsPatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -121,6 +122,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -129,6 +131,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -137,6 +140,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -145,17 +149,18 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public RuleWithOperationsPatch build() { - final var o = new RuleWithOperationsPatch(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new RuleWithOperationsPatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReference.java index a3cde64112..968b7d68b6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.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,31 +88,39 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceReference", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReferencePatch.java index 48f9471518..54bba7fe25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ServiceReferencePatch.java @@ -87,31 +87,35 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeChecking.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeChecking.java index 4e8c8eaed2..1e2b594a4d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeChecking.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeChecking.java @@ -44,6 +44,7 @@ public Builder(TypeChecking defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarning... expressionWarnings) { return expressionWarnings(List.of(expressionWarnings)); } public TypeChecking build() { - final var o = new TypeChecking(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeChecking(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeCheckingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeCheckingPatch.java index 562a440a9a..8973c531cf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeCheckingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/TypeCheckingPatch.java @@ -44,6 +44,7 @@ public Builder(TypeCheckingPatch defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarningPatch... expressionWarnings) return expressionWarnings(List.of(expressionWarnings)); } public TypeCheckingPatch build() { - final var o = new TypeCheckingPatch(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeCheckingPatch(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicy.java index a21be9f35a..03088e6902 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicy.java @@ -103,37 +103,42 @@ public Builder(ValidatingAdmissionPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicySpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ValidatingAdmissionPolicyStatus status) { + this.status = status; return this; } public ValidatingAdmissionPolicy build() { - final var o = new ValidatingAdmissionPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ValidatingAdmissionPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBinding.java index e8a5796042..0d721619af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBinding.java @@ -88,31 +88,35 @@ public Builder(ValidatingAdmissionPolicyBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; return this; } public ValidatingAdmissionPolicyBinding build() { - final var o = new ValidatingAdmissionPolicyBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpec.java index 30988a443c..0fb58ef728 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpec.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpec defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResources matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRef paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpec build() { - final var o = new ValidatingAdmissionPolicyBindingSpec(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpec(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java index b4a7c739bc..fc4a090f41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpecPatch defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResourcesPatch matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRefPatch paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpecPatch build() { - final var o = new ValidatingAdmissionPolicyBindingSpecPatch(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpecPatch(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpec.java index 91780f389a..bb9659517b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpec.java @@ -173,6 +173,7 @@ public Builder(ValidatingAdmissionPolicySpec defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +182,13 @@ public Builder auditAnnotations(AuditAnnotation... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,16 +197,19 @@ public Builder matchConditions(MatchCondition... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKind paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(@Nullable List validations) { + this.validations = validations; return this; } @@ -212,6 +218,7 @@ public Builder validations(Validation... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +226,15 @@ public Builder variables(Variable... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpec build() { - final var o = new ValidatingAdmissionPolicySpec(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpec(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpecPatch.java index ee195ff3ea..518adf2947 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicySpecPatch.java @@ -173,6 +173,7 @@ public Builder(ValidatingAdmissionPolicySpecPatch defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +182,13 @@ public Builder auditAnnotations(AuditAnnotationPatch... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,16 +197,19 @@ public Builder matchConditions(MatchConditionPatch... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResourcesPatch matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKindPatch paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(@Nullable List validations) { + this.validations = validations; return this; } @@ -212,6 +218,7 @@ public Builder validations(ValidationPatch... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +226,15 @@ public Builder variables(VariablePatch... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpecPatch build() { - final var o = new ValidatingAdmissionPolicySpecPatch(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpecPatch(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatus.java index c13e4d251f..bf682deea9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatus.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(Condition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeChecking typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatus build() { - final var o = new ValidatingAdmissionPolicyStatus(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatus(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatusPatch.java index 1c0a857863..534dc8012f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingAdmissionPolicyStatusPatch.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(ConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeCheckingPatch typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatusPatch build() { - final var o = new ValidatingAdmissionPolicyStatusPatch(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhook.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhook.java index a5718f4fb6..6ddf369842 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhook.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1.outputs.MatchCondition; import com.pulumi.kubernetes.admissionregistration.v1.outputs.RuleWithOperations; import com.pulumi.kubernetes.admissionregistration.v1.outputs.WebhookClientConfig; @@ -276,7 +277,10 @@ public Builder(ValidatingWebhook defaults) { @CustomType.Setter public Builder admissionReviewVersions(List admissionReviewVersions) { - this.admissionReviewVersions = Objects.requireNonNull(admissionReviewVersions); + if (admissionReviewVersions == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "admissionReviewVersions"); + } + this.admissionReviewVersions = admissionReviewVersions; return this; } public Builder admissionReviewVersions(String... admissionReviewVersions) { @@ -284,16 +288,21 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(WebhookClientConfig clientConfig) { - this.clientConfig = Objects.requireNonNull(clientConfig); + if (clientConfig == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "clientConfig"); + } + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -302,26 +311,33 @@ public Builder matchConditions(MatchCondition... matchConditions) { } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -330,28 +346,32 @@ public Builder rules(RuleWithOperations... rules) { } @CustomType.Setter public Builder sideEffects(String sideEffects) { - this.sideEffects = Objects.requireNonNull(sideEffects); + if (sideEffects == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "sideEffects"); + } + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ValidatingWebhook build() { - final var o = new ValidatingWebhook(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ValidatingWebhook(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookConfiguration.java index 4ca74b0d20..2e779d95cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookConfiguration.java @@ -89,21 +89,25 @@ public Builder(ValidatingWebhookConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder webhooks(@Nullable List webhooks) { + this.webhooks = webhooks; return this; } @@ -111,12 +115,12 @@ public Builder webhooks(ValidatingWebhook... webhooks) { return webhooks(List.of(webhooks)); } public ValidatingWebhookConfiguration build() { - final var o = new ValidatingWebhookConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.webhooks = webhooks; - return o; + final var _resultValue = new ValidatingWebhookConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.webhooks = webhooks; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookPatch.java index 239572276c..9219c2273c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidatingWebhookPatch.java @@ -276,6 +276,7 @@ public Builder(ValidatingWebhookPatch defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -284,16 +285,19 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -302,26 +306,31 @@ public Builder matchConditions(MatchConditionPatch... matchConditions) { } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -330,28 +339,30 @@ public Builder rules(RuleWithOperationsPatch... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ValidatingWebhookPatch build() { - final var o = new ValidatingWebhookPatch(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ValidatingWebhookPatch(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Validation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Validation.java index f9f14bdae1..67ba441b53 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Validation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Validation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -136,31 +137,37 @@ public Builder(Validation defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Validation", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public Validation build() { - final var o = new Validation(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new Validation(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidationPatch.java index 3d59ca0957..8447675046 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/ValidationPatch.java @@ -136,31 +136,35 @@ public Builder(ValidationPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public ValidationPatch build() { - final var o = new ValidationPatch(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new ValidationPatch(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Variable.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Variable.java index 50fefc689d..1634da42de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Variable.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/Variable.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(Variable defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Variable", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Variable", "name"); + } + this.name = name; return this; } public Variable build() { - final var o = new Variable(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new Variable(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/VariablePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/VariablePatch.java index b4b0585922..faf7975386 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/VariablePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/VariablePatch.java @@ -58,19 +58,21 @@ public Builder(VariablePatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public VariablePatch build() { - final var o = new VariablePatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new VariablePatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfig.java index e68b35371c..1a373f38e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfig.java @@ -35,7 +35,7 @@ public final class WebhookClientConfig { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfig defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfig build() { - final var o = new WebhookClientConfig(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfig(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfigPatch.java index e1afef8a42..d77cbf9d65 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1/outputs/WebhookClientConfigPatch.java @@ -35,7 +35,7 @@ public final class WebhookClientConfigPatch { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfigPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfigPatch build() { - final var o = new WebhookClientConfigPatch(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfigPatch(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/AuditAnnotationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/AuditAnnotationArgs.java index fc9d113c51..104f829777 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/AuditAnnotationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/AuditAnnotationArgs.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; @@ -155,8 +156,12 @@ public Builder valueExpression(String valueExpression) { } public AuditAnnotationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.valueExpression = Objects.requireNonNull($.valueExpression, "expected parameter 'valueExpression' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "key"); + } + if ($.valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "valueExpression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ExpressionWarningArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ExpressionWarningArgs.java index 856a9acafd..fe5cb0fd25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ExpressionWarningArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ExpressionWarningArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder warning(String warning) { } public ExpressionWarningArgs build() { - $.fieldRef = Objects.requireNonNull($.fieldRef, "expected parameter 'fieldRef' to be non-null"); - $.warning = Objects.requireNonNull($.warning, "expected parameter 'warning' to be non-null"); + if ($.fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "fieldRef"); + } + if ($.warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "warning"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/MatchConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/MatchConditionArgs.java index aa833204b9..55cd7812a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/MatchConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/MatchConditionArgs.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; @@ -151,8 +152,12 @@ public Builder name(String name) { } public MatchConditionArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidatingAdmissionPolicySpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidatingAdmissionPolicySpecArgs.java index c63de18043..5fce425b41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidatingAdmissionPolicySpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidatingAdmissionPolicySpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1alpha1.inputs.AuditAnnotationArgs; import com.pulumi.kubernetes.admissionregistration.v1alpha1.inputs.MatchConditionArgs; import com.pulumi.kubernetes.admissionregistration.v1alpha1.inputs.MatchResourcesArgs; @@ -436,7 +437,9 @@ public Builder variables(VariableArgs... variables) { } public ValidatingAdmissionPolicySpecArgs build() { - $.validations = Objects.requireNonNull($.validations, "expected parameter 'validations' to be non-null"); + if ($.validations == null) { + throw new MissingRequiredPropertyException("ValidatingAdmissionPolicySpecArgs", "validations"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidationArgs.java index 0e11cef371..9c105f57ca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/ValidationArgs.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; @@ -291,7 +292,9 @@ public Builder reason(String reason) { } public ValidationArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("ValidationArgs", "expression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/VariableArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/VariableArgs.java index 50ccb1bdd0..29d0350187 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/VariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/inputs/VariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder name(String name) { } public VariableArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("VariableArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VariableArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotation.java index 108573902f..c60b1a3670 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(AuditAnnotation defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(String valueExpression) { - this.valueExpression = Objects.requireNonNull(valueExpression); + if (valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "valueExpression"); + } + this.valueExpression = valueExpression; return this; } public AuditAnnotation build() { - final var o = new AuditAnnotation(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotation(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotationPatch.java index 28dfc11c3e..fc4c823b9c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/AuditAnnotationPatch.java @@ -78,19 +78,21 @@ public Builder(AuditAnnotationPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(@Nullable String valueExpression) { + this.valueExpression = valueExpression; return this; } public AuditAnnotationPatch build() { - final var o = new AuditAnnotationPatch(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotationPatch(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarning.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarning.java index 58635a6086..2d10e87e3b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarning.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarning.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ExpressionWarning defaults) { @CustomType.Setter public Builder fieldRef(String fieldRef) { - this.fieldRef = Objects.requireNonNull(fieldRef); + if (fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "fieldRef"); + } + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(String warning) { - this.warning = Objects.requireNonNull(warning); + if (warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "warning"); + } + this.warning = warning; return this; } public ExpressionWarning build() { - final var o = new ExpressionWarning(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarning(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarningPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarningPatch.java index 7c9bc5fdbc..b4a91b3272 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarningPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ExpressionWarningPatch.java @@ -58,19 +58,21 @@ public Builder(ExpressionWarningPatch defaults) { @CustomType.Setter public Builder fieldRef(@Nullable String fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(@Nullable String warning) { + this.warning = warning; return this; } public ExpressionWarningPatch build() { - final var o = new ExpressionWarningPatch(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarningPatch(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchCondition.java index b60ba12c3e..04622efca8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(MatchCondition defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("MatchCondition", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MatchCondition", "name"); + } + this.name = name; return this; } public MatchCondition build() { - final var o = new MatchCondition(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchCondition(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchConditionPatch.java index e1636ce0d1..6f4a484775 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchConditionPatch.java @@ -78,19 +78,21 @@ public Builder(MatchConditionPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public MatchConditionPatch build() { - final var o = new MatchConditionPatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchConditionPatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResources.java index 772e1bf48f..acff997cd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResources.java @@ -175,6 +175,7 @@ public Builder(MatchResources defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperations... excludeResourceRu } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperations... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResources build() { - final var o = new MatchResources(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResources(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResourcesPatch.java index e2483494d5..c26fcaa5e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/MatchResourcesPatch.java @@ -175,6 +175,7 @@ public Builder(MatchResourcesPatch defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperationsPatch... excludeResou } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperationsPatch... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResourcesPatch build() { - final var o = new MatchResourcesPatch(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResourcesPatch(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperations.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperations.java index 23ad4f3ff9..c9265e20b4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperations.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperations.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperations defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperations build() { - final var o = new NamedRuleWithOperations(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperations(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperationsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperationsPatch.java index adfe0f6f5c..e22ce9c6e2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperationsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/NamedRuleWithOperationsPatch.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperationsPatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperationsPatch build() { - final var o = new NamedRuleWithOperationsPatch(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperationsPatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKind.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKind.java index 1b0426c9b8..a04e91816b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKind.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKind.java @@ -58,19 +58,21 @@ public Builder(ParamKind defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKind build() { - final var o = new ParamKind(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKind(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKindPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKindPatch.java index 5601a05d4f..450a851bf0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKindPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamKindPatch.java @@ -58,19 +58,21 @@ public Builder(ParamKindPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKindPatch build() { - final var o = new ParamKindPatch(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKindPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRef.java index 004a40ec3b..368f0922eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRef.java @@ -115,31 +115,35 @@ public Builder(ParamRef defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public ParamRef build() { - final var o = new ParamRef(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRef(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRefPatch.java index ea991c026b..11fe348c59 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ParamRefPatch.java @@ -115,31 +115,35 @@ public Builder(ParamRefPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public ParamRefPatch build() { - final var o = new ParamRefPatch(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRefPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeChecking.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeChecking.java index da26b74e1d..8eec995f87 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeChecking.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeChecking.java @@ -44,6 +44,7 @@ public Builder(TypeChecking defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarning... expressionWarnings) { return expressionWarnings(List.of(expressionWarnings)); } public TypeChecking build() { - final var o = new TypeChecking(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeChecking(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeCheckingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeCheckingPatch.java index 2da4cbc675..569e8116bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeCheckingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/TypeCheckingPatch.java @@ -44,6 +44,7 @@ public Builder(TypeCheckingPatch defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarningPatch... expressionWarnings) return expressionWarnings(List.of(expressionWarnings)); } public TypeCheckingPatch build() { - final var o = new TypeCheckingPatch(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeCheckingPatch(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicy.java index 1bedd11e0e..9ca2b1fcad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicy.java @@ -103,37 +103,42 @@ public Builder(ValidatingAdmissionPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicySpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ValidatingAdmissionPolicyStatus status) { + this.status = status; return this; } public ValidatingAdmissionPolicy build() { - final var o = new ValidatingAdmissionPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ValidatingAdmissionPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBinding.java index 5bc5336bf5..235b0b4461 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBinding.java @@ -88,31 +88,35 @@ public Builder(ValidatingAdmissionPolicyBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; return this; } public ValidatingAdmissionPolicyBinding build() { - final var o = new ValidatingAdmissionPolicyBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpec.java index 0c62b510f9..2eb2467ad5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpec.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpec defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResources matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRef paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpec build() { - final var o = new ValidatingAdmissionPolicyBindingSpec(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpec(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java index 9fadb44a2a..f7ae65534d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpecPatch defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResourcesPatch matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRefPatch paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpecPatch build() { - final var o = new ValidatingAdmissionPolicyBindingSpecPatch(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpecPatch(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpec.java index f08cb72056..9b90f278b5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.AuditAnnotation; import com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.MatchCondition; import com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.MatchResources; @@ -173,6 +174,7 @@ public Builder(ValidatingAdmissionPolicySpec defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +183,13 @@ public Builder auditAnnotations(AuditAnnotation... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,17 +198,22 @@ public Builder matchConditions(MatchCondition... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKind paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(List validations) { - this.validations = Objects.requireNonNull(validations); + if (validations == null) { + throw new MissingRequiredPropertyException("ValidatingAdmissionPolicySpec", "validations"); + } + this.validations = validations; return this; } public Builder validations(Validation... validations) { @@ -212,6 +221,7 @@ public Builder validations(Validation... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +229,15 @@ public Builder variables(Variable... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpec build() { - final var o = new ValidatingAdmissionPolicySpec(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpec(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpecPatch.java index 1c2f6eb248..e838518201 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicySpecPatch.java @@ -173,6 +173,7 @@ public Builder(ValidatingAdmissionPolicySpecPatch defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +182,13 @@ public Builder auditAnnotations(AuditAnnotationPatch... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,16 +197,19 @@ public Builder matchConditions(MatchConditionPatch... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResourcesPatch matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKindPatch paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(@Nullable List validations) { + this.validations = validations; return this; } @@ -212,6 +218,7 @@ public Builder validations(ValidationPatch... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +226,15 @@ public Builder variables(VariablePatch... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpecPatch build() { - final var o = new ValidatingAdmissionPolicySpecPatch(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpecPatch(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatus.java index 428311f544..e219f21ba4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatus.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(Condition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeChecking typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatus build() { - final var o = new ValidatingAdmissionPolicyStatus(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatus(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatusPatch.java index 4d7657f218..b06f11dd12 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidatingAdmissionPolicyStatusPatch.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(ConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeCheckingPatch typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatusPatch build() { - final var o = new ValidatingAdmissionPolicyStatusPatch(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Validation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Validation.java index 08672ddac2..55c291900a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Validation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Validation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -136,31 +137,37 @@ public Builder(Validation defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Validation", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public Validation build() { - final var o = new Validation(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new Validation(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidationPatch.java index 21089708d4..3cb3c198f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/ValidationPatch.java @@ -136,31 +136,35 @@ public Builder(ValidationPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public ValidationPatch build() { - final var o = new ValidationPatch(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new ValidationPatch(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Variable.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Variable.java index 98de1483ea..c62ce77060 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Variable.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/Variable.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(Variable defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Variable", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Variable", "name"); + } + this.name = name; return this; } public Variable build() { - final var o = new Variable(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new Variable(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/VariablePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/VariablePatch.java index 381295b20e..0e834da6a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/VariablePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1alpha1/outputs/VariablePatch.java @@ -58,19 +58,21 @@ public Builder(VariablePatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public VariablePatch build() { - final var o = new VariablePatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new VariablePatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationListArgs.java index 85603ec9fc..a37ccc3520 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.MutatingWebhookConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public MutatingWebhookConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("MutatingWebhookConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationListArgs.java index 145ed7cfed..d2ed71f9bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.ValidatingWebhookConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ValidatingWebhookConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/AuditAnnotationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/AuditAnnotationArgs.java index 76c3766ccb..564ac826fc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/AuditAnnotationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/AuditAnnotationArgs.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; @@ -155,8 +156,12 @@ public Builder valueExpression(String valueExpression) { } public AuditAnnotationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.valueExpression = Objects.requireNonNull($.valueExpression, "expected parameter 'valueExpression' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "key"); + } + if ($.valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotationArgs", "valueExpression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ExpressionWarningArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ExpressionWarningArgs.java index 6ed8dac354..ef6304d78c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ExpressionWarningArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ExpressionWarningArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder warning(String warning) { } public ExpressionWarningArgs build() { - $.fieldRef = Objects.requireNonNull($.fieldRef, "expected parameter 'fieldRef' to be non-null"); - $.warning = Objects.requireNonNull($.warning, "expected parameter 'warning' to be non-null"); + if ($.fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "fieldRef"); + } + if ($.warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarningArgs", "warning"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MatchConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MatchConditionArgs.java index 0cfa287439..6b5bf018a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MatchConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MatchConditionArgs.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; @@ -155,8 +156,12 @@ public Builder name(String name) { } public MatchConditionArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("MatchConditionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MutatingWebhookArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MutatingWebhookArgs.java index ee7681e0bd..04e27a274b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MutatingWebhookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/MutatingWebhookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.RuleWithOperationsArgs; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.WebhookClientConfigArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -643,8 +644,12 @@ public Builder timeoutSeconds(Integer timeoutSeconds) { } public MutatingWebhookArgs build() { - $.clientConfig = Objects.requireNonNull($.clientConfig, "expected parameter 'clientConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clientConfig == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "clientConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("MutatingWebhookArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ServiceReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ServiceReferenceArgs.java index 9e1357e79a..c0eccf5f82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ServiceReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ServiceReferenceArgs.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; @@ -192,8 +193,12 @@ public Builder port(Integer port) { } public ServiceReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidatingWebhookArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidatingWebhookArgs.java index 13bdb48908..6409e04d27 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidatingWebhookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidatingWebhookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.RuleWithOperationsArgs; import com.pulumi.kubernetes.admissionregistration.v1beta1.inputs.WebhookClientConfigArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -582,8 +583,12 @@ public Builder timeoutSeconds(Integer timeoutSeconds) { } public ValidatingWebhookArgs build() { - $.clientConfig = Objects.requireNonNull($.clientConfig, "expected parameter 'clientConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clientConfig == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "clientConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ValidatingWebhookArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidationArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidationArgs.java index 5b5c395e85..e3fca94cec 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/ValidationArgs.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; @@ -291,7 +292,9 @@ public Builder reason(String reason) { } public ValidationArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("ValidationArgs", "expression"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/VariableArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/VariableArgs.java index acd99747af..a128fc8240 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/VariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/VariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder name(String name) { } public VariableArgs build() { - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.expression == null) { + throw new MissingRequiredPropertyException("VariableArgs", "expression"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VariableArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigArgs.java index 803114b212..9e6f4adfa9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferenceArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigPatchArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigPatchArgs.java index 864ec5dc3c..f55ff0cfe7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigPatchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/inputs/WebhookClientConfigPatchArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferencePatchArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotation.java index 59e77d313a..042439b6a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(AuditAnnotation defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(String valueExpression) { - this.valueExpression = Objects.requireNonNull(valueExpression); + if (valueExpression == null) { + throw new MissingRequiredPropertyException("AuditAnnotation", "valueExpression"); + } + this.valueExpression = valueExpression; return this; } public AuditAnnotation build() { - final var o = new AuditAnnotation(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotation(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotationPatch.java index 181a891fdb..8b25ebf35c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/AuditAnnotationPatch.java @@ -78,19 +78,21 @@ public Builder(AuditAnnotationPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder valueExpression(@Nullable String valueExpression) { + this.valueExpression = valueExpression; return this; } public AuditAnnotationPatch build() { - final var o = new AuditAnnotationPatch(); - o.key = key; - o.valueExpression = valueExpression; - return o; + final var _resultValue = new AuditAnnotationPatch(); + _resultValue.key = key; + _resultValue.valueExpression = valueExpression; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarning.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarning.java index f98a3807ce..a9b36bd15c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarning.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarning.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ExpressionWarning defaults) { @CustomType.Setter public Builder fieldRef(String fieldRef) { - this.fieldRef = Objects.requireNonNull(fieldRef); + if (fieldRef == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "fieldRef"); + } + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(String warning) { - this.warning = Objects.requireNonNull(warning); + if (warning == null) { + throw new MissingRequiredPropertyException("ExpressionWarning", "warning"); + } + this.warning = warning; return this; } public ExpressionWarning build() { - final var o = new ExpressionWarning(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarning(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarningPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarningPatch.java index e3b6ee7a4c..2f7006d6dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarningPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ExpressionWarningPatch.java @@ -58,19 +58,21 @@ public Builder(ExpressionWarningPatch defaults) { @CustomType.Setter public Builder fieldRef(@Nullable String fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder warning(@Nullable String warning) { + this.warning = warning; return this; } public ExpressionWarningPatch build() { - final var o = new ExpressionWarningPatch(); - o.fieldRef = fieldRef; - o.warning = warning; - return o; + final var _resultValue = new ExpressionWarningPatch(); + _resultValue.fieldRef = fieldRef; + _resultValue.warning = warning; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchCondition.java index 38f9505246..6c7b27e5ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -76,19 +77,25 @@ public Builder(MatchCondition defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("MatchCondition", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MatchCondition", "name"); + } + this.name = name; return this; } public MatchCondition build() { - final var o = new MatchCondition(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchCondition(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchConditionPatch.java index 9ede53104f..d184472040 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchConditionPatch.java @@ -78,19 +78,21 @@ public Builder(MatchConditionPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public MatchConditionPatch build() { - final var o = new MatchConditionPatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new MatchConditionPatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResources.java index 99f1d8821e..a27f6c6d14 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResources.java @@ -175,6 +175,7 @@ public Builder(MatchResources defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperations... excludeResourceRu } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperations... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResources build() { - final var o = new MatchResources(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResources(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResourcesPatch.java index 0ce328e906..ad839d52a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MatchResourcesPatch.java @@ -175,6 +175,7 @@ public Builder(MatchResourcesPatch defaults) { @CustomType.Setter public Builder excludeResourceRules(@Nullable List excludeResourceRules) { + this.excludeResourceRules = excludeResourceRules; return this; } @@ -183,21 +184,25 @@ public Builder excludeResourceRules(NamedRuleWithOperationsPatch... excludeResou } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -205,13 +210,13 @@ public Builder resourceRules(NamedRuleWithOperationsPatch... resourceRules) { return resourceRules(List.of(resourceRules)); } public MatchResourcesPatch build() { - final var o = new MatchResourcesPatch(); - o.excludeResourceRules = excludeResourceRules; - o.matchPolicy = matchPolicy; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.resourceRules = resourceRules; - return o; + final var _resultValue = new MatchResourcesPatch(); + _resultValue.excludeResourceRules = excludeResourceRules; + _resultValue.matchPolicy = matchPolicy; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.resourceRules = resourceRules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhook.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhook.java index 585b777858..e13ee18811 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhook.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.outputs.RuleWithOperations; import com.pulumi.kubernetes.admissionregistration.v1beta1.outputs.WebhookClientConfig; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -273,6 +274,7 @@ public Builder(MutatingWebhook defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -281,41 +283,53 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(WebhookClientConfig clientConfig) { - this.clientConfig = Objects.requireNonNull(clientConfig); + if (clientConfig == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "clientConfig"); + } + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MutatingWebhook", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder reinvocationPolicy(@Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -324,28 +338,30 @@ public Builder rules(RuleWithOperations... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public MutatingWebhook build() { - final var o = new MutatingWebhook(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.reinvocationPolicy = reinvocationPolicy; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new MutatingWebhook(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.reinvocationPolicy = reinvocationPolicy; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookConfiguration.java index 85e1741fec..d8ac2e5c62 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookConfiguration.java @@ -89,21 +89,25 @@ public Builder(MutatingWebhookConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder webhooks(@Nullable List webhooks) { + this.webhooks = webhooks; return this; } @@ -111,12 +115,12 @@ public Builder webhooks(MutatingWebhook... webhooks) { return webhooks(List.of(webhooks)); } public MutatingWebhookConfiguration build() { - final var o = new MutatingWebhookConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.webhooks = webhooks; - return o; + final var _resultValue = new MutatingWebhookConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.webhooks = webhooks; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookPatch.java index 6864164e81..572911d37a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/MutatingWebhookPatch.java @@ -273,6 +273,7 @@ public Builder(MutatingWebhookPatch defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -281,41 +282,49 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder reinvocationPolicy(@Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -324,28 +333,30 @@ public Builder rules(RuleWithOperationsPatch... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public MutatingWebhookPatch build() { - final var o = new MutatingWebhookPatch(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.reinvocationPolicy = reinvocationPolicy; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new MutatingWebhookPatch(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.reinvocationPolicy = reinvocationPolicy; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperations.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperations.java index 48ffc70bc7..c341f4e982 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperations.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperations.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperations defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperations build() { - final var o = new NamedRuleWithOperations(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperations(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperationsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperationsPatch.java index 8ce51e6aa2..23a969ca37 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperationsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/NamedRuleWithOperationsPatch.java @@ -127,6 +127,7 @@ public Builder(NamedRuleWithOperationsPatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -135,6 +136,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -143,6 +145,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -151,6 +154,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -159,6 +163,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -167,18 +172,19 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public NamedRuleWithOperationsPatch build() { - final var o = new NamedRuleWithOperationsPatch(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resourceNames = resourceNames; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new NamedRuleWithOperationsPatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKind.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKind.java index 8fbfc8d211..db67c0f017 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKind.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKind.java @@ -58,19 +58,21 @@ public Builder(ParamKind defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKind build() { - final var o = new ParamKind(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKind(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKindPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKindPatch.java index c43c8c7b15..59a11333e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKindPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamKindPatch.java @@ -58,19 +58,21 @@ public Builder(ParamKindPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } public ParamKindPatch build() { - final var o = new ParamKindPatch(); - o.apiVersion = apiVersion; - o.kind = kind; - return o; + final var _resultValue = new ParamKindPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRef.java index 68b457ab28..2bde6daa28 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRef.java @@ -123,31 +123,35 @@ public Builder(ParamRef defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public ParamRef build() { - final var o = new ParamRef(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRef(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRefPatch.java index 0c7412b5d7..33d1e23cde 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ParamRefPatch.java @@ -123,31 +123,35 @@ public Builder(ParamRefPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder parameterNotFoundAction(@Nullable String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public ParamRefPatch build() { - final var o = new ParamRefPatch(); - o.name = name; - o.namespace = namespace; - o.parameterNotFoundAction = parameterNotFoundAction; - o.selector = selector; - return o; + final var _resultValue = new ParamRefPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.parameterNotFoundAction = parameterNotFoundAction; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperations.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperations.java index c83a570cc7..c0eaa18fb0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperations.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperations.java @@ -113,6 +113,7 @@ public Builder(RuleWithOperations defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -121,6 +122,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -129,6 +131,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -137,6 +140,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -145,17 +149,18 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public RuleWithOperations build() { - final var o = new RuleWithOperations(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new RuleWithOperations(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperationsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperationsPatch.java index cf75c9c465..1ace198ce8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperationsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/RuleWithOperationsPatch.java @@ -113,6 +113,7 @@ public Builder(RuleWithOperationsPatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -121,6 +122,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder apiVersions(@Nullable List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -129,6 +131,7 @@ public Builder apiVersions(String... apiVersions) { } @CustomType.Setter public Builder operations(@Nullable List operations) { + this.operations = operations; return this; } @@ -137,6 +140,7 @@ public Builder operations(String... operations) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -145,17 +149,18 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public RuleWithOperationsPatch build() { - final var o = new RuleWithOperationsPatch(); - o.apiGroups = apiGroups; - o.apiVersions = apiVersions; - o.operations = operations; - o.resources = resources; - o.scope = scope; - return o; + final var _resultValue = new RuleWithOperationsPatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.apiVersions = apiVersions; + _resultValue.operations = operations; + _resultValue.resources = resources; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReference.java index 7ee09ab027..e5603774f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.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,31 +88,39 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceReference", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReferencePatch.java index 4e00ef0639..a7825bca4c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ServiceReferencePatch.java @@ -87,31 +87,35 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeChecking.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeChecking.java index 397b5c137d..9568b4b4c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeChecking.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeChecking.java @@ -44,6 +44,7 @@ public Builder(TypeChecking defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarning... expressionWarnings) { return expressionWarnings(List.of(expressionWarnings)); } public TypeChecking build() { - final var o = new TypeChecking(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeChecking(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeCheckingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeCheckingPatch.java index a99a1e7555..c4fd644361 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeCheckingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/TypeCheckingPatch.java @@ -44,6 +44,7 @@ public Builder(TypeCheckingPatch defaults) { @CustomType.Setter public Builder expressionWarnings(@Nullable List expressionWarnings) { + this.expressionWarnings = expressionWarnings; return this; } @@ -51,9 +52,9 @@ public Builder expressionWarnings(ExpressionWarningPatch... expressionWarnings) return expressionWarnings(List.of(expressionWarnings)); } public TypeCheckingPatch build() { - final var o = new TypeCheckingPatch(); - o.expressionWarnings = expressionWarnings; - return o; + final var _resultValue = new TypeCheckingPatch(); + _resultValue.expressionWarnings = expressionWarnings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicy.java index 2b59c9a790..69547c4464 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicy.java @@ -103,37 +103,42 @@ public Builder(ValidatingAdmissionPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicySpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ValidatingAdmissionPolicyStatus status) { + this.status = status; return this; } public ValidatingAdmissionPolicy build() { - final var o = new ValidatingAdmissionPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ValidatingAdmissionPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBinding.java index b851122de3..67e485a346 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBinding.java @@ -88,31 +88,35 @@ public Builder(ValidatingAdmissionPolicyBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ValidatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; return this; } public ValidatingAdmissionPolicyBinding build() { - final var o = new ValidatingAdmissionPolicyBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpec.java index a223639c79..0c70b2b31a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpec.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpec defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResources matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRef paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpec build() { - final var o = new ValidatingAdmissionPolicyBindingSpec(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpec(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java index 042a7f8a5e..24461b65e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyBindingSpecPatch.java @@ -125,21 +125,25 @@ public Builder(ValidatingAdmissionPolicyBindingSpecPatch defaults) { @CustomType.Setter public Builder matchResources(@Nullable MatchResourcesPatch matchResources) { + this.matchResources = matchResources; return this; } @CustomType.Setter public Builder paramRef(@Nullable ParamRefPatch paramRef) { + this.paramRef = paramRef; return this; } @CustomType.Setter public Builder policyName(@Nullable String policyName) { + this.policyName = policyName; return this; } @CustomType.Setter public Builder validationActions(@Nullable List validationActions) { + this.validationActions = validationActions; return this; } @@ -147,12 +151,12 @@ public Builder validationActions(String... validationActions) { return validationActions(List.of(validationActions)); } public ValidatingAdmissionPolicyBindingSpecPatch build() { - final var o = new ValidatingAdmissionPolicyBindingSpecPatch(); - o.matchResources = matchResources; - o.paramRef = paramRef; - o.policyName = policyName; - o.validationActions = validationActions; - return o; + final var _resultValue = new ValidatingAdmissionPolicyBindingSpecPatch(); + _resultValue.matchResources = matchResources; + _resultValue.paramRef = paramRef; + _resultValue.policyName = policyName; + _resultValue.validationActions = validationActions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpec.java index 7517c34821..bace6b3b33 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpec.java @@ -173,6 +173,7 @@ public Builder(ValidatingAdmissionPolicySpec defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +182,13 @@ public Builder auditAnnotations(AuditAnnotation... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,16 +197,19 @@ public Builder matchConditions(MatchCondition... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKind paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(@Nullable List validations) { + this.validations = validations; return this; } @@ -212,6 +218,7 @@ public Builder validations(Validation... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +226,15 @@ public Builder variables(Variable... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpec build() { - final var o = new ValidatingAdmissionPolicySpec(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpec(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpecPatch.java index 8594d7f00b..3d9c111286 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicySpecPatch.java @@ -173,6 +173,7 @@ public Builder(ValidatingAdmissionPolicySpecPatch defaults) { @CustomType.Setter public Builder auditAnnotations(@Nullable List auditAnnotations) { + this.auditAnnotations = auditAnnotations; return this; } @@ -181,11 +182,13 @@ public Builder auditAnnotations(AuditAnnotationPatch... auditAnnotations) { } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchConditions(@Nullable List matchConditions) { + this.matchConditions = matchConditions; return this; } @@ -194,16 +197,19 @@ public Builder matchConditions(MatchConditionPatch... matchConditions) { } @CustomType.Setter public Builder matchConstraints(@Nullable MatchResourcesPatch matchConstraints) { + this.matchConstraints = matchConstraints; return this; } @CustomType.Setter public Builder paramKind(@Nullable ParamKindPatch paramKind) { + this.paramKind = paramKind; return this; } @CustomType.Setter public Builder validations(@Nullable List validations) { + this.validations = validations; return this; } @@ -212,6 +218,7 @@ public Builder validations(ValidationPatch... validations) { } @CustomType.Setter public Builder variables(@Nullable List variables) { + this.variables = variables; return this; } @@ -219,15 +226,15 @@ public Builder variables(VariablePatch... variables) { return variables(List.of(variables)); } public ValidatingAdmissionPolicySpecPatch build() { - final var o = new ValidatingAdmissionPolicySpecPatch(); - o.auditAnnotations = auditAnnotations; - o.failurePolicy = failurePolicy; - o.matchConditions = matchConditions; - o.matchConstraints = matchConstraints; - o.paramKind = paramKind; - o.validations = validations; - o.variables = variables; - return o; + final var _resultValue = new ValidatingAdmissionPolicySpecPatch(); + _resultValue.auditAnnotations = auditAnnotations; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchConditions = matchConditions; + _resultValue.matchConstraints = matchConstraints; + _resultValue.paramKind = paramKind; + _resultValue.validations = validations; + _resultValue.variables = variables; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatus.java index d6847f3d65..bb72d37068 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatus.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(Condition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeChecking typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatus build() { - final var o = new ValidatingAdmissionPolicyStatus(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatus(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatusPatch.java index ff47d9191e..5a121aba96 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingAdmissionPolicyStatusPatch.java @@ -75,6 +75,7 @@ public Builder(ValidatingAdmissionPolicyStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -83,20 +84,22 @@ public Builder conditions(ConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder typeChecking(@Nullable TypeCheckingPatch typeChecking) { + this.typeChecking = typeChecking; return this; } public ValidatingAdmissionPolicyStatusPatch build() { - final var o = new ValidatingAdmissionPolicyStatusPatch(); - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.typeChecking = typeChecking; - return o; + final var _resultValue = new ValidatingAdmissionPolicyStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.typeChecking = typeChecking; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhook.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhook.java index bf309ccbd5..2e29eee27c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhook.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhook.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.admissionregistration.v1beta1.outputs.RuleWithOperations; import com.pulumi.kubernetes.admissionregistration.v1beta1.outputs.WebhookClientConfig; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -247,6 +248,7 @@ public Builder(ValidatingWebhook defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -255,36 +257,47 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(WebhookClientConfig clientConfig) { - this.clientConfig = Objects.requireNonNull(clientConfig); + if (clientConfig == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "clientConfig"); + } + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ValidatingWebhook", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelector objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -293,27 +306,29 @@ public Builder rules(RuleWithOperations... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ValidatingWebhook build() { - final var o = new ValidatingWebhook(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ValidatingWebhook(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookConfiguration.java index caac50a664..5da00a4d6e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookConfiguration.java @@ -89,21 +89,25 @@ public Builder(ValidatingWebhookConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder webhooks(@Nullable List webhooks) { + this.webhooks = webhooks; return this; } @@ -111,12 +115,12 @@ public Builder webhooks(ValidatingWebhook... webhooks) { return webhooks(List.of(webhooks)); } public ValidatingWebhookConfiguration build() { - final var o = new ValidatingWebhookConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.webhooks = webhooks; - return o; + final var _resultValue = new ValidatingWebhookConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.webhooks = webhooks; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookPatch.java index 809369dbba..a8bb4554ea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidatingWebhookPatch.java @@ -247,6 +247,7 @@ public Builder(ValidatingWebhookPatch defaults) { @CustomType.Setter public Builder admissionReviewVersions(@Nullable List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } @@ -255,36 +256,43 @@ public Builder admissionReviewVersions(String... admissionReviewVersions) { } @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder failurePolicy(@Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @CustomType.Setter public Builder matchPolicy(@Nullable String matchPolicy) { + this.matchPolicy = matchPolicy; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder objectSelector(@Nullable LabelSelectorPatch objectSelector) { + this.objectSelector = objectSelector; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -293,27 +301,29 @@ public Builder rules(RuleWithOperationsPatch... rules) { } @CustomType.Setter public Builder sideEffects(@Nullable String sideEffects) { + this.sideEffects = sideEffects; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ValidatingWebhookPatch build() { - final var o = new ValidatingWebhookPatch(); - o.admissionReviewVersions = admissionReviewVersions; - o.clientConfig = clientConfig; - o.failurePolicy = failurePolicy; - o.matchPolicy = matchPolicy; - o.name = name; - o.namespaceSelector = namespaceSelector; - o.objectSelector = objectSelector; - o.rules = rules; - o.sideEffects = sideEffects; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ValidatingWebhookPatch(); + _resultValue.admissionReviewVersions = admissionReviewVersions; + _resultValue.clientConfig = clientConfig; + _resultValue.failurePolicy = failurePolicy; + _resultValue.matchPolicy = matchPolicy; + _resultValue.name = name; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.objectSelector = objectSelector; + _resultValue.rules = rules; + _resultValue.sideEffects = sideEffects; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Validation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Validation.java index 4455befe03..b5fc054048 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Validation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Validation.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -136,31 +137,37 @@ public Builder(Validation defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Validation", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public Validation build() { - final var o = new Validation(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new Validation(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidationPatch.java index fead3b70f1..990419ebbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/ValidationPatch.java @@ -136,31 +136,35 @@ public Builder(ValidationPatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public ValidationPatch build() { - final var o = new ValidationPatch(); - o.expression = expression; - o.message = message; - o.messageExpression = messageExpression; - o.reason = reason; - return o; + final var _resultValue = new ValidationPatch(); + _resultValue.expression = expression; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Variable.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Variable.java index cefe4c790e..9787b11ef5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Variable.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/Variable.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.admissionregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(Variable defaults) { @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("Variable", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Variable", "name"); + } + this.name = name; return this; } public Variable build() { - final var o = new Variable(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new Variable(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/VariablePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/VariablePatch.java index 4ca6099174..6d7db6de41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/VariablePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/VariablePatch.java @@ -58,19 +58,21 @@ public Builder(VariablePatch defaults) { @CustomType.Setter public Builder expression(@Nullable String expression) { + this.expression = expression; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public VariablePatch build() { - final var o = new VariablePatch(); - o.expression = expression; - o.name = name; - return o; + final var _resultValue = new VariablePatch(); + _resultValue.expression = expression; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfig.java index b4e9500ece..cf5ae1d691 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfig.java @@ -35,7 +35,7 @@ public final class WebhookClientConfig { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfig defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfig build() { - final var o = new WebhookClientConfig(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfig(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfigPatch.java index 2f0d2ce0cb..315856b51d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/admissionregistration/v1beta1/outputs/WebhookClientConfigPatch.java @@ -35,7 +35,7 @@ public final class WebhookClientConfigPatch { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfigPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfigPatch build() { - final var o = new WebhookClientConfigPatch(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfigPatch(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionArgs.java index 6ec651b0fe..df344fc9e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(CustomResourceDefinitionSpecArgs spec) { public CustomResourceDefinitionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionListArgs.java index fd346ea253..7bbc302fd3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/CustomResourceDefinitionListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CustomResourceDefinitionListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceColumnDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceColumnDefinitionArgs.java index 237d88fae7..343470f098 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceColumnDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceColumnDefinitionArgs.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; @@ -266,9 +267,15 @@ public Builder type(String type) { } public CustomResourceColumnDefinitionArgs build() { - $.jsonPath = Objects.requireNonNull($.jsonPath, "expected parameter 'jsonPath' 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 ($.jsonPath == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "jsonPath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "name"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceConversionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceConversionArgs.java index bdd68d2fd7..01afa580c5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceConversionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceConversionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.WebhookConversionArgs; import java.lang.String; import java.util.Objects; @@ -122,7 +123,9 @@ public Builder webhook(WebhookConversionArgs webhook) { } public CustomResourceConversionArgs build() { - $.strategy = Objects.requireNonNull($.strategy, "expected parameter 'strategy' to be non-null"); + if ($.strategy == null) { + throw new MissingRequiredPropertyException("CustomResourceConversionArgs", "strategy"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionArgs.java index fec3a613ec..c3b6230a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionSpecArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionStatusArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -234,7 +235,9 @@ public Builder status(CustomResourceDefinitionStatusArgs status) { public CustomResourceDefinitionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionConditionArgs.java index ebe4cc4dc3..2642aba02d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public CustomResourceDefinitionConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionNamesArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionNamesArgs.java index 11900f5324..ba25dcae55 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionNamesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionNamesArgs.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; @@ -286,8 +287,12 @@ public Builder singular(String singular) { } public CustomResourceDefinitionNamesArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.plural = Objects.requireNonNull($.plural, "expected parameter 'plural' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNamesArgs", "kind"); + } + if ($.plural == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNamesArgs", "plural"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionSpecArgs.java index b1aec5cbe5..48c8711fb8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceConversionArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionNamesArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionVersionArgs; @@ -280,10 +281,18 @@ public Builder versions(CustomResourceDefinitionVersionArgs... versions) { } public CustomResourceDefinitionSpecArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.names = Objects.requireNonNull($.names, "expected parameter 'names' to be non-null"); - $.scope = Objects.requireNonNull($.scope, "expected parameter 'scope' to be non-null"); - $.versions = Objects.requireNonNull($.versions, "expected parameter 'versions' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "group"); + } + if ($.names == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "names"); + } + if ($.scope == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "scope"); + } + if ($.versions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "versions"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionStatusArgs.java index e3ccdc5ce5..1cfe735867 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionConditionArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceDefinitionNamesArgs; import java.lang.String; @@ -177,8 +178,12 @@ public Builder storedVersions(String... storedVersions) { } public CustomResourceDefinitionStatusArgs build() { - $.acceptedNames = Objects.requireNonNull($.acceptedNames, "expected parameter 'acceptedNames' to be non-null"); - $.storedVersions = Objects.requireNonNull($.storedVersions, "expected parameter 'storedVersions' to be non-null"); + if ($.acceptedNames == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatusArgs", "acceptedNames"); + } + if ($.storedVersions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatusArgs", "storedVersions"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionVersionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionVersionArgs.java index 3df1e16500..85a385f169 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionVersionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceDefinitionVersionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceColumnDefinitionArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceSubresourcesArgs; import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceValidationArgs; @@ -402,9 +403,15 @@ public Builder subresources(CustomResourceSubresourcesArgs subresources) { } public CustomResourceDefinitionVersionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.served = Objects.requireNonNull($.served, "expected parameter 'served' to be non-null"); - $.storage = Objects.requireNonNull($.storage, "expected parameter 'storage' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "name"); + } + if ($.served == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "served"); + } + if ($.storage == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "storage"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceSubresourceScaleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceSubresourceScaleArgs.java index 876e281333..869f6e3dd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceSubresourceScaleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/CustomResourceSubresourceScaleArgs.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; @@ -154,8 +155,12 @@ public Builder statusReplicasPath(String statusReplicasPath) { } public CustomResourceSubresourceScaleArgs build() { - $.specReplicasPath = Objects.requireNonNull($.specReplicasPath, "expected parameter 'specReplicasPath' to be non-null"); - $.statusReplicasPath = Objects.requireNonNull($.statusReplicasPath, "expected parameter 'statusReplicasPath' to be non-null"); + if ($.specReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScaleArgs", "specReplicasPath"); + } + if ($.statusReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScaleArgs", "statusReplicasPath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/SelectableFieldArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/SelectableFieldArgs.java index b10f98d299..a589099b13 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/SelectableFieldArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/SelectableFieldArgs.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; @@ -78,7 +79,9 @@ public Builder jsonPath(String jsonPath) { } public SelectableFieldArgs build() { - $.jsonPath = Objects.requireNonNull($.jsonPath, "expected parameter 'jsonPath' to be non-null"); + if ($.jsonPath == null) { + throw new MissingRequiredPropertyException("SelectableFieldArgs", "jsonPath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ServiceReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ServiceReferenceArgs.java index 42ae9bbc20..c0cc5f077f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ServiceReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ServiceReferenceArgs.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; @@ -192,8 +193,12 @@ public Builder port(Integer port) { } public ServiceReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ValidationRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ValidationRuleArgs.java index 3b443e1cc6..bddf6ad598 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ValidationRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/ValidationRuleArgs.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; @@ -418,7 +419,9 @@ public Builder rule(String rule) { } public ValidationRuleArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("ValidationRuleArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigArgs.java index 6eeb586655..26900f3d6b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferenceArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigPatchArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigPatchArgs.java index 52ad7220c8..d1662e707e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigPatchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookClientConfigPatchArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferencePatchArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookConversionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookConversionArgs.java index 799730ed9a..fef99498e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookConversionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/inputs/WebhookConversionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.inputs.WebhookClientConfigArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder conversionReviewVersions(String... conversionReviewVersions) { } public WebhookConversionArgs build() { - $.conversionReviewVersions = Objects.requireNonNull($.conversionReviewVersions, "expected parameter 'conversionReviewVersions' to be non-null"); + if ($.conversionReviewVersions == null) { + throw new MissingRequiredPropertyException("WebhookConversionArgs", "conversionReviewVersions"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinition.java index cf5545cabb..2c39cb23a1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.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,43 +116,55 @@ public Builder(CustomResourceColumnDefinition defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder jsonPath(String jsonPath) { - this.jsonPath = Objects.requireNonNull(jsonPath); + if (jsonPath == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinition", "jsonPath"); + } + this.jsonPath = jsonPath; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinition", "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("CustomResourceColumnDefinition", "type"); + } + this.type = type; return this; } public CustomResourceColumnDefinition build() { - final var o = new CustomResourceColumnDefinition(); - o.description = description; - o.format = format; - o.jsonPath = jsonPath; - o.name = name; - o.priority = priority; - o.type = type; - return o; + final var _resultValue = new CustomResourceColumnDefinition(); + _resultValue.description = description; + _resultValue.format = format; + _resultValue.jsonPath = jsonPath; + _resultValue.name = name; + _resultValue.priority = priority; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinitionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinitionPatch.java index 00f79a5eca..4df7aa5ea0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinitionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceColumnDefinitionPatch.java @@ -115,43 +115,49 @@ public Builder(CustomResourceColumnDefinitionPatch defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder jsonPath(@Nullable String jsonPath) { + this.jsonPath = jsonPath; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CustomResourceColumnDefinitionPatch build() { - final var o = new CustomResourceColumnDefinitionPatch(); - o.description = description; - o.format = format; - o.jsonPath = jsonPath; - o.name = name; - o.priority = priority; - o.type = type; - return o; + final var _resultValue = new CustomResourceColumnDefinitionPatch(); + _resultValue.description = description; + _resultValue.format = format; + _resultValue.jsonPath = jsonPath; + _resultValue.name = name; + _resultValue.priority = priority; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversion.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversion.java index 379f13eb4e..d9893a2bfc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversion.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversion.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.WebhookConversion; import java.lang.String; import java.util.Objects; @@ -61,19 +62,23 @@ public Builder(CustomResourceConversion defaults) { @CustomType.Setter public Builder strategy(String strategy) { - this.strategy = Objects.requireNonNull(strategy); + if (strategy == null) { + throw new MissingRequiredPropertyException("CustomResourceConversion", "strategy"); + } + this.strategy = strategy; return this; } @CustomType.Setter public Builder webhook(@Nullable WebhookConversion webhook) { + this.webhook = webhook; return this; } public CustomResourceConversion build() { - final var o = new CustomResourceConversion(); - o.strategy = strategy; - o.webhook = webhook; - return o; + final var _resultValue = new CustomResourceConversion(); + _resultValue.strategy = strategy; + _resultValue.webhook = webhook; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversionPatch.java index 078596b771..9f1c848fdc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceConversionPatch.java @@ -61,19 +61,21 @@ public Builder(CustomResourceConversionPatch defaults) { @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder webhook(@Nullable WebhookConversionPatch webhook) { + this.webhook = webhook; return this; } public CustomResourceConversionPatch build() { - final var o = new CustomResourceConversionPatch(); - o.strategy = strategy; - o.webhook = webhook; - return o; + final var _resultValue = new CustomResourceConversionPatch(); + _resultValue.strategy = strategy; + _resultValue.webhook = webhook; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinition.java index 56d71f1d46..f6067e849f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionSpec; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionStatus; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; @@ -103,37 +104,44 @@ public Builder(CustomResourceDefinition defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CustomResourceDefinitionSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinition", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CustomResourceDefinitionStatus status) { + this.status = status; return this; } public CustomResourceDefinition build() { - final var o = new CustomResourceDefinition(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CustomResourceDefinition(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionCondition.java index cb4404d184..72de3eb851 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(CustomResourceDefinitionCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionCondition", "type"); + } + this.type = type; return this; } public CustomResourceDefinitionCondition build() { - final var o = new CustomResourceDefinitionCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CustomResourceDefinitionCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionConditionPatch.java index 5ad248ddc4..81d18adc7e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionConditionPatch.java @@ -100,37 +100,42 @@ public Builder(CustomResourceDefinitionConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CustomResourceDefinitionConditionPatch build() { - final var o = new CustomResourceDefinitionConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CustomResourceDefinitionConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNames.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNames.java index 8141d4a54b..d069c56a77 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNames.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNames.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -115,6 +116,7 @@ public Builder(CustomResourceDefinitionNames defaults) { @CustomType.Setter public Builder categories(@Nullable List categories) { + this.categories = categories; return this; } @@ -123,21 +125,29 @@ public Builder categories(String... categories) { } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNames", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder listKind(@Nullable String listKind) { + this.listKind = listKind; return this; } @CustomType.Setter public Builder plural(String plural) { - this.plural = Objects.requireNonNull(plural); + if (plural == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNames", "plural"); + } + this.plural = plural; return this; } @CustomType.Setter public Builder shortNames(@Nullable List shortNames) { + this.shortNames = shortNames; return this; } @@ -146,18 +156,19 @@ public Builder shortNames(String... shortNames) { } @CustomType.Setter public Builder singular(@Nullable String singular) { + this.singular = singular; return this; } public CustomResourceDefinitionNames build() { - final var o = new CustomResourceDefinitionNames(); - o.categories = categories; - o.kind = kind; - o.listKind = listKind; - o.plural = plural; - o.shortNames = shortNames; - o.singular = singular; - return o; + final var _resultValue = new CustomResourceDefinitionNames(); + _resultValue.categories = categories; + _resultValue.kind = kind; + _resultValue.listKind = listKind; + _resultValue.plural = plural; + _resultValue.shortNames = shortNames; + _resultValue.singular = singular; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNamesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNamesPatch.java index 7cf88a47ec..a994799e39 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNamesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionNamesPatch.java @@ -115,6 +115,7 @@ public Builder(CustomResourceDefinitionNamesPatch defaults) { @CustomType.Setter public Builder categories(@Nullable List categories) { + this.categories = categories; return this; } @@ -123,21 +124,25 @@ public Builder categories(String... categories) { } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder listKind(@Nullable String listKind) { + this.listKind = listKind; return this; } @CustomType.Setter public Builder plural(@Nullable String plural) { + this.plural = plural; return this; } @CustomType.Setter public Builder shortNames(@Nullable List shortNames) { + this.shortNames = shortNames; return this; } @@ -146,18 +151,19 @@ public Builder shortNames(String... shortNames) { } @CustomType.Setter public Builder singular(@Nullable String singular) { + this.singular = singular; return this; } public CustomResourceDefinitionNamesPatch build() { - final var o = new CustomResourceDefinitionNamesPatch(); - o.categories = categories; - o.kind = kind; - o.listKind = listKind; - o.plural = plural; - o.shortNames = shortNames; - o.singular = singular; - return o; + final var _resultValue = new CustomResourceDefinitionNamesPatch(); + _resultValue.categories = categories; + _resultValue.kind = kind; + _resultValue.listKind = listKind; + _resultValue.plural = plural; + _resultValue.shortNames = shortNames; + _resultValue.singular = singular; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpec.java index 6b0c82b6ca..7d2eec92f8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceConversion; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionNames; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionVersion; @@ -119,46 +120,60 @@ public Builder(CustomResourceDefinitionSpec defaults) { @CustomType.Setter public Builder conversion(@Nullable CustomResourceConversion conversion) { + this.conversion = conversion; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder names(CustomResourceDefinitionNames names) { - this.names = Objects.requireNonNull(names); + if (names == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "names"); + } + this.names = names; return this; } @CustomType.Setter public Builder preserveUnknownFields(@Nullable Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; return this; } @CustomType.Setter public Builder scope(String scope) { - this.scope = Objects.requireNonNull(scope); + if (scope == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "scope"); + } + this.scope = scope; return this; } @CustomType.Setter public Builder versions(List versions) { - this.versions = Objects.requireNonNull(versions); + if (versions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "versions"); + } + this.versions = versions; return this; } public Builder versions(CustomResourceDefinitionVersion... versions) { return versions(List.of(versions)); } public CustomResourceDefinitionSpec build() { - final var o = new CustomResourceDefinitionSpec(); - o.conversion = conversion; - o.group = group; - o.names = names; - o.preserveUnknownFields = preserveUnknownFields; - o.scope = scope; - o.versions = versions; - return o; + final var _resultValue = new CustomResourceDefinitionSpec(); + _resultValue.conversion = conversion; + _resultValue.group = group; + _resultValue.names = names; + _resultValue.preserveUnknownFields = preserveUnknownFields; + _resultValue.scope = scope; + _resultValue.versions = versions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpecPatch.java index db3528f773..68982a9b63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionSpecPatch.java @@ -119,31 +119,37 @@ public Builder(CustomResourceDefinitionSpecPatch defaults) { @CustomType.Setter public Builder conversion(@Nullable CustomResourceConversionPatch conversion) { + this.conversion = conversion; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder names(@Nullable CustomResourceDefinitionNamesPatch names) { + this.names = names; return this; } @CustomType.Setter public Builder preserveUnknownFields(@Nullable Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder versions(@Nullable List versions) { + this.versions = versions; return this; } @@ -151,14 +157,14 @@ public Builder versions(CustomResourceDefinitionVersionPatch... versions) { return versions(List.of(versions)); } public CustomResourceDefinitionSpecPatch build() { - final var o = new CustomResourceDefinitionSpecPatch(); - o.conversion = conversion; - o.group = group; - o.names = names; - o.preserveUnknownFields = preserveUnknownFields; - o.scope = scope; - o.versions = versions; - return o; + final var _resultValue = new CustomResourceDefinitionSpecPatch(); + _resultValue.conversion = conversion; + _resultValue.group = group; + _resultValue.names = names; + _resultValue.preserveUnknownFields = preserveUnknownFields; + _resultValue.scope = scope; + _resultValue.versions = versions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatus.java index 09fb7517a8..5c21a940fe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionCondition; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceDefinitionNames; import java.lang.String; @@ -74,11 +75,15 @@ public Builder(CustomResourceDefinitionStatus defaults) { @CustomType.Setter public Builder acceptedNames(CustomResourceDefinitionNames acceptedNames) { - this.acceptedNames = Objects.requireNonNull(acceptedNames); + if (acceptedNames == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "acceptedNames"); + } + this.acceptedNames = acceptedNames; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -87,18 +92,21 @@ public Builder conditions(CustomResourceDefinitionCondition... conditions) { } @CustomType.Setter public Builder storedVersions(List storedVersions) { - this.storedVersions = Objects.requireNonNull(storedVersions); + if (storedVersions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "storedVersions"); + } + this.storedVersions = storedVersions; return this; } public Builder storedVersions(String... storedVersions) { return storedVersions(List.of(storedVersions)); } public CustomResourceDefinitionStatus build() { - final var o = new CustomResourceDefinitionStatus(); - o.acceptedNames = acceptedNames; - o.conditions = conditions; - o.storedVersions = storedVersions; - return o; + final var _resultValue = new CustomResourceDefinitionStatus(); + _resultValue.acceptedNames = acceptedNames; + _resultValue.conditions = conditions; + _resultValue.storedVersions = storedVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatusPatch.java index 6cf216a45b..e30a3efa44 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionStatusPatch.java @@ -75,11 +75,13 @@ public Builder(CustomResourceDefinitionStatusPatch defaults) { @CustomType.Setter public Builder acceptedNames(@Nullable CustomResourceDefinitionNamesPatch acceptedNames) { + this.acceptedNames = acceptedNames; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -88,6 +90,7 @@ public Builder conditions(CustomResourceDefinitionConditionPatch... conditions) } @CustomType.Setter public Builder storedVersions(@Nullable List storedVersions) { + this.storedVersions = storedVersions; return this; } @@ -95,11 +98,11 @@ public Builder storedVersions(String... storedVersions) { return storedVersions(List.of(storedVersions)); } public CustomResourceDefinitionStatusPatch build() { - final var o = new CustomResourceDefinitionStatusPatch(); - o.acceptedNames = acceptedNames; - o.conditions = conditions; - o.storedVersions = storedVersions; - return o; + final var _resultValue = new CustomResourceDefinitionStatusPatch(); + _resultValue.acceptedNames = acceptedNames; + _resultValue.conditions = conditions; + _resultValue.storedVersions = storedVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersion.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersion.java index 20549d501f..d9527154c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersion.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersion.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceColumnDefinition; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceSubresources; import com.pulumi.kubernetes.apiextensions.v1.outputs.CustomResourceValidation; @@ -162,6 +163,7 @@ public Builder(CustomResourceDefinitionVersion defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -170,26 +172,33 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinition... additi } @CustomType.Setter public Builder deprecated(@Nullable Boolean deprecated) { + this.deprecated = deprecated; return this; } @CustomType.Setter public Builder deprecationWarning(@Nullable String deprecationWarning) { + this.deprecationWarning = deprecationWarning; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder schema(@Nullable CustomResourceValidation schema) { + this.schema = schema; return this; } @CustomType.Setter public Builder selectableFields(@Nullable List selectableFields) { + this.selectableFields = selectableFields; return this; } @@ -198,31 +207,38 @@ public Builder selectableFields(SelectableField... selectableFields) { } @CustomType.Setter public Builder served(Boolean served) { - this.served = Objects.requireNonNull(served); + if (served == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "served"); + } + this.served = served; return this; } @CustomType.Setter public Builder storage(Boolean storage) { - this.storage = Objects.requireNonNull(storage); + if (storage == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "storage"); + } + this.storage = storage; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresources subresources) { + this.subresources = subresources; return this; } public CustomResourceDefinitionVersion build() { - final var o = new CustomResourceDefinitionVersion(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.deprecated = deprecated; - o.deprecationWarning = deprecationWarning; - o.name = name; - o.schema = schema; - o.selectableFields = selectableFields; - o.served = served; - o.storage = storage; - o.subresources = subresources; - return o; + final var _resultValue = new CustomResourceDefinitionVersion(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.deprecated = deprecated; + _resultValue.deprecationWarning = deprecationWarning; + _resultValue.name = name; + _resultValue.schema = schema; + _resultValue.selectableFields = selectableFields; + _resultValue.served = served; + _resultValue.storage = storage; + _resultValue.subresources = subresources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersionPatch.java index c61ccdca7b..a3f22c76c4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceDefinitionVersionPatch.java @@ -162,6 +162,7 @@ public Builder(CustomResourceDefinitionVersionPatch defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -170,26 +171,31 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinitionPatch... a } @CustomType.Setter public Builder deprecated(@Nullable Boolean deprecated) { + this.deprecated = deprecated; return this; } @CustomType.Setter public Builder deprecationWarning(@Nullable String deprecationWarning) { + this.deprecationWarning = deprecationWarning; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder schema(@Nullable CustomResourceValidationPatch schema) { + this.schema = schema; return this; } @CustomType.Setter public Builder selectableFields(@Nullable List selectableFields) { + this.selectableFields = selectableFields; return this; } @@ -198,31 +204,34 @@ public Builder selectableFields(SelectableFieldPatch... selectableFields) { } @CustomType.Setter public Builder served(@Nullable Boolean served) { + this.served = served; return this; } @CustomType.Setter public Builder storage(@Nullable Boolean storage) { + this.storage = storage; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresourcesPatch subresources) { + this.subresources = subresources; return this; } public CustomResourceDefinitionVersionPatch build() { - final var o = new CustomResourceDefinitionVersionPatch(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.deprecated = deprecated; - o.deprecationWarning = deprecationWarning; - o.name = name; - o.schema = schema; - o.selectableFields = selectableFields; - o.served = served; - o.storage = storage; - o.subresources = subresources; - return o; + final var _resultValue = new CustomResourceDefinitionVersionPatch(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.deprecated = deprecated; + _resultValue.deprecationWarning = deprecationWarning; + _resultValue.name = name; + _resultValue.schema = schema; + _resultValue.selectableFields = selectableFields; + _resultValue.served = served; + _resultValue.storage = storage; + _resultValue.subresources = subresources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScale.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScale.java index 481cfee948..28d59a64d0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScale.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScale.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.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,25 +73,32 @@ public Builder(CustomResourceSubresourceScale defaults) { @CustomType.Setter public Builder labelSelectorPath(@Nullable String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; return this; } @CustomType.Setter public Builder specReplicasPath(String specReplicasPath) { - this.specReplicasPath = Objects.requireNonNull(specReplicasPath); + if (specReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScale", "specReplicasPath"); + } + this.specReplicasPath = specReplicasPath; return this; } @CustomType.Setter public Builder statusReplicasPath(String statusReplicasPath) { - this.statusReplicasPath = Objects.requireNonNull(statusReplicasPath); + if (statusReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScale", "statusReplicasPath"); + } + this.statusReplicasPath = statusReplicasPath; return this; } public CustomResourceSubresourceScale build() { - final var o = new CustomResourceSubresourceScale(); - o.labelSelectorPath = labelSelectorPath; - o.specReplicasPath = specReplicasPath; - o.statusReplicasPath = statusReplicasPath; - return o; + final var _resultValue = new CustomResourceSubresourceScale(); + _resultValue.labelSelectorPath = labelSelectorPath; + _resultValue.specReplicasPath = specReplicasPath; + _resultValue.statusReplicasPath = statusReplicasPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScalePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScalePatch.java index 0049461bf6..bfc41b1f06 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScalePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourceScalePatch.java @@ -72,25 +72,28 @@ public Builder(CustomResourceSubresourceScalePatch defaults) { @CustomType.Setter public Builder labelSelectorPath(@Nullable String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; return this; } @CustomType.Setter public Builder specReplicasPath(@Nullable String specReplicasPath) { + this.specReplicasPath = specReplicasPath; return this; } @CustomType.Setter public Builder statusReplicasPath(@Nullable String statusReplicasPath) { + this.statusReplicasPath = statusReplicasPath; return this; } public CustomResourceSubresourceScalePatch build() { - final var o = new CustomResourceSubresourceScalePatch(); - o.labelSelectorPath = labelSelectorPath; - o.specReplicasPath = specReplicasPath; - o.statusReplicasPath = statusReplicasPath; - return o; + final var _resultValue = new CustomResourceSubresourceScalePatch(); + _resultValue.labelSelectorPath = labelSelectorPath; + _resultValue.specReplicasPath = specReplicasPath; + _resultValue.statusReplicasPath = statusReplicasPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresources.java index d8898bdd11..66d750fbc0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresources.java @@ -59,19 +59,21 @@ public Builder(CustomResourceSubresources defaults) { @CustomType.Setter public Builder scale(@Nullable CustomResourceSubresourceScale scale) { + this.scale = scale; return this; } @CustomType.Setter public Builder status(@Nullable JsonElement status) { + this.status = status; return this; } public CustomResourceSubresources build() { - final var o = new CustomResourceSubresources(); - o.scale = scale; - o.status = status; - return o; + final var _resultValue = new CustomResourceSubresources(); + _resultValue.scale = scale; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourcesPatch.java index 088941c845..34a0af059f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceSubresourcesPatch.java @@ -59,19 +59,21 @@ public Builder(CustomResourceSubresourcesPatch defaults) { @CustomType.Setter public Builder scale(@Nullable CustomResourceSubresourceScalePatch scale) { + this.scale = scale; return this; } @CustomType.Setter public Builder status(@Nullable JsonElement status) { + this.status = status; return this; } public CustomResourceSubresourcesPatch build() { - final var o = new CustomResourceSubresourcesPatch(); - o.scale = scale; - o.status = status; - return o; + final var _resultValue = new CustomResourceSubresourcesPatch(); + _resultValue.scale = scale; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidation.java index 6f51aa5492..9c066db42f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidation.java @@ -44,13 +44,14 @@ public Builder(CustomResourceValidation defaults) { @CustomType.Setter public Builder openAPIV3Schema(@Nullable JSONSchemaProps openAPIV3Schema) { + this.openAPIV3Schema = openAPIV3Schema; return this; } public CustomResourceValidation build() { - final var o = new CustomResourceValidation(); - o.openAPIV3Schema = openAPIV3Schema; - return o; + final var _resultValue = new CustomResourceValidation(); + _resultValue.openAPIV3Schema = openAPIV3Schema; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidationPatch.java index 291f4ce087..1006036211 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/CustomResourceValidationPatch.java @@ -44,13 +44,14 @@ public Builder(CustomResourceValidationPatch defaults) { @CustomType.Setter public Builder openAPIV3Schema(@Nullable JSONSchemaPropsPatch openAPIV3Schema) { + this.openAPIV3Schema = openAPIV3Schema; return this; } public CustomResourceValidationPatch build() { - final var o = new CustomResourceValidationPatch(); - o.openAPIV3Schema = openAPIV3Schema; - return o; + final var _resultValue = new CustomResourceValidationPatch(); + _resultValue.openAPIV3Schema = openAPIV3Schema; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentation.java index e4d0f5cacf..379125b0bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentation.java @@ -42,19 +42,21 @@ public Builder(ExternalDocumentation defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public ExternalDocumentation build() { - final var o = new ExternalDocumentation(); - o.description = description; - o.url = url; - return o; + final var _resultValue = new ExternalDocumentation(); + _resultValue.description = description; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentationPatch.java index e35dfafcb8..5889cacb0d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ExternalDocumentationPatch.java @@ -42,19 +42,21 @@ public Builder(ExternalDocumentationPatch defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public ExternalDocumentationPatch build() { - final var o = new ExternalDocumentationPatch(); - o.description = description; - o.url = url; - return o; + final var _resultValue = new ExternalDocumentationPatch(); + _resultValue.description = description; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaProps.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaProps.java index f1b26c45af..a6b5307f48 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaProps.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaProps.java @@ -445,26 +445,31 @@ public Builder(JSONSchemaProps defaults) { @CustomType.Setter public Builder $ref(@Nullable String $ref) { + this.$ref = $ref; return this; } @CustomType.Setter public Builder $schema(@Nullable String $schema) { + this.$schema = $schema; return this; } @CustomType.Setter public Builder additionalItems(@Nullable Either additionalItems) { + this.additionalItems = additionalItems; return this; } @CustomType.Setter public Builder additionalProperties(@Nullable Either additionalProperties) { + this.additionalProperties = additionalProperties; return this; } @CustomType.Setter public Builder allOf(@Nullable List allOf) { + this.allOf = allOf; return this; } @@ -473,6 +478,7 @@ public Builder allOf(JSONSchemaProps... allOf) { } @CustomType.Setter public Builder anyOf(@Nullable List anyOf) { + this.anyOf = anyOf; return this; } @@ -481,26 +487,31 @@ public Builder anyOf(JSONSchemaProps... anyOf) { } @CustomType.Setter("default") public Builder default_(@Nullable JsonElement default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder definitions(@Nullable Map definitions) { + this.definitions = definitions; return this; } @CustomType.Setter public Builder dependencies(@Nullable Map>> dependencies) { + this.dependencies = dependencies; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter("enum") public Builder enum_(@Nullable List enum_) { + this.enum_ = enum_; return this; } @@ -509,96 +520,115 @@ public Builder enum_(JsonElement... enum_) { } @CustomType.Setter public Builder example(@Nullable JsonElement example) { + this.example = example; return this; } @CustomType.Setter public Builder exclusiveMaximum(@Nullable Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; return this; } @CustomType.Setter public Builder exclusiveMinimum(@Nullable Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; return this; } @CustomType.Setter public Builder externalDocs(@Nullable ExternalDocumentation externalDocs) { + this.externalDocs = externalDocs; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder items(@Nullable Either> items) { + this.items = items; return this; } @CustomType.Setter public Builder maxItems(@Nullable Integer maxItems) { + this.maxItems = maxItems; return this; } @CustomType.Setter public Builder maxLength(@Nullable Integer maxLength) { + this.maxLength = maxLength; return this; } @CustomType.Setter public Builder maxProperties(@Nullable Integer maxProperties) { + this.maxProperties = maxProperties; return this; } @CustomType.Setter public Builder maximum(@Nullable Double maximum) { + this.maximum = maximum; return this; } @CustomType.Setter public Builder minItems(@Nullable Integer minItems) { + this.minItems = minItems; return this; } @CustomType.Setter public Builder minLength(@Nullable Integer minLength) { + this.minLength = minLength; return this; } @CustomType.Setter public Builder minProperties(@Nullable Integer minProperties) { + this.minProperties = minProperties; return this; } @CustomType.Setter public Builder minimum(@Nullable Double minimum) { + this.minimum = minimum; return this; } @CustomType.Setter public Builder multipleOf(@Nullable Double multipleOf) { + this.multipleOf = multipleOf; return this; } @CustomType.Setter public Builder not(@Nullable JSONSchemaProps not) { + this.not = not; return this; } @CustomType.Setter public Builder nullable(@Nullable Boolean nullable) { + this.nullable = nullable; return this; } @CustomType.Setter public Builder oneOf(@Nullable List oneOf) { + this.oneOf = oneOf; return this; } @@ -607,21 +637,25 @@ public Builder oneOf(JSONSchemaProps... oneOf) { } @CustomType.Setter public Builder pattern(@Nullable String pattern) { + this.pattern = pattern; return this; } @CustomType.Setter public Builder patternProperties(@Nullable Map patternProperties) { + this.patternProperties = patternProperties; return this; } @CustomType.Setter public Builder properties(@Nullable Map properties) { + this.properties = properties; return this; } @CustomType.Setter public Builder required(@Nullable List required) { + this.required = required; return this; } @@ -630,31 +664,37 @@ public Builder required(String... required) { } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uniqueItems(@Nullable Boolean uniqueItems) { + this.uniqueItems = uniqueItems; return this; } @CustomType.Setter public Builder x_kubernetes_embedded_resource(@Nullable Boolean x_kubernetes_embedded_resource) { + this.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; return this; } @CustomType.Setter public Builder x_kubernetes_int_or_string(@Nullable Boolean x_kubernetes_int_or_string) { + this.x_kubernetes_int_or_string = x_kubernetes_int_or_string; return this; } @CustomType.Setter public Builder x_kubernetes_list_map_keys(@Nullable List x_kubernetes_list_map_keys) { + this.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; return this; } @@ -663,21 +703,25 @@ public Builder x_kubernetes_list_map_keys(String... x_kubernetes_list_map_keys) } @CustomType.Setter public Builder x_kubernetes_list_type(@Nullable String x_kubernetes_list_type) { + this.x_kubernetes_list_type = x_kubernetes_list_type; return this; } @CustomType.Setter public Builder x_kubernetes_map_type(@Nullable String x_kubernetes_map_type) { + this.x_kubernetes_map_type = x_kubernetes_map_type; return this; } @CustomType.Setter public Builder x_kubernetes_preserve_unknown_fields(@Nullable Boolean x_kubernetes_preserve_unknown_fields) { + this.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; return this; } @CustomType.Setter public Builder x_kubernetes_validations(@Nullable List x_kubernetes_validations) { + this.x_kubernetes_validations = x_kubernetes_validations; return this; } @@ -685,52 +729,52 @@ public Builder x_kubernetes_validations(ValidationRule... x_kubernetes_validatio return x_kubernetes_validations(List.of(x_kubernetes_validations)); } public JSONSchemaProps build() { - final var o = new JSONSchemaProps(); - o.$ref = $ref; - o.$schema = $schema; - o.additionalItems = additionalItems; - o.additionalProperties = additionalProperties; - o.allOf = allOf; - o.anyOf = anyOf; - o.default_ = default_; - o.definitions = definitions; - o.dependencies = dependencies; - o.description = description; - o.enum_ = enum_; - o.example = example; - o.exclusiveMaximum = exclusiveMaximum; - o.exclusiveMinimum = exclusiveMinimum; - o.externalDocs = externalDocs; - o.format = format; - o.id = id; - o.items = items; - o.maxItems = maxItems; - o.maxLength = maxLength; - o.maxProperties = maxProperties; - o.maximum = maximum; - o.minItems = minItems; - o.minLength = minLength; - o.minProperties = minProperties; - o.minimum = minimum; - o.multipleOf = multipleOf; - o.not = not; - o.nullable = nullable; - o.oneOf = oneOf; - o.pattern = pattern; - o.patternProperties = patternProperties; - o.properties = properties; - o.required = required; - o.title = title; - o.type = type; - o.uniqueItems = uniqueItems; - o.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; - o.x_kubernetes_int_or_string = x_kubernetes_int_or_string; - o.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; - o.x_kubernetes_list_type = x_kubernetes_list_type; - o.x_kubernetes_map_type = x_kubernetes_map_type; - o.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; - o.x_kubernetes_validations = x_kubernetes_validations; - return o; + final var _resultValue = new JSONSchemaProps(); + _resultValue.$ref = $ref; + _resultValue.$schema = $schema; + _resultValue.additionalItems = additionalItems; + _resultValue.additionalProperties = additionalProperties; + _resultValue.allOf = allOf; + _resultValue.anyOf = anyOf; + _resultValue.default_ = default_; + _resultValue.definitions = definitions; + _resultValue.dependencies = dependencies; + _resultValue.description = description; + _resultValue.enum_ = enum_; + _resultValue.example = example; + _resultValue.exclusiveMaximum = exclusiveMaximum; + _resultValue.exclusiveMinimum = exclusiveMinimum; + _resultValue.externalDocs = externalDocs; + _resultValue.format = format; + _resultValue.id = id; + _resultValue.items = items; + _resultValue.maxItems = maxItems; + _resultValue.maxLength = maxLength; + _resultValue.maxProperties = maxProperties; + _resultValue.maximum = maximum; + _resultValue.minItems = minItems; + _resultValue.minLength = minLength; + _resultValue.minProperties = minProperties; + _resultValue.minimum = minimum; + _resultValue.multipleOf = multipleOf; + _resultValue.not = not; + _resultValue.nullable = nullable; + _resultValue.oneOf = oneOf; + _resultValue.pattern = pattern; + _resultValue.patternProperties = patternProperties; + _resultValue.properties = properties; + _resultValue.required = required; + _resultValue.title = title; + _resultValue.type = type; + _resultValue.uniqueItems = uniqueItems; + _resultValue.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; + _resultValue.x_kubernetes_int_or_string = x_kubernetes_int_or_string; + _resultValue.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; + _resultValue.x_kubernetes_list_type = x_kubernetes_list_type; + _resultValue.x_kubernetes_map_type = x_kubernetes_map_type; + _resultValue.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; + _resultValue.x_kubernetes_validations = x_kubernetes_validations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaPropsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaPropsPatch.java index 89bbb03d7f..c8946d8b76 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaPropsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/JSONSchemaPropsPatch.java @@ -446,26 +446,31 @@ public Builder(JSONSchemaPropsPatch defaults) { @CustomType.Setter public Builder $ref(@Nullable String $ref) { + this.$ref = $ref; return this; } @CustomType.Setter public Builder $schema(@Nullable String $schema) { + this.$schema = $schema; return this; } @CustomType.Setter public Builder additionalItems(@Nullable Either additionalItems) { + this.additionalItems = additionalItems; return this; } @CustomType.Setter public Builder additionalProperties(@Nullable Either additionalProperties) { + this.additionalProperties = additionalProperties; return this; } @CustomType.Setter public Builder allOf(@Nullable List allOf) { + this.allOf = allOf; return this; } @@ -474,6 +479,7 @@ public Builder allOf(JSONSchemaPropsPatch... allOf) { } @CustomType.Setter public Builder anyOf(@Nullable List anyOf) { + this.anyOf = anyOf; return this; } @@ -482,26 +488,31 @@ public Builder anyOf(JSONSchemaPropsPatch... anyOf) { } @CustomType.Setter("default") public Builder default_(@Nullable JsonElement default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder definitions(@Nullable Map definitions) { + this.definitions = definitions; return this; } @CustomType.Setter public Builder dependencies(@Nullable Map>> dependencies) { + this.dependencies = dependencies; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter("enum") public Builder enum_(@Nullable List enum_) { + this.enum_ = enum_; return this; } @@ -510,96 +521,115 @@ public Builder enum_(JsonElement... enum_) { } @CustomType.Setter public Builder example(@Nullable JsonElement example) { + this.example = example; return this; } @CustomType.Setter public Builder exclusiveMaximum(@Nullable Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; return this; } @CustomType.Setter public Builder exclusiveMinimum(@Nullable Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; return this; } @CustomType.Setter public Builder externalDocs(@Nullable ExternalDocumentationPatch externalDocs) { + this.externalDocs = externalDocs; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder items(@Nullable Either> items) { + this.items = items; return this; } @CustomType.Setter public Builder maxItems(@Nullable Integer maxItems) { + this.maxItems = maxItems; return this; } @CustomType.Setter public Builder maxLength(@Nullable Integer maxLength) { + this.maxLength = maxLength; return this; } @CustomType.Setter public Builder maxProperties(@Nullable Integer maxProperties) { + this.maxProperties = maxProperties; return this; } @CustomType.Setter public Builder maximum(@Nullable Double maximum) { + this.maximum = maximum; return this; } @CustomType.Setter public Builder minItems(@Nullable Integer minItems) { + this.minItems = minItems; return this; } @CustomType.Setter public Builder minLength(@Nullable Integer minLength) { + this.minLength = minLength; return this; } @CustomType.Setter public Builder minProperties(@Nullable Integer minProperties) { + this.minProperties = minProperties; return this; } @CustomType.Setter public Builder minimum(@Nullable Double minimum) { + this.minimum = minimum; return this; } @CustomType.Setter public Builder multipleOf(@Nullable Double multipleOf) { + this.multipleOf = multipleOf; return this; } @CustomType.Setter public Builder not(@Nullable JSONSchemaPropsPatch not) { + this.not = not; return this; } @CustomType.Setter public Builder nullable(@Nullable Boolean nullable) { + this.nullable = nullable; return this; } @CustomType.Setter public Builder oneOf(@Nullable List oneOf) { + this.oneOf = oneOf; return this; } @@ -608,21 +638,25 @@ public Builder oneOf(JSONSchemaPropsPatch... oneOf) { } @CustomType.Setter public Builder pattern(@Nullable String pattern) { + this.pattern = pattern; return this; } @CustomType.Setter public Builder patternProperties(@Nullable Map patternProperties) { + this.patternProperties = patternProperties; return this; } @CustomType.Setter public Builder properties(@Nullable Map properties) { + this.properties = properties; return this; } @CustomType.Setter public Builder required(@Nullable List required) { + this.required = required; return this; } @@ -631,31 +665,37 @@ public Builder required(String... required) { } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uniqueItems(@Nullable Boolean uniqueItems) { + this.uniqueItems = uniqueItems; return this; } @CustomType.Setter public Builder x_kubernetes_embedded_resource(@Nullable Boolean x_kubernetes_embedded_resource) { + this.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; return this; } @CustomType.Setter public Builder x_kubernetes_int_or_string(@Nullable Boolean x_kubernetes_int_or_string) { + this.x_kubernetes_int_or_string = x_kubernetes_int_or_string; return this; } @CustomType.Setter public Builder x_kubernetes_list_map_keys(@Nullable List x_kubernetes_list_map_keys) { + this.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; return this; } @@ -664,21 +704,25 @@ public Builder x_kubernetes_list_map_keys(String... x_kubernetes_list_map_keys) } @CustomType.Setter public Builder x_kubernetes_list_type(@Nullable String x_kubernetes_list_type) { + this.x_kubernetes_list_type = x_kubernetes_list_type; return this; } @CustomType.Setter public Builder x_kubernetes_map_type(@Nullable String x_kubernetes_map_type) { + this.x_kubernetes_map_type = x_kubernetes_map_type; return this; } @CustomType.Setter public Builder x_kubernetes_preserve_unknown_fields(@Nullable Boolean x_kubernetes_preserve_unknown_fields) { + this.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; return this; } @CustomType.Setter public Builder x_kubernetes_validations(@Nullable List x_kubernetes_validations) { + this.x_kubernetes_validations = x_kubernetes_validations; return this; } @@ -686,52 +730,52 @@ public Builder x_kubernetes_validations(ValidationRulePatch... x_kubernetes_vali return x_kubernetes_validations(List.of(x_kubernetes_validations)); } public JSONSchemaPropsPatch build() { - final var o = new JSONSchemaPropsPatch(); - o.$ref = $ref; - o.$schema = $schema; - o.additionalItems = additionalItems; - o.additionalProperties = additionalProperties; - o.allOf = allOf; - o.anyOf = anyOf; - o.default_ = default_; - o.definitions = definitions; - o.dependencies = dependencies; - o.description = description; - o.enum_ = enum_; - o.example = example; - o.exclusiveMaximum = exclusiveMaximum; - o.exclusiveMinimum = exclusiveMinimum; - o.externalDocs = externalDocs; - o.format = format; - o.id = id; - o.items = items; - o.maxItems = maxItems; - o.maxLength = maxLength; - o.maxProperties = maxProperties; - o.maximum = maximum; - o.minItems = minItems; - o.minLength = minLength; - o.minProperties = minProperties; - o.minimum = minimum; - o.multipleOf = multipleOf; - o.not = not; - o.nullable = nullable; - o.oneOf = oneOf; - o.pattern = pattern; - o.patternProperties = patternProperties; - o.properties = properties; - o.required = required; - o.title = title; - o.type = type; - o.uniqueItems = uniqueItems; - o.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; - o.x_kubernetes_int_or_string = x_kubernetes_int_or_string; - o.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; - o.x_kubernetes_list_type = x_kubernetes_list_type; - o.x_kubernetes_map_type = x_kubernetes_map_type; - o.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; - o.x_kubernetes_validations = x_kubernetes_validations; - return o; + final var _resultValue = new JSONSchemaPropsPatch(); + _resultValue.$ref = $ref; + _resultValue.$schema = $schema; + _resultValue.additionalItems = additionalItems; + _resultValue.additionalProperties = additionalProperties; + _resultValue.allOf = allOf; + _resultValue.anyOf = anyOf; + _resultValue.default_ = default_; + _resultValue.definitions = definitions; + _resultValue.dependencies = dependencies; + _resultValue.description = description; + _resultValue.enum_ = enum_; + _resultValue.example = example; + _resultValue.exclusiveMaximum = exclusiveMaximum; + _resultValue.exclusiveMinimum = exclusiveMinimum; + _resultValue.externalDocs = externalDocs; + _resultValue.format = format; + _resultValue.id = id; + _resultValue.items = items; + _resultValue.maxItems = maxItems; + _resultValue.maxLength = maxLength; + _resultValue.maxProperties = maxProperties; + _resultValue.maximum = maximum; + _resultValue.minItems = minItems; + _resultValue.minLength = minLength; + _resultValue.minProperties = minProperties; + _resultValue.minimum = minimum; + _resultValue.multipleOf = multipleOf; + _resultValue.not = not; + _resultValue.nullable = nullable; + _resultValue.oneOf = oneOf; + _resultValue.pattern = pattern; + _resultValue.patternProperties = patternProperties; + _resultValue.properties = properties; + _resultValue.required = required; + _resultValue.title = title; + _resultValue.type = type; + _resultValue.uniqueItems = uniqueItems; + _resultValue.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; + _resultValue.x_kubernetes_int_or_string = x_kubernetes_int_or_string; + _resultValue.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; + _resultValue.x_kubernetes_list_type = x_kubernetes_list_type; + _resultValue.x_kubernetes_map_type = x_kubernetes_map_type; + _resultValue.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; + _resultValue.x_kubernetes_validations = x_kubernetes_validations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableField.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableField.java index 0299698a9b..a19abe8c79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableField.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableField.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(SelectableField defaults) { @CustomType.Setter public Builder jsonPath(String jsonPath) { - this.jsonPath = Objects.requireNonNull(jsonPath); + if (jsonPath == null) { + throw new MissingRequiredPropertyException("SelectableField", "jsonPath"); + } + this.jsonPath = jsonPath; return this; } public SelectableField build() { - final var o = new SelectableField(); - o.jsonPath = jsonPath; - return o; + final var _resultValue = new SelectableField(); + _resultValue.jsonPath = jsonPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableFieldPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableFieldPatch.java index d5fb6f06c5..c4be08ce2e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableFieldPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/SelectableFieldPatch.java @@ -44,13 +44,14 @@ public Builder(SelectableFieldPatch defaults) { @CustomType.Setter public Builder jsonPath(@Nullable String jsonPath) { + this.jsonPath = jsonPath; return this; } public SelectableFieldPatch build() { - final var o = new SelectableFieldPatch(); - o.jsonPath = jsonPath; - return o; + final var _resultValue = new SelectableFieldPatch(); + _resultValue.jsonPath = jsonPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReference.java index c9afcbcbc6..6206e65459 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.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,31 +88,39 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceReference", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReferencePatch.java index 8a8b89b314..1eb81a640a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ServiceReferencePatch.java @@ -87,31 +87,35 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRule.java index d29dd6d96a..6b8c9660e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -191,43 +192,51 @@ public Builder(ValidationRule defaults) { @CustomType.Setter public Builder fieldPath(@Nullable String fieldPath) { + this.fieldPath = fieldPath; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder optionalOldSelf(@Nullable Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("ValidationRule", "rule"); + } + this.rule = rule; return this; } public ValidationRule build() { - final var o = new ValidationRule(); - o.fieldPath = fieldPath; - o.message = message; - o.messageExpression = messageExpression; - o.optionalOldSelf = optionalOldSelf; - o.reason = reason; - o.rule = rule; - return o; + final var _resultValue = new ValidationRule(); + _resultValue.fieldPath = fieldPath; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.optionalOldSelf = optionalOldSelf; + _resultValue.reason = reason; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRulePatch.java index eeeebeb41e..97f998f566 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/ValidationRulePatch.java @@ -191,43 +191,49 @@ public Builder(ValidationRulePatch defaults) { @CustomType.Setter public Builder fieldPath(@Nullable String fieldPath) { + this.fieldPath = fieldPath; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder messageExpression(@Nullable String messageExpression) { + this.messageExpression = messageExpression; return this; } @CustomType.Setter public Builder optionalOldSelf(@Nullable Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public ValidationRulePatch build() { - final var o = new ValidationRulePatch(); - o.fieldPath = fieldPath; - o.message = message; - o.messageExpression = messageExpression; - o.optionalOldSelf = optionalOldSelf; - o.reason = reason; - o.rule = rule; - return o; + final var _resultValue = new ValidationRulePatch(); + _resultValue.fieldPath = fieldPath; + _resultValue.message = message; + _resultValue.messageExpression = messageExpression; + _resultValue.optionalOldSelf = optionalOldSelf; + _resultValue.reason = reason; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfig.java index 453680db65..3a5b90441d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfig.java @@ -35,7 +35,7 @@ public final class WebhookClientConfig { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfig defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfig build() { - final var o = new WebhookClientConfig(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfig(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfigPatch.java index 8b0ae6276c..346cc2d5ae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookClientConfigPatch.java @@ -35,7 +35,7 @@ public final class WebhookClientConfigPatch { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfigPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfigPatch build() { - final var o = new WebhookClientConfigPatch(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfigPatch(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversion.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversion.java index 7af5ab2eb8..5e4153d0f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversion.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversion.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1.outputs.WebhookClientConfig; import java.lang.String; import java.util.List; @@ -60,22 +61,26 @@ public Builder(WebhookConversion defaults) { @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfig clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder conversionReviewVersions(List conversionReviewVersions) { - this.conversionReviewVersions = Objects.requireNonNull(conversionReviewVersions); + if (conversionReviewVersions == null) { + throw new MissingRequiredPropertyException("WebhookConversion", "conversionReviewVersions"); + } + this.conversionReviewVersions = conversionReviewVersions; return this; } public Builder conversionReviewVersions(String... conversionReviewVersions) { return conversionReviewVersions(List.of(conversionReviewVersions)); } public WebhookConversion build() { - final var o = new WebhookConversion(); - o.clientConfig = clientConfig; - o.conversionReviewVersions = conversionReviewVersions; - return o; + final var _resultValue = new WebhookConversion(); + _resultValue.clientConfig = clientConfig; + _resultValue.conversionReviewVersions = conversionReviewVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversionPatch.java index a95d3fb399..fc3aa3a561 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1/outputs/WebhookConversionPatch.java @@ -60,11 +60,13 @@ public Builder(WebhookConversionPatch defaults) { @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder conversionReviewVersions(@Nullable List conversionReviewVersions) { + this.conversionReviewVersions = conversionReviewVersions; return this; } @@ -72,10 +74,10 @@ public Builder conversionReviewVersions(String... conversionReviewVersions) { return conversionReviewVersions(List.of(conversionReviewVersions)); } public WebhookConversionPatch build() { - final var o = new WebhookConversionPatch(); - o.clientConfig = clientConfig; - o.conversionReviewVersions = conversionReviewVersions; - return o; + final var _resultValue = new WebhookConversionPatch(); + _resultValue.clientConfig = clientConfig; + _resultValue.conversionReviewVersions = conversionReviewVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionArgs.java index d8720d109b..35e7e49eef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -172,7 +173,9 @@ public Builder spec(CustomResourceDefinitionSpecArgs spec) { public CustomResourceDefinitionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionListArgs.java index aeb63b5db1..1b27c189ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/CustomResourceDefinitionListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -182,7 +183,9 @@ public Builder metadata(ListMetaArgs metadata) { public CustomResourceDefinitionListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceColumnDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceColumnDefinitionArgs.java index 4448e7891c..27eeba2fd5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceColumnDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceColumnDefinitionArgs.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; @@ -266,9 +267,15 @@ public Builder type(String type) { } public CustomResourceColumnDefinitionArgs build() { - $.JSONPath = Objects.requireNonNull($.JSONPath, "expected parameter 'JSONPath' 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 ($.JSONPath == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "JSONPath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "name"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinitionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceConversionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceConversionArgs.java index e1fba3810d..d94cab446f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceConversionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceConversionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.WebhookClientConfigArgs; import java.lang.String; import java.util.List; @@ -170,7 +171,9 @@ public Builder webhookClientConfig(WebhookClientConfigArgs webhookClientConfig) } public CustomResourceConversionArgs build() { - $.strategy = Objects.requireNonNull($.strategy, "expected parameter 'strategy' to be non-null"); + if ($.strategy == null) { + throw new MissingRequiredPropertyException("CustomResourceConversionArgs", "strategy"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionArgs.java index 9251d1fcc5..039b832f52 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionSpecArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionStatusArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -214,7 +215,9 @@ public Builder status(CustomResourceDefinitionStatusArgs status) { public CustomResourceDefinitionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionConditionArgs.java index 1656246548..7d1abc6c55 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public CustomResourceDefinitionConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionNamesArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionNamesArgs.java index 5a78744ea8..bfb0658cd9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionNamesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionNamesArgs.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; @@ -286,8 +287,12 @@ public Builder singular(String singular) { } public CustomResourceDefinitionNamesArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.plural = Objects.requireNonNull($.plural, "expected parameter 'plural' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNamesArgs", "kind"); + } + if ($.plural == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNamesArgs", "plural"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionSpecArgs.java index 87634374a8..3f82f20859 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceColumnDefinitionArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceConversionArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesArgs; @@ -441,9 +442,15 @@ public Builder versions(CustomResourceDefinitionVersionArgs... versions) { } public CustomResourceDefinitionSpecArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.names = Objects.requireNonNull($.names, "expected parameter 'names' to be non-null"); - $.scope = Objects.requireNonNull($.scope, "expected parameter 'scope' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "group"); + } + if ($.names == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "names"); + } + if ($.scope == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpecArgs", "scope"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionStatusArgs.java index fbd0402022..7aaba5465e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionConditionArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceDefinitionNamesArgs; import java.lang.String; @@ -177,8 +178,12 @@ public Builder storedVersions(String... storedVersions) { } public CustomResourceDefinitionStatusArgs build() { - $.acceptedNames = Objects.requireNonNull($.acceptedNames, "expected parameter 'acceptedNames' to be non-null"); - $.storedVersions = Objects.requireNonNull($.storedVersions, "expected parameter 'storedVersions' to be non-null"); + if ($.acceptedNames == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatusArgs", "acceptedNames"); + } + if ($.storedVersions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatusArgs", "storedVersions"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionVersionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionVersionArgs.java index cc3f56dfa5..ea71f7058d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionVersionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceDefinitionVersionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceColumnDefinitionArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceSubresourcesArgs; import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationArgs; @@ -354,9 +355,15 @@ public Builder subresources(CustomResourceSubresourcesArgs subresources) { } public CustomResourceDefinitionVersionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.served = Objects.requireNonNull($.served, "expected parameter 'served' to be non-null"); - $.storage = Objects.requireNonNull($.storage, "expected parameter 'storage' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "name"); + } + if ($.served == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "served"); + } + if ($.storage == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersionArgs", "storage"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceSubresourceScaleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceSubresourceScaleArgs.java index 1f8cd78e56..54bf818cdf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceSubresourceScaleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/CustomResourceSubresourceScaleArgs.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; @@ -154,8 +155,12 @@ public Builder statusReplicasPath(String statusReplicasPath) { } public CustomResourceSubresourceScaleArgs build() { - $.specReplicasPath = Objects.requireNonNull($.specReplicasPath, "expected parameter 'specReplicasPath' to be non-null"); - $.statusReplicasPath = Objects.requireNonNull($.statusReplicasPath, "expected parameter 'statusReplicasPath' to be non-null"); + if ($.specReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScaleArgs", "specReplicasPath"); + } + if ($.statusReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScaleArgs", "statusReplicasPath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/ServiceReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/ServiceReferenceArgs.java index 2689e6c635..abcb0dc2f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/ServiceReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/ServiceReferenceArgs.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; @@ -192,8 +193,12 @@ public Builder port(Integer port) { } public ServiceReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigArgs.java index 5155ab2c47..ff031cc944 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferenceArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigPatchArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigPatchArgs.java index 9dcdf524f2..1adac78834 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigPatchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/inputs/WebhookClientConfigPatchArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferencePatchArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinition.java index d2747b7b94..badcd69ea2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.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,43 +116,55 @@ public Builder(CustomResourceColumnDefinition defaults) { @CustomType.Setter public Builder JSONPath(String JSONPath) { - this.JSONPath = Objects.requireNonNull(JSONPath); + if (JSONPath == null) { + throw new MissingRequiredPropertyException("CustomResourceColumnDefinition", "JSONPath"); + } + this.JSONPath = JSONPath; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; 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("CustomResourceColumnDefinition", "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("CustomResourceColumnDefinition", "type"); + } + this.type = type; return this; } public CustomResourceColumnDefinition build() { - final var o = new CustomResourceColumnDefinition(); - o.JSONPath = JSONPath; - o.description = description; - o.format = format; - o.name = name; - o.priority = priority; - o.type = type; - return o; + final var _resultValue = new CustomResourceColumnDefinition(); + _resultValue.JSONPath = JSONPath; + _resultValue.description = description; + _resultValue.format = format; + _resultValue.name = name; + _resultValue.priority = priority; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinitionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinitionPatch.java index 9bd17c889c..890c66efc5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinitionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceColumnDefinitionPatch.java @@ -115,43 +115,49 @@ public Builder(CustomResourceColumnDefinitionPatch defaults) { @CustomType.Setter public Builder JSONPath(@Nullable String JSONPath) { + this.JSONPath = JSONPath; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CustomResourceColumnDefinitionPatch build() { - final var o = new CustomResourceColumnDefinitionPatch(); - o.JSONPath = JSONPath; - o.description = description; - o.format = format; - o.name = name; - o.priority = priority; - o.type = type; - return o; + final var _resultValue = new CustomResourceColumnDefinitionPatch(); + _resultValue.JSONPath = JSONPath; + _resultValue.description = description; + _resultValue.format = format; + _resultValue.name = name; + _resultValue.priority = priority; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversion.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversion.java index 6bdbe32142..b9fbacbcf7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversion.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversion.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.WebhookClientConfig; import java.lang.String; import java.util.List; @@ -76,6 +77,7 @@ public Builder(CustomResourceConversion defaults) { @CustomType.Setter public Builder conversionReviewVersions(@Nullable List conversionReviewVersions) { + this.conversionReviewVersions = conversionReviewVersions; return this; } @@ -84,20 +86,24 @@ public Builder conversionReviewVersions(String... conversionReviewVersions) { } @CustomType.Setter public Builder strategy(String strategy) { - this.strategy = Objects.requireNonNull(strategy); + if (strategy == null) { + throw new MissingRequiredPropertyException("CustomResourceConversion", "strategy"); + } + this.strategy = strategy; return this; } @CustomType.Setter public Builder webhookClientConfig(@Nullable WebhookClientConfig webhookClientConfig) { + this.webhookClientConfig = webhookClientConfig; return this; } public CustomResourceConversion build() { - final var o = new CustomResourceConversion(); - o.conversionReviewVersions = conversionReviewVersions; - o.strategy = strategy; - o.webhookClientConfig = webhookClientConfig; - return o; + final var _resultValue = new CustomResourceConversion(); + _resultValue.conversionReviewVersions = conversionReviewVersions; + _resultValue.strategy = strategy; + _resultValue.webhookClientConfig = webhookClientConfig; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversionPatch.java index ae6d23dcc6..c08fb67de7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceConversionPatch.java @@ -76,6 +76,7 @@ public Builder(CustomResourceConversionPatch defaults) { @CustomType.Setter public Builder conversionReviewVersions(@Nullable List conversionReviewVersions) { + this.conversionReviewVersions = conversionReviewVersions; return this; } @@ -84,20 +85,22 @@ public Builder conversionReviewVersions(String... conversionReviewVersions) { } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder webhookClientConfig(@Nullable WebhookClientConfigPatch webhookClientConfig) { + this.webhookClientConfig = webhookClientConfig; return this; } public CustomResourceConversionPatch build() { - final var o = new CustomResourceConversionPatch(); - o.conversionReviewVersions = conversionReviewVersions; - o.strategy = strategy; - o.webhookClientConfig = webhookClientConfig; - return o; + final var _resultValue = new CustomResourceConversionPatch(); + _resultValue.conversionReviewVersions = conversionReviewVersions; + _resultValue.strategy = strategy; + _resultValue.webhookClientConfig = webhookClientConfig; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinition.java index 646d50caf1..108fcecf16 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionSpec; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionStatus; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; @@ -95,37 +96,44 @@ public Builder(CustomResourceDefinition defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CustomResourceDefinitionSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinition", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CustomResourceDefinitionStatus status) { + this.status = status; return this; } public CustomResourceDefinition build() { - final var o = new CustomResourceDefinition(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CustomResourceDefinition(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionCondition.java index f72552c8aa..84928845d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(CustomResourceDefinitionCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionCondition", "type"); + } + this.type = type; return this; } public CustomResourceDefinitionCondition build() { - final var o = new CustomResourceDefinitionCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CustomResourceDefinitionCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionConditionPatch.java index 75984ebad4..6ab14e2f6c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionConditionPatch.java @@ -100,37 +100,42 @@ public Builder(CustomResourceDefinitionConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CustomResourceDefinitionConditionPatch build() { - final var o = new CustomResourceDefinitionConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CustomResourceDefinitionConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNames.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNames.java index c9096e5163..52c858b3bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNames.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNames.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -115,6 +116,7 @@ public Builder(CustomResourceDefinitionNames defaults) { @CustomType.Setter public Builder categories(@Nullable List categories) { + this.categories = categories; return this; } @@ -123,21 +125,29 @@ public Builder categories(String... categories) { } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNames", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder listKind(@Nullable String listKind) { + this.listKind = listKind; return this; } @CustomType.Setter public Builder plural(String plural) { - this.plural = Objects.requireNonNull(plural); + if (plural == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionNames", "plural"); + } + this.plural = plural; return this; } @CustomType.Setter public Builder shortNames(@Nullable List shortNames) { + this.shortNames = shortNames; return this; } @@ -146,18 +156,19 @@ public Builder shortNames(String... shortNames) { } @CustomType.Setter public Builder singular(@Nullable String singular) { + this.singular = singular; return this; } public CustomResourceDefinitionNames build() { - final var o = new CustomResourceDefinitionNames(); - o.categories = categories; - o.kind = kind; - o.listKind = listKind; - o.plural = plural; - o.shortNames = shortNames; - o.singular = singular; - return o; + final var _resultValue = new CustomResourceDefinitionNames(); + _resultValue.categories = categories; + _resultValue.kind = kind; + _resultValue.listKind = listKind; + _resultValue.plural = plural; + _resultValue.shortNames = shortNames; + _resultValue.singular = singular; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNamesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNamesPatch.java index 0bbdc69b84..4d09ea23e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNamesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionNamesPatch.java @@ -115,6 +115,7 @@ public Builder(CustomResourceDefinitionNamesPatch defaults) { @CustomType.Setter public Builder categories(@Nullable List categories) { + this.categories = categories; return this; } @@ -123,21 +124,25 @@ public Builder categories(String... categories) { } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder listKind(@Nullable String listKind) { + this.listKind = listKind; return this; } @CustomType.Setter public Builder plural(@Nullable String plural) { + this.plural = plural; return this; } @CustomType.Setter public Builder shortNames(@Nullable List shortNames) { + this.shortNames = shortNames; return this; } @@ -146,18 +151,19 @@ public Builder shortNames(String... shortNames) { } @CustomType.Setter public Builder singular(@Nullable String singular) { + this.singular = singular; return this; } public CustomResourceDefinitionNamesPatch build() { - final var o = new CustomResourceDefinitionNamesPatch(); - o.categories = categories; - o.kind = kind; - o.listKind = listKind; - o.plural = plural; - o.shortNames = shortNames; - o.singular = singular; - return o; + final var _resultValue = new CustomResourceDefinitionNamesPatch(); + _resultValue.categories = categories; + _resultValue.kind = kind; + _resultValue.listKind = listKind; + _resultValue.plural = plural; + _resultValue.shortNames = shortNames; + _resultValue.singular = singular; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpec.java index b64fb25ddf..073149c930 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceColumnDefinition; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceConversion; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionNames; @@ -178,6 +179,7 @@ public Builder(CustomResourceDefinitionSpec defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -186,46 +188,61 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinition... additi } @CustomType.Setter public Builder conversion(@Nullable CustomResourceConversion conversion) { + this.conversion = conversion; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder names(CustomResourceDefinitionNames names) { - this.names = Objects.requireNonNull(names); + if (names == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "names"); + } + this.names = names; return this; } @CustomType.Setter public Builder preserveUnknownFields(@Nullable Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; return this; } @CustomType.Setter public Builder scope(String scope) { - this.scope = Objects.requireNonNull(scope); + if (scope == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionSpec", "scope"); + } + this.scope = scope; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresources subresources) { + this.subresources = subresources; return this; } @CustomType.Setter public Builder validation(@Nullable CustomResourceValidation validation) { + this.validation = validation; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versions(@Nullable List versions) { + this.versions = versions; return this; } @@ -233,18 +250,18 @@ public Builder versions(CustomResourceDefinitionVersion... versions) { return versions(List.of(versions)); } public CustomResourceDefinitionSpec build() { - final var o = new CustomResourceDefinitionSpec(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.conversion = conversion; - o.group = group; - o.names = names; - o.preserveUnknownFields = preserveUnknownFields; - o.scope = scope; - o.subresources = subresources; - o.validation = validation; - o.version = version; - o.versions = versions; - return o; + final var _resultValue = new CustomResourceDefinitionSpec(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.conversion = conversion; + _resultValue.group = group; + _resultValue.names = names; + _resultValue.preserveUnknownFields = preserveUnknownFields; + _resultValue.scope = scope; + _resultValue.subresources = subresources; + _resultValue.validation = validation; + _resultValue.version = version; + _resultValue.versions = versions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpecPatch.java index c39232f346..2ccb7bb293 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionSpecPatch.java @@ -178,6 +178,7 @@ public Builder(CustomResourceDefinitionSpecPatch defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -186,46 +187,55 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinitionPatch... a } @CustomType.Setter public Builder conversion(@Nullable CustomResourceConversionPatch conversion) { + this.conversion = conversion; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder names(@Nullable CustomResourceDefinitionNamesPatch names) { + this.names = names; return this; } @CustomType.Setter public Builder preserveUnknownFields(@Nullable Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresourcesPatch subresources) { + this.subresources = subresources; return this; } @CustomType.Setter public Builder validation(@Nullable CustomResourceValidationPatch validation) { + this.validation = validation; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versions(@Nullable List versions) { + this.versions = versions; return this; } @@ -233,18 +243,18 @@ public Builder versions(CustomResourceDefinitionVersionPatch... versions) { return versions(List.of(versions)); } public CustomResourceDefinitionSpecPatch build() { - final var o = new CustomResourceDefinitionSpecPatch(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.conversion = conversion; - o.group = group; - o.names = names; - o.preserveUnknownFields = preserveUnknownFields; - o.scope = scope; - o.subresources = subresources; - o.validation = validation; - o.version = version; - o.versions = versions; - return o; + final var _resultValue = new CustomResourceDefinitionSpecPatch(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.conversion = conversion; + _resultValue.group = group; + _resultValue.names = names; + _resultValue.preserveUnknownFields = preserveUnknownFields; + _resultValue.scope = scope; + _resultValue.subresources = subresources; + _resultValue.validation = validation; + _resultValue.version = version; + _resultValue.versions = versions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatus.java index dd98cbda01..12ee0353aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionCondition; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionNames; import java.lang.String; @@ -74,11 +75,15 @@ public Builder(CustomResourceDefinitionStatus defaults) { @CustomType.Setter public Builder acceptedNames(CustomResourceDefinitionNames acceptedNames) { - this.acceptedNames = Objects.requireNonNull(acceptedNames); + if (acceptedNames == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "acceptedNames"); + } + this.acceptedNames = acceptedNames; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -87,18 +92,21 @@ public Builder conditions(CustomResourceDefinitionCondition... conditions) { } @CustomType.Setter public Builder storedVersions(List storedVersions) { - this.storedVersions = Objects.requireNonNull(storedVersions); + if (storedVersions == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionStatus", "storedVersions"); + } + this.storedVersions = storedVersions; return this; } public Builder storedVersions(String... storedVersions) { return storedVersions(List.of(storedVersions)); } public CustomResourceDefinitionStatus build() { - final var o = new CustomResourceDefinitionStatus(); - o.acceptedNames = acceptedNames; - o.conditions = conditions; - o.storedVersions = storedVersions; - return o; + final var _resultValue = new CustomResourceDefinitionStatus(); + _resultValue.acceptedNames = acceptedNames; + _resultValue.conditions = conditions; + _resultValue.storedVersions = storedVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatusPatch.java index e30dec3b2e..69a5d0004a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionStatusPatch.java @@ -75,11 +75,13 @@ public Builder(CustomResourceDefinitionStatusPatch defaults) { @CustomType.Setter public Builder acceptedNames(@Nullable CustomResourceDefinitionNamesPatch acceptedNames) { + this.acceptedNames = acceptedNames; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -88,6 +90,7 @@ public Builder conditions(CustomResourceDefinitionConditionPatch... conditions) } @CustomType.Setter public Builder storedVersions(@Nullable List storedVersions) { + this.storedVersions = storedVersions; return this; } @@ -95,11 +98,11 @@ public Builder storedVersions(String... storedVersions) { return storedVersions(List.of(storedVersions)); } public CustomResourceDefinitionStatusPatch build() { - final var o = new CustomResourceDefinitionStatusPatch(); - o.acceptedNames = acceptedNames; - o.conditions = conditions; - o.storedVersions = storedVersions; - return o; + final var _resultValue = new CustomResourceDefinitionStatusPatch(); + _resultValue.acceptedNames = acceptedNames; + _resultValue.conditions = conditions; + _resultValue.storedVersions = storedVersions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersion.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersion.java index 53365b7cff..2e2608bb5f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersion.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersion.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceColumnDefinition; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceSubresources; import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceValidation; @@ -147,6 +148,7 @@ public Builder(CustomResourceDefinitionVersion defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -155,50 +157,63 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinition... additi } @CustomType.Setter public Builder deprecated(@Nullable Boolean deprecated) { + this.deprecated = deprecated; return this; } @CustomType.Setter public Builder deprecationWarning(@Nullable String deprecationWarning) { + this.deprecationWarning = deprecationWarning; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder schema(@Nullable CustomResourceValidation schema) { + this.schema = schema; return this; } @CustomType.Setter public Builder served(Boolean served) { - this.served = Objects.requireNonNull(served); + if (served == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "served"); + } + this.served = served; return this; } @CustomType.Setter public Builder storage(Boolean storage) { - this.storage = Objects.requireNonNull(storage); + if (storage == null) { + throw new MissingRequiredPropertyException("CustomResourceDefinitionVersion", "storage"); + } + this.storage = storage; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresources subresources) { + this.subresources = subresources; return this; } public CustomResourceDefinitionVersion build() { - final var o = new CustomResourceDefinitionVersion(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.deprecated = deprecated; - o.deprecationWarning = deprecationWarning; - o.name = name; - o.schema = schema; - o.served = served; - o.storage = storage; - o.subresources = subresources; - return o; + final var _resultValue = new CustomResourceDefinitionVersion(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.deprecated = deprecated; + _resultValue.deprecationWarning = deprecationWarning; + _resultValue.name = name; + _resultValue.schema = schema; + _resultValue.served = served; + _resultValue.storage = storage; + _resultValue.subresources = subresources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersionPatch.java index 97b4f23137..022251a7ae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceDefinitionVersionPatch.java @@ -147,6 +147,7 @@ public Builder(CustomResourceDefinitionVersionPatch defaults) { @CustomType.Setter public Builder additionalPrinterColumns(@Nullable List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -155,50 +156,57 @@ public Builder additionalPrinterColumns(CustomResourceColumnDefinitionPatch... a } @CustomType.Setter public Builder deprecated(@Nullable Boolean deprecated) { + this.deprecated = deprecated; return this; } @CustomType.Setter public Builder deprecationWarning(@Nullable String deprecationWarning) { + this.deprecationWarning = deprecationWarning; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder schema(@Nullable CustomResourceValidationPatch schema) { + this.schema = schema; return this; } @CustomType.Setter public Builder served(@Nullable Boolean served) { + this.served = served; return this; } @CustomType.Setter public Builder storage(@Nullable Boolean storage) { + this.storage = storage; return this; } @CustomType.Setter public Builder subresources(@Nullable CustomResourceSubresourcesPatch subresources) { + this.subresources = subresources; return this; } public CustomResourceDefinitionVersionPatch build() { - final var o = new CustomResourceDefinitionVersionPatch(); - o.additionalPrinterColumns = additionalPrinterColumns; - o.deprecated = deprecated; - o.deprecationWarning = deprecationWarning; - o.name = name; - o.schema = schema; - o.served = served; - o.storage = storage; - o.subresources = subresources; - return o; + final var _resultValue = new CustomResourceDefinitionVersionPatch(); + _resultValue.additionalPrinterColumns = additionalPrinterColumns; + _resultValue.deprecated = deprecated; + _resultValue.deprecationWarning = deprecationWarning; + _resultValue.name = name; + _resultValue.schema = schema; + _resultValue.served = served; + _resultValue.storage = storage; + _resultValue.subresources = subresources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScale.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScale.java index 16476905c6..d70790d84c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScale.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScale.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.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,25 +73,32 @@ public Builder(CustomResourceSubresourceScale defaults) { @CustomType.Setter public Builder labelSelectorPath(@Nullable String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; return this; } @CustomType.Setter public Builder specReplicasPath(String specReplicasPath) { - this.specReplicasPath = Objects.requireNonNull(specReplicasPath); + if (specReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScale", "specReplicasPath"); + } + this.specReplicasPath = specReplicasPath; return this; } @CustomType.Setter public Builder statusReplicasPath(String statusReplicasPath) { - this.statusReplicasPath = Objects.requireNonNull(statusReplicasPath); + if (statusReplicasPath == null) { + throw new MissingRequiredPropertyException("CustomResourceSubresourceScale", "statusReplicasPath"); + } + this.statusReplicasPath = statusReplicasPath; return this; } public CustomResourceSubresourceScale build() { - final var o = new CustomResourceSubresourceScale(); - o.labelSelectorPath = labelSelectorPath; - o.specReplicasPath = specReplicasPath; - o.statusReplicasPath = statusReplicasPath; - return o; + final var _resultValue = new CustomResourceSubresourceScale(); + _resultValue.labelSelectorPath = labelSelectorPath; + _resultValue.specReplicasPath = specReplicasPath; + _resultValue.statusReplicasPath = statusReplicasPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScalePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScalePatch.java index 5a9bebedbd..d0be87849a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScalePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourceScalePatch.java @@ -72,25 +72,28 @@ public Builder(CustomResourceSubresourceScalePatch defaults) { @CustomType.Setter public Builder labelSelectorPath(@Nullable String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; return this; } @CustomType.Setter public Builder specReplicasPath(@Nullable String specReplicasPath) { + this.specReplicasPath = specReplicasPath; return this; } @CustomType.Setter public Builder statusReplicasPath(@Nullable String statusReplicasPath) { + this.statusReplicasPath = statusReplicasPath; return this; } public CustomResourceSubresourceScalePatch build() { - final var o = new CustomResourceSubresourceScalePatch(); - o.labelSelectorPath = labelSelectorPath; - o.specReplicasPath = specReplicasPath; - o.statusReplicasPath = statusReplicasPath; - return o; + final var _resultValue = new CustomResourceSubresourceScalePatch(); + _resultValue.labelSelectorPath = labelSelectorPath; + _resultValue.specReplicasPath = specReplicasPath; + _resultValue.statusReplicasPath = statusReplicasPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresources.java index 4a7a1a9e25..59bc68d754 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresources.java @@ -59,19 +59,21 @@ public Builder(CustomResourceSubresources defaults) { @CustomType.Setter public Builder scale(@Nullable CustomResourceSubresourceScale scale) { + this.scale = scale; return this; } @CustomType.Setter public Builder status(@Nullable JsonElement status) { + this.status = status; return this; } public CustomResourceSubresources build() { - final var o = new CustomResourceSubresources(); - o.scale = scale; - o.status = status; - return o; + final var _resultValue = new CustomResourceSubresources(); + _resultValue.scale = scale; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourcesPatch.java index ee622a7e0a..3b3bf770d5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceSubresourcesPatch.java @@ -59,19 +59,21 @@ public Builder(CustomResourceSubresourcesPatch defaults) { @CustomType.Setter public Builder scale(@Nullable CustomResourceSubresourceScalePatch scale) { + this.scale = scale; return this; } @CustomType.Setter public Builder status(@Nullable JsonElement status) { + this.status = status; return this; } public CustomResourceSubresourcesPatch build() { - final var o = new CustomResourceSubresourcesPatch(); - o.scale = scale; - o.status = status; - return o; + final var _resultValue = new CustomResourceSubresourcesPatch(); + _resultValue.scale = scale; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidation.java index 4757eb751b..1ce9399345 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidation.java @@ -44,13 +44,14 @@ public Builder(CustomResourceValidation defaults) { @CustomType.Setter public Builder openAPIV3Schema(@Nullable JSONSchemaProps openAPIV3Schema) { + this.openAPIV3Schema = openAPIV3Schema; return this; } public CustomResourceValidation build() { - final var o = new CustomResourceValidation(); - o.openAPIV3Schema = openAPIV3Schema; - return o; + final var _resultValue = new CustomResourceValidation(); + _resultValue.openAPIV3Schema = openAPIV3Schema; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidationPatch.java index 0a426701cf..bc0d3c787f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/CustomResourceValidationPatch.java @@ -44,13 +44,14 @@ public Builder(CustomResourceValidationPatch defaults) { @CustomType.Setter public Builder openAPIV3Schema(@Nullable JSONSchemaPropsPatch openAPIV3Schema) { + this.openAPIV3Schema = openAPIV3Schema; return this; } public CustomResourceValidationPatch build() { - final var o = new CustomResourceValidationPatch(); - o.openAPIV3Schema = openAPIV3Schema; - return o; + final var _resultValue = new CustomResourceValidationPatch(); + _resultValue.openAPIV3Schema = openAPIV3Schema; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentation.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentation.java index 2864c9069e..9363b2a843 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentation.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentation.java @@ -42,19 +42,21 @@ public Builder(ExternalDocumentation defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public ExternalDocumentation build() { - final var o = new ExternalDocumentation(); - o.description = description; - o.url = url; - return o; + final var _resultValue = new ExternalDocumentation(); + _resultValue.description = description; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentationPatch.java index 7f57bfb663..f87913af84 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ExternalDocumentationPatch.java @@ -42,19 +42,21 @@ public Builder(ExternalDocumentationPatch defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public ExternalDocumentationPatch build() { - final var o = new ExternalDocumentationPatch(); - o.description = description; - o.url = url; - return o; + final var _resultValue = new ExternalDocumentationPatch(); + _resultValue.description = description; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaProps.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaProps.java index 8e4c9b3b88..bc433f605d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaProps.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaProps.java @@ -426,26 +426,31 @@ public Builder(JSONSchemaProps defaults) { @CustomType.Setter public Builder $ref(@Nullable String $ref) { + this.$ref = $ref; return this; } @CustomType.Setter public Builder $schema(@Nullable String $schema) { + this.$schema = $schema; return this; } @CustomType.Setter public Builder additionalItems(@Nullable Either additionalItems) { + this.additionalItems = additionalItems; return this; } @CustomType.Setter public Builder additionalProperties(@Nullable Either additionalProperties) { + this.additionalProperties = additionalProperties; return this; } @CustomType.Setter public Builder allOf(@Nullable List allOf) { + this.allOf = allOf; return this; } @@ -454,6 +459,7 @@ public Builder allOf(JSONSchemaProps... allOf) { } @CustomType.Setter public Builder anyOf(@Nullable List anyOf) { + this.anyOf = anyOf; return this; } @@ -462,26 +468,31 @@ public Builder anyOf(JSONSchemaProps... anyOf) { } @CustomType.Setter("default") public Builder default_(@Nullable JsonElement default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder definitions(@Nullable Map definitions) { + this.definitions = definitions; return this; } @CustomType.Setter public Builder dependencies(@Nullable Map>> dependencies) { + this.dependencies = dependencies; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter("enum") public Builder enum_(@Nullable List enum_) { + this.enum_ = enum_; return this; } @@ -490,96 +501,115 @@ public Builder enum_(JsonElement... enum_) { } @CustomType.Setter public Builder example(@Nullable JsonElement example) { + this.example = example; return this; } @CustomType.Setter public Builder exclusiveMaximum(@Nullable Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; return this; } @CustomType.Setter public Builder exclusiveMinimum(@Nullable Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; return this; } @CustomType.Setter public Builder externalDocs(@Nullable ExternalDocumentation externalDocs) { + this.externalDocs = externalDocs; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder items(@Nullable Either> items) { + this.items = items; return this; } @CustomType.Setter public Builder maxItems(@Nullable Integer maxItems) { + this.maxItems = maxItems; return this; } @CustomType.Setter public Builder maxLength(@Nullable Integer maxLength) { + this.maxLength = maxLength; return this; } @CustomType.Setter public Builder maxProperties(@Nullable Integer maxProperties) { + this.maxProperties = maxProperties; return this; } @CustomType.Setter public Builder maximum(@Nullable Double maximum) { + this.maximum = maximum; return this; } @CustomType.Setter public Builder minItems(@Nullable Integer minItems) { + this.minItems = minItems; return this; } @CustomType.Setter public Builder minLength(@Nullable Integer minLength) { + this.minLength = minLength; return this; } @CustomType.Setter public Builder minProperties(@Nullable Integer minProperties) { + this.minProperties = minProperties; return this; } @CustomType.Setter public Builder minimum(@Nullable Double minimum) { + this.minimum = minimum; return this; } @CustomType.Setter public Builder multipleOf(@Nullable Double multipleOf) { + this.multipleOf = multipleOf; return this; } @CustomType.Setter public Builder not(@Nullable JSONSchemaProps not) { + this.not = not; return this; } @CustomType.Setter public Builder nullable(@Nullable Boolean nullable) { + this.nullable = nullable; return this; } @CustomType.Setter public Builder oneOf(@Nullable List oneOf) { + this.oneOf = oneOf; return this; } @@ -588,21 +618,25 @@ public Builder oneOf(JSONSchemaProps... oneOf) { } @CustomType.Setter public Builder pattern(@Nullable String pattern) { + this.pattern = pattern; return this; } @CustomType.Setter public Builder patternProperties(@Nullable Map patternProperties) { + this.patternProperties = patternProperties; return this; } @CustomType.Setter public Builder properties(@Nullable Map properties) { + this.properties = properties; return this; } @CustomType.Setter public Builder required(@Nullable List required) { + this.required = required; return this; } @@ -611,31 +645,37 @@ public Builder required(String... required) { } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uniqueItems(@Nullable Boolean uniqueItems) { + this.uniqueItems = uniqueItems; return this; } @CustomType.Setter public Builder x_kubernetes_embedded_resource(@Nullable Boolean x_kubernetes_embedded_resource) { + this.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; return this; } @CustomType.Setter public Builder x_kubernetes_int_or_string(@Nullable Boolean x_kubernetes_int_or_string) { + this.x_kubernetes_int_or_string = x_kubernetes_int_or_string; return this; } @CustomType.Setter public Builder x_kubernetes_list_map_keys(@Nullable List x_kubernetes_list_map_keys) { + this.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; return this; } @@ -644,65 +684,68 @@ public Builder x_kubernetes_list_map_keys(String... x_kubernetes_list_map_keys) } @CustomType.Setter public Builder x_kubernetes_list_type(@Nullable String x_kubernetes_list_type) { + this.x_kubernetes_list_type = x_kubernetes_list_type; return this; } @CustomType.Setter public Builder x_kubernetes_map_type(@Nullable String x_kubernetes_map_type) { + this.x_kubernetes_map_type = x_kubernetes_map_type; return this; } @CustomType.Setter public Builder x_kubernetes_preserve_unknown_fields(@Nullable Boolean x_kubernetes_preserve_unknown_fields) { + this.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; return this; } public JSONSchemaProps build() { - final var o = new JSONSchemaProps(); - o.$ref = $ref; - o.$schema = $schema; - o.additionalItems = additionalItems; - o.additionalProperties = additionalProperties; - o.allOf = allOf; - o.anyOf = anyOf; - o.default_ = default_; - o.definitions = definitions; - o.dependencies = dependencies; - o.description = description; - o.enum_ = enum_; - o.example = example; - o.exclusiveMaximum = exclusiveMaximum; - o.exclusiveMinimum = exclusiveMinimum; - o.externalDocs = externalDocs; - o.format = format; - o.id = id; - o.items = items; - o.maxItems = maxItems; - o.maxLength = maxLength; - o.maxProperties = maxProperties; - o.maximum = maximum; - o.minItems = minItems; - o.minLength = minLength; - o.minProperties = minProperties; - o.minimum = minimum; - o.multipleOf = multipleOf; - o.not = not; - o.nullable = nullable; - o.oneOf = oneOf; - o.pattern = pattern; - o.patternProperties = patternProperties; - o.properties = properties; - o.required = required; - o.title = title; - o.type = type; - o.uniqueItems = uniqueItems; - o.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; - o.x_kubernetes_int_or_string = x_kubernetes_int_or_string; - o.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; - o.x_kubernetes_list_type = x_kubernetes_list_type; - o.x_kubernetes_map_type = x_kubernetes_map_type; - o.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; - return o; + final var _resultValue = new JSONSchemaProps(); + _resultValue.$ref = $ref; + _resultValue.$schema = $schema; + _resultValue.additionalItems = additionalItems; + _resultValue.additionalProperties = additionalProperties; + _resultValue.allOf = allOf; + _resultValue.anyOf = anyOf; + _resultValue.default_ = default_; + _resultValue.definitions = definitions; + _resultValue.dependencies = dependencies; + _resultValue.description = description; + _resultValue.enum_ = enum_; + _resultValue.example = example; + _resultValue.exclusiveMaximum = exclusiveMaximum; + _resultValue.exclusiveMinimum = exclusiveMinimum; + _resultValue.externalDocs = externalDocs; + _resultValue.format = format; + _resultValue.id = id; + _resultValue.items = items; + _resultValue.maxItems = maxItems; + _resultValue.maxLength = maxLength; + _resultValue.maxProperties = maxProperties; + _resultValue.maximum = maximum; + _resultValue.minItems = minItems; + _resultValue.minLength = minLength; + _resultValue.minProperties = minProperties; + _resultValue.minimum = minimum; + _resultValue.multipleOf = multipleOf; + _resultValue.not = not; + _resultValue.nullable = nullable; + _resultValue.oneOf = oneOf; + _resultValue.pattern = pattern; + _resultValue.patternProperties = patternProperties; + _resultValue.properties = properties; + _resultValue.required = required; + _resultValue.title = title; + _resultValue.type = type; + _resultValue.uniqueItems = uniqueItems; + _resultValue.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; + _resultValue.x_kubernetes_int_or_string = x_kubernetes_int_or_string; + _resultValue.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; + _resultValue.x_kubernetes_list_type = x_kubernetes_list_type; + _resultValue.x_kubernetes_map_type = x_kubernetes_map_type; + _resultValue.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaPropsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaPropsPatch.java index eddf8dba3d..e93b28a922 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaPropsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/JSONSchemaPropsPatch.java @@ -427,26 +427,31 @@ public Builder(JSONSchemaPropsPatch defaults) { @CustomType.Setter public Builder $ref(@Nullable String $ref) { + this.$ref = $ref; return this; } @CustomType.Setter public Builder $schema(@Nullable String $schema) { + this.$schema = $schema; return this; } @CustomType.Setter public Builder additionalItems(@Nullable Either additionalItems) { + this.additionalItems = additionalItems; return this; } @CustomType.Setter public Builder additionalProperties(@Nullable Either additionalProperties) { + this.additionalProperties = additionalProperties; return this; } @CustomType.Setter public Builder allOf(@Nullable List allOf) { + this.allOf = allOf; return this; } @@ -455,6 +460,7 @@ public Builder allOf(JSONSchemaPropsPatch... allOf) { } @CustomType.Setter public Builder anyOf(@Nullable List anyOf) { + this.anyOf = anyOf; return this; } @@ -463,26 +469,31 @@ public Builder anyOf(JSONSchemaPropsPatch... anyOf) { } @CustomType.Setter("default") public Builder default_(@Nullable JsonElement default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder definitions(@Nullable Map definitions) { + this.definitions = definitions; return this; } @CustomType.Setter public Builder dependencies(@Nullable Map>> dependencies) { + this.dependencies = dependencies; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter("enum") public Builder enum_(@Nullable List enum_) { + this.enum_ = enum_; return this; } @@ -491,96 +502,115 @@ public Builder enum_(JsonElement... enum_) { } @CustomType.Setter public Builder example(@Nullable JsonElement example) { + this.example = example; return this; } @CustomType.Setter public Builder exclusiveMaximum(@Nullable Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; return this; } @CustomType.Setter public Builder exclusiveMinimum(@Nullable Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; return this; } @CustomType.Setter public Builder externalDocs(@Nullable ExternalDocumentationPatch externalDocs) { + this.externalDocs = externalDocs; return this; } @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder items(@Nullable Either> items) { + this.items = items; return this; } @CustomType.Setter public Builder maxItems(@Nullable Integer maxItems) { + this.maxItems = maxItems; return this; } @CustomType.Setter public Builder maxLength(@Nullable Integer maxLength) { + this.maxLength = maxLength; return this; } @CustomType.Setter public Builder maxProperties(@Nullable Integer maxProperties) { + this.maxProperties = maxProperties; return this; } @CustomType.Setter public Builder maximum(@Nullable Double maximum) { + this.maximum = maximum; return this; } @CustomType.Setter public Builder minItems(@Nullable Integer minItems) { + this.minItems = minItems; return this; } @CustomType.Setter public Builder minLength(@Nullable Integer minLength) { + this.minLength = minLength; return this; } @CustomType.Setter public Builder minProperties(@Nullable Integer minProperties) { + this.minProperties = minProperties; return this; } @CustomType.Setter public Builder minimum(@Nullable Double minimum) { + this.minimum = minimum; return this; } @CustomType.Setter public Builder multipleOf(@Nullable Double multipleOf) { + this.multipleOf = multipleOf; return this; } @CustomType.Setter public Builder not(@Nullable JSONSchemaPropsPatch not) { + this.not = not; return this; } @CustomType.Setter public Builder nullable(@Nullable Boolean nullable) { + this.nullable = nullable; return this; } @CustomType.Setter public Builder oneOf(@Nullable List oneOf) { + this.oneOf = oneOf; return this; } @@ -589,21 +619,25 @@ public Builder oneOf(JSONSchemaPropsPatch... oneOf) { } @CustomType.Setter public Builder pattern(@Nullable String pattern) { + this.pattern = pattern; return this; } @CustomType.Setter public Builder patternProperties(@Nullable Map patternProperties) { + this.patternProperties = patternProperties; return this; } @CustomType.Setter public Builder properties(@Nullable Map properties) { + this.properties = properties; return this; } @CustomType.Setter public Builder required(@Nullable List required) { + this.required = required; return this; } @@ -612,31 +646,37 @@ public Builder required(String... required) { } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uniqueItems(@Nullable Boolean uniqueItems) { + this.uniqueItems = uniqueItems; return this; } @CustomType.Setter public Builder x_kubernetes_embedded_resource(@Nullable Boolean x_kubernetes_embedded_resource) { + this.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; return this; } @CustomType.Setter public Builder x_kubernetes_int_or_string(@Nullable Boolean x_kubernetes_int_or_string) { + this.x_kubernetes_int_or_string = x_kubernetes_int_or_string; return this; } @CustomType.Setter public Builder x_kubernetes_list_map_keys(@Nullable List x_kubernetes_list_map_keys) { + this.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; return this; } @@ -645,65 +685,68 @@ public Builder x_kubernetes_list_map_keys(String... x_kubernetes_list_map_keys) } @CustomType.Setter public Builder x_kubernetes_list_type(@Nullable String x_kubernetes_list_type) { + this.x_kubernetes_list_type = x_kubernetes_list_type; return this; } @CustomType.Setter public Builder x_kubernetes_map_type(@Nullable String x_kubernetes_map_type) { + this.x_kubernetes_map_type = x_kubernetes_map_type; return this; } @CustomType.Setter public Builder x_kubernetes_preserve_unknown_fields(@Nullable Boolean x_kubernetes_preserve_unknown_fields) { + this.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; return this; } public JSONSchemaPropsPatch build() { - final var o = new JSONSchemaPropsPatch(); - o.$ref = $ref; - o.$schema = $schema; - o.additionalItems = additionalItems; - o.additionalProperties = additionalProperties; - o.allOf = allOf; - o.anyOf = anyOf; - o.default_ = default_; - o.definitions = definitions; - o.dependencies = dependencies; - o.description = description; - o.enum_ = enum_; - o.example = example; - o.exclusiveMaximum = exclusiveMaximum; - o.exclusiveMinimum = exclusiveMinimum; - o.externalDocs = externalDocs; - o.format = format; - o.id = id; - o.items = items; - o.maxItems = maxItems; - o.maxLength = maxLength; - o.maxProperties = maxProperties; - o.maximum = maximum; - o.minItems = minItems; - o.minLength = minLength; - o.minProperties = minProperties; - o.minimum = minimum; - o.multipleOf = multipleOf; - o.not = not; - o.nullable = nullable; - o.oneOf = oneOf; - o.pattern = pattern; - o.patternProperties = patternProperties; - o.properties = properties; - o.required = required; - o.title = title; - o.type = type; - o.uniqueItems = uniqueItems; - o.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; - o.x_kubernetes_int_or_string = x_kubernetes_int_or_string; - o.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; - o.x_kubernetes_list_type = x_kubernetes_list_type; - o.x_kubernetes_map_type = x_kubernetes_map_type; - o.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; - return o; + final var _resultValue = new JSONSchemaPropsPatch(); + _resultValue.$ref = $ref; + _resultValue.$schema = $schema; + _resultValue.additionalItems = additionalItems; + _resultValue.additionalProperties = additionalProperties; + _resultValue.allOf = allOf; + _resultValue.anyOf = anyOf; + _resultValue.default_ = default_; + _resultValue.definitions = definitions; + _resultValue.dependencies = dependencies; + _resultValue.description = description; + _resultValue.enum_ = enum_; + _resultValue.example = example; + _resultValue.exclusiveMaximum = exclusiveMaximum; + _resultValue.exclusiveMinimum = exclusiveMinimum; + _resultValue.externalDocs = externalDocs; + _resultValue.format = format; + _resultValue.id = id; + _resultValue.items = items; + _resultValue.maxItems = maxItems; + _resultValue.maxLength = maxLength; + _resultValue.maxProperties = maxProperties; + _resultValue.maximum = maximum; + _resultValue.minItems = minItems; + _resultValue.minLength = minLength; + _resultValue.minProperties = minProperties; + _resultValue.minimum = minimum; + _resultValue.multipleOf = multipleOf; + _resultValue.not = not; + _resultValue.nullable = nullable; + _resultValue.oneOf = oneOf; + _resultValue.pattern = pattern; + _resultValue.patternProperties = patternProperties; + _resultValue.properties = properties; + _resultValue.required = required; + _resultValue.title = title; + _resultValue.type = type; + _resultValue.uniqueItems = uniqueItems; + _resultValue.x_kubernetes_embedded_resource = x_kubernetes_embedded_resource; + _resultValue.x_kubernetes_int_or_string = x_kubernetes_int_or_string; + _resultValue.x_kubernetes_list_map_keys = x_kubernetes_list_map_keys; + _resultValue.x_kubernetes_list_type = x_kubernetes_list_type; + _resultValue.x_kubernetes_map_type = x_kubernetes_map_type; + _resultValue.x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReference.java index 3230c3f25d..323d25b8aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiextensions.v1beta1.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,31 +88,39 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceReference", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReferencePatch.java index f2ed446cd3..51821bef4c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/ServiceReferencePatch.java @@ -87,31 +87,35 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfig.java index f9bdc633e0..c1ecf8bea2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfig.java @@ -35,7 +35,7 @@ public final class WebhookClientConfig { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfig defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfig build() { - final var o = new WebhookClientConfig(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfig(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfigPatch.java index 76401daa05..127cc2f1b5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiextensions/v1beta1/outputs/WebhookClientConfigPatch.java @@ -35,7 +35,7 @@ public final class WebhookClientConfigPatch { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfigPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfigPatch build() { - final var o = new WebhookClientConfigPatch(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfigPatch(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/APIServiceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/APIServiceListArgs.java index 00b556505f..7bd9da84d6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/APIServiceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/APIServiceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1.inputs.APIServiceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public APIServiceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("APIServiceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceConditionArgs.java index 37e9cc5c91..b92650c655 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public APIServiceConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("APIServiceConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("APIServiceConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceSpecArgs.java index 4aac5d10aa..dc5c93bf6c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/inputs/APIServiceSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1.inputs.ServiceReferenceArgs; import java.lang.Boolean; import java.lang.Integer; @@ -305,8 +306,12 @@ public Builder versionPriority(Integer versionPriority) { } public APIServiceSpecArgs build() { - $.groupPriorityMinimum = Objects.requireNonNull($.groupPriorityMinimum, "expected parameter 'groupPriorityMinimum' to be non-null"); - $.versionPriority = Objects.requireNonNull($.versionPriority, "expected parameter 'versionPriority' to be non-null"); + if ($.groupPriorityMinimum == null) { + throw new MissingRequiredPropertyException("APIServiceSpecArgs", "groupPriorityMinimum"); + } + if ($.versionPriority == null) { + throw new MissingRequiredPropertyException("APIServiceSpecArgs", "versionPriority"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIService.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIService.java index 1fd877ea87..7172c7206b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIService.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIService.java @@ -103,37 +103,42 @@ public Builder(APIService defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable APIServiceSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable APIServiceStatus status) { + this.status = status; return this; } public APIService build() { - final var o = new APIService(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new APIService(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceCondition.java index 72c12566b4..b460c9686f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(APIServiceCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("APIServiceCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("APIServiceCondition", "type"); + } + this.type = type; return this; } public APIServiceCondition build() { - final var o = new APIServiceCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new APIServiceCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceConditionPatch.java index f2480df209..7612060c31 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceConditionPatch.java @@ -100,37 +100,42 @@ public Builder(APIServiceConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public APIServiceConditionPatch build() { - final var o = new APIServiceConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new APIServiceConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpec.java index 3de6bbc5dc..06a29061e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiregistration.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1.outputs.ServiceReference; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,60 @@ public Builder(APIServiceSpec defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder groupPriorityMinimum(Integer groupPriorityMinimum) { - this.groupPriorityMinimum = Objects.requireNonNull(groupPriorityMinimum); + if (groupPriorityMinimum == null) { + throw new MissingRequiredPropertyException("APIServiceSpec", "groupPriorityMinimum"); + } + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @CustomType.Setter public Builder insecureSkipTLSVerify(@Nullable Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versionPriority(Integer versionPriority) { - this.versionPriority = Objects.requireNonNull(versionPriority); + if (versionPriority == null) { + throw new MissingRequiredPropertyException("APIServiceSpec", "versionPriority"); + } + this.versionPriority = versionPriority; return this; } public APIServiceSpec build() { - final var o = new APIServiceSpec(); - o.caBundle = caBundle; - o.group = group; - o.groupPriorityMinimum = groupPriorityMinimum; - o.insecureSkipTLSVerify = insecureSkipTLSVerify; - o.service = service; - o.version = version; - o.versionPriority = versionPriority; - return o; + final var _resultValue = new APIServiceSpec(); + _resultValue.caBundle = caBundle; + _resultValue.group = group; + _resultValue.groupPriorityMinimum = groupPriorityMinimum; + _resultValue.insecureSkipTLSVerify = insecureSkipTLSVerify; + _resultValue.service = service; + _resultValue.version = version; + _resultValue.versionPriority = versionPriority; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpecPatch.java index b22de5a746..26c5c0b7a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceSpecPatch.java @@ -131,49 +131,56 @@ public Builder(APIServiceSpecPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder groupPriorityMinimum(@Nullable Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @CustomType.Setter public Builder insecureSkipTLSVerify(@Nullable Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versionPriority(@Nullable Integer versionPriority) { + this.versionPriority = versionPriority; return this; } public APIServiceSpecPatch build() { - final var o = new APIServiceSpecPatch(); - o.caBundle = caBundle; - o.group = group; - o.groupPriorityMinimum = groupPriorityMinimum; - o.insecureSkipTLSVerify = insecureSkipTLSVerify; - o.service = service; - o.version = version; - o.versionPriority = versionPriority; - return o; + final var _resultValue = new APIServiceSpecPatch(); + _resultValue.caBundle = caBundle; + _resultValue.group = group; + _resultValue.groupPriorityMinimum = groupPriorityMinimum; + _resultValue.insecureSkipTLSVerify = insecureSkipTLSVerify; + _resultValue.service = service; + _resultValue.version = version; + _resultValue.versionPriority = versionPriority; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatus.java index 03ed7bb71b..748f00ad7d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatus.java @@ -44,6 +44,7 @@ public Builder(APIServiceStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(APIServiceCondition... conditions) { return conditions(List.of(conditions)); } public APIServiceStatus build() { - final var o = new APIServiceStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new APIServiceStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatusPatch.java index 348e089457..4da73d26e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/APIServiceStatusPatch.java @@ -44,6 +44,7 @@ public Builder(APIServiceStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(APIServiceConditionPatch... conditions) { return conditions(List.of(conditions)); } public APIServiceStatusPatch build() { - final var o = new APIServiceStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new APIServiceStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReference.java index fc70caaea1..51a969ac6d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReference.java @@ -73,25 +73,28 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReferencePatch.java index 05950532a3..ac4741d239 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1/outputs/ServiceReferencePatch.java @@ -73,25 +73,28 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/APIServiceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/APIServiceListArgs.java index 066de8ac11..8da5437618 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/APIServiceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/APIServiceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1beta1.inputs.APIServiceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder metadata(ListMetaArgs metadata) { public APIServiceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("APIServiceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceConditionArgs.java index b287635bbf..179ca5e5f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public APIServiceConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("APIServiceConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("APIServiceConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceSpecArgs.java index 0d748de08e..6c6f93d8af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/inputs/APIServiceSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1beta1.inputs.ServiceReferenceArgs; import java.lang.Boolean; import java.lang.Integer; @@ -305,9 +306,15 @@ public Builder versionPriority(Integer versionPriority) { } public APIServiceSpecArgs build() { - $.groupPriorityMinimum = Objects.requireNonNull($.groupPriorityMinimum, "expected parameter 'groupPriorityMinimum' to be non-null"); - $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null"); - $.versionPriority = Objects.requireNonNull($.versionPriority, "expected parameter 'versionPriority' to be non-null"); + if ($.groupPriorityMinimum == null) { + throw new MissingRequiredPropertyException("APIServiceSpecArgs", "groupPriorityMinimum"); + } + if ($.service == null) { + throw new MissingRequiredPropertyException("APIServiceSpecArgs", "service"); + } + if ($.versionPriority == null) { + throw new MissingRequiredPropertyException("APIServiceSpecArgs", "versionPriority"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIService.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIService.java index a0a3aa7650..9936022a80 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIService.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIService.java @@ -95,37 +95,42 @@ public Builder(APIService defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable APIServiceSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable APIServiceStatus status) { + this.status = status; return this; } public APIService build() { - final var o = new APIService(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new APIService(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceCondition.java index 1cfd2e5bf6..c47ce32033 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(APIServiceCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("APIServiceCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("APIServiceCondition", "type"); + } + this.type = type; return this; } public APIServiceCondition build() { - final var o = new APIServiceCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new APIServiceCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceConditionPatch.java index 1e54796448..d4eeb5f007 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceConditionPatch.java @@ -100,37 +100,42 @@ public Builder(APIServiceConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public APIServiceConditionPatch build() { - final var o = new APIServiceConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new APIServiceConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpec.java index e157917f86..a1abe57126 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apiregistration.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apiregistration.v1beta1.outputs.ServiceReference; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,62 @@ public Builder(APIServiceSpec defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder groupPriorityMinimum(Integer groupPriorityMinimum) { - this.groupPriorityMinimum = Objects.requireNonNull(groupPriorityMinimum); + if (groupPriorityMinimum == null) { + throw new MissingRequiredPropertyException("APIServiceSpec", "groupPriorityMinimum"); + } + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @CustomType.Setter public Builder insecureSkipTLSVerify(@Nullable Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @CustomType.Setter public Builder service(ServiceReference service) { - this.service = Objects.requireNonNull(service); + if (service == null) { + throw new MissingRequiredPropertyException("APIServiceSpec", "service"); + } + this.service = service; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versionPriority(Integer versionPriority) { - this.versionPriority = Objects.requireNonNull(versionPriority); + if (versionPriority == null) { + throw new MissingRequiredPropertyException("APIServiceSpec", "versionPriority"); + } + this.versionPriority = versionPriority; return this; } public APIServiceSpec build() { - final var o = new APIServiceSpec(); - o.caBundle = caBundle; - o.group = group; - o.groupPriorityMinimum = groupPriorityMinimum; - o.insecureSkipTLSVerify = insecureSkipTLSVerify; - o.service = service; - o.version = version; - o.versionPriority = versionPriority; - return o; + final var _resultValue = new APIServiceSpec(); + _resultValue.caBundle = caBundle; + _resultValue.group = group; + _resultValue.groupPriorityMinimum = groupPriorityMinimum; + _resultValue.insecureSkipTLSVerify = insecureSkipTLSVerify; + _resultValue.service = service; + _resultValue.version = version; + _resultValue.versionPriority = versionPriority; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpecPatch.java index 394b42ccae..81107344f6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceSpecPatch.java @@ -131,49 +131,56 @@ public Builder(APIServiceSpecPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder groupPriorityMinimum(@Nullable Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @CustomType.Setter public Builder insecureSkipTLSVerify(@Nullable Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } @CustomType.Setter public Builder versionPriority(@Nullable Integer versionPriority) { + this.versionPriority = versionPriority; return this; } public APIServiceSpecPatch build() { - final var o = new APIServiceSpecPatch(); - o.caBundle = caBundle; - o.group = group; - o.groupPriorityMinimum = groupPriorityMinimum; - o.insecureSkipTLSVerify = insecureSkipTLSVerify; - o.service = service; - o.version = version; - o.versionPriority = versionPriority; - return o; + final var _resultValue = new APIServiceSpecPatch(); + _resultValue.caBundle = caBundle; + _resultValue.group = group; + _resultValue.groupPriorityMinimum = groupPriorityMinimum; + _resultValue.insecureSkipTLSVerify = insecureSkipTLSVerify; + _resultValue.service = service; + _resultValue.version = version; + _resultValue.versionPriority = versionPriority; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatus.java index 909218f734..9517f2218b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatus.java @@ -44,6 +44,7 @@ public Builder(APIServiceStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(APIServiceCondition... conditions) { return conditions(List.of(conditions)); } public APIServiceStatus build() { - final var o = new APIServiceStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new APIServiceStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatusPatch.java index 599c667668..3837aed624 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/APIServiceStatusPatch.java @@ -44,6 +44,7 @@ public Builder(APIServiceStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(APIServiceConditionPatch... conditions) { return conditions(List.of(conditions)); } public APIServiceStatusPatch build() { - final var o = new APIServiceStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new APIServiceStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReference.java index 2d2c98a78c..3971baff24 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReference.java @@ -73,25 +73,28 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReferencePatch.java index f73de2230f..60c61247e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apiregistration/v1beta1/outputs/ServiceReferencePatch.java @@ -73,25 +73,28 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionArgs.java index 1e147931e1..36daa4852c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -230,7 +231,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionListArgs.java index 1e40618a69..1c7e8c1640 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ControllerRevisionListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.ControllerRevisionArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ControllerRevisionListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ControllerRevisionListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DaemonSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DaemonSetListArgs.java index 38dda9525e..15c1120c87 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DaemonSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DaemonSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.DaemonSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DaemonSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DaemonSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/Deployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/Deployment.java index 5a5500d8af..2b9efa481a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/Deployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/Deployment.java @@ -45,7 +45,8 @@ * * ## Example Usage * ### Create a Deployment with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -71,23 +72,23 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var deployment = new Deployment("deployment", DeploymentArgs.builder()        
+ *         var deployment = new Deployment("deployment", DeploymentArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .labels(Map.of("app", "nginx"))
+ *                 .labels(Map.of("app", "nginx"))
  *                 .build())
  *             .spec(DeploymentSpecArgs.builder()
  *                 .replicas(3)
  *                 .selector(LabelSelectorArgs.builder()
- *                     .matchLabels(Map.of("app", "nginx"))
+ *                     .matchLabels(Map.of("app", "nginx"))
  *                     .build())
  *                 .template(PodTemplateSpecArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .labels(Map.of("app", "nginx"))
+ *                         .labels(Map.of("app", "nginx"))
  *                         .build())
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
- *                             .image("nginx:1.14.2")
- *                             .name("nginx")
+ *                             .image("nginx:1.14.2")
+ *                             .name("nginx")
  *                             .ports(ContainerPortArgs.builder()
  *                                 .containerPort(80)
  *                                 .build())
@@ -99,9 +100,11 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create a Deployment with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -127,24 +130,24 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var deployment = new Deployment("deployment", DeploymentArgs.builder()        
+ *         var deployment = new Deployment("deployment", DeploymentArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .labels(Map.of("app", "nginx"))
- *                 .name("nginx-deployment")
+ *                 .labels(Map.of("app", "nginx"))
+ *                 .name("nginx-deployment")
  *                 .build())
  *             .spec(DeploymentSpecArgs.builder()
  *                 .replicas(3)
  *                 .selector(LabelSelectorArgs.builder()
- *                     .matchLabels(Map.of("app", "nginx"))
+ *                     .matchLabels(Map.of("app", "nginx"))
  *                     .build())
  *                 .template(PodTemplateSpecArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .labels(Map.of("app", "nginx"))
+ *                         .labels(Map.of("app", "nginx"))
  *                         .build())
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
- *                             .image("nginx:1.14.2")
- *                             .name("nginx")
+ *                             .image("nginx:1.14.2")
+ *                             .name("nginx")
  *                             .ports(ContainerPortArgs.builder()
  *                                 .containerPort(80)
  *                                 .build())
@@ -156,7 +159,8 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:apps/v1:Deployment") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DeploymentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DeploymentListArgs.java index 923fb03c57..3a44167483 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DeploymentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/DeploymentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.DeploymentArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DeploymentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DeploymentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ReplicaSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ReplicaSetListArgs.java index c229f3e67c..b7339dd617 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ReplicaSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/ReplicaSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.ReplicaSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ReplicaSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ReplicaSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSet.java index 2b3793db1d..0f0d8f99e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSet.java @@ -40,7 +40,8 @@ * * ## Example Usage * ### Create a StatefulSet with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -69,42 +70,42 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var service = new Service("service", ServiceArgs.builder()        
+ *         var service = new Service("service", ServiceArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .labels(Map.of("app", "nginx"))
+ *                 .labels(Map.of("app", "nginx"))
  *                 .build())
  *             .spec(ServiceSpecArgs.builder()
- *                 .clusterIP("None")
+ *                 .clusterIP("None")
  *                 .ports(ServicePortArgs.builder()
- *                     .name("web")
+ *                     .name("web")
  *                     .port(80)
  *                     .build())
- *                 .selector(Map.of("app", "nginx"))
+ *                 .selector(Map.of("app", "nginx"))
  *                 .build())
  *             .build());
  * 
- *         var statefulset = new StatefulSet("statefulset", StatefulSetArgs.builder()        
+ *         var statefulset = new StatefulSet("statefulset", StatefulSetArgs.builder()        
  *             .spec(StatefulSetSpecArgs.builder()
  *                 .replicas(3)
  *                 .selector(LabelSelectorArgs.builder()
- *                     .matchLabels(Map.of("app", "nginx"))
+ *                     .matchLabels(Map.of("app", "nginx"))
  *                     .build())
- *                 .serviceName(service.metadata().applyValue(metadata -> metadata.name()))
+ *                 .serviceName(service.metadata().applyValue(metadata -> metadata.name()))
  *                 .template(PodTemplateSpecArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .labels(Map.of("app", "nginx"))
+ *                         .labels(Map.of("app", "nginx"))
  *                         .build())
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
- *                             .image("nginx:stable-alpine3.17-slim")
- *                             .name("nginx")
+ *                             .image("nginx:stable-alpine3.17-slim")
+ *                             .name("nginx")
  *                             .ports(ContainerPortArgs.builder()
  *                                 .containerPort(80)
- *                                 .name("web")
+ *                                 .name("web")
  *                                 .build())
  *                             .volumeMounts(VolumeMountArgs.builder()
- *                                 .mountPath("/usr/share/nginx/html")
- *                                 .name("www")
+ *                                 .mountPath("/usr/share/nginx/html")
+ *                                 .name("www")
  *                                 .build())
  *                             .build())
  *                         .terminationGracePeriodSeconds(10)
@@ -112,12 +113,12 @@
  *                     .build())
  *                 .volumeClaimTemplates(PersistentVolumeClaimArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .name("www")
+ *                         .name("www")
  *                         .build())
  *                     .spec(PersistentVolumeClaimSpecArgs.builder()
- *                         .accessModes("ReadWriteOnce")
+ *                         .accessModes("ReadWriteOnce")
  *                         .resources(ResourceRequirementsArgs.builder()
- *                             .requests(Map.of("storage", "1Gi"))
+ *                             .requests(Map.of("storage", "1Gi"))
  *                             .build())
  *                         .build())
  *                     .build())
@@ -126,9 +127,11 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create a StatefulSet with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -157,46 +160,46 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var service = new Service("service", ServiceArgs.builder()        
+ *         var service = new Service("service", ServiceArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .labels(Map.of("app", "nginx"))
- *                 .name("nginx")
+ *                 .labels(Map.of("app", "nginx"))
+ *                 .name("nginx")
  *                 .build())
  *             .spec(ServiceSpecArgs.builder()
- *                 .clusterIP("None")
+ *                 .clusterIP("None")
  *                 .ports(ServicePortArgs.builder()
- *                     .name("web")
+ *                     .name("web")
  *                     .port(80)
  *                     .build())
- *                 .selector(Map.of("app", "nginx"))
+ *                 .selector(Map.of("app", "nginx"))
  *                 .build())
  *             .build());
  * 
- *         var statefulset = new StatefulSet("statefulset", StatefulSetArgs.builder()        
+ *         var statefulset = new StatefulSet("statefulset", StatefulSetArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .name("web")
+ *                 .name("web")
  *                 .build())
  *             .spec(StatefulSetSpecArgs.builder()
  *                 .replicas(3)
  *                 .selector(LabelSelectorArgs.builder()
- *                     .matchLabels(Map.of("app", "nginx"))
+ *                     .matchLabels(Map.of("app", "nginx"))
  *                     .build())
- *                 .serviceName(service.metadata().applyValue(metadata -> metadata.name()))
+ *                 .serviceName(service.metadata().applyValue(metadata -> metadata.name()))
  *                 .template(PodTemplateSpecArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .labels(Map.of("app", "nginx"))
+ *                         .labels(Map.of("app", "nginx"))
  *                         .build())
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
- *                             .image("nginx:stable-alpine3.17-slim")
- *                             .name("nginx")
+ *                             .image("nginx:stable-alpine3.17-slim")
+ *                             .name("nginx")
  *                             .ports(ContainerPortArgs.builder()
  *                                 .containerPort(80)
- *                                 .name("web")
+ *                                 .name("web")
  *                                 .build())
  *                             .volumeMounts(VolumeMountArgs.builder()
- *                                 .mountPath("/usr/share/nginx/html")
- *                                 .name("www")
+ *                                 .mountPath("/usr/share/nginx/html")
+ *                                 .name("www")
  *                                 .build())
  *                             .build())
  *                         .terminationGracePeriodSeconds(10)
@@ -204,12 +207,12 @@
  *                     .build())
  *                 .volumeClaimTemplates(PersistentVolumeClaimArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                         .name("www")
+ *                         .name("www")
  *                         .build())
  *                     .spec(PersistentVolumeClaimSpecArgs.builder()
- *                         .accessModes("ReadWriteOnce")
+ *                         .accessModes("ReadWriteOnce")
  *                         .resources(ResourceRequirementsArgs.builder()
- *                             .requests(Map.of("storage", "1Gi"))
+ *                             .requests(Map.of("storage", "1Gi"))
  *                             .build())
  *                         .build())
  *                     .build())
@@ -218,7 +221,8 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:apps/v1:StatefulSet") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSetListArgs.java index bc89851ac4..f42a9d0fcd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/StatefulSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public StatefulSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StatefulSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ControllerRevisionArgs.java index a1a7b75c3f..f32761d4b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -234,7 +235,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetConditionArgs.java index 602426eb9f..ee971bda7f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public DaemonSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetSpecArgs.java index 32304ca9f4..44340f3fbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.DaemonSetUpdateStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -231,8 +232,12 @@ public Builder updateStrategy(DaemonSetUpdateStrategyArgs updateStrategy) { } public DaemonSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("DaemonSetSpecArgs", "selector"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetStatusArgs.java index dbab11d005..0454d7c4f8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DaemonSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.DaemonSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -425,10 +426,18 @@ public Builder updatedNumberScheduled(Integer updatedNumberScheduled) { } public DaemonSetStatusArgs build() { - $.currentNumberScheduled = Objects.requireNonNull($.currentNumberScheduled, "expected parameter 'currentNumberScheduled' to be non-null"); - $.desiredNumberScheduled = Objects.requireNonNull($.desiredNumberScheduled, "expected parameter 'desiredNumberScheduled' to be non-null"); - $.numberMisscheduled = Objects.requireNonNull($.numberMisscheduled, "expected parameter 'numberMisscheduled' to be non-null"); - $.numberReady = Objects.requireNonNull($.numberReady, "expected parameter 'numberReady' to be non-null"); + if ($.currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "currentNumberScheduled"); + } + if ($.desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "desiredNumberScheduled"); + } + if ($.numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberMisscheduled"); + } + if ($.numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberReady"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentConditionArgs.java index 7ac486be69..29cfd4dadf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public DeploymentConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentSpecArgs.java index 1f1e6c28b6..2dea414f1b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/DeploymentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.DeploymentStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -343,8 +344,12 @@ public Builder template(PodTemplateSpecArgs template) { } public DeploymentSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "selector"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetConditionArgs.java index ddf28fe827..5b733d6a2e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public ReplicaSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetSpecArgs.java index 825f03081e..d7607e9927 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.Integer; @@ -193,7 +194,9 @@ public Builder template(PodTemplateSpecArgs template) { } public ReplicaSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("ReplicaSetSpecArgs", "selector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetStatusArgs.java index 4713c7d4fb..82d423c3a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/ReplicaSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.ReplicaSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -277,7 +278,9 @@ public Builder replicas(Integer replicas) { } public ReplicaSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetConditionArgs.java index b834420c63..1bfa15c70f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public StatefulSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetSpecArgs.java index d8da62f40f..026859fec7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetOrdinalsArgs; import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetPersistentVolumeClaimRetentionPolicyArgs; import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetUpdateStrategyArgs; @@ -468,9 +469,15 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimArgs... volumeClaimTemp } public StatefulSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "selector"); + } + if ($.serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "serviceName"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetStatusArgs.java index 0234cfe497..205c5743b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/inputs/StatefulSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.inputs.StatefulSetConditionArgs; import java.lang.Integer; import java.lang.String; @@ -426,7 +427,9 @@ public Builder updatedReplicas(Integer updatedReplicas) { } public StatefulSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ControllerRevision.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ControllerRevision.java index a2965518dd..d90062a260 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ControllerRevision.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ControllerRevision.java @@ -5,6 +5,7 @@ import com.google.gson.JsonElement; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Integer; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(ControllerRevision defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder data(@Nullable JsonElement data) { + this.data = data; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder revision(Integer revision) { - this.revision = Objects.requireNonNull(revision); + if (revision == null) { + throw new MissingRequiredPropertyException("ControllerRevision", "revision"); + } + this.revision = revision; return this; } public ControllerRevision build() { - final var o = new ControllerRevision(); - o.apiVersion = apiVersion; - o.data = data; - o.kind = kind; - o.metadata = metadata; - o.revision = revision; - return o; + final var _resultValue = new ControllerRevision(); + _resultValue.apiVersion = apiVersion; + _resultValue.data = data; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSet.java index ec02379988..8e363158f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSet.java @@ -103,37 +103,42 @@ public Builder(DaemonSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DaemonSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DaemonSetStatus status) { + this.status = status; return this; } public DaemonSet build() { - final var o = new DaemonSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new DaemonSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetCondition.java index 9624128d3b..ccedec8764 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(DaemonSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "type"); + } + this.type = type; return this; } public DaemonSetCondition build() { - final var o = new DaemonSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetConditionPatch.java index 7e6a9953ee..92c885ce6c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(DaemonSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetConditionPatch build() { - final var o = new DaemonSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpec.java index 688d532a1b..cd1bf258ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.DaemonSetUpdateStrategy; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -103,37 +104,46 @@ public Builder(DaemonSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("DaemonSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpec build() { - final var o = new DaemonSetSpec(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpecPatch.java index de162b565a..7325d9c53c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetSpecPatch.java @@ -103,37 +103,42 @@ public Builder(DaemonSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpecPatch build() { - final var o = new DaemonSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatus.java index df7652bbb6..2445329b6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.DaemonSetCondition; import java.lang.Integer; import java.util.List; @@ -172,11 +173,13 @@ public Builder(DaemonSetStatus defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +188,73 @@ public Builder conditions(DaemonSetCondition... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(Integer currentNumberScheduled) { - this.currentNumberScheduled = Objects.requireNonNull(currentNumberScheduled); + if (currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "currentNumberScheduled"); + } + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(Integer desiredNumberScheduled) { - this.desiredNumberScheduled = Objects.requireNonNull(desiredNumberScheduled); + if (desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "desiredNumberScheduled"); + } + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(Integer numberMisscheduled) { - this.numberMisscheduled = Objects.requireNonNull(numberMisscheduled); + if (numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberMisscheduled"); + } + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(Integer numberReady) { - this.numberReady = Objects.requireNonNull(numberReady); + if (numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberReady"); + } + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatus build() { - final var o = new DaemonSetStatus(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatus(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatusPatch.java index e94eb8015b..1515ad2d04 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetStatusPatch.java @@ -172,11 +172,13 @@ public Builder(DaemonSetStatusPatch defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +187,65 @@ public Builder conditions(DaemonSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(@Nullable Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(@Nullable Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(@Nullable Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(@Nullable Integer numberReady) { + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatusPatch build() { - final var o = new DaemonSetStatusPatch(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatusPatch(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategy.java index 7ff45387cb..3a558d9c89 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategy build() { - final var o = new DaemonSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategyPatch.java index 899284f601..e499e1cc13 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DaemonSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSetPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategyPatch build() { - final var o = new DaemonSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/Deployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/Deployment.java index db96c0a792..a3c13db82c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/Deployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/Deployment.java @@ -103,37 +103,42 @@ public Builder(Deployment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DeploymentSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DeploymentStatus status) { + this.status = status; return this; } public Deployment build() { - final var o = new Deployment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Deployment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentCondition.java index e8d6da984e..fd4f43c1a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.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,43 +115,53 @@ public Builder(DeploymentCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "type"); + } + this.type = type; return this; } public DeploymentCondition build() { - final var o = new DeploymentCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentConditionPatch.java index f547cf587f..aeaadd592f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentConditionPatch.java @@ -114,43 +114,49 @@ public Builder(DeploymentConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentConditionPatch build() { - final var o = new DeploymentConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpec.java index b940459c24..435547742d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.DeploymentStrategy; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -146,55 +147,67 @@ public Builder(DeploymentSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategy strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "template"); + } + this.template = template; return this; } public DeploymentSpec build() { - final var o = new DeploymentSpec(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpecPatch.java index 10ea4be659..e512654b87 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentSpecPatch.java @@ -146,55 +146,63 @@ public Builder(DeploymentSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategyPatch strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public DeploymentSpecPatch build() { - final var o = new DeploymentSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatus.java index 3287d82252..d1cbec22a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatus.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentCondition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatus build() { - final var o = new DeploymentStatus(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatusPatch.java index 3418cef8c2..0f8d03a55f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStatusPatch.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatusPatch build() { - final var o = new DeploymentStatusPatch(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategy.java index 11bd00d493..495e2d7123 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategy.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategy build() { - final var o = new DeploymentStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategyPatch.java index 3e5629a2f2..006e5d5f10 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/DeploymentStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeploymentPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategyPatch build() { - final var o = new DeploymentStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSet.java index 944a12b6a9..013751096d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSet.java @@ -103,37 +103,42 @@ public Builder(ReplicaSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ReplicaSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ReplicaSetStatus status) { + this.status = status; return this; } public ReplicaSet build() { - final var o = new ReplicaSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ReplicaSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetCondition.java index f6a7aa9ebb..9d9f91c0db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(ReplicaSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "type"); + } + this.type = type; return this; } public ReplicaSetCondition build() { - final var o = new ReplicaSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetConditionPatch.java index e827946989..cf29dd1716 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(ReplicaSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ReplicaSetConditionPatch build() { - final var o = new ReplicaSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpec.java index a43af169b8..d663831a54 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.Integer; @@ -88,31 +89,37 @@ public Builder(ReplicaSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("ReplicaSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpec template) { + this.template = template; return this; } public ReplicaSetSpec build() { - final var o = new ReplicaSetSpec(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpecPatch.java index cc250746a0..cb98aad39d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetSpecPatch.java @@ -88,31 +88,35 @@ public Builder(ReplicaSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public ReplicaSetSpecPatch build() { - final var o = new ReplicaSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatus.java index 7d69ec26da..e640f6d747 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.ReplicaSetCondition; import java.lang.Integer; import java.util.List; @@ -116,11 +117,13 @@ public Builder(ReplicaSetStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +132,39 @@ public Builder conditions(ReplicaSetCondition... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatus", "replicas"); + } + this.replicas = replicas; return this; } public ReplicaSetStatus build() { - final var o = new ReplicaSetStatus(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatusPatch.java index 878454af36..b34f427349 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/ReplicaSetStatusPatch.java @@ -116,11 +116,13 @@ public Builder(ReplicaSetStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +131,37 @@ public Builder conditions(ReplicaSetConditionPatch... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } public ReplicaSetStatusPatch build() { - final var o = new ReplicaSetStatusPatch(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSet.java index 132487eeb0..c6596b0934 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSet.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDaemonSet defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSet build() { - final var o = new RollingUpdateDaemonSet(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSet(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSetPatch.java index f5d086823e..2d638a5781 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDaemonSetPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDaemonSetPatch defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSetPatch build() { - final var o = new RollingUpdateDaemonSetPatch(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSetPatch(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeployment.java index fc2d5c3777..dfac259b80 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeployment.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeployment defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeployment build() { - final var o = new RollingUpdateDeployment(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeployment(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeploymentPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeploymentPatch.java index 5ea34ff0b2..7a31c3089f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeploymentPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateDeploymentPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeploymentPatch defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeploymentPatch build() { - final var o = new RollingUpdateDeploymentPatch(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeploymentPatch(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategy.java index 5339ffa67c..dbfe0339f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategy.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateStatefulSetStrategy defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategy build() { - final var o = new RollingUpdateStatefulSetStrategy(); - o.maxUnavailable = maxUnavailable; - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategy(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategyPatch.java index 9b54464d68..bf7f8257b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/RollingUpdateStatefulSetStrategyPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateStatefulSetStrategyPatch defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategyPatch build() { - final var o = new RollingUpdateStatefulSetStrategyPatch(); - o.maxUnavailable = maxUnavailable; - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategyPatch(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSet.java index de51ed41b2..ac73cded1d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSet.java @@ -103,37 +103,42 @@ public Builder(StatefulSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable StatefulSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable StatefulSetStatus status) { + this.status = status; return this; } public StatefulSet build() { - final var o = new StatefulSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new StatefulSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetCondition.java index fc5113252a..5b73c7d4d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(StatefulSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "type"); + } + this.type = type; return this; } public StatefulSetCondition build() { - final var o = new StatefulSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetConditionPatch.java index a70680d550..0aeba8930b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(StatefulSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetConditionPatch build() { - final var o = new StatefulSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinals.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinals.java index 412279edfb..e580ee38fe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinals.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinals.java @@ -50,13 +50,14 @@ public Builder(StatefulSetOrdinals defaults) { @CustomType.Setter public Builder start(@Nullable Integer start) { + this.start = start; return this; } public StatefulSetOrdinals build() { - final var o = new StatefulSetOrdinals(); - o.start = start; - return o; + final var _resultValue = new StatefulSetOrdinals(); + _resultValue.start = start; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinalsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinalsPatch.java index c691d728e3..2d0f6fd1aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinalsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetOrdinalsPatch.java @@ -50,13 +50,14 @@ public Builder(StatefulSetOrdinalsPatch defaults) { @CustomType.Setter public Builder start(@Nullable Integer start) { + this.start = start; return this; } public StatefulSetOrdinalsPatch build() { - final var o = new StatefulSetOrdinalsPatch(); - o.start = start; - return o; + final var _resultValue = new StatefulSetOrdinalsPatch(); + _resultValue.start = start; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java index c0ed6d084f..8c4929637b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -58,19 +58,21 @@ public Builder(StatefulSetPersistentVolumeClaimRetentionPolicy defaults) { @CustomType.Setter public Builder whenDeleted(@Nullable String whenDeleted) { + this.whenDeleted = whenDeleted; return this; } @CustomType.Setter public Builder whenScaled(@Nullable String whenScaled) { + this.whenScaled = whenScaled; return this; } public StatefulSetPersistentVolumeClaimRetentionPolicy build() { - final var o = new StatefulSetPersistentVolumeClaimRetentionPolicy(); - o.whenDeleted = whenDeleted; - o.whenScaled = whenScaled; - return o; + final var _resultValue = new StatefulSetPersistentVolumeClaimRetentionPolicy(); + _resultValue.whenDeleted = whenDeleted; + _resultValue.whenScaled = whenScaled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicyPatch.java index bf86a41fa8..157e99d4a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicyPatch.java @@ -58,19 +58,21 @@ public Builder(StatefulSetPersistentVolumeClaimRetentionPolicyPatch defaults) { @CustomType.Setter public Builder whenDeleted(@Nullable String whenDeleted) { + this.whenDeleted = whenDeleted; return this; } @CustomType.Setter public Builder whenScaled(@Nullable String whenScaled) { + this.whenScaled = whenScaled; return this; } public StatefulSetPersistentVolumeClaimRetentionPolicyPatch build() { - final var o = new StatefulSetPersistentVolumeClaimRetentionPolicyPatch(); - o.whenDeleted = whenDeleted; - o.whenScaled = whenScaled; - return o; + final var _resultValue = new StatefulSetPersistentVolumeClaimRetentionPolicyPatch(); + _resultValue.whenDeleted = whenDeleted; + _resultValue.whenScaled = whenScaled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpec.java index 19e739ca1b..3c4a36e96e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.StatefulSetOrdinals; import com.pulumi.kubernetes.apps.v1.outputs.StatefulSetPersistentVolumeClaimRetentionPolicy; import com.pulumi.kubernetes.apps.v1.outputs.StatefulSetUpdateStrategy; @@ -192,56 +193,73 @@ public Builder(StatefulSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder ordinals(@Nullable StatefulSetOrdinals ordinals) { + this.ordinals = ordinals; return this; } @CustomType.Setter public Builder persistentVolumeClaimRetentionPolicy(@Nullable StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + this.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; return this; } @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(String serviceName) { - this.serviceName = Objects.requireNonNull(serviceName); + if (serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "serviceName"); + } + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -249,19 +267,19 @@ public Builder volumeClaimTemplates(PersistentVolumeClaim... volumeClaimTemplate return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpec build() { - final var o = new StatefulSetSpec(); - o.minReadySeconds = minReadySeconds; - o.ordinals = ordinals; - o.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.ordinals = ordinals; + _resultValue.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpecPatch.java index 331052750b..45cf09fbaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetSpecPatch.java @@ -192,56 +192,67 @@ public Builder(StatefulSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder ordinals(@Nullable StatefulSetOrdinalsPatch ordinals) { + this.ordinals = ordinals; return this; } @CustomType.Setter public Builder persistentVolumeClaimRetentionPolicy(@Nullable StatefulSetPersistentVolumeClaimRetentionPolicyPatch persistentVolumeClaimRetentionPolicy) { + this.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; return this; } @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -249,19 +260,19 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimPatch... volumeClaimTem return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpecPatch build() { - final var o = new StatefulSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.ordinals = ordinals; - o.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.ordinals = ordinals; + _resultValue.persistentVolumeClaimRetentionPolicy = persistentVolumeClaimRetentionPolicy; + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatus.java index e022be0cc7..65efc6545b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1.outputs.StatefulSetCondition; import java.lang.Integer; import java.lang.String; @@ -173,16 +174,19 @@ public Builder(StatefulSetStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -191,52 +195,61 @@ public Builder conditions(StatefulSetCondition... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatus", "replicas"); + } + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatus build() { - final var o = new StatefulSetStatus(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatusPatch.java index 2cf36d8cfa..181dfcf0be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetStatusPatch.java @@ -173,16 +173,19 @@ public Builder(StatefulSetStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -191,52 +194,59 @@ public Builder conditions(StatefulSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatusPatch build() { - final var o = new StatefulSetStatusPatch(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategy.java index 510d63e588..6c8ff86478 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategy build() { - final var o = new StatefulSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategyPatch.java index 7f295de9aa..184d1cf486 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategyPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategyPatch build() { - final var o = new StatefulSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionArgs.java index bb65385891..e2946da1d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -230,7 +231,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionListArgs.java index 00962e278d..66fedc4a72 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/ControllerRevisionListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.ControllerRevisionArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ControllerRevisionListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ControllerRevisionListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/DeploymentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/DeploymentListArgs.java index 5d75d00908..4aa59a3420 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/DeploymentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/DeploymentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.DeploymentArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DeploymentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DeploymentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/StatefulSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/StatefulSetListArgs.java index ed244475a9..ea8657bcaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/StatefulSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/StatefulSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.StatefulSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder metadata(ListMetaArgs metadata) { public StatefulSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StatefulSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/ControllerRevisionArgs.java index 8d632bd781..48862b7683 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -234,7 +235,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentConditionArgs.java index c158e8d94b..32ede058a1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public DeploymentConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentSpecArgs.java index 4fdd0a0603..7bdd0f082c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/DeploymentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.DeploymentStrategyArgs; import com.pulumi.kubernetes.apps.v1beta1.inputs.RollbackConfigArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; @@ -381,7 +382,9 @@ public Builder template(PodTemplateSpecArgs template) { } public DeploymentSpecArgs build() { - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.template == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetConditionArgs.java index cbe72752b6..03916b7cc6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public StatefulSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetSpecArgs.java index 0fa1311bc6..f4b5a29bf0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.StatefulSetUpdateStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PersistentVolumeClaimArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; @@ -355,8 +356,12 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimArgs... volumeClaimTemp } public StatefulSetSpecArgs build() { - $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "serviceName"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetStatusArgs.java index 7414cfb002..c6710c0ce1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/inputs/StatefulSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.inputs.StatefulSetConditionArgs; import java.lang.Integer; import java.lang.String; @@ -389,7 +390,9 @@ public Builder updatedReplicas(Integer updatedReplicas) { } public StatefulSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/ControllerRevision.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/ControllerRevision.java index 73cc628f6d..7074851526 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/ControllerRevision.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/ControllerRevision.java @@ -5,6 +5,7 @@ import com.google.gson.JsonElement; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Integer; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(ControllerRevision defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder data(@Nullable JsonElement data) { + this.data = data; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder revision(Integer revision) { - this.revision = Objects.requireNonNull(revision); + if (revision == null) { + throw new MissingRequiredPropertyException("ControllerRevision", "revision"); + } + this.revision = revision; return this; } public ControllerRevision build() { - final var o = new ControllerRevision(); - o.apiVersion = apiVersion; - o.data = data; - o.kind = kind; - o.metadata = metadata; - o.revision = revision; - return o; + final var _resultValue = new ControllerRevision(); + _resultValue.apiVersion = apiVersion; + _resultValue.data = data; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/Deployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/Deployment.java index ff920dd777..ae70ed572e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/Deployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/Deployment.java @@ -103,37 +103,42 @@ public Builder(Deployment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DeploymentSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DeploymentStatus status) { + this.status = status; return this; } public Deployment build() { - final var o = new Deployment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Deployment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentCondition.java index f86b70982f..35ed1c346a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta1.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,43 +115,53 @@ public Builder(DeploymentCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "type"); + } + this.type = type; return this; } public DeploymentCondition build() { - final var o = new DeploymentCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentConditionPatch.java index 99a37bc46b..90d651c206 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentConditionPatch.java @@ -114,43 +114,49 @@ public Builder(DeploymentConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentConditionPatch build() { - final var o = new DeploymentConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpec.java index 85d24e298e..57f37a1e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.outputs.DeploymentStrategy; import com.pulumi.kubernetes.apps.v1beta1.outputs.RollbackConfig; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; @@ -161,61 +162,72 @@ public Builder(DeploymentSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder rollbackTo(@Nullable RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategy strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "template"); + } + this.template = template; return this; } public DeploymentSpec build() { - final var o = new DeploymentSpec(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.rollbackTo = rollbackTo; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.rollbackTo = rollbackTo; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpecPatch.java index 2a01c5b0b2..98237132cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentSpecPatch.java @@ -161,61 +161,70 @@ public Builder(DeploymentSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder rollbackTo(@Nullable RollbackConfigPatch rollbackTo) { + this.rollbackTo = rollbackTo; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategyPatch strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public DeploymentSpecPatch build() { - final var o = new DeploymentSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.rollbackTo = rollbackTo; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.rollbackTo = rollbackTo; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatus.java index 5f8ada1268..edcdf5574e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatus.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentCondition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatus build() { - final var o = new DeploymentStatus(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatusPatch.java index 5617255504..5db0fdce99 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStatusPatch.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatusPatch build() { - final var o = new DeploymentStatusPatch(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategy.java index 5c3aa31ac8..1d01e4b2f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategy.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategy build() { - final var o = new DeploymentStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategyPatch.java index fc098c9693..9b77f5e83a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/DeploymentStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeploymentPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategyPatch build() { - final var o = new DeploymentStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfig.java index 82faf29c80..58f2aa23df 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfig.java @@ -44,13 +44,14 @@ public Builder(RollbackConfig defaults) { @CustomType.Setter public Builder revision(@Nullable Integer revision) { + this.revision = revision; return this; } public RollbackConfig build() { - final var o = new RollbackConfig(); - o.revision = revision; - return o; + final var _resultValue = new RollbackConfig(); + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfigPatch.java index feb71f9401..e4027cc213 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollbackConfigPatch.java @@ -44,13 +44,14 @@ public Builder(RollbackConfigPatch defaults) { @CustomType.Setter public Builder revision(@Nullable Integer revision) { + this.revision = revision; return this; } public RollbackConfigPatch build() { - final var o = new RollbackConfigPatch(); - o.revision = revision; - return o; + final var _resultValue = new RollbackConfigPatch(); + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeployment.java index 87580e14f4..bf3c3a8fe9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeployment.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeployment defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeployment build() { - final var o = new RollingUpdateDeployment(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeployment(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeploymentPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeploymentPatch.java index 9a5a4738ac..1ac6246055 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeploymentPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateDeploymentPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeploymentPatch defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeploymentPatch build() { - final var o = new RollingUpdateDeploymentPatch(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeploymentPatch(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategy.java index 79a92e7efe..c4d498ef9b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategy.java @@ -44,13 +44,14 @@ public Builder(RollingUpdateStatefulSetStrategy defaults) { @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategy build() { - final var o = new RollingUpdateStatefulSetStrategy(); - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategy(); + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategyPatch.java index 1a514c70ca..e347d18743 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/RollingUpdateStatefulSetStrategyPatch.java @@ -44,13 +44,14 @@ public Builder(RollingUpdateStatefulSetStrategyPatch defaults) { @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategyPatch build() { - final var o = new RollingUpdateStatefulSetStrategyPatch(); - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategyPatch(); + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSet.java index 7c1bc04334..cedf8ae164 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSet.java @@ -95,37 +95,42 @@ public Builder(StatefulSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable StatefulSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable StatefulSetStatus status) { + this.status = status; return this; } public StatefulSet build() { - final var o = new StatefulSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new StatefulSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetCondition.java index 003ed12485..d2f9cd41b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(StatefulSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "type"); + } + this.type = type; return this; } public StatefulSetCondition build() { - final var o = new StatefulSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetConditionPatch.java index 0a0a648e19..f1c6e35836 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(StatefulSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetConditionPatch build() { - final var o = new StatefulSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpec.java index eef0e6e8b1..8bc9909733 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.outputs.StatefulSetUpdateStrategy; import com.pulumi.kubernetes.core.v1.outputs.PersistentVolumeClaim; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; @@ -148,41 +149,53 @@ public Builder(StatefulSetSpec defaults) { @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(String serviceName) { - this.serviceName = Objects.requireNonNull(serviceName); + if (serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "serviceName"); + } + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -190,16 +203,16 @@ public Builder volumeClaimTemplates(PersistentVolumeClaim... volumeClaimTemplate return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpec build() { - final var o = new StatefulSetSpec(); - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpec(); + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpecPatch.java index fe7b3b3eec..f2ed2352ed 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetSpecPatch.java @@ -148,41 +148,49 @@ public Builder(StatefulSetSpecPatch defaults) { @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -190,16 +198,16 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimPatch... volumeClaimTem return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpecPatch build() { - final var o = new StatefulSetSpecPatch(); - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpecPatch(); + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatus.java index 7fc83b2a12..352ef19472 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta1.outputs.StatefulSetCondition; import java.lang.Integer; import java.lang.String; @@ -159,11 +160,13 @@ public Builder(StatefulSetStatus defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -172,51 +175,60 @@ public Builder conditions(StatefulSetCondition... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatus", "replicas"); + } + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatus build() { - final var o = new StatefulSetStatus(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatus(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatusPatch.java index 5476009f7f..4322c3103c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetStatusPatch.java @@ -159,11 +159,13 @@ public Builder(StatefulSetStatusPatch defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -172,51 +174,58 @@ public Builder conditions(StatefulSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatusPatch build() { - final var o = new StatefulSetStatusPatch(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatusPatch(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategy.java index 689b214a25..88bacd01d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategy build() { - final var o = new StatefulSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategyPatch.java index 7cfdbde6c0..c7c0ef8086 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta1/outputs/StatefulSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategyPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategyPatch build() { - final var o = new StatefulSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionArgs.java index 45f3bcc803..30323145a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -230,7 +231,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionListArgs.java index 7bafe328d2..fdd62631e4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ControllerRevisionListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.ControllerRevisionArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ControllerRevisionListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ControllerRevisionListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DaemonSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DaemonSetListArgs.java index d975bc390c..928af8a205 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DaemonSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DaemonSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.DaemonSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DaemonSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DaemonSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DeploymentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DeploymentListArgs.java index 8018aba54e..e93e2c1b83 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DeploymentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/DeploymentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.DeploymentArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DeploymentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DeploymentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ReplicaSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ReplicaSetListArgs.java index 89959364eb..d1b265d075 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ReplicaSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/ReplicaSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.ReplicaSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ReplicaSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ReplicaSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/StatefulSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/StatefulSetListArgs.java index f25866faf3..c08c2dffdf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/StatefulSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/StatefulSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.StatefulSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder metadata(ListMetaArgs metadata) { public StatefulSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StatefulSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ControllerRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ControllerRevisionArgs.java index 1894527708..e3aea63955 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ControllerRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ControllerRevisionArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Integer; import java.lang.String; @@ -234,7 +235,9 @@ public Builder revision(Integer revision) { public ControllerRevisionArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.revision = Objects.requireNonNull($.revision, "expected parameter 'revision' to be non-null"); + if ($.revision == null) { + throw new MissingRequiredPropertyException("ControllerRevisionArgs", "revision"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetConditionArgs.java index 093bc81663..63cc2432a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public DaemonSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetSpecArgs.java index a3a40a7d9d..e55ab19983 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.DaemonSetUpdateStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -231,8 +232,12 @@ public Builder updateStrategy(DaemonSetUpdateStrategyArgs updateStrategy) { } public DaemonSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("DaemonSetSpecArgs", "selector"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetStatusArgs.java index 1b00a65a42..62ebb264f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DaemonSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.DaemonSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -425,10 +426,18 @@ public Builder updatedNumberScheduled(Integer updatedNumberScheduled) { } public DaemonSetStatusArgs build() { - $.currentNumberScheduled = Objects.requireNonNull($.currentNumberScheduled, "expected parameter 'currentNumberScheduled' to be non-null"); - $.desiredNumberScheduled = Objects.requireNonNull($.desiredNumberScheduled, "expected parameter 'desiredNumberScheduled' to be non-null"); - $.numberMisscheduled = Objects.requireNonNull($.numberMisscheduled, "expected parameter 'numberMisscheduled' to be non-null"); - $.numberReady = Objects.requireNonNull($.numberReady, "expected parameter 'numberReady' to be non-null"); + if ($.currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "currentNumberScheduled"); + } + if ($.desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "desiredNumberScheduled"); + } + if ($.numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberMisscheduled"); + } + if ($.numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberReady"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentConditionArgs.java index 73887b429b..9095210556 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public DeploymentConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentSpecArgs.java index 7f31a6d9b5..0ea4d155bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/DeploymentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.DeploymentStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -343,8 +344,12 @@ public Builder template(PodTemplateSpecArgs template) { } public DeploymentSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "selector"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetConditionArgs.java index bc6561f752..abfc371f4a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public ReplicaSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetSpecArgs.java index d8e9fc6b0b..3c3f3f64d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.Integer; @@ -193,7 +194,9 @@ public Builder template(PodTemplateSpecArgs template) { } public ReplicaSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("ReplicaSetSpecArgs", "selector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetStatusArgs.java index 04bfb136b9..fa9b50de11 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/ReplicaSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.ReplicaSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -277,7 +278,9 @@ public Builder replicas(Integer replicas) { } public ReplicaSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetConditionArgs.java index dad16a47ad..bc3fa3b349 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public StatefulSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("StatefulSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetSpecArgs.java index cf404e8572..f279e0f20f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.StatefulSetUpdateStrategyArgs; import com.pulumi.kubernetes.core.v1.inputs.PersistentVolumeClaimArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; @@ -355,9 +356,15 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimArgs... volumeClaimTemp } public StatefulSetSpecArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); - $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null"); - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "selector"); + } + if ($.serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "serviceName"); + } + if ($.template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetStatusArgs.java index 028a8608eb..6781d28138 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/inputs/StatefulSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.inputs.StatefulSetConditionArgs; import java.lang.Integer; import java.lang.String; @@ -389,7 +390,9 @@ public Builder updatedReplicas(Integer updatedReplicas) { } public StatefulSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ControllerRevision.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ControllerRevision.java index bdf111af45..febf45fa10 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ControllerRevision.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ControllerRevision.java @@ -5,6 +5,7 @@ import com.google.gson.JsonElement; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Integer; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(ControllerRevision defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder data(@Nullable JsonElement data) { + this.data = data; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder revision(Integer revision) { - this.revision = Objects.requireNonNull(revision); + if (revision == null) { + throw new MissingRequiredPropertyException("ControllerRevision", "revision"); + } + this.revision = revision; return this; } public ControllerRevision build() { - final var o = new ControllerRevision(); - o.apiVersion = apiVersion; - o.data = data; - o.kind = kind; - o.metadata = metadata; - o.revision = revision; - return o; + final var _resultValue = new ControllerRevision(); + _resultValue.apiVersion = apiVersion; + _resultValue.data = data; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSet.java index eff7cec791..fcff72737c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSet.java @@ -103,37 +103,42 @@ public Builder(DaemonSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DaemonSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DaemonSetStatus status) { + this.status = status; return this; } public DaemonSet build() { - final var o = new DaemonSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new DaemonSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetCondition.java index 53d489165d..5b26582b87 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(DaemonSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "type"); + } + this.type = type; return this; } public DaemonSetCondition build() { - final var o = new DaemonSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetConditionPatch.java index 342ba51be0..a0bd5e13b2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(DaemonSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetConditionPatch build() { - final var o = new DaemonSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpec.java index 45634f8bfb..d3674526e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.DaemonSetUpdateStrategy; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -103,37 +104,46 @@ public Builder(DaemonSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("DaemonSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpec build() { - final var o = new DaemonSetSpec(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpecPatch.java index 27f92916b5..3d6cd40fa5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetSpecPatch.java @@ -103,37 +103,42 @@ public Builder(DaemonSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpecPatch build() { - final var o = new DaemonSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatus.java index 9cb8b4ccd3..bae216e20b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.DaemonSetCondition; import java.lang.Integer; import java.util.List; @@ -172,11 +173,13 @@ public Builder(DaemonSetStatus defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +188,73 @@ public Builder conditions(DaemonSetCondition... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(Integer currentNumberScheduled) { - this.currentNumberScheduled = Objects.requireNonNull(currentNumberScheduled); + if (currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "currentNumberScheduled"); + } + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(Integer desiredNumberScheduled) { - this.desiredNumberScheduled = Objects.requireNonNull(desiredNumberScheduled); + if (desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "desiredNumberScheduled"); + } + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(Integer numberMisscheduled) { - this.numberMisscheduled = Objects.requireNonNull(numberMisscheduled); + if (numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberMisscheduled"); + } + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(Integer numberReady) { - this.numberReady = Objects.requireNonNull(numberReady); + if (numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberReady"); + } + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatus build() { - final var o = new DaemonSetStatus(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatus(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatusPatch.java index f2a6218023..991caa6bb9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetStatusPatch.java @@ -172,11 +172,13 @@ public Builder(DaemonSetStatusPatch defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +187,65 @@ public Builder conditions(DaemonSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(@Nullable Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(@Nullable Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(@Nullable Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(@Nullable Integer numberReady) { + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatusPatch build() { - final var o = new DaemonSetStatusPatch(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatusPatch(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategy.java index f3ee6353fe..4b3514006c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategy build() { - final var o = new DaemonSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategyPatch.java index eaed7e0566..83e4cd7968 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DaemonSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSetPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategyPatch build() { - final var o = new DaemonSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/Deployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/Deployment.java index 67cdb0a963..f7bbbe26a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/Deployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/Deployment.java @@ -103,37 +103,42 @@ public Builder(Deployment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DeploymentSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DeploymentStatus status) { + this.status = status; return this; } public Deployment build() { - final var o = new Deployment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Deployment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentCondition.java index 5ef455da56..53ce184999 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.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,43 +115,53 @@ public Builder(DeploymentCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "type"); + } + this.type = type; return this; } public DeploymentCondition build() { - final var o = new DeploymentCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentConditionPatch.java index 6213917091..ebd6c6b120 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentConditionPatch.java @@ -114,43 +114,49 @@ public Builder(DeploymentConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentConditionPatch build() { - final var o = new DeploymentConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpec.java index d7e3d696fb..c984e51ef5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.DeploymentStrategy; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -146,55 +147,67 @@ public Builder(DeploymentSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategy strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "template"); + } + this.template = template; return this; } public DeploymentSpec build() { - final var o = new DeploymentSpec(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpecPatch.java index da156c9e8f..581ae6e5e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentSpecPatch.java @@ -146,55 +146,63 @@ public Builder(DeploymentSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategyPatch strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public DeploymentSpecPatch build() { - final var o = new DeploymentSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatus.java index 569a391de5..76e1634b2d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatus.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentCondition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatus build() { - final var o = new DeploymentStatus(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatusPatch.java index 95f355a331..cc87569cfc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStatusPatch.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatusPatch build() { - final var o = new DeploymentStatusPatch(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategy.java index 391c3b90a2..186376291d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategy.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategy build() { - final var o = new DeploymentStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategyPatch.java index 9988550885..b1f85f6cd7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/DeploymentStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeploymentPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategyPatch build() { - final var o = new DeploymentStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSet.java index 4e1c8003b6..101df320c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSet.java @@ -103,37 +103,42 @@ public Builder(ReplicaSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ReplicaSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ReplicaSetStatus status) { + this.status = status; return this; } public ReplicaSet build() { - final var o = new ReplicaSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ReplicaSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetCondition.java index a0737c9df1..2b83e7487f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(ReplicaSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "type"); + } + this.type = type; return this; } public ReplicaSetCondition build() { - final var o = new ReplicaSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetConditionPatch.java index fa57439b87..c100aaf2b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(ReplicaSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ReplicaSetConditionPatch build() { - final var o = new ReplicaSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpec.java index 19bf8822e0..18492c192c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.Integer; @@ -88,31 +89,37 @@ public Builder(ReplicaSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("ReplicaSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpec template) { + this.template = template; return this; } public ReplicaSetSpec build() { - final var o = new ReplicaSetSpec(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpecPatch.java index a697f34da0..7bbd3a4ed6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetSpecPatch.java @@ -88,31 +88,35 @@ public Builder(ReplicaSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public ReplicaSetSpecPatch build() { - final var o = new ReplicaSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatus.java index d5f6552937..0a677b158f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.ReplicaSetCondition; import java.lang.Integer; import java.util.List; @@ -116,11 +117,13 @@ public Builder(ReplicaSetStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +132,39 @@ public Builder conditions(ReplicaSetCondition... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatus", "replicas"); + } + this.replicas = replicas; return this; } public ReplicaSetStatus build() { - final var o = new ReplicaSetStatus(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatusPatch.java index f62440c8d3..c383b5c3e3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/ReplicaSetStatusPatch.java @@ -116,11 +116,13 @@ public Builder(ReplicaSetStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +131,37 @@ public Builder conditions(ReplicaSetConditionPatch... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } public ReplicaSetStatusPatch build() { - final var o = new ReplicaSetStatusPatch(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSet.java index 0b15240266..e5b5e7427b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSet.java @@ -46,13 +46,14 @@ public Builder(RollingUpdateDaemonSet defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSet build() { - final var o = new RollingUpdateDaemonSet(); - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSet(); + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSetPatch.java index 4bb911d7e5..73c35a7ed1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDaemonSetPatch.java @@ -46,13 +46,14 @@ public Builder(RollingUpdateDaemonSetPatch defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSetPatch build() { - final var o = new RollingUpdateDaemonSetPatch(); - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSetPatch(); + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeployment.java index 4334dba88f..695a6bd28b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeployment.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeployment defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeployment build() { - final var o = new RollingUpdateDeployment(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeployment(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeploymentPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeploymentPatch.java index 2218e67ad6..cae3cbfa47 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeploymentPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateDeploymentPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeploymentPatch defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeploymentPatch build() { - final var o = new RollingUpdateDeploymentPatch(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeploymentPatch(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategy.java index 7bfcb4ed28..0dea178356 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategy.java @@ -44,13 +44,14 @@ public Builder(RollingUpdateStatefulSetStrategy defaults) { @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategy build() { - final var o = new RollingUpdateStatefulSetStrategy(); - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategy(); + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategyPatch.java index 007905f8bb..fa9bf8c7f5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/RollingUpdateStatefulSetStrategyPatch.java @@ -44,13 +44,14 @@ public Builder(RollingUpdateStatefulSetStrategyPatch defaults) { @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } public RollingUpdateStatefulSetStrategyPatch build() { - final var o = new RollingUpdateStatefulSetStrategyPatch(); - o.partition = partition; - return o; + final var _resultValue = new RollingUpdateStatefulSetStrategyPatch(); + _resultValue.partition = partition; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSet.java index bf248e9911..76a981bad3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSet.java @@ -95,37 +95,42 @@ public Builder(StatefulSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable StatefulSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable StatefulSetStatus status) { + this.status = status; return this; } public StatefulSet build() { - final var o = new StatefulSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new StatefulSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetCondition.java index e094e5353e..f0e39f8354 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(StatefulSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("StatefulSetCondition", "type"); + } + this.type = type; return this; } public StatefulSetCondition build() { - final var o = new StatefulSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetConditionPatch.java index 4925e987a2..33a97db676 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(StatefulSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetConditionPatch build() { - final var o = new StatefulSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new StatefulSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpec.java index 96edfb648b..29049b975f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.StatefulSetUpdateStrategy; import com.pulumi.kubernetes.core.v1.outputs.PersistentVolumeClaim; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; @@ -148,41 +149,55 @@ public Builder(StatefulSetSpec defaults) { @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(LabelSelector selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "selector"); + } + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(String serviceName) { - this.serviceName = Objects.requireNonNull(serviceName); + if (serviceName == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "serviceName"); + } + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("StatefulSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -190,16 +205,16 @@ public Builder volumeClaimTemplates(PersistentVolumeClaim... volumeClaimTemplate return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpec build() { - final var o = new StatefulSetSpec(); - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpec(); + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpecPatch.java index 19b099b006..61a2959350 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetSpecPatch.java @@ -148,41 +148,49 @@ public Builder(StatefulSetSpecPatch defaults) { @CustomType.Setter public Builder podManagementPolicy(@Nullable String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable StatefulSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder volumeClaimTemplates(@Nullable List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -190,16 +198,16 @@ public Builder volumeClaimTemplates(PersistentVolumeClaimPatch... volumeClaimTem return volumeClaimTemplates(List.of(volumeClaimTemplates)); } public StatefulSetSpecPatch build() { - final var o = new StatefulSetSpecPatch(); - o.podManagementPolicy = podManagementPolicy; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.serviceName = serviceName; - o.template = template; - o.updateStrategy = updateStrategy; - o.volumeClaimTemplates = volumeClaimTemplates; - return o; + final var _resultValue = new StatefulSetSpecPatch(); + _resultValue.podManagementPolicy = podManagementPolicy; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.serviceName = serviceName; + _resultValue.template = template; + _resultValue.updateStrategy = updateStrategy; + _resultValue.volumeClaimTemplates = volumeClaimTemplates; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatus.java index f9e8743778..a24b6f7ae1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.apps.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.apps.v1beta2.outputs.StatefulSetCondition; import java.lang.Integer; import java.lang.String; @@ -159,11 +160,13 @@ public Builder(StatefulSetStatus defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -172,51 +175,60 @@ public Builder conditions(StatefulSetCondition... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("StatefulSetStatus", "replicas"); + } + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatus build() { - final var o = new StatefulSetStatus(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatus(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatusPatch.java index 090c94c7b4..6a8094fa7a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetStatusPatch.java @@ -159,11 +159,13 @@ public Builder(StatefulSetStatusPatch defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -172,51 +174,58 @@ public Builder conditions(StatefulSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder currentRevision(@Nullable String currentRevision) { + this.currentRevision = currentRevision; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder updateRevision(@Nullable String updateRevision) { + this.updateRevision = updateRevision; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public StatefulSetStatusPatch build() { - final var o = new StatefulSetStatusPatch(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentReplicas = currentReplicas; - o.currentRevision = currentRevision; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.updateRevision = updateRevision; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new StatefulSetStatusPatch(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentReplicas = currentReplicas; + _resultValue.currentRevision = currentRevision; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.updateRevision = updateRevision; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategy.java index 908b29cc15..9b35a48fc0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategy build() { - final var o = new StatefulSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategyPatch.java index fecac46279..4487da454f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1beta2/outputs/StatefulSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(StatefulSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateStatefulSetStrategyPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public StatefulSetUpdateStrategyPatch build() { - final var o = new StatefulSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new StatefulSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/AuditSinkListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/AuditSinkListArgs.java index f434fc01bb..0facf4b768 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/AuditSinkListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/AuditSinkListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.AuditSinkArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -182,7 +183,9 @@ public Builder metadata(ListMetaArgs metadata) { public AuditSinkListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("AuditSinkListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/AuditSinkSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/AuditSinkSpecArgs.java index 3e22f979ca..b18d61fcbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/AuditSinkSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/AuditSinkSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.PolicyArgs; import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder webhook(WebhookArgs webhook) { } public AuditSinkSpecArgs build() { - $.policy = Objects.requireNonNull($.policy, "expected parameter 'policy' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.policy == null) { + throw new MissingRequiredPropertyException("AuditSinkSpecArgs", "policy"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("AuditSinkSpecArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/PolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/PolicyArgs.java index 18706cab01..cb03acc2ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/PolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/PolicyArgs.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; @@ -128,7 +129,9 @@ public Builder stages(String... stages) { } public PolicyArgs build() { - $.level = Objects.requireNonNull($.level, "expected parameter 'level' to be non-null"); + if ($.level == null) { + throw new MissingRequiredPropertyException("PolicyArgs", "level"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/ServiceReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/ServiceReferenceArgs.java index 6141ff8816..1d9c036b41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/ServiceReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/ServiceReferenceArgs.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; @@ -192,8 +193,12 @@ public Builder port(Integer port) { } public ServiceReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceReferenceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookArgs.java index 5340517f70..af70e3a2c2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookClientConfigArgs; import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigArgs; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder throttle(WebhookThrottleConfigArgs throttle) { } public WebhookArgs build() { - $.clientConfig = Objects.requireNonNull($.clientConfig, "expected parameter 'clientConfig' to be non-null"); + if ($.clientConfig == null) { + throw new MissingRequiredPropertyException("WebhookArgs", "clientConfig"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigArgs.java index c90e1ff97c..c24cb0fae7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferenceArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigPatchArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigPatchArgs.java index a6b4452ae5..2014151632 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigPatchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/WebhookClientConfigPatchArgs.java @@ -65,7 +65,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ @Import(name="url") @@ -82,7 +82,7 @@ public Optional> service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional> url() { @@ -172,7 +172,7 @@ public Builder service(ServiceReferencePatchArgs service) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * @@ -193,7 +193,7 @@ public Builder url(@Nullable Output url) { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSink.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSink.java index e2d59d3650..40a6a3aa50 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSink.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSink.java @@ -80,31 +80,35 @@ public Builder(AuditSink defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable AuditSinkSpec spec) { + this.spec = spec; return this; } public AuditSink build() { - final var o = new AuditSink(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new AuditSink(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpec.java index 92d87fb409..db9ec820df 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.auditregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Policy; import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Webhook; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(AuditSinkSpec defaults) { @CustomType.Setter public Builder policy(Policy policy) { - this.policy = Objects.requireNonNull(policy); + if (policy == null) { + throw new MissingRequiredPropertyException("AuditSinkSpec", "policy"); + } + this.policy = policy; return this; } @CustomType.Setter public Builder webhook(Webhook webhook) { - this.webhook = Objects.requireNonNull(webhook); + if (webhook == null) { + throw new MissingRequiredPropertyException("AuditSinkSpec", "webhook"); + } + this.webhook = webhook; return this; } public AuditSinkSpec build() { - final var o = new AuditSinkSpec(); - o.policy = policy; - o.webhook = webhook; - return o; + final var _resultValue = new AuditSinkSpec(); + _resultValue.policy = policy; + _resultValue.webhook = webhook; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpecPatch.java index 9d7907d1f9..a2e8f8dcc4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/AuditSinkSpecPatch.java @@ -59,19 +59,21 @@ public Builder(AuditSinkSpecPatch defaults) { @CustomType.Setter public Builder policy(@Nullable PolicyPatch policy) { + this.policy = policy; return this; } @CustomType.Setter public Builder webhook(@Nullable WebhookPatch webhook) { + this.webhook = webhook; return this; } public AuditSinkSpecPatch build() { - final var o = new AuditSinkSpecPatch(); - o.policy = policy; - o.webhook = webhook; - return o; + final var _resultValue = new AuditSinkSpecPatch(); + _resultValue.policy = policy; + _resultValue.webhook = webhook; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Policy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Policy.java index 591682288b..a1a2dbacae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Policy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Policy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.auditregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -58,11 +59,15 @@ public Builder(Policy defaults) { @CustomType.Setter public Builder level(String level) { - this.level = Objects.requireNonNull(level); + if (level == null) { + throw new MissingRequiredPropertyException("Policy", "level"); + } + this.level = level; return this; } @CustomType.Setter public Builder stages(@Nullable List stages) { + this.stages = stages; return this; } @@ -70,10 +75,10 @@ public Builder stages(String... stages) { return stages(List.of(stages)); } public Policy build() { - final var o = new Policy(); - o.level = level; - o.stages = stages; - return o; + final var _resultValue = new Policy(); + _resultValue.level = level; + _resultValue.stages = stages; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/PolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/PolicyPatch.java index b4ff188ed6..dfba65b05f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/PolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/PolicyPatch.java @@ -59,11 +59,13 @@ public Builder(PolicyPatch defaults) { @CustomType.Setter public Builder level(@Nullable String level) { + this.level = level; return this; } @CustomType.Setter public Builder stages(@Nullable List stages) { + this.stages = stages; return this; } @@ -71,10 +73,10 @@ public Builder stages(String... stages) { return stages(List.of(stages)); } public PolicyPatch build() { - final var o = new PolicyPatch(); - o.level = level; - o.stages = stages; - return o; + final var _resultValue = new PolicyPatch(); + _resultValue.level = level; + _resultValue.stages = stages; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReference.java index 44d3c0706f..74e2285dc4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.auditregistration.v1alpha1.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,31 +88,39 @@ public Builder(ServiceReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceReference", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReference build() { - final var o = new ServiceReference(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReferencePatch.java index 6c6cc6367c..c3376993a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/ServiceReferencePatch.java @@ -87,31 +87,35 @@ public Builder(ServiceReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } public ServiceReferencePatch build() { - final var o = new ServiceReferencePatch(); - o.name = name; - o.namespace = namespace; - o.path = path; - o.port = port; - return o; + final var _resultValue = new ServiceReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.path = path; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Webhook.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Webhook.java index 73030605ee..01c4586a09 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Webhook.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/Webhook.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.auditregistration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.WebhookClientConfig; import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.WebhookThrottleConfig; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(Webhook defaults) { @CustomType.Setter public Builder clientConfig(WebhookClientConfig clientConfig) { - this.clientConfig = Objects.requireNonNull(clientConfig); + if (clientConfig == null) { + throw new MissingRequiredPropertyException("Webhook", "clientConfig"); + } + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder throttle(@Nullable WebhookThrottleConfig throttle) { + this.throttle = throttle; return this; } public Webhook build() { - final var o = new Webhook(); - o.clientConfig = clientConfig; - o.throttle = throttle; - return o; + final var _resultValue = new Webhook(); + _resultValue.clientConfig = clientConfig; + _resultValue.throttle = throttle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfig.java index cc8b4139a9..d91d0921f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfig.java @@ -35,7 +35,7 @@ public final class WebhookClientConfig { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfig defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReference service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfig build() { - final var o = new WebhookClientConfig(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfig(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfigPatch.java index 06db8c646b..bd9e37d4f9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookClientConfigPatch.java @@ -35,7 +35,7 @@ public final class WebhookClientConfigPatch { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ private @Nullable String url; @@ -68,7 +68,7 @@ public Optional service() { * * A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. * - * Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + * Attempting to use a user or basic auth e.g. "user:password{@literal @}" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. * */ public Optional url() { @@ -97,25 +97,28 @@ public Builder(WebhookClientConfigPatch defaults) { @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder service(@Nullable ServiceReferencePatch service) { + this.service = service; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } public WebhookClientConfigPatch build() { - final var o = new WebhookClientConfigPatch(); - o.caBundle = caBundle; - o.service = service; - o.url = url; - return o; + final var _resultValue = new WebhookClientConfigPatch(); + _resultValue.caBundle = caBundle; + _resultValue.service = service; + _resultValue.url = url; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookPatch.java index bc45e8d461..99dfd6855d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookPatch.java @@ -59,19 +59,21 @@ public Builder(WebhookPatch defaults) { @CustomType.Setter public Builder clientConfig(@Nullable WebhookClientConfigPatch clientConfig) { + this.clientConfig = clientConfig; return this; } @CustomType.Setter public Builder throttle(@Nullable WebhookThrottleConfigPatch throttle) { + this.throttle = throttle; return this; } public WebhookPatch build() { - final var o = new WebhookPatch(); - o.clientConfig = clientConfig; - o.throttle = throttle; - return o; + final var _resultValue = new WebhookPatch(); + _resultValue.clientConfig = clientConfig; + _resultValue.throttle = throttle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfig.java index a9e4409e04..b8350b84f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfig.java @@ -58,19 +58,21 @@ public Builder(WebhookThrottleConfig defaults) { @CustomType.Setter public Builder burst(@Nullable Integer burst) { + this.burst = burst; return this; } @CustomType.Setter public Builder qps(@Nullable Integer qps) { + this.qps = qps; return this; } public WebhookThrottleConfig build() { - final var o = new WebhookThrottleConfig(); - o.burst = burst; - o.qps = qps; - return o; + final var _resultValue = new WebhookThrottleConfig(); + _resultValue.burst = burst; + _resultValue.qps = qps; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfigPatch.java index 323d768a9a..2885ded3d6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/outputs/WebhookThrottleConfigPatch.java @@ -58,19 +58,21 @@ public Builder(WebhookThrottleConfigPatch defaults) { @CustomType.Setter public Builder burst(@Nullable Integer burst) { + this.burst = burst; return this; } @CustomType.Setter public Builder qps(@Nullable Integer qps) { + this.qps = qps; return this; } public WebhookThrottleConfigPatch build() { - final var o = new WebhookThrottleConfigPatch(); - o.burst = burst; - o.qps = qps; - return o; + final var _resultValue = new WebhookThrottleConfigPatch(); + _resultValue.burst = burst; + _resultValue.qps = qps; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/HorizontalPodAutoscalerListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/HorizontalPodAutoscalerListArgs.java index 299210a41d..62349c2e40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/HorizontalPodAutoscalerListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/HorizontalPodAutoscalerListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v1.inputs.HorizontalPodAutoscalerArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public HorizontalPodAutoscalerListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/CrossVersionObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/CrossVersionObjectReferenceArgs.java index 642f318b7e..c03f79b474 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/CrossVersionObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/CrossVersionObjectReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public CrossVersionObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerSpecArgs.java index 7261c85ca0..6aaa9269d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v1.inputs.CrossVersionObjectReferenceArgs; import java.lang.Integer; import java.util.Objects; @@ -192,8 +193,12 @@ public Builder targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercen } public HorizontalPodAutoscalerSpecArgs build() { - $.maxReplicas = Objects.requireNonNull($.maxReplicas, "expected parameter 'maxReplicas' to be non-null"); - $.scaleTargetRef = Objects.requireNonNull($.scaleTargetRef, "expected parameter 'scaleTargetRef' to be non-null"); + if ($.maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "maxReplicas"); + } + if ($.scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "scaleTargetRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerStatusArgs.java index e0cc09ec01..e44007d7cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/inputs/HorizontalPodAutoscalerStatusArgs.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; @@ -229,8 +230,12 @@ public Builder observedGeneration(Integer observedGeneration) { } public HorizontalPodAutoscalerStatusArgs build() { - $.currentReplicas = Objects.requireNonNull($.currentReplicas, "expected parameter 'currentReplicas' to be non-null"); - $.desiredReplicas = Objects.requireNonNull($.desiredReplicas, "expected parameter 'desiredReplicas' to be non-null"); + if ($.currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "currentReplicas"); + } + if ($.desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "desiredReplicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReference.java index c47b933665..21f4503fcc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v1.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,25 +73,32 @@ public Builder(CrossVersionObjectReference defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "name"); + } + this.name = name; return this; } public CrossVersionObjectReference build() { - final var o = new CrossVersionObjectReference(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReferencePatch.java index a8fa2361cc..f1c4950562 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/CrossVersionObjectReferencePatch.java @@ -72,25 +72,28 @@ public Builder(CrossVersionObjectReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public CrossVersionObjectReferencePatch build() { - final var o = new CrossVersionObjectReferencePatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscaler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscaler.java index a4c8aedfef..2abc038a89 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscaler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscaler.java @@ -103,37 +103,42 @@ public Builder(HorizontalPodAutoscaler defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } public HorizontalPodAutoscaler build() { - final var o = new HorizontalPodAutoscaler(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new HorizontalPodAutoscaler(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpec.java index 465d831950..2cd7273343 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v1.outputs.CrossVersionObjectReference; import java.lang.Integer; import java.util.Objects; @@ -87,31 +88,39 @@ public Builder(HorizontalPodAutoscalerSpec defaults) { @CustomType.Setter public Builder maxReplicas(Integer maxReplicas) { - this.maxReplicas = Objects.requireNonNull(maxReplicas); + if (maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "maxReplicas"); + } + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(CrossVersionObjectReference scaleTargetRef) { - this.scaleTargetRef = Objects.requireNonNull(scaleTargetRef); + if (scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "scaleTargetRef"); + } + this.scaleTargetRef = scaleTargetRef; return this; } @CustomType.Setter public Builder targetCPUUtilizationPercentage(@Nullable Integer targetCPUUtilizationPercentage) { + this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return this; } public HorizontalPodAutoscalerSpec build() { - final var o = new HorizontalPodAutoscalerSpec(); - o.maxReplicas = maxReplicas; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - o.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpec(); + _resultValue.maxReplicas = maxReplicas; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + _resultValue.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpecPatch.java index 274a67ae5c..d030db0093 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerSpecPatch.java @@ -87,31 +87,35 @@ public Builder(HorizontalPodAutoscalerSpecPatch defaults) { @CustomType.Setter public Builder maxReplicas(@Nullable Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(@Nullable CrossVersionObjectReferencePatch scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } @CustomType.Setter public Builder targetCPUUtilizationPercentage(@Nullable Integer targetCPUUtilizationPercentage) { + this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return this; } public HorizontalPodAutoscalerSpecPatch build() { - final var o = new HorizontalPodAutoscalerSpecPatch(); - o.maxReplicas = maxReplicas; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - o.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpecPatch(); + _resultValue.maxReplicas = maxReplicas; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + _resultValue.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatus.java index 5b5b846232..23d2dfa4a6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v1.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,37 +102,46 @@ public Builder(HorizontalPodAutoscalerStatus defaults) { @CustomType.Setter public Builder currentCPUUtilizationPercentage(@Nullable Integer currentCPUUtilizationPercentage) { + this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return this; } @CustomType.Setter public Builder currentReplicas(Integer currentReplicas) { - this.currentReplicas = Objects.requireNonNull(currentReplicas); + if (currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "currentReplicas"); + } + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = Objects.requireNonNull(desiredReplicas); + if (desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "desiredReplicas"); + } + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatus build() { - final var o = new HorizontalPodAutoscalerStatus(); - o.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatus(); + _resultValue.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatusPatch.java index a7b03791ba..00ecc0c091 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v1/outputs/HorizontalPodAutoscalerStatusPatch.java @@ -101,37 +101,42 @@ public Builder(HorizontalPodAutoscalerStatusPatch defaults) { @CustomType.Setter public Builder currentCPUUtilizationPercentage(@Nullable Integer currentCPUUtilizationPercentage) { + this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return this; } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(@Nullable Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatusPatch build() { - final var o = new HorizontalPodAutoscalerStatusPatch(); - o.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatusPatch(); + _resultValue.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/HorizontalPodAutoscalerListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/HorizontalPodAutoscalerListArgs.java index d85a42881e..47fcdfc5d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/HorizontalPodAutoscalerListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/HorizontalPodAutoscalerListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.HorizontalPodAutoscalerArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public HorizontalPodAutoscalerListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricSourceArgs.java index 071e3f9a76..5a94ab0cf8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricTargetArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder target(MetricTargetArgs target) { } public ContainerResourceMetricSourceArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "container"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "name"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricStatusArgs.java index 968c648c70..34b4154dd8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ContainerResourceMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder name(String name) { } public ContainerResourceMetricStatusArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "container"); + } + if ($.current == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "current"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/CrossVersionObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/CrossVersionObjectReferenceArgs.java index 80f3bddbe7..8f535ab33c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/CrossVersionObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/CrossVersionObjectReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public CrossVersionObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricSourceArgs.java index 91fd2cd1aa..27f2c4503c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricTargetArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public ExternalMetricSourceArgs build() { - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricStatusArgs.java index 5ea3749a43..d1df568707 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder metric(MetricIdentifierArgs metric) { } public ExternalMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "current"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HPAScalingPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HPAScalingPolicyArgs.java index 0fbdee9640..f4db4cae0d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HPAScalingPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HPAScalingPolicyArgs.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; @@ -153,9 +154,15 @@ public Builder value(Integer value) { } public HPAScalingPolicyArgs build() { - $.periodSeconds = Objects.requireNonNull($.periodSeconds, "expected parameter 'periodSeconds' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.periodSeconds == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "periodSeconds"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerConditionArgs.java index fd14da01d5..11bd59c6dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public HorizontalPodAutoscalerConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerSpecArgs.java index cdb7f91651..12b79a0e7d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.HorizontalPodAutoscalerBehaviorArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricSpecArgs; @@ -242,8 +243,12 @@ public Builder scaleTargetRef(CrossVersionObjectReferenceArgs scaleTargetRef) { } public HorizontalPodAutoscalerSpecArgs build() { - $.maxReplicas = Objects.requireNonNull($.maxReplicas, "expected parameter 'maxReplicas' to be non-null"); - $.scaleTargetRef = Objects.requireNonNull($.scaleTargetRef, "expected parameter 'scaleTargetRef' to be non-null"); + if ($.maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "maxReplicas"); + } + if ($.scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "scaleTargetRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerStatusArgs.java index 3e2f77f415..1938d40040 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/HorizontalPodAutoscalerStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.HorizontalPodAutoscalerConditionArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricStatusArgs; import java.lang.Integer; @@ -289,7 +290,9 @@ public Builder observedGeneration(Integer observedGeneration) { } public HorizontalPodAutoscalerStatusArgs build() { - $.desiredReplicas = Objects.requireNonNull($.desiredReplicas, "expected parameter 'desiredReplicas' to be non-null"); + if ($.desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "desiredReplicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricIdentifierArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricIdentifierArgs.java index 6eec8125ba..a755cbd2f5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricIdentifierArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricIdentifierArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder selector(LabelSelectorArgs selector) { } public MetricIdentifierArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("MetricIdentifierArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricSpecArgs.java index 84b03a4a8c..352e8a3590 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.ContainerResourceMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.ExternalMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.ObjectMetricSourceArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricStatusArgs.java index 99f3c3a7f4..4dfd3281b6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.ContainerResourceMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.ExternalMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.ObjectMetricStatusArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricStatusArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricStatusArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricTargetArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricTargetArgs.java index ee74de71aa..15768be95d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricTargetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/MetricTargetArgs.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; @@ -192,7 +193,9 @@ public Builder value(String value) { } public MetricTargetArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricTargetArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricSourceArgs.java index f20459e715..c85c702631 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricTargetArgs; @@ -154,9 +155,15 @@ public Builder target(MetricTargetArgs target) { } public ObjectMetricSourceArgs build() { - $.describedObject = Objects.requireNonNull($.describedObject, "expected parameter 'describedObject' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "describedObject"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricStatusArgs.java index 578c297fe3..a19bbeb831 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ObjectMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs; @@ -154,9 +155,15 @@ public Builder metric(MetricIdentifierArgs metric) { } public ObjectMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.describedObject = Objects.requireNonNull($.describedObject, "expected parameter 'describedObject' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "current"); + } + if ($.describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "describedObject"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricSourceArgs.java index 06f7ff3654..c0f30e9603 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricTargetArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public PodsMetricSourceArgs build() { - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.metric == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricStatusArgs.java index 529c5336a2..30b1cb15d1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/PodsMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder metric(MetricIdentifierArgs metric) { } public PodsMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "current"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricSourceArgs.java index 17391b410a..3463142f83 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricTargetArgs; import java.lang.String; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public ResourceMetricSourceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSourceArgs", "name"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ResourceMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricStatusArgs.java index 1ec1b64725..3d2528026f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ResourceMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs; import java.lang.String; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder name(String name) { } public ResourceMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "current"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSource.java index 2564066b8a..d027282ea4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTarget; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(ContainerResourceMetricSource defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "target"); + } + this.target = target; return this; } public ContainerResourceMetricSource build() { - final var o = new ContainerResourceMetricSource(); - o.container = container; - o.name = name; - o.target = target; - return o; + final var _resultValue = new ContainerResourceMetricSource(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSourcePatch.java index bf0bf3d5d5..649752109f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricSourcePatch.java @@ -73,25 +73,28 @@ public Builder(ContainerResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ContainerResourceMetricSourcePatch build() { - final var o = new ContainerResourceMetricSourcePatch(); - o.container = container; - o.name = name; - o.target = target; - return o; + final var _resultValue = new ContainerResourceMetricSourcePatch(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatus.java index ae84da816e..a8612b6ab9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatus; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(ContainerResourceMetricStatus defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "name"); + } + this.name = name; return this; } public ContainerResourceMetricStatus build() { - final var o = new ContainerResourceMetricStatus(); - o.container = container; - o.current = current; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatus(); + _resultValue.container = container; + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatusPatch.java index 4f06be95cf..927a96e1d9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ContainerResourceMetricStatusPatch.java @@ -73,25 +73,28 @@ public Builder(ContainerResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ContainerResourceMetricStatusPatch build() { - final var o = new ContainerResourceMetricStatusPatch(); - o.container = container; - o.current = current; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatusPatch(); + _resultValue.container = container; + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReference.java index db1b2cb8a6..4227329ae5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.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,25 +73,32 @@ public Builder(CrossVersionObjectReference defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "name"); + } + this.name = name; return this; } public CrossVersionObjectReference build() { - final var o = new CrossVersionObjectReference(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReferencePatch.java index 743d3e16cf..4875bbc5b1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/CrossVersionObjectReferencePatch.java @@ -72,25 +72,28 @@ public Builder(CrossVersionObjectReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public CrossVersionObjectReferencePatch build() { - final var o = new CrossVersionObjectReferencePatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSource.java index 8be33b7f40..cc5c3b436d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTarget; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ExternalMetricSource defaults) { @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ExternalMetricSource", "target"); + } + this.target = target; return this; } public ExternalMetricSource build() { - final var o = new ExternalMetricSource(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ExternalMetricSource(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSourcePatch.java index 52a93a497c..b21d9f48d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(ExternalMetricSourcePatch defaults) { @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ExternalMetricSourcePatch build() { - final var o = new ExternalMetricSourcePatch(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ExternalMetricSourcePatch(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatus.java index 61dc627eb5..60b0c58cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatus; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ExternalMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "metric"); + } + this.metric = metric; return this; } public ExternalMetricStatus build() { - final var o = new ExternalMetricStatus(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new ExternalMetricStatus(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatusPatch.java index 278d647a8c..d2c0580bbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ExternalMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(ExternalMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public ExternalMetricStatusPatch build() { - final var o = new ExternalMetricStatusPatch(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new ExternalMetricStatusPatch(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicy.java index 6ac806c1de..c88f2afdbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.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,25 +72,34 @@ public Builder(HPAScalingPolicy defaults) { @CustomType.Setter public Builder periodSeconds(Integer periodSeconds) { - this.periodSeconds = Objects.requireNonNull(periodSeconds); + if (periodSeconds == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "periodSeconds"); + } + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "value"); + } + this.value = value; return this; } public HPAScalingPolicy build() { - final var o = new HPAScalingPolicy(); - o.periodSeconds = periodSeconds; - o.type = type; - o.value = value; - return o; + final var _resultValue = new HPAScalingPolicy(); + _resultValue.periodSeconds = periodSeconds; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicyPatch.java index 0861f640f2..2f6313f7ae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingPolicyPatch.java @@ -73,25 +73,28 @@ public Builder(HPAScalingPolicyPatch defaults) { @CustomType.Setter public Builder periodSeconds(@Nullable Integer periodSeconds) { + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable Integer value) { + this.value = value; return this; } public HPAScalingPolicyPatch build() { - final var o = new HPAScalingPolicyPatch(); - o.periodSeconds = periodSeconds; - o.type = type; - o.value = value; - return o; + final var _resultValue = new HPAScalingPolicyPatch(); + _resultValue.periodSeconds = periodSeconds; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRules.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRules.java index 522afb9ac7..709d17e531 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRules.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRules.java @@ -75,6 +75,7 @@ public Builder(HPAScalingRules defaults) { @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -83,20 +84,22 @@ public Builder policies(HPAScalingPolicy... policies) { } @CustomType.Setter public Builder selectPolicy(@Nullable String selectPolicy) { + this.selectPolicy = selectPolicy; return this; } @CustomType.Setter public Builder stabilizationWindowSeconds(@Nullable Integer stabilizationWindowSeconds) { + this.stabilizationWindowSeconds = stabilizationWindowSeconds; return this; } public HPAScalingRules build() { - final var o = new HPAScalingRules(); - o.policies = policies; - o.selectPolicy = selectPolicy; - o.stabilizationWindowSeconds = stabilizationWindowSeconds; - return o; + final var _resultValue = new HPAScalingRules(); + _resultValue.policies = policies; + _resultValue.selectPolicy = selectPolicy; + _resultValue.stabilizationWindowSeconds = stabilizationWindowSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRulesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRulesPatch.java index 9f2908834f..1e03dd6723 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRulesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HPAScalingRulesPatch.java @@ -75,6 +75,7 @@ public Builder(HPAScalingRulesPatch defaults) { @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -83,20 +84,22 @@ public Builder policies(HPAScalingPolicyPatch... policies) { } @CustomType.Setter public Builder selectPolicy(@Nullable String selectPolicy) { + this.selectPolicy = selectPolicy; return this; } @CustomType.Setter public Builder stabilizationWindowSeconds(@Nullable Integer stabilizationWindowSeconds) { + this.stabilizationWindowSeconds = stabilizationWindowSeconds; return this; } public HPAScalingRulesPatch build() { - final var o = new HPAScalingRulesPatch(); - o.policies = policies; - o.selectPolicy = selectPolicy; - o.stabilizationWindowSeconds = stabilizationWindowSeconds; - return o; + final var _resultValue = new HPAScalingRulesPatch(); + _resultValue.policies = policies; + _resultValue.selectPolicy = selectPolicy; + _resultValue.stabilizationWindowSeconds = stabilizationWindowSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscaler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscaler.java index fe53fa8b1e..3193f7effd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscaler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscaler.java @@ -103,37 +103,42 @@ public Builder(HorizontalPodAutoscaler defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } public HorizontalPodAutoscaler build() { - final var o = new HorizontalPodAutoscaler(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new HorizontalPodAutoscaler(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehavior.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehavior.java index 9a235ce188..c0562d8bbc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehavior.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehavior.java @@ -64,19 +64,21 @@ public Builder(HorizontalPodAutoscalerBehavior defaults) { @CustomType.Setter public Builder scaleDown(@Nullable HPAScalingRules scaleDown) { + this.scaleDown = scaleDown; return this; } @CustomType.Setter public Builder scaleUp(@Nullable HPAScalingRules scaleUp) { + this.scaleUp = scaleUp; return this; } public HorizontalPodAutoscalerBehavior build() { - final var o = new HorizontalPodAutoscalerBehavior(); - o.scaleDown = scaleDown; - o.scaleUp = scaleUp; - return o; + final var _resultValue = new HorizontalPodAutoscalerBehavior(); + _resultValue.scaleDown = scaleDown; + _resultValue.scaleUp = scaleUp; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehaviorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehaviorPatch.java index 785451e119..aa81ec84dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehaviorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerBehaviorPatch.java @@ -64,19 +64,21 @@ public Builder(HorizontalPodAutoscalerBehaviorPatch defaults) { @CustomType.Setter public Builder scaleDown(@Nullable HPAScalingRulesPatch scaleDown) { + this.scaleDown = scaleDown; return this; } @CustomType.Setter public Builder scaleUp(@Nullable HPAScalingRulesPatch scaleUp) { + this.scaleUp = scaleUp; return this; } public HorizontalPodAutoscalerBehaviorPatch build() { - final var o = new HorizontalPodAutoscalerBehaviorPatch(); - o.scaleDown = scaleDown; - o.scaleUp = scaleUp; - return o; + final var _resultValue = new HorizontalPodAutoscalerBehaviorPatch(); + _resultValue.scaleDown = scaleDown; + _resultValue.scaleUp = scaleUp; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerCondition.java index 7944a17b61..12f8d2054a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(HorizontalPodAutoscalerCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "type"); + } + this.type = type; return this; } public HorizontalPodAutoscalerCondition build() { - final var o = new HorizontalPodAutoscalerCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerConditionPatch.java index b4be306c4a..3218ce688b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerConditionPatch.java @@ -100,37 +100,42 @@ public Builder(HorizontalPodAutoscalerConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public HorizontalPodAutoscalerConditionPatch build() { - final var o = new HorizontalPodAutoscalerConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpec.java index bb273ecf66..2d3682d859 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2.outputs.HorizontalPodAutoscalerBehavior; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricSpec; @@ -104,16 +105,21 @@ public Builder(HorizontalPodAutoscalerSpec defaults) { @CustomType.Setter public Builder behavior(@Nullable HorizontalPodAutoscalerBehavior behavior) { + this.behavior = behavior; return this; } @CustomType.Setter public Builder maxReplicas(Integer maxReplicas) { - this.maxReplicas = Objects.requireNonNull(maxReplicas); + if (maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "maxReplicas"); + } + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -122,22 +128,26 @@ public Builder metrics(MetricSpec... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(CrossVersionObjectReference scaleTargetRef) { - this.scaleTargetRef = Objects.requireNonNull(scaleTargetRef); + if (scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "scaleTargetRef"); + } + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpec build() { - final var o = new HorizontalPodAutoscalerSpec(); - o.behavior = behavior; - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpec(); + _resultValue.behavior = behavior; + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpecPatch.java index 040ed6ced3..818aa58cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerSpecPatch.java @@ -104,16 +104,19 @@ public Builder(HorizontalPodAutoscalerSpecPatch defaults) { @CustomType.Setter public Builder behavior(@Nullable HorizontalPodAutoscalerBehaviorPatch behavior) { + this.behavior = behavior; return this; } @CustomType.Setter public Builder maxReplicas(@Nullable Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -122,22 +125,24 @@ public Builder metrics(MetricSpecPatch... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(@Nullable CrossVersionObjectReferencePatch scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpecPatch build() { - final var o = new HorizontalPodAutoscalerSpecPatch(); - o.behavior = behavior; - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpecPatch(); + _resultValue.behavior = behavior; + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatus.java index 2ca8e0eedc..41345ecd88 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.HorizontalPodAutoscalerCondition; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricStatus; import java.lang.Integer; @@ -118,6 +119,7 @@ public Builder(HorizontalPodAutoscalerStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -126,6 +128,7 @@ public Builder conditions(HorizontalPodAutoscalerCondition... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +137,39 @@ public Builder currentMetrics(MetricStatus... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = Objects.requireNonNull(desiredReplicas); + if (desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "desiredReplicas"); + } + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatus build() { - final var o = new HorizontalPodAutoscalerStatus(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatus(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatusPatch.java index b6db9245c0..68d142995a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/HorizontalPodAutoscalerStatusPatch.java @@ -118,6 +118,7 @@ public Builder(HorizontalPodAutoscalerStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -126,6 +127,7 @@ public Builder conditions(HorizontalPodAutoscalerConditionPatch... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +136,37 @@ public Builder currentMetrics(MetricStatusPatch... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(@Nullable Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatusPatch build() { - final var o = new HorizontalPodAutoscalerStatusPatch(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifier.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifier.java index 341076433c..1bfeed5a3a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifier.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifier.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(MetricIdentifier defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MetricIdentifier", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public MetricIdentifier build() { - final var o = new MetricIdentifier(); - o.name = name; - o.selector = selector; - return o; + final var _resultValue = new MetricIdentifier(); + _resultValue.name = name; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifierPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifierPatch.java index 8a37813a39..cd4d881073 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifierPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricIdentifierPatch.java @@ -59,19 +59,21 @@ public Builder(MetricIdentifierPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public MetricIdentifierPatch build() { - final var o = new MetricIdentifierPatch(); - o.name = name; - o.selector = selector; - return o; + final var _resultValue = new MetricIdentifierPatch(); + _resultValue.name = name; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpec.java index f3cf4848f0..db9718dbc5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.ContainerResourceMetricSource; import com.pulumi.kubernetes.autoscaling.v2.outputs.ExternalMetricSource; import com.pulumi.kubernetes.autoscaling.v2.outputs.ObjectMetricSource; @@ -119,43 +120,51 @@ public Builder(MetricSpec defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSource containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSource external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSource object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSource pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSource resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricSpec", "type"); + } + this.type = type; return this; } public MetricSpec build() { - final var o = new MetricSpec(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpec(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpecPatch.java index 0bf2a5a130..4497ba8743 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricSpecPatch.java @@ -119,43 +119,49 @@ public Builder(MetricSpecPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSourcePatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSourcePatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSourcePatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSourcePatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSourcePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricSpecPatch build() { - final var o = new MetricSpecPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpecPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatus.java index 6a7165fe59..3e2b359d7f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.ContainerResourceMetricStatus; import com.pulumi.kubernetes.autoscaling.v2.outputs.ExternalMetricStatus; import com.pulumi.kubernetes.autoscaling.v2.outputs.ObjectMetricStatus; @@ -119,43 +120,51 @@ public Builder(MetricStatus defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatus containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatus external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatus object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatus pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatus resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricStatus", "type"); + } + this.type = type; return this; } public MetricStatus build() { - final var o = new MetricStatus(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatus(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatusPatch.java index ca1578bbae..a63c7471ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricStatusPatch.java @@ -119,43 +119,49 @@ public Builder(MetricStatusPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatusPatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatusPatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatusPatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatusPatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatusPatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricStatusPatch build() { - final var o = new MetricStatusPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatusPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTarget.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTarget.java index 03632fc671..74ef612f91 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTarget.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTarget.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.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,31 +88,37 @@ public Builder(MetricTarget defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricTarget", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricTarget build() { - final var o = new MetricTarget(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.type = type; - o.value = value; - return o; + final var _resultValue = new MetricTarget(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTargetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTargetPatch.java index 125e8a548f..e219ecc015 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTargetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricTargetPatch.java @@ -87,31 +87,35 @@ public Builder(MetricTargetPatch defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricTargetPatch build() { - final var o = new MetricTargetPatch(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.type = type; - o.value = value; - return o; + final var _resultValue = new MetricTargetPatch(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatus.java index b9e57fbc35..e407d95865 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatus.java @@ -73,25 +73,28 @@ public Builder(MetricValueStatus defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricValueStatus build() { - final var o = new MetricValueStatus(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.value = value; - return o; + final var _resultValue = new MetricValueStatus(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatusPatch.java index 1ffd7c3f4e..54666e5822 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/MetricValueStatusPatch.java @@ -73,25 +73,28 @@ public Builder(MetricValueStatusPatch defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricValueStatusPatch build() { - final var o = new MetricValueStatusPatch(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.value = value; - return o; + final var _resultValue = new MetricValueStatusPatch(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSource.java index 57dbdc84c7..1b66e57565 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTarget; @@ -72,25 +73,34 @@ public Builder(ObjectMetricSource defaults) { @CustomType.Setter public Builder describedObject(CrossVersionObjectReference describedObject) { - this.describedObject = Objects.requireNonNull(describedObject); + if (describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "describedObject"); + } + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "target"); + } + this.target = target; return this; } public ObjectMetricSource build() { - final var o = new ObjectMetricSource(); - o.describedObject = describedObject; - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ObjectMetricSource(); + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSourcePatch.java index 26a20ab1b2..fab7beac2f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricSourcePatch.java @@ -74,25 +74,28 @@ public Builder(ObjectMetricSourcePatch defaults) { @CustomType.Setter public Builder describedObject(@Nullable CrossVersionObjectReferencePatch describedObject) { + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ObjectMetricSourcePatch build() { - final var o = new ObjectMetricSourcePatch(); - o.describedObject = describedObject; - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ObjectMetricSourcePatch(); + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatus.java index ea6d829dc7..59b3eb87a6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatus; @@ -72,25 +73,34 @@ public Builder(ObjectMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder describedObject(CrossVersionObjectReference describedObject) { - this.describedObject = Objects.requireNonNull(describedObject); + if (describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "describedObject"); + } + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "metric"); + } + this.metric = metric; return this; } public ObjectMetricStatus build() { - final var o = new ObjectMetricStatus(); - o.current = current; - o.describedObject = describedObject; - o.metric = metric; - return o; + final var _resultValue = new ObjectMetricStatus(); + _resultValue.current = current; + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatusPatch.java index a3262c690f..6fb2e9aa2f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ObjectMetricStatusPatch.java @@ -74,25 +74,28 @@ public Builder(ObjectMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder describedObject(@Nullable CrossVersionObjectReferencePatch describedObject) { + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public ObjectMetricStatusPatch build() { - final var o = new ObjectMetricStatusPatch(); - o.current = current; - o.describedObject = describedObject; - o.metric = metric; - return o; + final var _resultValue = new ObjectMetricStatusPatch(); + _resultValue.current = current; + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSource.java index fda9916e7d..0610d3664e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTarget; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(PodsMetricSource defaults) { @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "target"); + } + this.target = target; return this; } public PodsMetricSource build() { - final var o = new PodsMetricSource(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new PodsMetricSource(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSourcePatch.java index 3b50baf17f..f2fd00a12f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(PodsMetricSourcePatch defaults) { @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public PodsMetricSourcePatch build() { - final var o = new PodsMetricSourcePatch(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new PodsMetricSourcePatch(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatus.java index 70f1d35962..fe25be9d76 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatus; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(PodsMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "metric"); + } + this.metric = metric; return this; } public PodsMetricStatus build() { - final var o = new PodsMetricStatus(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new PodsMetricStatus(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatusPatch.java index 328f11a27e..2ab63f9640 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/PodsMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(PodsMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public PodsMetricStatusPatch build() { - final var o = new PodsMetricStatusPatch(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new PodsMetricStatusPatch(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSource.java index c6a1dbe7f9..ee0595112e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTarget; import java.lang.String; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ResourceMetricSource defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ResourceMetricSource", "target"); + } + this.target = target; return this; } public ResourceMetricSource build() { - final var o = new ResourceMetricSource(); - o.name = name; - o.target = target; - return o; + final var _resultValue = new ResourceMetricSource(); + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSourcePatch.java index 38b1085e2b..9719b28648 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(ResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ResourceMetricSourcePatch build() { - final var o = new ResourceMetricSourcePatch(); - o.name = name; - o.target = target; - return o; + final var _resultValue = new ResourceMetricSourcePatch(); + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatus.java index 67f7f29dda..37648a192c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatus; import java.lang.String; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ResourceMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "name"); + } + this.name = name; return this; } public ResourceMetricStatus build() { - final var o = new ResourceMetricStatus(); - o.current = current; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatus(); + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatusPatch.java index a9780ed928..aa2ee78d99 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/outputs/ResourceMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceMetricStatusPatch build() { - final var o = new ResourceMetricStatusPatch(); - o.current = current; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatusPatch(); + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerListArgs.java index 01d157af6c..7ee5e115b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.HorizontalPodAutoscalerArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public HorizontalPodAutoscalerListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricSourceArgs.java index da4013eaf5..eb5f811115 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricSourceArgs.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; @@ -192,8 +193,12 @@ public Builder targetAverageValue(String targetAverageValue) { } public ContainerResourceMetricSourceArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "container"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricStatusArgs.java index 6a1bbada4f..a418169e98 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ContainerResourceMetricStatusArgs.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; @@ -192,9 +193,15 @@ public Builder name(String name) { } public ContainerResourceMetricStatusArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.currentAverageValue = Objects.requireNonNull($.currentAverageValue, "expected parameter 'currentAverageValue' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "container"); + } + if ($.currentAverageValue == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "currentAverageValue"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/CrossVersionObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/CrossVersionObjectReferenceArgs.java index ae5314ed8e..bbbebb62cf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/CrossVersionObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/CrossVersionObjectReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public CrossVersionObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricSourceArgs.java index 72a18ccac0..ab0278ec1e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -192,7 +193,9 @@ public Builder targetValue(String targetValue) { } public ExternalMetricSourceArgs build() { - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); + if ($.metricName == null) { + throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "metricName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricStatusArgs.java index db34747c7c..1ce0d73fe7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ExternalMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -192,8 +193,12 @@ public Builder metricSelector(LabelSelectorArgs metricSelector) { } public ExternalMetricStatusArgs build() { - $.currentValue = Objects.requireNonNull($.currentValue, "expected parameter 'currentValue' to be non-null"); - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); + if ($.currentValue == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "currentValue"); + } + if ($.metricName == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "metricName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerConditionArgs.java index 5c3650df12..7cb97d4da3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public HorizontalPodAutoscalerConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerSpecArgs.java index 09e6413790..5c3242c999 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.MetricSpecArgs; import java.lang.Integer; @@ -204,8 +205,12 @@ public Builder scaleTargetRef(CrossVersionObjectReferenceArgs scaleTargetRef) { } public HorizontalPodAutoscalerSpecArgs build() { - $.maxReplicas = Objects.requireNonNull($.maxReplicas, "expected parameter 'maxReplicas' to be non-null"); - $.scaleTargetRef = Objects.requireNonNull($.scaleTargetRef, "expected parameter 'scaleTargetRef' to be non-null"); + if ($.maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "maxReplicas"); + } + if ($.scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "scaleTargetRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerStatusArgs.java index 05197b20bf..e7f53a3e01 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/HorizontalPodAutoscalerStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.HorizontalPodAutoscalerConditionArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.MetricStatusArgs; import java.lang.Integer; @@ -289,9 +290,15 @@ public Builder observedGeneration(Integer observedGeneration) { } public HorizontalPodAutoscalerStatusArgs build() { - $.conditions = Objects.requireNonNull($.conditions, "expected parameter 'conditions' to be non-null"); - $.currentReplicas = Objects.requireNonNull($.currentReplicas, "expected parameter 'currentReplicas' to be non-null"); - $.desiredReplicas = Objects.requireNonNull($.desiredReplicas, "expected parameter 'desiredReplicas' to be non-null"); + if ($.conditions == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "conditions"); + } + if ($.currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "currentReplicas"); + } + if ($.desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "desiredReplicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricSpecArgs.java index 65c57d5a2c..3dfe65acc3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ContainerResourceMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ExternalMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ObjectMetricSourceArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricStatusArgs.java index cc632f01dd..d4fc16b5b2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/MetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ContainerResourceMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ExternalMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.ObjectMetricStatusArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricStatusArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricStatusArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricSourceArgs.java index d4b5390d9b..9864be4fef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; @@ -230,9 +231,15 @@ public Builder targetValue(String targetValue) { } public ObjectMetricSourceArgs build() { - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); - $.targetValue = Objects.requireNonNull($.targetValue, "expected parameter 'targetValue' to be non-null"); + if ($.metricName == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "metricName"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "target"); + } + if ($.targetValue == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "targetValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricStatusArgs.java index 61eed93f6c..2869538471 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ObjectMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; @@ -230,9 +231,15 @@ public Builder target(CrossVersionObjectReferenceArgs target) { } public ObjectMetricStatusArgs build() { - $.currentValue = Objects.requireNonNull($.currentValue, "expected parameter 'currentValue' to be non-null"); - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.currentValue == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "currentValue"); + } + if ($.metricName == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "metricName"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricSourceArgs.java index 69336e60a8..e8810e9818 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -155,8 +156,12 @@ public Builder targetAverageValue(String targetAverageValue) { } public PodsMetricSourceArgs build() { - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); - $.targetAverageValue = Objects.requireNonNull($.targetAverageValue, "expected parameter 'targetAverageValue' to be non-null"); + if ($.metricName == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "metricName"); + } + if ($.targetAverageValue == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "targetAverageValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricStatusArgs.java index 0192c4404d..9be961ac5b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/PodsMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -155,8 +156,12 @@ public Builder selector(LabelSelectorArgs selector) { } public PodsMetricStatusArgs build() { - $.currentAverageValue = Objects.requireNonNull($.currentAverageValue, "expected parameter 'currentAverageValue' to be non-null"); - $.metricName = Objects.requireNonNull($.metricName, "expected parameter 'metricName' to be non-null"); + if ($.currentAverageValue == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "currentAverageValue"); + } + if ($.metricName == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "metricName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricSourceArgs.java index 83179cf50d..2666f8426f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricSourceArgs.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; @@ -155,7 +156,9 @@ public Builder targetAverageValue(String targetAverageValue) { } public ResourceMetricSourceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSourceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricStatusArgs.java index 73925b24aa..703efadb57 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/inputs/ResourceMetricStatusArgs.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; @@ -155,8 +156,12 @@ public Builder name(String name) { } public ResourceMetricStatusArgs build() { - $.currentAverageValue = Objects.requireNonNull($.currentAverageValue, "expected parameter 'currentAverageValue' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.currentAverageValue == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "currentAverageValue"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSource.java index af16308d91..8e6a60c59c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.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,31 +88,39 @@ public Builder(ContainerResourceMetricSource defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder targetAverageUtilization(@Nullable Integer targetAverageUtilization) { + this.targetAverageUtilization = targetAverageUtilization; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } public ContainerResourceMetricSource build() { - final var o = new ContainerResourceMetricSource(); - o.container = container; - o.name = name; - o.targetAverageUtilization = targetAverageUtilization; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new ContainerResourceMetricSource(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.targetAverageUtilization = targetAverageUtilization; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSourcePatch.java index 3ba3ee8f7e..9d68b19bee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricSourcePatch.java @@ -87,31 +87,35 @@ public Builder(ContainerResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder targetAverageUtilization(@Nullable Integer targetAverageUtilization) { + this.targetAverageUtilization = targetAverageUtilization; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } public ContainerResourceMetricSourcePatch build() { - final var o = new ContainerResourceMetricSourcePatch(); - o.container = container; - o.name = name; - o.targetAverageUtilization = targetAverageUtilization; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new ContainerResourceMetricSourcePatch(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.targetAverageUtilization = targetAverageUtilization; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatus.java index 66fc01b8ec..8f532fd389 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.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,31 +88,41 @@ public Builder(ContainerResourceMetricStatus defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder currentAverageUtilization(@Nullable Integer currentAverageUtilization) { + this.currentAverageUtilization = currentAverageUtilization; return this; } @CustomType.Setter public Builder currentAverageValue(String currentAverageValue) { - this.currentAverageValue = Objects.requireNonNull(currentAverageValue); + if (currentAverageValue == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "currentAverageValue"); + } + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "name"); + } + this.name = name; return this; } public ContainerResourceMetricStatus build() { - final var o = new ContainerResourceMetricStatus(); - o.container = container; - o.currentAverageUtilization = currentAverageUtilization; - o.currentAverageValue = currentAverageValue; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatus(); + _resultValue.container = container; + _resultValue.currentAverageUtilization = currentAverageUtilization; + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatusPatch.java index 6e9a5e16af..c806e3722a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ContainerResourceMetricStatusPatch.java @@ -87,31 +87,35 @@ public Builder(ContainerResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder currentAverageUtilization(@Nullable Integer currentAverageUtilization) { + this.currentAverageUtilization = currentAverageUtilization; return this; } @CustomType.Setter public Builder currentAverageValue(@Nullable String currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ContainerResourceMetricStatusPatch build() { - final var o = new ContainerResourceMetricStatusPatch(); - o.container = container; - o.currentAverageUtilization = currentAverageUtilization; - o.currentAverageValue = currentAverageValue; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatusPatch(); + _resultValue.container = container; + _resultValue.currentAverageUtilization = currentAverageUtilization; + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReference.java index 71895ebac0..d4c809ceb1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.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,25 +73,32 @@ public Builder(CrossVersionObjectReference defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "name"); + } + this.name = name; return this; } public CrossVersionObjectReference build() { - final var o = new CrossVersionObjectReference(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReferencePatch.java index 1131dd4208..9b67ba2d36 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/CrossVersionObjectReferencePatch.java @@ -72,25 +72,28 @@ public Builder(CrossVersionObjectReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public CrossVersionObjectReferencePatch build() { - final var o = new CrossVersionObjectReferencePatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSource.java index e3ad660fe1..1faffb4ad6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -87,31 +88,37 @@ public Builder(ExternalMetricSource defaults) { @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("ExternalMetricSource", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder metricSelector(@Nullable LabelSelector metricSelector) { + this.metricSelector = metricSelector; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } @CustomType.Setter public Builder targetValue(@Nullable String targetValue) { + this.targetValue = targetValue; return this; } public ExternalMetricSource build() { - final var o = new ExternalMetricSource(); - o.metricName = metricName; - o.metricSelector = metricSelector; - o.targetAverageValue = targetAverageValue; - o.targetValue = targetValue; - return o; + final var _resultValue = new ExternalMetricSource(); + _resultValue.metricName = metricName; + _resultValue.metricSelector = metricSelector; + _resultValue.targetAverageValue = targetAverageValue; + _resultValue.targetValue = targetValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSourcePatch.java index a6a15b21a5..fe4fa29ff2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricSourcePatch.java @@ -87,31 +87,35 @@ public Builder(ExternalMetricSourcePatch defaults) { @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder metricSelector(@Nullable LabelSelectorPatch metricSelector) { + this.metricSelector = metricSelector; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } @CustomType.Setter public Builder targetValue(@Nullable String targetValue) { + this.targetValue = targetValue; return this; } public ExternalMetricSourcePatch build() { - final var o = new ExternalMetricSourcePatch(); - o.metricName = metricName; - o.metricSelector = metricSelector; - o.targetAverageValue = targetAverageValue; - o.targetValue = targetValue; - return o; + final var _resultValue = new ExternalMetricSourcePatch(); + _resultValue.metricName = metricName; + _resultValue.metricSelector = metricSelector; + _resultValue.targetAverageValue = targetAverageValue; + _resultValue.targetValue = targetValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatus.java index 9425847d42..2c6e15452c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -87,31 +88,39 @@ public Builder(ExternalMetricStatus defaults) { @CustomType.Setter public Builder currentAverageValue(@Nullable String currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder currentValue(String currentValue) { - this.currentValue = Objects.requireNonNull(currentValue); + if (currentValue == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "currentValue"); + } + this.currentValue = currentValue; return this; } @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder metricSelector(@Nullable LabelSelector metricSelector) { + this.metricSelector = metricSelector; return this; } public ExternalMetricStatus build() { - final var o = new ExternalMetricStatus(); - o.currentAverageValue = currentAverageValue; - o.currentValue = currentValue; - o.metricName = metricName; - o.metricSelector = metricSelector; - return o; + final var _resultValue = new ExternalMetricStatus(); + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.currentValue = currentValue; + _resultValue.metricName = metricName; + _resultValue.metricSelector = metricSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatusPatch.java index 00ca90e0fc..2c148fa98d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ExternalMetricStatusPatch.java @@ -87,31 +87,35 @@ public Builder(ExternalMetricStatusPatch defaults) { @CustomType.Setter public Builder currentAverageValue(@Nullable String currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder currentValue(@Nullable String currentValue) { + this.currentValue = currentValue; return this; } @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder metricSelector(@Nullable LabelSelectorPatch metricSelector) { + this.metricSelector = metricSelector; return this; } public ExternalMetricStatusPatch build() { - final var o = new ExternalMetricStatusPatch(); - o.currentAverageValue = currentAverageValue; - o.currentValue = currentValue; - o.metricName = metricName; - o.metricSelector = metricSelector; - return o; + final var _resultValue = new ExternalMetricStatusPatch(); + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.currentValue = currentValue; + _resultValue.metricName = metricName; + _resultValue.metricSelector = metricSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscaler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscaler.java index 1b8c408e6d..e4b0a1e823 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscaler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscaler.java @@ -103,37 +103,42 @@ public Builder(HorizontalPodAutoscaler defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } public HorizontalPodAutoscaler build() { - final var o = new HorizontalPodAutoscaler(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new HorizontalPodAutoscaler(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerCondition.java index f641e3264b..72d34096ca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(HorizontalPodAutoscalerCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "type"); + } + this.type = type; return this; } public HorizontalPodAutoscalerCondition build() { - final var o = new HorizontalPodAutoscalerCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerConditionPatch.java index 52d860e934..a218268759 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerConditionPatch.java @@ -100,37 +100,42 @@ public Builder(HorizontalPodAutoscalerConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public HorizontalPodAutoscalerConditionPatch build() { - final var o = new HorizontalPodAutoscalerConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpec.java index 83a64a8375..383be6e523 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.MetricSpec; import java.lang.Integer; @@ -89,11 +90,15 @@ public Builder(HorizontalPodAutoscalerSpec defaults) { @CustomType.Setter public Builder maxReplicas(Integer maxReplicas) { - this.maxReplicas = Objects.requireNonNull(maxReplicas); + if (maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "maxReplicas"); + } + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -102,21 +107,25 @@ public Builder metrics(MetricSpec... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(CrossVersionObjectReference scaleTargetRef) { - this.scaleTargetRef = Objects.requireNonNull(scaleTargetRef); + if (scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "scaleTargetRef"); + } + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpec build() { - final var o = new HorizontalPodAutoscalerSpec(); - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpec(); + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpecPatch.java index b85a6613c7..5a72023e8a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerSpecPatch.java @@ -89,11 +89,13 @@ public Builder(HorizontalPodAutoscalerSpecPatch defaults) { @CustomType.Setter public Builder maxReplicas(@Nullable Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -102,21 +104,23 @@ public Builder metrics(MetricSpecPatch... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(@Nullable CrossVersionObjectReferencePatch scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpecPatch build() { - final var o = new HorizontalPodAutoscalerSpecPatch(); - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpecPatch(); + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatus.java index 7ff882728e..85ddcd43b7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.HorizontalPodAutoscalerCondition; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.MetricStatus; import java.lang.Integer; @@ -118,7 +119,10 @@ public Builder(HorizontalPodAutoscalerStatus defaults) { @CustomType.Setter public Builder conditions(List conditions) { - this.conditions = Objects.requireNonNull(conditions); + if (conditions == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "conditions"); + } + this.conditions = conditions; return this; } public Builder conditions(HorizontalPodAutoscalerCondition... conditions) { @@ -126,6 +130,7 @@ public Builder conditions(HorizontalPodAutoscalerCondition... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +139,41 @@ public Builder currentMetrics(MetricStatus... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(Integer currentReplicas) { - this.currentReplicas = Objects.requireNonNull(currentReplicas); + if (currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "currentReplicas"); + } + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = Objects.requireNonNull(desiredReplicas); + if (desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "desiredReplicas"); + } + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatus build() { - final var o = new HorizontalPodAutoscalerStatus(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatus(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatusPatch.java index 81faa7116e..352044cd97 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/HorizontalPodAutoscalerStatusPatch.java @@ -118,6 +118,7 @@ public Builder(HorizontalPodAutoscalerStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -126,6 +127,7 @@ public Builder conditions(HorizontalPodAutoscalerConditionPatch... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +136,37 @@ public Builder currentMetrics(MetricStatusPatch... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(@Nullable Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatusPatch build() { - final var o = new HorizontalPodAutoscalerStatusPatch(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpec.java index 819879a062..ba54f8c8c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ContainerResourceMetricSource; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ExternalMetricSource; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ObjectMetricSource; @@ -119,43 +120,51 @@ public Builder(MetricSpec defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSource containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSource external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSource object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSource pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSource resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricSpec", "type"); + } + this.type = type; return this; } public MetricSpec build() { - final var o = new MetricSpec(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpec(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpecPatch.java index 948cd0e5d5..c73d56885b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpecPatch.java @@ -119,43 +119,49 @@ public Builder(MetricSpecPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSourcePatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSourcePatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSourcePatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSourcePatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSourcePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricSpecPatch build() { - final var o = new MetricSpecPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpecPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatus.java index c3b0ea4e49..f85d0c52c5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ContainerResourceMetricStatus; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ExternalMetricStatus; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ObjectMetricStatus; @@ -119,43 +120,51 @@ public Builder(MetricStatus defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatus containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatus external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatus object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatus pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatus resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricStatus", "type"); + } + this.type = type; return this; } public MetricStatus build() { - final var o = new MetricStatus(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatus(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatusPatch.java index 201749d4b8..47727c7c68 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricStatusPatch.java @@ -119,43 +119,49 @@ public Builder(MetricStatusPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatusPatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatusPatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatusPatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatusPatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatusPatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricStatusPatch build() { - final var o = new MetricStatusPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatusPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSource.java index 3021beeb24..dbf55ff4e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; @@ -102,37 +103,48 @@ public Builder(ObjectMetricSource defaults) { @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder target(CrossVersionObjectReference target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "target"); + } + this.target = target; return this; } @CustomType.Setter public Builder targetValue(String targetValue) { - this.targetValue = Objects.requireNonNull(targetValue); + if (targetValue == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "targetValue"); + } + this.targetValue = targetValue; return this; } public ObjectMetricSource build() { - final var o = new ObjectMetricSource(); - o.averageValue = averageValue; - o.metricName = metricName; - o.selector = selector; - o.target = target; - o.targetValue = targetValue; - return o; + final var _resultValue = new ObjectMetricSource(); + _resultValue.averageValue = averageValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.target = target; + _resultValue.targetValue = targetValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSourcePatch.java index 1f62345228..aee8a8cc3e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricSourcePatch.java @@ -102,37 +102,42 @@ public Builder(ObjectMetricSourcePatch defaults) { @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder target(@Nullable CrossVersionObjectReferencePatch target) { + this.target = target; return this; } @CustomType.Setter public Builder targetValue(@Nullable String targetValue) { + this.targetValue = targetValue; return this; } public ObjectMetricSourcePatch build() { - final var o = new ObjectMetricSourcePatch(); - o.averageValue = averageValue; - o.metricName = metricName; - o.selector = selector; - o.target = target; - o.targetValue = targetValue; - return o; + final var _resultValue = new ObjectMetricSourcePatch(); + _resultValue.averageValue = averageValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.target = target; + _resultValue.targetValue = targetValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatus.java index 737a3027ff..1017928f1e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta1.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; @@ -102,37 +103,48 @@ public Builder(ObjectMetricStatus defaults) { @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder currentValue(String currentValue) { - this.currentValue = Objects.requireNonNull(currentValue); + if (currentValue == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "currentValue"); + } + this.currentValue = currentValue; return this; } @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder target(CrossVersionObjectReference target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "target"); + } + this.target = target; return this; } public ObjectMetricStatus build() { - final var o = new ObjectMetricStatus(); - o.averageValue = averageValue; - o.currentValue = currentValue; - o.metricName = metricName; - o.selector = selector; - o.target = target; - return o; + final var _resultValue = new ObjectMetricStatus(); + _resultValue.averageValue = averageValue; + _resultValue.currentValue = currentValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatusPatch.java index 06bcd1614a..a6a4200c54 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ObjectMetricStatusPatch.java @@ -102,37 +102,42 @@ public Builder(ObjectMetricStatusPatch defaults) { @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder currentValue(@Nullable String currentValue) { + this.currentValue = currentValue; return this; } @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder target(@Nullable CrossVersionObjectReferencePatch target) { + this.target = target; return this; } public ObjectMetricStatusPatch build() { - final var o = new ObjectMetricStatusPatch(); - o.averageValue = averageValue; - o.currentValue = currentValue; - o.metricName = metricName; - o.selector = selector; - o.target = target; - return o; + final var _resultValue = new ObjectMetricStatusPatch(); + _resultValue.averageValue = averageValue; + _resultValue.currentValue = currentValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSource.java index 525868a29a..230cd8ed43 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -73,25 +74,32 @@ public Builder(PodsMetricSource defaults) { @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder targetAverageValue(String targetAverageValue) { - this.targetAverageValue = Objects.requireNonNull(targetAverageValue); + if (targetAverageValue == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "targetAverageValue"); + } + this.targetAverageValue = targetAverageValue; return this; } public PodsMetricSource build() { - final var o = new PodsMetricSource(); - o.metricName = metricName; - o.selector = selector; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new PodsMetricSource(); + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSourcePatch.java index bfe9288ef0..46a0b0d1f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricSourcePatch.java @@ -73,25 +73,28 @@ public Builder(PodsMetricSourcePatch defaults) { @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } public PodsMetricSourcePatch build() { - final var o = new PodsMetricSourcePatch(); - o.metricName = metricName; - o.selector = selector; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new PodsMetricSourcePatch(); + _resultValue.metricName = metricName; + _resultValue.selector = selector; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatus.java index 5f5ee052ca..0b7323fcde 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -73,25 +74,32 @@ public Builder(PodsMetricStatus defaults) { @CustomType.Setter public Builder currentAverageValue(String currentAverageValue) { - this.currentAverageValue = Objects.requireNonNull(currentAverageValue); + if (currentAverageValue == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "currentAverageValue"); + } + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder metricName(String metricName) { - this.metricName = Objects.requireNonNull(metricName); + if (metricName == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "metricName"); + } + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public PodsMetricStatus build() { - final var o = new PodsMetricStatus(); - o.currentAverageValue = currentAverageValue; - o.metricName = metricName; - o.selector = selector; - return o; + final var _resultValue = new PodsMetricStatus(); + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatusPatch.java index 464f28acde..b1a66d8d81 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/PodsMetricStatusPatch.java @@ -73,25 +73,28 @@ public Builder(PodsMetricStatusPatch defaults) { @CustomType.Setter public Builder currentAverageValue(@Nullable String currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder metricName(@Nullable String metricName) { + this.metricName = metricName; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public PodsMetricStatusPatch build() { - final var o = new PodsMetricStatusPatch(); - o.currentAverageValue = currentAverageValue; - o.metricName = metricName; - o.selector = selector; - return o; + final var _resultValue = new PodsMetricStatusPatch(); + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.metricName = metricName; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSource.java index 481ee48ed5..cdcd1a4922 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.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,25 +74,30 @@ public Builder(ResourceMetricSource defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder targetAverageUtilization(@Nullable Integer targetAverageUtilization) { + this.targetAverageUtilization = targetAverageUtilization; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } public ResourceMetricSource build() { - final var o = new ResourceMetricSource(); - o.name = name; - o.targetAverageUtilization = targetAverageUtilization; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new ResourceMetricSource(); + _resultValue.name = name; + _resultValue.targetAverageUtilization = targetAverageUtilization; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSourcePatch.java index e1544e0f93..ce54bfb910 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricSourcePatch.java @@ -73,25 +73,28 @@ public Builder(ResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder targetAverageUtilization(@Nullable Integer targetAverageUtilization) { + this.targetAverageUtilization = targetAverageUtilization; return this; } @CustomType.Setter public Builder targetAverageValue(@Nullable String targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } public ResourceMetricSourcePatch build() { - final var o = new ResourceMetricSourcePatch(); - o.name = name; - o.targetAverageUtilization = targetAverageUtilization; - o.targetAverageValue = targetAverageValue; - return o; + final var _resultValue = new ResourceMetricSourcePatch(); + _resultValue.name = name; + _resultValue.targetAverageUtilization = targetAverageUtilization; + _resultValue.targetAverageValue = targetAverageValue; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatus.java index adabc77869..b565a2acad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta1.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,25 +74,32 @@ public Builder(ResourceMetricStatus defaults) { @CustomType.Setter public Builder currentAverageUtilization(@Nullable Integer currentAverageUtilization) { + this.currentAverageUtilization = currentAverageUtilization; return this; } @CustomType.Setter public Builder currentAverageValue(String currentAverageValue) { - this.currentAverageValue = Objects.requireNonNull(currentAverageValue); + if (currentAverageValue == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "currentAverageValue"); + } + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "name"); + } + this.name = name; return this; } public ResourceMetricStatus build() { - final var o = new ResourceMetricStatus(); - o.currentAverageUtilization = currentAverageUtilization; - o.currentAverageValue = currentAverageValue; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatus(); + _resultValue.currentAverageUtilization = currentAverageUtilization; + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatusPatch.java index cd169405c6..7a81aa066e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/ResourceMetricStatusPatch.java @@ -73,25 +73,28 @@ public Builder(ResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder currentAverageUtilization(@Nullable Integer currentAverageUtilization) { + this.currentAverageUtilization = currentAverageUtilization; return this; } @CustomType.Setter public Builder currentAverageValue(@Nullable String currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceMetricStatusPatch build() { - final var o = new ResourceMetricStatusPatch(); - o.currentAverageUtilization = currentAverageUtilization; - o.currentAverageValue = currentAverageValue; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatusPatch(); + _resultValue.currentAverageUtilization = currentAverageUtilization; + _resultValue.currentAverageValue = currentAverageValue; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerListArgs.java index 178956a453..f020f75ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HorizontalPodAutoscalerArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public HorizontalPodAutoscalerListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricSourceArgs.java index d533b257b6..c3c03d21e4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder target(MetricTargetArgs target) { } public ContainerResourceMetricSourceArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "container"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "name"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricStatusArgs.java index 2fd6f47cf8..f62b9c7dd9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ContainerResourceMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder name(String name) { } public ContainerResourceMetricStatusArgs build() { - $.container = Objects.requireNonNull($.container, "expected parameter 'container' to be non-null"); - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "container"); + } + if ($.current == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "current"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/CrossVersionObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/CrossVersionObjectReferenceArgs.java index eeb238087c..7e1dd014ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/CrossVersionObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/CrossVersionObjectReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public CrossVersionObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricSourceArgs.java index 3721ca7caf..e198b4b54a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public ExternalMetricSourceArgs build() { - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricStatusArgs.java index bfeeffbc01..262a1d0f6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ExternalMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder metric(MetricIdentifierArgs metric) { } public ExternalMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "current"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HPAScalingPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HPAScalingPolicyArgs.java index ad5df19f44..1d36c9fa11 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HPAScalingPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HPAScalingPolicyArgs.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; @@ -153,9 +154,15 @@ public Builder value(Integer value) { } public HPAScalingPolicyArgs build() { - $.periodSeconds = Objects.requireNonNull($.periodSeconds, "expected parameter 'periodSeconds' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.periodSeconds == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "periodSeconds"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicyArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerConditionArgs.java index 8dac2367e3..4d58b8bb6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public HorizontalPodAutoscalerConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerSpecArgs.java index cdbf1ab2a1..061434392a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HorizontalPodAutoscalerBehaviorArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricSpecArgs; @@ -242,8 +243,12 @@ public Builder scaleTargetRef(CrossVersionObjectReferenceArgs scaleTargetRef) { } public HorizontalPodAutoscalerSpecArgs build() { - $.maxReplicas = Objects.requireNonNull($.maxReplicas, "expected parameter 'maxReplicas' to be non-null"); - $.scaleTargetRef = Objects.requireNonNull($.scaleTargetRef, "expected parameter 'scaleTargetRef' to be non-null"); + if ($.maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "maxReplicas"); + } + if ($.scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpecArgs", "scaleTargetRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerStatusArgs.java index dae6ea469d..f98e05ba56 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/HorizontalPodAutoscalerStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HorizontalPodAutoscalerConditionArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricStatusArgs; import java.lang.Integer; @@ -289,9 +290,15 @@ public Builder observedGeneration(Integer observedGeneration) { } public HorizontalPodAutoscalerStatusArgs build() { - $.conditions = Objects.requireNonNull($.conditions, "expected parameter 'conditions' to be non-null"); - $.currentReplicas = Objects.requireNonNull($.currentReplicas, "expected parameter 'currentReplicas' to be non-null"); - $.desiredReplicas = Objects.requireNonNull($.desiredReplicas, "expected parameter 'desiredReplicas' to be non-null"); + if ($.conditions == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "conditions"); + } + if ($.currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "currentReplicas"); + } + if ($.desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatusArgs", "desiredReplicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricIdentifierArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricIdentifierArgs.java index 7023d8ef1d..88ebf16372 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricIdentifierArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricIdentifierArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder selector(LabelSelectorArgs selector) { } public MetricIdentifierArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("MetricIdentifierArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricSpecArgs.java index 7daf54ecd4..921d1a6557 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ContainerResourceMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ExternalMetricSourceArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ObjectMetricSourceArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricStatusArgs.java index b5d6f2151d..94a4ec3329 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ContainerResourceMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ExternalMetricStatusArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.ObjectMetricStatusArgs; @@ -270,7 +271,9 @@ public Builder type(String type) { } public MetricStatusArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricStatusArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricTargetArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricTargetArgs.java index 5b73768ac1..be82c1cb8d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricTargetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/MetricTargetArgs.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; @@ -192,7 +193,9 @@ public Builder value(String value) { } public MetricTargetArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("MetricTargetArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricSourceArgs.java index 1644226a96..a50c739686 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetArgs; @@ -134,9 +135,15 @@ public Builder target(MetricTargetArgs target) { } public ObjectMetricSourceArgs build() { - $.describedObject = Objects.requireNonNull($.describedObject, "expected parameter 'describedObject' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "describedObject"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricStatusArgs.java index 35604bbeab..f2db4d126f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ObjectMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.CrossVersionObjectReferenceArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs; @@ -134,9 +135,15 @@ public Builder metric(MetricIdentifierArgs metric) { } public ObjectMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.describedObject = Objects.requireNonNull($.describedObject, "expected parameter 'describedObject' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "current"); + } + if ($.describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "describedObject"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricSourceArgs.java index bd5fed9511..575aba8408 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public PodsMetricSourceArgs build() { - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.metric == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "metric"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("PodsMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricStatusArgs.java index bc79705a98..820e3b1098 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/PodsMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder metric(MetricIdentifierArgs metric) { } public PodsMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "current"); + } + if ($.metric == null) { + throw new MissingRequiredPropertyException("PodsMetricStatusArgs", "metric"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricSourceArgs.java index 3918d087e0..5b5eb29504 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricTargetArgs; import java.lang.String; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder target(MetricTargetArgs target) { } public ResourceMetricSourceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSourceArgs", "name"); + } + if ($.target == null) { + throw new MissingRequiredPropertyException("ResourceMetricSourceArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricStatusArgs.java index 4ba1ec4633..2c8675dc29 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/inputs/ResourceMetricStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs; import java.lang.String; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder name(String name) { } public ResourceMetricStatusArgs build() { - $.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.current == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "current"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSource.java index d092b8639a..5a6098d55f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(ContainerResourceMetricSource defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricSource", "target"); + } + this.target = target; return this; } public ContainerResourceMetricSource build() { - final var o = new ContainerResourceMetricSource(); - o.container = container; - o.name = name; - o.target = target; - return o; + final var _resultValue = new ContainerResourceMetricSource(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSourcePatch.java index 97a09871a1..2c3689cfb1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricSourcePatch.java @@ -73,25 +73,28 @@ public Builder(ContainerResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ContainerResourceMetricSourcePatch build() { - final var o = new ContainerResourceMetricSourcePatch(); - o.container = container; - o.name = name; - o.target = target; - return o; + final var _resultValue = new ContainerResourceMetricSourcePatch(); + _resultValue.container = container; + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatus.java index 1d4c9ee029..36dc8dc6c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(ContainerResourceMetricStatus defaults) { @CustomType.Setter public Builder container(String container) { - this.container = Objects.requireNonNull(container); + if (container == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "container"); + } + this.container = container; return this; } @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerResourceMetricStatus", "name"); + } + this.name = name; return this; } public ContainerResourceMetricStatus build() { - final var o = new ContainerResourceMetricStatus(); - o.container = container; - o.current = current; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatus(); + _resultValue.container = container; + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatusPatch.java index 5a03690a40..9a60d32cab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ContainerResourceMetricStatusPatch.java @@ -73,25 +73,28 @@ public Builder(ContainerResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder container(@Nullable String container) { + this.container = container; return this; } @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ContainerResourceMetricStatusPatch build() { - final var o = new ContainerResourceMetricStatusPatch(); - o.container = container; - o.current = current; - o.name = name; - return o; + final var _resultValue = new ContainerResourceMetricStatusPatch(); + _resultValue.container = container; + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReference.java index 5fb108bf04..fefa21451d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.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,25 +73,32 @@ public Builder(CrossVersionObjectReference defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CrossVersionObjectReference", "name"); + } + this.name = name; return this; } public CrossVersionObjectReference build() { - final var o = new CrossVersionObjectReference(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReferencePatch.java index 9b34dfe2b1..e03cd2c7c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/CrossVersionObjectReferencePatch.java @@ -72,25 +72,28 @@ public Builder(CrossVersionObjectReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public CrossVersionObjectReferencePatch build() { - final var o = new CrossVersionObjectReferencePatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new CrossVersionObjectReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSource.java index c3fa6b665c..6ed6873b49 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ExternalMetricSource defaults) { @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ExternalMetricSource", "target"); + } + this.target = target; return this; } public ExternalMetricSource build() { - final var o = new ExternalMetricSource(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ExternalMetricSource(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSourcePatch.java index 3ec52f2415..540ab4a994 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(ExternalMetricSourcePatch defaults) { @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ExternalMetricSourcePatch build() { - final var o = new ExternalMetricSourcePatch(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ExternalMetricSourcePatch(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatus.java index 6ba02e4922..517d39c3b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ExternalMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ExternalMetricStatus", "metric"); + } + this.metric = metric; return this; } public ExternalMetricStatus build() { - final var o = new ExternalMetricStatus(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new ExternalMetricStatus(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatusPatch.java index 5e0b0a97ec..23487f8741 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ExternalMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(ExternalMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public ExternalMetricStatusPatch build() { - final var o = new ExternalMetricStatusPatch(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new ExternalMetricStatusPatch(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicy.java index 4dcaf4eb18..10c2ec854b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.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,25 +72,34 @@ public Builder(HPAScalingPolicy defaults) { @CustomType.Setter public Builder periodSeconds(Integer periodSeconds) { - this.periodSeconds = Objects.requireNonNull(periodSeconds); + if (periodSeconds == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "periodSeconds"); + } + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("HPAScalingPolicy", "value"); + } + this.value = value; return this; } public HPAScalingPolicy build() { - final var o = new HPAScalingPolicy(); - o.periodSeconds = periodSeconds; - o.type = type; - o.value = value; - return o; + final var _resultValue = new HPAScalingPolicy(); + _resultValue.periodSeconds = periodSeconds; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicyPatch.java index f72a0815e1..631d29c1bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingPolicyPatch.java @@ -73,25 +73,28 @@ public Builder(HPAScalingPolicyPatch defaults) { @CustomType.Setter public Builder periodSeconds(@Nullable Integer periodSeconds) { + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable Integer value) { + this.value = value; return this; } public HPAScalingPolicyPatch build() { - final var o = new HPAScalingPolicyPatch(); - o.periodSeconds = periodSeconds; - o.type = type; - o.value = value; - return o; + final var _resultValue = new HPAScalingPolicyPatch(); + _resultValue.periodSeconds = periodSeconds; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRules.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRules.java index 0701bf3bb0..f71d26029d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRules.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRules.java @@ -75,6 +75,7 @@ public Builder(HPAScalingRules defaults) { @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -83,20 +84,22 @@ public Builder policies(HPAScalingPolicy... policies) { } @CustomType.Setter public Builder selectPolicy(@Nullable String selectPolicy) { + this.selectPolicy = selectPolicy; return this; } @CustomType.Setter public Builder stabilizationWindowSeconds(@Nullable Integer stabilizationWindowSeconds) { + this.stabilizationWindowSeconds = stabilizationWindowSeconds; return this; } public HPAScalingRules build() { - final var o = new HPAScalingRules(); - o.policies = policies; - o.selectPolicy = selectPolicy; - o.stabilizationWindowSeconds = stabilizationWindowSeconds; - return o; + final var _resultValue = new HPAScalingRules(); + _resultValue.policies = policies; + _resultValue.selectPolicy = selectPolicy; + _resultValue.stabilizationWindowSeconds = stabilizationWindowSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRulesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRulesPatch.java index 93979d5803..21d5ac4515 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRulesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HPAScalingRulesPatch.java @@ -75,6 +75,7 @@ public Builder(HPAScalingRulesPatch defaults) { @CustomType.Setter public Builder policies(@Nullable List policies) { + this.policies = policies; return this; } @@ -83,20 +84,22 @@ public Builder policies(HPAScalingPolicyPatch... policies) { } @CustomType.Setter public Builder selectPolicy(@Nullable String selectPolicy) { + this.selectPolicy = selectPolicy; return this; } @CustomType.Setter public Builder stabilizationWindowSeconds(@Nullable Integer stabilizationWindowSeconds) { + this.stabilizationWindowSeconds = stabilizationWindowSeconds; return this; } public HPAScalingRulesPatch build() { - final var o = new HPAScalingRulesPatch(); - o.policies = policies; - o.selectPolicy = selectPolicy; - o.stabilizationWindowSeconds = stabilizationWindowSeconds; - return o; + final var _resultValue = new HPAScalingRulesPatch(); + _resultValue.policies = policies; + _resultValue.selectPolicy = selectPolicy; + _resultValue.stabilizationWindowSeconds = stabilizationWindowSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscaler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscaler.java index 05cff71aca..2921ed9538 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscaler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscaler.java @@ -103,37 +103,42 @@ public Builder(HorizontalPodAutoscaler defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } public HorizontalPodAutoscaler build() { - final var o = new HorizontalPodAutoscaler(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new HorizontalPodAutoscaler(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehavior.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehavior.java index 8393892000..9f67a4caef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehavior.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehavior.java @@ -64,19 +64,21 @@ public Builder(HorizontalPodAutoscalerBehavior defaults) { @CustomType.Setter public Builder scaleDown(@Nullable HPAScalingRules scaleDown) { + this.scaleDown = scaleDown; return this; } @CustomType.Setter public Builder scaleUp(@Nullable HPAScalingRules scaleUp) { + this.scaleUp = scaleUp; return this; } public HorizontalPodAutoscalerBehavior build() { - final var o = new HorizontalPodAutoscalerBehavior(); - o.scaleDown = scaleDown; - o.scaleUp = scaleUp; - return o; + final var _resultValue = new HorizontalPodAutoscalerBehavior(); + _resultValue.scaleDown = scaleDown; + _resultValue.scaleUp = scaleUp; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehaviorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehaviorPatch.java index 1928f8c088..cb3eacb133 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehaviorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerBehaviorPatch.java @@ -64,19 +64,21 @@ public Builder(HorizontalPodAutoscalerBehaviorPatch defaults) { @CustomType.Setter public Builder scaleDown(@Nullable HPAScalingRulesPatch scaleDown) { + this.scaleDown = scaleDown; return this; } @CustomType.Setter public Builder scaleUp(@Nullable HPAScalingRulesPatch scaleUp) { + this.scaleUp = scaleUp; return this; } public HorizontalPodAutoscalerBehaviorPatch build() { - final var o = new HorizontalPodAutoscalerBehaviorPatch(); - o.scaleDown = scaleDown; - o.scaleUp = scaleUp; - return o; + final var _resultValue = new HorizontalPodAutoscalerBehaviorPatch(); + _resultValue.scaleDown = scaleDown; + _resultValue.scaleUp = scaleUp; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerCondition.java index bce9a388f0..e876678818 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(HorizontalPodAutoscalerCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerCondition", "type"); + } + this.type = type; return this; } public HorizontalPodAutoscalerCondition build() { - final var o = new HorizontalPodAutoscalerCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerConditionPatch.java index dfe837abd4..ee79016203 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerConditionPatch.java @@ -100,37 +100,42 @@ public Builder(HorizontalPodAutoscalerConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public HorizontalPodAutoscalerConditionPatch build() { - final var o = new HorizontalPodAutoscalerConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new HorizontalPodAutoscalerConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpec.java index 3d93dd4e43..4f4df4e8aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.HorizontalPodAutoscalerBehavior; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricSpec; @@ -104,16 +105,21 @@ public Builder(HorizontalPodAutoscalerSpec defaults) { @CustomType.Setter public Builder behavior(@Nullable HorizontalPodAutoscalerBehavior behavior) { + this.behavior = behavior; return this; } @CustomType.Setter public Builder maxReplicas(Integer maxReplicas) { - this.maxReplicas = Objects.requireNonNull(maxReplicas); + if (maxReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "maxReplicas"); + } + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -122,22 +128,26 @@ public Builder metrics(MetricSpec... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(CrossVersionObjectReference scaleTargetRef) { - this.scaleTargetRef = Objects.requireNonNull(scaleTargetRef); + if (scaleTargetRef == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerSpec", "scaleTargetRef"); + } + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpec build() { - final var o = new HorizontalPodAutoscalerSpec(); - o.behavior = behavior; - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpec(); + _resultValue.behavior = behavior; + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpecPatch.java index a8727e239f..bbed44cd4b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerSpecPatch.java @@ -104,16 +104,19 @@ public Builder(HorizontalPodAutoscalerSpecPatch defaults) { @CustomType.Setter public Builder behavior(@Nullable HorizontalPodAutoscalerBehaviorPatch behavior) { + this.behavior = behavior; return this; } @CustomType.Setter public Builder maxReplicas(@Nullable Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @CustomType.Setter public Builder metrics(@Nullable List metrics) { + this.metrics = metrics; return this; } @@ -122,22 +125,24 @@ public Builder metrics(MetricSpecPatch... metrics) { } @CustomType.Setter public Builder minReplicas(@Nullable Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @CustomType.Setter public Builder scaleTargetRef(@Nullable CrossVersionObjectReferencePatch scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } public HorizontalPodAutoscalerSpecPatch build() { - final var o = new HorizontalPodAutoscalerSpecPatch(); - o.behavior = behavior; - o.maxReplicas = maxReplicas; - o.metrics = metrics; - o.minReplicas = minReplicas; - o.scaleTargetRef = scaleTargetRef; - return o; + final var _resultValue = new HorizontalPodAutoscalerSpecPatch(); + _resultValue.behavior = behavior; + _resultValue.maxReplicas = maxReplicas; + _resultValue.metrics = metrics; + _resultValue.minReplicas = minReplicas; + _resultValue.scaleTargetRef = scaleTargetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatus.java index cc036c5a8b..76babe1235 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.HorizontalPodAutoscalerCondition; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricStatus; import java.lang.Integer; @@ -118,7 +119,10 @@ public Builder(HorizontalPodAutoscalerStatus defaults) { @CustomType.Setter public Builder conditions(List conditions) { - this.conditions = Objects.requireNonNull(conditions); + if (conditions == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "conditions"); + } + this.conditions = conditions; return this; } public Builder conditions(HorizontalPodAutoscalerCondition... conditions) { @@ -126,6 +130,7 @@ public Builder conditions(HorizontalPodAutoscalerCondition... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +139,41 @@ public Builder currentMetrics(MetricStatus... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(Integer currentReplicas) { - this.currentReplicas = Objects.requireNonNull(currentReplicas); + if (currentReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "currentReplicas"); + } + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = Objects.requireNonNull(desiredReplicas); + if (desiredReplicas == null) { + throw new MissingRequiredPropertyException("HorizontalPodAutoscalerStatus", "desiredReplicas"); + } + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatus build() { - final var o = new HorizontalPodAutoscalerStatus(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatus(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatusPatch.java index ad2ea3b602..07789e34a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/HorizontalPodAutoscalerStatusPatch.java @@ -118,6 +118,7 @@ public Builder(HorizontalPodAutoscalerStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -126,6 +127,7 @@ public Builder conditions(HorizontalPodAutoscalerConditionPatch... conditions) { } @CustomType.Setter public Builder currentMetrics(@Nullable List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -134,33 +136,37 @@ public Builder currentMetrics(MetricStatusPatch... currentMetrics) { } @CustomType.Setter public Builder currentReplicas(@Nullable Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @CustomType.Setter public Builder desiredReplicas(@Nullable Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @CustomType.Setter public Builder lastScaleTime(@Nullable String lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public HorizontalPodAutoscalerStatusPatch build() { - final var o = new HorizontalPodAutoscalerStatusPatch(); - o.conditions = conditions; - o.currentMetrics = currentMetrics; - o.currentReplicas = currentReplicas; - o.desiredReplicas = desiredReplicas; - o.lastScaleTime = lastScaleTime; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new HorizontalPodAutoscalerStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.currentMetrics = currentMetrics; + _resultValue.currentReplicas = currentReplicas; + _resultValue.desiredReplicas = desiredReplicas; + _resultValue.lastScaleTime = lastScaleTime; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifier.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifier.java index c28ca86875..802eac7d14 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifier.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifier.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(MetricIdentifier defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("MetricIdentifier", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public MetricIdentifier build() { - final var o = new MetricIdentifier(); - o.name = name; - o.selector = selector; - return o; + final var _resultValue = new MetricIdentifier(); + _resultValue.name = name; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifierPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifierPatch.java index 202f924ab1..db6db34658 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifierPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricIdentifierPatch.java @@ -59,19 +59,21 @@ public Builder(MetricIdentifierPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public MetricIdentifierPatch build() { - final var o = new MetricIdentifierPatch(); - o.name = name; - o.selector = selector; - return o; + final var _resultValue = new MetricIdentifierPatch(); + _resultValue.name = name; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpec.java index a0906e4821..5626cadd2c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ContainerResourceMetricSource; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ExternalMetricSource; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ObjectMetricSource; @@ -119,43 +120,51 @@ public Builder(MetricSpec defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSource containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSource external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSource object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSource pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSource resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricSpec", "type"); + } + this.type = type; return this; } public MetricSpec build() { - final var o = new MetricSpec(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpec(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpecPatch.java index eace528aec..fd4144cc5a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricSpecPatch.java @@ -119,43 +119,49 @@ public Builder(MetricSpecPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricSourcePatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricSourcePatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricSourcePatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricSourcePatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricSourcePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricSpecPatch build() { - final var o = new MetricSpecPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricSpecPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatus.java index 3e0c6a113b..fdefc4df02 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ContainerResourceMetricStatus; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ExternalMetricStatus; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ObjectMetricStatus; @@ -119,43 +120,51 @@ public Builder(MetricStatus defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatus containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatus external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatus object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatus pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatus resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricStatus", "type"); + } + this.type = type; return this; } public MetricStatus build() { - final var o = new MetricStatus(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatus(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatusPatch.java index 85fdb4e538..c0c87900da 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricStatusPatch.java @@ -119,43 +119,49 @@ public Builder(MetricStatusPatch defaults) { @CustomType.Setter public Builder containerResource(@Nullable ContainerResourceMetricStatusPatch containerResource) { + this.containerResource = containerResource; return this; } @CustomType.Setter public Builder external(@Nullable ExternalMetricStatusPatch external) { + this.external = external; return this; } @CustomType.Setter public Builder object(@Nullable ObjectMetricStatusPatch object) { + this.object = object; return this; } @CustomType.Setter public Builder pods(@Nullable PodsMetricStatusPatch pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder resource(@Nullable ResourceMetricStatusPatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MetricStatusPatch build() { - final var o = new MetricStatusPatch(); - o.containerResource = containerResource; - o.external = external; - o.object = object; - o.pods = pods; - o.resource = resource; - o.type = type; - return o; + final var _resultValue = new MetricStatusPatch(); + _resultValue.containerResource = containerResource; + _resultValue.external = external; + _resultValue.object = object; + _resultValue.pods = pods; + _resultValue.resource = resource; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTarget.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTarget.java index cd0d445754..cd6e7a22b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTarget.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTarget.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.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,31 +88,37 @@ public Builder(MetricTarget defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MetricTarget", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricTarget build() { - final var o = new MetricTarget(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.type = type; - o.value = value; - return o; + final var _resultValue = new MetricTarget(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTargetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTargetPatch.java index 59b62ffc4d..24c73f9bcc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTargetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricTargetPatch.java @@ -87,31 +87,35 @@ public Builder(MetricTargetPatch defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricTargetPatch build() { - final var o = new MetricTargetPatch(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.type = type; - o.value = value; - return o; + final var _resultValue = new MetricTargetPatch(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.type = type; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatus.java index 0f41e85507..621ad6d6ae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatus.java @@ -73,25 +73,28 @@ public Builder(MetricValueStatus defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricValueStatus build() { - final var o = new MetricValueStatus(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.value = value; - return o; + final var _resultValue = new MetricValueStatus(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatusPatch.java index 2ec00da052..d7d1ae351d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/MetricValueStatusPatch.java @@ -73,25 +73,28 @@ public Builder(MetricValueStatusPatch defaults) { @CustomType.Setter public Builder averageUtilization(@Nullable Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @CustomType.Setter public Builder averageValue(@Nullable String averageValue) { + this.averageValue = averageValue; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public MetricValueStatusPatch build() { - final var o = new MetricValueStatusPatch(); - o.averageUtilization = averageUtilization; - o.averageValue = averageValue; - o.value = value; - return o; + final var _resultValue = new MetricValueStatusPatch(); + _resultValue.averageUtilization = averageUtilization; + _resultValue.averageValue = averageValue; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSource.java index 8007a070c8..37c99aa8e0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget; @@ -64,25 +65,34 @@ public Builder(ObjectMetricSource defaults) { @CustomType.Setter public Builder describedObject(CrossVersionObjectReference describedObject) { - this.describedObject = Objects.requireNonNull(describedObject); + if (describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "describedObject"); + } + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ObjectMetricSource", "target"); + } + this.target = target; return this; } public ObjectMetricSource build() { - final var o = new ObjectMetricSource(); - o.describedObject = describedObject; - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ObjectMetricSource(); + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSourcePatch.java index 55cc79dab3..093b6fc6d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricSourcePatch.java @@ -66,25 +66,28 @@ public Builder(ObjectMetricSourcePatch defaults) { @CustomType.Setter public Builder describedObject(@Nullable CrossVersionObjectReferencePatch describedObject) { + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ObjectMetricSourcePatch build() { - final var o = new ObjectMetricSourcePatch(); - o.describedObject = describedObject; - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new ObjectMetricSourcePatch(); + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatus.java index d9cd72e34f..6048b5b2ca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.CrossVersionObjectReference; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus; @@ -64,25 +65,34 @@ public Builder(ObjectMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder describedObject(CrossVersionObjectReference describedObject) { - this.describedObject = Objects.requireNonNull(describedObject); + if (describedObject == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "describedObject"); + } + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("ObjectMetricStatus", "metric"); + } + this.metric = metric; return this; } public ObjectMetricStatus build() { - final var o = new ObjectMetricStatus(); - o.current = current; - o.describedObject = describedObject; - o.metric = metric; - return o; + final var _resultValue = new ObjectMetricStatus(); + _resultValue.current = current; + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatusPatch.java index 94ad5976a3..cfe9dd15f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ObjectMetricStatusPatch.java @@ -66,25 +66,28 @@ public Builder(ObjectMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder describedObject(@Nullable CrossVersionObjectReferencePatch describedObject) { + this.describedObject = describedObject; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public ObjectMetricStatusPatch build() { - final var o = new ObjectMetricStatusPatch(); - o.current = current; - o.describedObject = describedObject; - o.metric = metric; - return o; + final var _resultValue = new ObjectMetricStatusPatch(); + _resultValue.current = current; + _resultValue.describedObject = describedObject; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSource.java index e4c8c4f765..137975ddbf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(PodsMetricSource defaults) { @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "metric"); + } + this.metric = metric; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("PodsMetricSource", "target"); + } + this.target = target; return this; } public PodsMetricSource build() { - final var o = new PodsMetricSource(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new PodsMetricSource(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSourcePatch.java index 5fb24a5c8b..fdb4cd4f9e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(PodsMetricSourcePatch defaults) { @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public PodsMetricSourcePatch build() { - final var o = new PodsMetricSourcePatch(); - o.metric = metric; - o.target = target; - return o; + final var _resultValue = new PodsMetricSourcePatch(); + _resultValue.metric = metric; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatus.java index ae4be947b1..ef6230727b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(PodsMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder metric(MetricIdentifier metric) { - this.metric = Objects.requireNonNull(metric); + if (metric == null) { + throw new MissingRequiredPropertyException("PodsMetricStatus", "metric"); + } + this.metric = metric; return this; } public PodsMetricStatus build() { - final var o = new PodsMetricStatus(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new PodsMetricStatus(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatusPatch.java index e866c9426a..2d9321ab8a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/PodsMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(PodsMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder metric(@Nullable MetricIdentifierPatch metric) { + this.metric = metric; return this; } public PodsMetricStatusPatch build() { - final var o = new PodsMetricStatusPatch(); - o.current = current; - o.metric = metric; - return o; + final var _resultValue = new PodsMetricStatusPatch(); + _resultValue.current = current; + _resultValue.metric = metric; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSource.java index a1f7fa5f3a..f8488a23eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricTarget; import java.lang.String; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ResourceMetricSource defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder target(MetricTarget target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("ResourceMetricSource", "target"); + } + this.target = target; return this; } public ResourceMetricSource build() { - final var o = new ResourceMetricSource(); - o.name = name; - o.target = target; - return o; + final var _resultValue = new ResourceMetricSource(); + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSourcePatch.java index d16b4684d0..1ee89effb3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricSourcePatch.java @@ -59,19 +59,21 @@ public Builder(ResourceMetricSourcePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder target(@Nullable MetricTargetPatch target) { + this.target = target; return this; } public ResourceMetricSourcePatch build() { - final var o = new ResourceMetricSourcePatch(); - o.name = name; - o.target = target; - return o; + final var _resultValue = new ResourceMetricSourcePatch(); + _resultValue.name = name; + _resultValue.target = target; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatus.java index 9718a3be6d..c1916cfc5f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.autoscaling.v2beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus; import java.lang.String; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(ResourceMetricStatus defaults) { @CustomType.Setter public Builder current(MetricValueStatus current) { - this.current = Objects.requireNonNull(current); + if (current == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "current"); + } + this.current = current; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceMetricStatus", "name"); + } + this.name = name; return this; } public ResourceMetricStatus build() { - final var o = new ResourceMetricStatus(); - o.current = current; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatus(); + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatusPatch.java index 11bf8dafdc..8b60d6b104 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta2/outputs/ResourceMetricStatusPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceMetricStatusPatch defaults) { @CustomType.Setter public Builder current(@Nullable MetricValueStatusPatch current) { + this.current = current; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceMetricStatusPatch build() { - final var o = new ResourceMetricStatusPatch(); - o.current = current; - o.name = name; - return o; + final var _resultValue = new ResourceMetricStatusPatch(); + _resultValue.current = current; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/CronJobListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/CronJobListArgs.java index 41ce6a26c3..4c84e58a82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/CronJobListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/CronJobListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.CronJobArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CronJobListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CronJobListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/Job.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/Job.java index 08a943507d..f27833d64c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/Job.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/Job.java @@ -41,7 +41,8 @@ * * ## Example Usage * ### Create a Job with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -65,7 +66,7 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var job = new Job("job", JobArgs.builder()        
+ *         var job = new Job("job", JobArgs.builder()        
  *             .metadata(null)
  *             .spec(JobSpecArgs.builder()
  *                 .backoffLimit(4)
@@ -73,14 +74,14 @@
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
  *                             .command(                            
- *                                 "perl",
- *                                 "-Mbignum=bpi",
- *                                 "-wle",
- *                                 "print bpi(2000)")
- *                             .image("perl")
- *                             .name("pi")
+ *                                 "perl",
+ *                                 "-Mbignum=bpi",
+ *                                 "-wle",
+ *                                 "print bpi(2000)")
+ *                             .image("perl")
+ *                             .name("pi")
  *                             .build())
- *                         .restartPolicy("Never")
+ *                         .restartPolicy("Never")
  *                         .build())
  *                     .build())
  *                 .build())
@@ -88,9 +89,11 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create a Job with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -115,9 +118,9 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var job = new Job("job", JobArgs.builder()        
+ *         var job = new Job("job", JobArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .name("pi")
+ *                 .name("pi")
  *                 .build())
  *             .spec(JobSpecArgs.builder()
  *                 .backoffLimit(4)
@@ -125,14 +128,14 @@
  *                     .spec(PodSpecArgs.builder()
  *                         .containers(ContainerArgs.builder()
  *                             .command(                            
- *                                 "perl",
- *                                 "-Mbignum=bpi",
- *                                 "-wle",
- *                                 "print bpi(2000)")
- *                             .image("perl")
- *                             .name("pi")
+ *                                 "perl",
+ *                                 "-Mbignum=bpi",
+ *                                 "-wle",
+ *                                 "print bpi(2000)")
+ *                             .image("perl")
+ *                             .name("pi")
  *                             .build())
- *                         .restartPolicy("Never")
+ *                         .restartPolicy("Never")
  *                         .build())
  *                     .build())
  *                 .build())
@@ -140,7 +143,8 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:batch/v1:Job") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/JobListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/JobListArgs.java index bc410d1ec4..0683ee41bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/JobListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/JobListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.JobArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public JobListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("JobListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/CronJobSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/CronJobSpecArgs.java index d7f8d6d5ea..02b764fa88 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/CronJobSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/CronJobSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.JobTemplateSpecArgs; import java.lang.Boolean; import java.lang.Integer; @@ -350,8 +351,12 @@ public Builder timeZone(String timeZone) { } public CronJobSpecArgs build() { - $.jobTemplate = Objects.requireNonNull($.jobTemplate, "expected parameter 'jobTemplate' to be non-null"); - $.schedule = Objects.requireNonNull($.schedule, "expected parameter 'schedule' to be non-null"); + if ($.jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "jobTemplate"); + } + if ($.schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "schedule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobConditionArgs.java index 818ddf0e76..e3a81bc4f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public JobConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("JobConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("JobConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobSpecArgs.java index 3299304074..dfa979930d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/JobSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyArgs; import com.pulumi.kubernetes.batch.v1.inputs.SuccessPolicyArgs; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; @@ -709,7 +710,9 @@ public Builder ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { } public JobSpecArgs build() { - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.template == null) { + throw new MissingRequiredPropertyException("JobSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyArgs.java index 6db9454843..1e5e349afb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyRuleArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder rules(PodFailurePolicyRuleArgs... rules) { } public PodFailurePolicyArgs build() { - $.rules = Objects.requireNonNull($.rules, "expected parameter 'rules' to be non-null"); + if ($.rules == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyArgs", "rules"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnExitCodesRequirementArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnExitCodesRequirementArgs.java index f3693b2123..e61898d7c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnExitCodesRequirementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnExitCodesRequirementArgs.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; @@ -198,8 +199,12 @@ public Builder values(Integer... values) { } public PodFailurePolicyOnExitCodesRequirementArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnExitCodesRequirementArgs", "operator"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnExitCodesRequirementArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnPodConditionsPatternArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnPodConditionsPatternArgs.java index 859a5dddcd..68e203d1bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnPodConditionsPatternArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyOnPodConditionsPatternArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder type(String type) { } public PodFailurePolicyOnPodConditionsPatternArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPatternArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPatternArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyRuleArgs.java index cf46a107b9..6606ec869d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/PodFailurePolicyRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnExitCodesRequirementArgs; import com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnPodConditionsPatternArgs; import java.lang.String; @@ -215,7 +216,9 @@ public Builder onPodConditions(PodFailurePolicyOnPodConditionsPatternArgs... onP } public PodFailurePolicyRuleArgs build() { - $.action = Objects.requireNonNull($.action, "expected parameter 'action' to be non-null"); + if ($.action == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyRuleArgs", "action"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/SuccessPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/SuccessPolicyArgs.java index dc2f714e60..dd38acd002 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/SuccessPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/inputs/SuccessPolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.inputs.SuccessPolicyRuleArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder rules(SuccessPolicyRuleArgs... rules) { } public SuccessPolicyArgs build() { - $.rules = Objects.requireNonNull($.rules, "expected parameter 'rules' to be non-null"); + if ($.rules == null) { + throw new MissingRequiredPropertyException("SuccessPolicyArgs", "rules"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJob.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJob.java index e690a380a9..df52244583 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJob.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJob.java @@ -103,37 +103,42 @@ public Builder(CronJob defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable CronJobSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CronJobStatus status) { + this.status = status; return this; } public CronJob build() { - final var o = new CronJob(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CronJob(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpec.java index a317254242..e803792909 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.outputs.JobTemplateSpec; import java.lang.Boolean; import java.lang.Integer; @@ -149,55 +150,67 @@ public Builder(CronJobSpec defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(JobTemplateSpec jobTemplate) { - this.jobTemplate = Objects.requireNonNull(jobTemplate); + if (jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "jobTemplate"); + } + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(String schedule) { - this.schedule = Objects.requireNonNull(schedule); + if (schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "schedule"); + } + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { + this.timeZone = timeZone; return this; } public CronJobSpec build() { - final var o = new CronJobSpec(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - o.timeZone = timeZone; - return o; + final var _resultValue = new CronJobSpec(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + _resultValue.timeZone = timeZone; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpecPatch.java index d097fc4566..26be60a3fc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobSpecPatch.java @@ -149,55 +149,63 @@ public Builder(CronJobSpecPatch defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(@Nullable JobTemplateSpecPatch jobTemplate) { + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(@Nullable String schedule) { + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } @CustomType.Setter public Builder timeZone(@Nullable String timeZone) { + this.timeZone = timeZone; return this; } public CronJobSpecPatch build() { - final var o = new CronJobSpecPatch(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - o.timeZone = timeZone; - return o; + final var _resultValue = new CronJobSpecPatch(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + _resultValue.timeZone = timeZone; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatus.java index 7881c5a56d..22c5bad785 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatus.java @@ -74,6 +74,7 @@ public Builder(CronJobStatus defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -82,20 +83,22 @@ public Builder active(ObjectReference... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } @CustomType.Setter public Builder lastSuccessfulTime(@Nullable String lastSuccessfulTime) { + this.lastSuccessfulTime = lastSuccessfulTime; return this; } public CronJobStatus build() { - final var o = new CronJobStatus(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - o.lastSuccessfulTime = lastSuccessfulTime; - return o; + final var _resultValue = new CronJobStatus(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + _resultValue.lastSuccessfulTime = lastSuccessfulTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatusPatch.java index 630f04e9a1..0f11a665a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/CronJobStatusPatch.java @@ -74,6 +74,7 @@ public Builder(CronJobStatusPatch defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -82,20 +83,22 @@ public Builder active(ObjectReferencePatch... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } @CustomType.Setter public Builder lastSuccessfulTime(@Nullable String lastSuccessfulTime) { + this.lastSuccessfulTime = lastSuccessfulTime; return this; } public CronJobStatusPatch build() { - final var o = new CronJobStatusPatch(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - o.lastSuccessfulTime = lastSuccessfulTime; - return o; + final var _resultValue = new CronJobStatusPatch(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + _resultValue.lastSuccessfulTime = lastSuccessfulTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/Job.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/Job.java index a3cecb2ea4..0d6e5201de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/Job.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/Job.java @@ -103,37 +103,42 @@ public Builder(Job defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable JobStatus status) { + this.status = status; return this; } public Job build() { - final var o = new Job(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Job(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobCondition.java index 298e40a05d..417db1a027 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.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,43 +115,53 @@ public Builder(JobCondition defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("JobCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("JobCondition", "type"); + } + this.type = type; return this; } public JobCondition build() { - final var o = new JobCondition(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new JobCondition(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobConditionPatch.java index 87883f8d0c..a480f8904d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobConditionPatch.java @@ -114,43 +114,49 @@ public Builder(JobConditionPatch defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public JobConditionPatch build() { - final var o = new JobConditionPatch(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new JobConditionPatch(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpec.java index 7f994d65d7..3490e724e3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicy; import com.pulumi.kubernetes.batch.v1.outputs.SuccessPolicy; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; @@ -294,103 +295,121 @@ public Builder(JobSpec defaults) { @CustomType.Setter public Builder activeDeadlineSeconds(@Nullable Integer activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @CustomType.Setter public Builder backoffLimit(@Nullable Integer backoffLimit) { + this.backoffLimit = backoffLimit; return this; } @CustomType.Setter public Builder backoffLimitPerIndex(@Nullable Integer backoffLimitPerIndex) { + this.backoffLimitPerIndex = backoffLimitPerIndex; return this; } @CustomType.Setter public Builder completionMode(@Nullable String completionMode) { + this.completionMode = completionMode; return this; } @CustomType.Setter public Builder completions(@Nullable Integer completions) { + this.completions = completions; return this; } @CustomType.Setter public Builder managedBy(@Nullable String managedBy) { + this.managedBy = managedBy; return this; } @CustomType.Setter public Builder manualSelector(@Nullable Boolean manualSelector) { + this.manualSelector = manualSelector; return this; } @CustomType.Setter public Builder maxFailedIndexes(@Nullable Integer maxFailedIndexes) { + this.maxFailedIndexes = maxFailedIndexes; return this; } @CustomType.Setter public Builder parallelism(@Nullable Integer parallelism) { + this.parallelism = parallelism; return this; } @CustomType.Setter public Builder podFailurePolicy(@Nullable PodFailurePolicy podFailurePolicy) { + this.podFailurePolicy = podFailurePolicy; return this; } @CustomType.Setter public Builder podReplacementPolicy(@Nullable String podReplacementPolicy) { + this.podReplacementPolicy = podReplacementPolicy; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder successPolicy(@Nullable SuccessPolicy successPolicy) { + this.successPolicy = successPolicy; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("JobSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder ttlSecondsAfterFinished(@Nullable Integer ttlSecondsAfterFinished) { + this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; return this; } public JobSpec build() { - final var o = new JobSpec(); - o.activeDeadlineSeconds = activeDeadlineSeconds; - o.backoffLimit = backoffLimit; - o.backoffLimitPerIndex = backoffLimitPerIndex; - o.completionMode = completionMode; - o.completions = completions; - o.managedBy = managedBy; - o.manualSelector = manualSelector; - o.maxFailedIndexes = maxFailedIndexes; - o.parallelism = parallelism; - o.podFailurePolicy = podFailurePolicy; - o.podReplacementPolicy = podReplacementPolicy; - o.selector = selector; - o.successPolicy = successPolicy; - o.suspend = suspend; - o.template = template; - o.ttlSecondsAfterFinished = ttlSecondsAfterFinished; - return o; + final var _resultValue = new JobSpec(); + _resultValue.activeDeadlineSeconds = activeDeadlineSeconds; + _resultValue.backoffLimit = backoffLimit; + _resultValue.backoffLimitPerIndex = backoffLimitPerIndex; + _resultValue.completionMode = completionMode; + _resultValue.completions = completions; + _resultValue.managedBy = managedBy; + _resultValue.manualSelector = manualSelector; + _resultValue.maxFailedIndexes = maxFailedIndexes; + _resultValue.parallelism = parallelism; + _resultValue.podFailurePolicy = podFailurePolicy; + _resultValue.podReplacementPolicy = podReplacementPolicy; + _resultValue.selector = selector; + _resultValue.successPolicy = successPolicy; + _resultValue.suspend = suspend; + _resultValue.template = template; + _resultValue.ttlSecondsAfterFinished = ttlSecondsAfterFinished; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpecPatch.java index c167d61590..b004ce64dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobSpecPatch.java @@ -294,103 +294,119 @@ public Builder(JobSpecPatch defaults) { @CustomType.Setter public Builder activeDeadlineSeconds(@Nullable Integer activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @CustomType.Setter public Builder backoffLimit(@Nullable Integer backoffLimit) { + this.backoffLimit = backoffLimit; return this; } @CustomType.Setter public Builder backoffLimitPerIndex(@Nullable Integer backoffLimitPerIndex) { + this.backoffLimitPerIndex = backoffLimitPerIndex; return this; } @CustomType.Setter public Builder completionMode(@Nullable String completionMode) { + this.completionMode = completionMode; return this; } @CustomType.Setter public Builder completions(@Nullable Integer completions) { + this.completions = completions; return this; } @CustomType.Setter public Builder managedBy(@Nullable String managedBy) { + this.managedBy = managedBy; return this; } @CustomType.Setter public Builder manualSelector(@Nullable Boolean manualSelector) { + this.manualSelector = manualSelector; return this; } @CustomType.Setter public Builder maxFailedIndexes(@Nullable Integer maxFailedIndexes) { + this.maxFailedIndexes = maxFailedIndexes; return this; } @CustomType.Setter public Builder parallelism(@Nullable Integer parallelism) { + this.parallelism = parallelism; return this; } @CustomType.Setter public Builder podFailurePolicy(@Nullable PodFailurePolicyPatch podFailurePolicy) { + this.podFailurePolicy = podFailurePolicy; return this; } @CustomType.Setter public Builder podReplacementPolicy(@Nullable String podReplacementPolicy) { + this.podReplacementPolicy = podReplacementPolicy; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder successPolicy(@Nullable SuccessPolicyPatch successPolicy) { + this.successPolicy = successPolicy; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder ttlSecondsAfterFinished(@Nullable Integer ttlSecondsAfterFinished) { + this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; return this; } public JobSpecPatch build() { - final var o = new JobSpecPatch(); - o.activeDeadlineSeconds = activeDeadlineSeconds; - o.backoffLimit = backoffLimit; - o.backoffLimitPerIndex = backoffLimitPerIndex; - o.completionMode = completionMode; - o.completions = completions; - o.managedBy = managedBy; - o.manualSelector = manualSelector; - o.maxFailedIndexes = maxFailedIndexes; - o.parallelism = parallelism; - o.podFailurePolicy = podFailurePolicy; - o.podReplacementPolicy = podReplacementPolicy; - o.selector = selector; - o.successPolicy = successPolicy; - o.suspend = suspend; - o.template = template; - o.ttlSecondsAfterFinished = ttlSecondsAfterFinished; - return o; + final var _resultValue = new JobSpecPatch(); + _resultValue.activeDeadlineSeconds = activeDeadlineSeconds; + _resultValue.backoffLimit = backoffLimit; + _resultValue.backoffLimitPerIndex = backoffLimitPerIndex; + _resultValue.completionMode = completionMode; + _resultValue.completions = completions; + _resultValue.managedBy = managedBy; + _resultValue.manualSelector = manualSelector; + _resultValue.maxFailedIndexes = maxFailedIndexes; + _resultValue.parallelism = parallelism; + _resultValue.podFailurePolicy = podFailurePolicy; + _resultValue.podReplacementPolicy = podReplacementPolicy; + _resultValue.selector = selector; + _resultValue.successPolicy = successPolicy; + _resultValue.suspend = suspend; + _resultValue.template = template; + _resultValue.ttlSecondsAfterFinished = ttlSecondsAfterFinished; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatus.java index 4e6632366a..a68fd18779 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatus.java @@ -222,21 +222,25 @@ public Builder(JobStatus defaults) { @CustomType.Setter public Builder active(@Nullable Integer active) { + this.active = active; return this; } @CustomType.Setter public Builder completedIndexes(@Nullable String completedIndexes) { + this.completedIndexes = completedIndexes; return this; } @CustomType.Setter public Builder completionTime(@Nullable String completionTime) { + this.completionTime = completionTime; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -245,53 +249,60 @@ public Builder conditions(JobCondition... conditions) { } @CustomType.Setter public Builder failed(@Nullable Integer failed) { + this.failed = failed; return this; } @CustomType.Setter public Builder failedIndexes(@Nullable String failedIndexes) { + this.failedIndexes = failedIndexes; return this; } @CustomType.Setter public Builder ready(@Nullable Integer ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder startTime(@Nullable String startTime) { + this.startTime = startTime; return this; } @CustomType.Setter public Builder succeeded(@Nullable Integer succeeded) { + this.succeeded = succeeded; return this; } @CustomType.Setter public Builder terminating(@Nullable Integer terminating) { + this.terminating = terminating; return this; } @CustomType.Setter public Builder uncountedTerminatedPods(@Nullable UncountedTerminatedPods uncountedTerminatedPods) { + this.uncountedTerminatedPods = uncountedTerminatedPods; return this; } public JobStatus build() { - final var o = new JobStatus(); - o.active = active; - o.completedIndexes = completedIndexes; - o.completionTime = completionTime; - o.conditions = conditions; - o.failed = failed; - o.failedIndexes = failedIndexes; - o.ready = ready; - o.startTime = startTime; - o.succeeded = succeeded; - o.terminating = terminating; - o.uncountedTerminatedPods = uncountedTerminatedPods; - return o; + final var _resultValue = new JobStatus(); + _resultValue.active = active; + _resultValue.completedIndexes = completedIndexes; + _resultValue.completionTime = completionTime; + _resultValue.conditions = conditions; + _resultValue.failed = failed; + _resultValue.failedIndexes = failedIndexes; + _resultValue.ready = ready; + _resultValue.startTime = startTime; + _resultValue.succeeded = succeeded; + _resultValue.terminating = terminating; + _resultValue.uncountedTerminatedPods = uncountedTerminatedPods; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatusPatch.java index 89ba52865e..04cc4a35c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobStatusPatch.java @@ -222,21 +222,25 @@ public Builder(JobStatusPatch defaults) { @CustomType.Setter public Builder active(@Nullable Integer active) { + this.active = active; return this; } @CustomType.Setter public Builder completedIndexes(@Nullable String completedIndexes) { + this.completedIndexes = completedIndexes; return this; } @CustomType.Setter public Builder completionTime(@Nullable String completionTime) { + this.completionTime = completionTime; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -245,53 +249,60 @@ public Builder conditions(JobConditionPatch... conditions) { } @CustomType.Setter public Builder failed(@Nullable Integer failed) { + this.failed = failed; return this; } @CustomType.Setter public Builder failedIndexes(@Nullable String failedIndexes) { + this.failedIndexes = failedIndexes; return this; } @CustomType.Setter public Builder ready(@Nullable Integer ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder startTime(@Nullable String startTime) { + this.startTime = startTime; return this; } @CustomType.Setter public Builder succeeded(@Nullable Integer succeeded) { + this.succeeded = succeeded; return this; } @CustomType.Setter public Builder terminating(@Nullable Integer terminating) { + this.terminating = terminating; return this; } @CustomType.Setter public Builder uncountedTerminatedPods(@Nullable UncountedTerminatedPodsPatch uncountedTerminatedPods) { + this.uncountedTerminatedPods = uncountedTerminatedPods; return this; } public JobStatusPatch build() { - final var o = new JobStatusPatch(); - o.active = active; - o.completedIndexes = completedIndexes; - o.completionTime = completionTime; - o.conditions = conditions; - o.failed = failed; - o.failedIndexes = failedIndexes; - o.ready = ready; - o.startTime = startTime; - o.succeeded = succeeded; - o.terminating = terminating; - o.uncountedTerminatedPods = uncountedTerminatedPods; - return o; + final var _resultValue = new JobStatusPatch(); + _resultValue.active = active; + _resultValue.completedIndexes = completedIndexes; + _resultValue.completionTime = completionTime; + _resultValue.conditions = conditions; + _resultValue.failed = failed; + _resultValue.failedIndexes = failedIndexes; + _resultValue.ready = ready; + _resultValue.startTime = startTime; + _resultValue.succeeded = succeeded; + _resultValue.terminating = terminating; + _resultValue.uncountedTerminatedPods = uncountedTerminatedPods; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpec.java index 12feab96b6..e01764c398 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpec.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpec spec) { + this.spec = spec; return this; } public JobTemplateSpec build() { - final var o = new JobTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpecPatch.java index e9d724b66f..b8cb1d8353 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/JobTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpecPatch spec) { + this.spec = spec; return this; } public JobTemplateSpecPatch build() { - final var o = new JobTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicy.java index a23a32da67..b36ed3beee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyRule; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(PodFailurePolicy defaults) { @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("PodFailurePolicy", "rules"); + } + this.rules = rules; return this; } public Builder rules(PodFailurePolicyRule... rules) { return rules(List.of(rules)); } public PodFailurePolicy build() { - final var o = new PodFailurePolicy(); - o.rules = rules; - return o; + final var _resultValue = new PodFailurePolicy(); + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirement.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirement.java index 6f57a33dc1..a07f55eeaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirement.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -90,28 +91,35 @@ public Builder(PodFailurePolicyOnExitCodesRequirement defaults) { @CustomType.Setter public Builder containerName(@Nullable String containerName) { + this.containerName = containerName; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnExitCodesRequirement", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnExitCodesRequirement", "values"); + } + this.values = values; return this; } public Builder values(Integer... values) { return values(List.of(values)); } public PodFailurePolicyOnExitCodesRequirement build() { - final var o = new PodFailurePolicyOnExitCodesRequirement(); - o.containerName = containerName; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new PodFailurePolicyOnExitCodesRequirement(); + _resultValue.containerName = containerName; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirementPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirementPatch.java index 673b83a405..9f8fdefd07 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirementPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnExitCodesRequirementPatch.java @@ -90,16 +90,19 @@ public Builder(PodFailurePolicyOnExitCodesRequirementPatch defaults) { @CustomType.Setter public Builder containerName(@Nullable String containerName) { + this.containerName = containerName; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -107,11 +110,11 @@ public Builder values(Integer... values) { return values(List.of(values)); } public PodFailurePolicyOnExitCodesRequirementPatch build() { - final var o = new PodFailurePolicyOnExitCodesRequirementPatch(); - o.containerName = containerName; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new PodFailurePolicyOnExitCodesRequirementPatch(); + _resultValue.containerName = containerName; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPattern.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPattern.java index d51ab8b76a..4ae80679e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPattern.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPattern.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(PodFailurePolicyOnPodConditionsPattern defaults) { @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPattern", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPattern", "type"); + } + this.type = type; return this; } public PodFailurePolicyOnPodConditionsPattern build() { - final var o = new PodFailurePolicyOnPodConditionsPattern(); - o.status = status; - o.type = type; - return o; + final var _resultValue = new PodFailurePolicyOnPodConditionsPattern(); + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPatternPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPatternPatch.java index 3e37d00dad..a31f14c594 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPatternPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyOnPodConditionsPatternPatch.java @@ -58,19 +58,21 @@ public Builder(PodFailurePolicyOnPodConditionsPatternPatch defaults) { @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PodFailurePolicyOnPodConditionsPatternPatch build() { - final var o = new PodFailurePolicyOnPodConditionsPatternPatch(); - o.status = status; - o.type = type; - return o; + final var _resultValue = new PodFailurePolicyOnPodConditionsPatternPatch(); + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyPatch.java index 009616a0e4..fd5eae2d24 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyPatch.java @@ -44,6 +44,7 @@ public Builder(PodFailurePolicyPatch defaults) { @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -51,9 +52,9 @@ public Builder rules(PodFailurePolicyRulePatch... rules) { return rules(List.of(rules)); } public PodFailurePolicyPatch build() { - final var o = new PodFailurePolicyPatch(); - o.rules = rules; - return o; + final var _resultValue = new PodFailurePolicyPatch(); + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRule.java index 74e66b9b4f..94a840c1fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyOnExitCodesRequirement; import com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyOnPodConditionsPattern; import java.lang.String; @@ -99,16 +100,21 @@ public Builder(PodFailurePolicyRule defaults) { @CustomType.Setter public Builder action(String action) { - this.action = Objects.requireNonNull(action); + if (action == null) { + throw new MissingRequiredPropertyException("PodFailurePolicyRule", "action"); + } + this.action = action; return this; } @CustomType.Setter public Builder onExitCodes(@Nullable PodFailurePolicyOnExitCodesRequirement onExitCodes) { + this.onExitCodes = onExitCodes; return this; } @CustomType.Setter public Builder onPodConditions(@Nullable List onPodConditions) { + this.onPodConditions = onPodConditions; return this; } @@ -116,11 +122,11 @@ public Builder onPodConditions(PodFailurePolicyOnPodConditionsPattern... onPodCo return onPodConditions(List.of(onPodConditions)); } public PodFailurePolicyRule build() { - final var o = new PodFailurePolicyRule(); - o.action = action; - o.onExitCodes = onExitCodes; - o.onPodConditions = onPodConditions; - return o; + final var _resultValue = new PodFailurePolicyRule(); + _resultValue.action = action; + _resultValue.onExitCodes = onExitCodes; + _resultValue.onPodConditions = onPodConditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRulePatch.java index 41fb4f1aa2..81c8ce589d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/PodFailurePolicyRulePatch.java @@ -99,16 +99,19 @@ public Builder(PodFailurePolicyRulePatch defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder onExitCodes(@Nullable PodFailurePolicyOnExitCodesRequirementPatch onExitCodes) { + this.onExitCodes = onExitCodes; return this; } @CustomType.Setter public Builder onPodConditions(@Nullable List onPodConditions) { + this.onPodConditions = onPodConditions; return this; } @@ -116,11 +119,11 @@ public Builder onPodConditions(PodFailurePolicyOnPodConditionsPatternPatch... on return onPodConditions(List.of(onPodConditions)); } public PodFailurePolicyRulePatch build() { - final var o = new PodFailurePolicyRulePatch(); - o.action = action; - o.onExitCodes = onExitCodes; - o.onPodConditions = onPodConditions; - return o; + final var _resultValue = new PodFailurePolicyRulePatch(); + _resultValue.action = action; + _resultValue.onExitCodes = onExitCodes; + _resultValue.onPodConditions = onPodConditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicy.java index 43c75b80be..6ddbb4b63a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1.outputs.SuccessPolicyRule; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(SuccessPolicy defaults) { @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("SuccessPolicy", "rules"); + } + this.rules = rules; return this; } public Builder rules(SuccessPolicyRule... rules) { return rules(List.of(rules)); } public SuccessPolicy build() { - final var o = new SuccessPolicy(); - o.rules = rules; - return o; + final var _resultValue = new SuccessPolicy(); + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyPatch.java index 965101be45..a77eab0820 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyPatch.java @@ -44,6 +44,7 @@ public Builder(SuccessPolicyPatch defaults) { @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -51,9 +52,9 @@ public Builder rules(SuccessPolicyRulePatch... rules) { return rules(List.of(rules)); } public SuccessPolicyPatch build() { - final var o = new SuccessPolicyPatch(); - o.rules = rules; - return o; + final var _resultValue = new SuccessPolicyPatch(); + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRule.java index 1f42cf3db1..1b664797bd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRule.java @@ -59,19 +59,21 @@ public Builder(SuccessPolicyRule defaults) { @CustomType.Setter public Builder succeededCount(@Nullable Integer succeededCount) { + this.succeededCount = succeededCount; return this; } @CustomType.Setter public Builder succeededIndexes(@Nullable String succeededIndexes) { + this.succeededIndexes = succeededIndexes; return this; } public SuccessPolicyRule build() { - final var o = new SuccessPolicyRule(); - o.succeededCount = succeededCount; - o.succeededIndexes = succeededIndexes; - return o; + final var _resultValue = new SuccessPolicyRule(); + _resultValue.succeededCount = succeededCount; + _resultValue.succeededIndexes = succeededIndexes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRulePatch.java index 81ac706ab7..6584884d79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/SuccessPolicyRulePatch.java @@ -59,19 +59,21 @@ public Builder(SuccessPolicyRulePatch defaults) { @CustomType.Setter public Builder succeededCount(@Nullable Integer succeededCount) { + this.succeededCount = succeededCount; return this; } @CustomType.Setter public Builder succeededIndexes(@Nullable String succeededIndexes) { + this.succeededIndexes = succeededIndexes; return this; } public SuccessPolicyRulePatch build() { - final var o = new SuccessPolicyRulePatch(); - o.succeededCount = succeededCount; - o.succeededIndexes = succeededIndexes; - return o; + final var _resultValue = new SuccessPolicyRulePatch(); + _resultValue.succeededCount = succeededCount; + _resultValue.succeededIndexes = succeededIndexes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPods.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPods.java index bb9c5be15e..ee6ccf0ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPods.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPods.java @@ -58,6 +58,7 @@ public Builder(UncountedTerminatedPods defaults) { @CustomType.Setter public Builder failed(@Nullable List failed) { + this.failed = failed; return this; } @@ -66,6 +67,7 @@ public Builder failed(String... failed) { } @CustomType.Setter public Builder succeeded(@Nullable List succeeded) { + this.succeeded = succeeded; return this; } @@ -73,10 +75,10 @@ public Builder succeeded(String... succeeded) { return succeeded(List.of(succeeded)); } public UncountedTerminatedPods build() { - final var o = new UncountedTerminatedPods(); - o.failed = failed; - o.succeeded = succeeded; - return o; + final var _resultValue = new UncountedTerminatedPods(); + _resultValue.failed = failed; + _resultValue.succeeded = succeeded; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPodsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPodsPatch.java index ada231c277..4709132ad2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPodsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1/outputs/UncountedTerminatedPodsPatch.java @@ -58,6 +58,7 @@ public Builder(UncountedTerminatedPodsPatch defaults) { @CustomType.Setter public Builder failed(@Nullable List failed) { + this.failed = failed; return this; } @@ -66,6 +67,7 @@ public Builder failed(String... failed) { } @CustomType.Setter public Builder succeeded(@Nullable List succeeded) { + this.succeeded = succeeded; return this; } @@ -73,10 +75,10 @@ public Builder succeeded(String... succeeded) { return succeeded(List.of(succeeded)); } public UncountedTerminatedPodsPatch build() { - final var o = new UncountedTerminatedPodsPatch(); - o.failed = failed; - o.succeeded = succeeded; - return o; + final var _resultValue = new UncountedTerminatedPodsPatch(); + _resultValue.failed = failed; + _resultValue.succeeded = succeeded; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/CronJobListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/CronJobListArgs.java index e6e1d0ad7a..8c55e716ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/CronJobListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/CronJobListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1beta1.inputs.CronJobArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CronJobListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CronJobListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/inputs/CronJobSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/inputs/CronJobSpecArgs.java index c54e062bb1..6407429643 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/inputs/CronJobSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/inputs/CronJobSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1beta1.inputs.JobTemplateSpecArgs; import java.lang.Boolean; import java.lang.Integer; @@ -305,8 +306,12 @@ public Builder suspend(Boolean suspend) { } public CronJobSpecArgs build() { - $.jobTemplate = Objects.requireNonNull($.jobTemplate, "expected parameter 'jobTemplate' to be non-null"); - $.schedule = Objects.requireNonNull($.schedule, "expected parameter 'schedule' to be non-null"); + if ($.jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "jobTemplate"); + } + if ($.schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "schedule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJob.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJob.java index 7b310b0b69..2a59b1d96a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJob.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJob.java @@ -103,37 +103,42 @@ public Builder(CronJob defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable CronJobSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CronJobStatus status) { + this.status = status; return this; } public CronJob build() { - final var o = new CronJob(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CronJob(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpec.java index ec70fd11b2..32598750e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v1beta1.outputs.JobTemplateSpec; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,60 @@ public Builder(CronJobSpec defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(JobTemplateSpec jobTemplate) { - this.jobTemplate = Objects.requireNonNull(jobTemplate); + if (jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "jobTemplate"); + } + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(String schedule) { - this.schedule = Objects.requireNonNull(schedule); + if (schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "schedule"); + } + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } public CronJobSpec build() { - final var o = new CronJobSpec(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - return o; + final var _resultValue = new CronJobSpec(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpecPatch.java index 74812c15a9..4ca845d22d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobSpecPatch.java @@ -131,49 +131,56 @@ public Builder(CronJobSpecPatch defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(@Nullable JobTemplateSpecPatch jobTemplate) { + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(@Nullable String schedule) { + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } public CronJobSpecPatch build() { - final var o = new CronJobSpecPatch(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - return o; + final var _resultValue = new CronJobSpecPatch(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatus.java index 96e9de0e9a..91a0947dc9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatus.java @@ -60,6 +60,7 @@ public Builder(CronJobStatus defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -68,14 +69,15 @@ public Builder active(ObjectReference... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } public CronJobStatus build() { - final var o = new CronJobStatus(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - return o; + final var _resultValue = new CronJobStatus(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatusPatch.java index 6160f2ff22..cd9ec0ad88 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/CronJobStatusPatch.java @@ -60,6 +60,7 @@ public Builder(CronJobStatusPatch defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -68,14 +69,15 @@ public Builder active(ObjectReferencePatch... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } public CronJobStatusPatch build() { - final var o = new CronJobStatusPatch(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - return o; + final var _resultValue = new CronJobStatusPatch(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpec.java index 95e90d03f0..c5b2a8c9e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpec.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpec spec) { + this.spec = spec; return this; } public JobTemplateSpec build() { - final var o = new JobTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpecPatch.java index 34210771b8..df36753c02 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v1beta1/outputs/JobTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpecPatch spec) { + this.spec = spec; return this; } public JobTemplateSpecPatch build() { - final var o = new JobTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/CronJobListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/CronJobListArgs.java index d113c1c128..920c64be91 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/CronJobListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/CronJobListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v2alpha1.inputs.CronJobArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CronJobListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CronJobListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/inputs/CronJobSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/inputs/CronJobSpecArgs.java index 6eabe63cc8..579c8dea96 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/inputs/CronJobSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/inputs/CronJobSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v2alpha1.inputs.JobTemplateSpecArgs; import java.lang.Boolean; import java.lang.Integer; @@ -305,8 +306,12 @@ public Builder suspend(Boolean suspend) { } public CronJobSpecArgs build() { - $.jobTemplate = Objects.requireNonNull($.jobTemplate, "expected parameter 'jobTemplate' to be non-null"); - $.schedule = Objects.requireNonNull($.schedule, "expected parameter 'schedule' to be non-null"); + if ($.jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "jobTemplate"); + } + if ($.schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpecArgs", "schedule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJob.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJob.java index bd9659e027..7a879dce3a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJob.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJob.java @@ -103,37 +103,42 @@ public Builder(CronJob defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable CronJobSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CronJobStatus status) { + this.status = status; return this; } public CronJob build() { - final var o = new CronJob(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CronJob(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpec.java index fea7c9eb99..cb75514359 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.batch.v2alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.batch.v2alpha1.outputs.JobTemplateSpec; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,60 @@ public Builder(CronJobSpec defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(JobTemplateSpec jobTemplate) { - this.jobTemplate = Objects.requireNonNull(jobTemplate); + if (jobTemplate == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "jobTemplate"); + } + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(String schedule) { - this.schedule = Objects.requireNonNull(schedule); + if (schedule == null) { + throw new MissingRequiredPropertyException("CronJobSpec", "schedule"); + } + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } public CronJobSpec build() { - final var o = new CronJobSpec(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - return o; + final var _resultValue = new CronJobSpec(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpecPatch.java index bcc0888771..503ac0e33c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobSpecPatch.java @@ -131,49 +131,56 @@ public Builder(CronJobSpecPatch defaults) { @CustomType.Setter public Builder concurrencyPolicy(@Nullable String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @CustomType.Setter public Builder failedJobsHistoryLimit(@Nullable Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @CustomType.Setter public Builder jobTemplate(@Nullable JobTemplateSpecPatch jobTemplate) { + this.jobTemplate = jobTemplate; return this; } @CustomType.Setter public Builder schedule(@Nullable String schedule) { + this.schedule = schedule; return this; } @CustomType.Setter public Builder startingDeadlineSeconds(@Nullable Integer startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @CustomType.Setter public Builder successfulJobsHistoryLimit(@Nullable Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @CustomType.Setter public Builder suspend(@Nullable Boolean suspend) { + this.suspend = suspend; return this; } public CronJobSpecPatch build() { - final var o = new CronJobSpecPatch(); - o.concurrencyPolicy = concurrencyPolicy; - o.failedJobsHistoryLimit = failedJobsHistoryLimit; - o.jobTemplate = jobTemplate; - o.schedule = schedule; - o.startingDeadlineSeconds = startingDeadlineSeconds; - o.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - o.suspend = suspend; - return o; + final var _resultValue = new CronJobSpecPatch(); + _resultValue.concurrencyPolicy = concurrencyPolicy; + _resultValue.failedJobsHistoryLimit = failedJobsHistoryLimit; + _resultValue.jobTemplate = jobTemplate; + _resultValue.schedule = schedule; + _resultValue.startingDeadlineSeconds = startingDeadlineSeconds; + _resultValue.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + _resultValue.suspend = suspend; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatus.java index 3920c8d720..27b384a63f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatus.java @@ -60,6 +60,7 @@ public Builder(CronJobStatus defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -68,14 +69,15 @@ public Builder active(ObjectReference... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } public CronJobStatus build() { - final var o = new CronJobStatus(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - return o; + final var _resultValue = new CronJobStatus(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatusPatch.java index 8145b070a0..5563bf86b1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/CronJobStatusPatch.java @@ -60,6 +60,7 @@ public Builder(CronJobStatusPatch defaults) { @CustomType.Setter public Builder active(@Nullable List active) { + this.active = active; return this; } @@ -68,14 +69,15 @@ public Builder active(ObjectReferencePatch... active) { } @CustomType.Setter public Builder lastScheduleTime(@Nullable String lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } public CronJobStatusPatch build() { - final var o = new CronJobStatusPatch(); - o.active = active; - o.lastScheduleTime = lastScheduleTime; - return o; + final var _resultValue = new CronJobStatusPatch(); + _resultValue.active = active; + _resultValue.lastScheduleTime = lastScheduleTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpec.java index 60d05a9e3a..c4d7fd3fe5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpec.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpec spec) { + this.spec = spec; return this; } public JobTemplateSpec build() { - final var o = new JobTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpecPatch.java index 5b99417229..fe36cf0053 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/batch/v2alpha1/outputs/JobTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(JobTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable JobSpecPatch spec) { + this.spec = spec; return this; } public JobTemplateSpecPatch build() { - final var o = new JobTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new JobTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestArgs.java index abd80a367f..96a3668b67 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1.inputs.CertificateSigningRequestSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -172,7 +173,9 @@ public Builder spec(CertificateSigningRequestSpecArgs spec) { public CertificateSigningRequestArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestListArgs.java index b304fb7a31..a17bf3f3a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/CertificateSigningRequestListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1.inputs.CertificateSigningRequestArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -182,7 +183,9 @@ public Builder metadata(ListMetaArgs metadata) { public CertificateSigningRequestListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestArgs.java index c701b55121..2573ae4bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1.inputs.CertificateSigningRequestSpecArgs; import com.pulumi.kubernetes.certificates.v1.inputs.CertificateSigningRequestStatusArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -220,7 +221,9 @@ public Builder status(CertificateSigningRequestStatusArgs status) { public CertificateSigningRequestArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestConditionArgs.java index 6348cc26c8..e141a4cd8d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestConditionArgs.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; @@ -305,8 +306,12 @@ public Builder type(String type) { } public CertificateSigningRequestConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestSpecArgs.java index 7ed0259aff..f1576f0bc1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/inputs/CertificateSigningRequestSpecArgs.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; @@ -551,8 +552,12 @@ public Builder username(String username) { } public CertificateSigningRequestSpecArgs build() { - $.request = Objects.requireNonNull($.request, "expected parameter 'request' to be non-null"); - $.signerName = Objects.requireNonNull($.signerName, "expected parameter 'signerName' to be non-null"); + if ($.request == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpecArgs", "request"); + } + if ($.signerName == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpecArgs", "signerName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequest.java index babd89b482..523db7930c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequest.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1.outputs.CertificateSigningRequestSpec; import com.pulumi.kubernetes.certificates.v1.outputs.CertificateSigningRequestStatus; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; @@ -95,37 +96,44 @@ public Builder(CertificateSigningRequest defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CertificateSigningRequestSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequest", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CertificateSigningRequestStatus status) { + this.status = status; return this; } public CertificateSigningRequest build() { - final var o = new CertificateSigningRequest(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CertificateSigningRequest(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestCondition.java index 2e1c9ec22c..2dd5b0214b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -134,43 +135,53 @@ public Builder(CertificateSigningRequestCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestCondition", "type"); + } + this.type = type; return this; } public CertificateSigningRequestCondition build() { - final var o = new CertificateSigningRequestCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CertificateSigningRequestCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestConditionPatch.java index 59dc5477c3..00edf0a0cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestConditionPatch.java @@ -134,43 +134,49 @@ public Builder(CertificateSigningRequestConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CertificateSigningRequestConditionPatch build() { - final var o = new CertificateSigningRequestConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CertificateSigningRequestConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpec.java index 02ee56653e..18f910d49b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -233,16 +234,19 @@ public Builder(CertificateSigningRequestSpec defaults) { @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } @CustomType.Setter public Builder extra(@Nullable Map> extra) { + this.extra = extra; return this; } @CustomType.Setter public Builder groups(@Nullable List groups) { + this.groups = groups; return this; } @@ -251,21 +255,29 @@ public Builder groups(String... groups) { } @CustomType.Setter public Builder request(String request) { - this.request = Objects.requireNonNull(request); + if (request == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpec", "request"); + } + this.request = request; return this; } @CustomType.Setter public Builder signerName(String signerName) { - this.signerName = Objects.requireNonNull(signerName); + if (signerName == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpec", "signerName"); + } + this.signerName = signerName; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } @CustomType.Setter public Builder usages(@Nullable List usages) { + this.usages = usages; return this; } @@ -274,20 +286,21 @@ public Builder usages(String... usages) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } public CertificateSigningRequestSpec build() { - final var o = new CertificateSigningRequestSpec(); - o.expirationSeconds = expirationSeconds; - o.extra = extra; - o.groups = groups; - o.request = request; - o.signerName = signerName; - o.uid = uid; - o.usages = usages; - o.username = username; - return o; + final var _resultValue = new CertificateSigningRequestSpec(); + _resultValue.expirationSeconds = expirationSeconds; + _resultValue.extra = extra; + _resultValue.groups = groups; + _resultValue.request = request; + _resultValue.signerName = signerName; + _resultValue.uid = uid; + _resultValue.usages = usages; + _resultValue.username = username; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpecPatch.java index 4d28f22d97..33dc5340bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestSpecPatch.java @@ -233,16 +233,19 @@ public Builder(CertificateSigningRequestSpecPatch defaults) { @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } @CustomType.Setter public Builder extra(@Nullable Map> extra) { + this.extra = extra; return this; } @CustomType.Setter public Builder groups(@Nullable List groups) { + this.groups = groups; return this; } @@ -251,21 +254,25 @@ public Builder groups(String... groups) { } @CustomType.Setter public Builder request(@Nullable String request) { + this.request = request; return this; } @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } @CustomType.Setter public Builder usages(@Nullable List usages) { + this.usages = usages; return this; } @@ -274,20 +281,21 @@ public Builder usages(String... usages) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } public CertificateSigningRequestSpecPatch build() { - final var o = new CertificateSigningRequestSpecPatch(); - o.expirationSeconds = expirationSeconds; - o.extra = extra; - o.groups = groups; - o.request = request; - o.signerName = signerName; - o.uid = uid; - o.usages = usages; - o.username = username; - return o; + final var _resultValue = new CertificateSigningRequestSpecPatch(); + _resultValue.expirationSeconds = expirationSeconds; + _resultValue.extra = extra; + _resultValue.groups = groups; + _resultValue.request = request; + _resultValue.signerName = signerName; + _resultValue.uid = uid; + _resultValue.usages = usages; + _resultValue.username = username; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatus.java index 0162925257..63fb80f3e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatus.java @@ -102,11 +102,13 @@ public Builder(CertificateSigningRequestStatus defaults) { @CustomType.Setter public Builder certificate(@Nullable String certificate) { + this.certificate = certificate; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -114,10 +116,10 @@ public Builder conditions(CertificateSigningRequestCondition... conditions) { return conditions(List.of(conditions)); } public CertificateSigningRequestStatus build() { - final var o = new CertificateSigningRequestStatus(); - o.certificate = certificate; - o.conditions = conditions; - return o; + final var _resultValue = new CertificateSigningRequestStatus(); + _resultValue.certificate = certificate; + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatusPatch.java index 962e1f52ef..f0c979f076 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1/outputs/CertificateSigningRequestStatusPatch.java @@ -102,11 +102,13 @@ public Builder(CertificateSigningRequestStatusPatch defaults) { @CustomType.Setter public Builder certificate(@Nullable String certificate) { + this.certificate = certificate; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -114,10 +116,10 @@ public Builder conditions(CertificateSigningRequestConditionPatch... conditions) return conditions(List.of(conditions)); } public CertificateSigningRequestStatusPatch build() { - final var o = new CertificateSigningRequestStatusPatch(); - o.certificate = certificate; - o.conditions = conditions; - return o; + final var _resultValue = new CertificateSigningRequestStatusPatch(); + _resultValue.certificate = certificate; + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleArgs.java index 415dc3702c..cb883caa51 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(ClusterTrustBundleSpecArgs spec) { public ClusterTrustBundleArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleListArgs.java index ae18c0deab..eba30e1c55 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/ClusterTrustBundleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterTrustBundleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleArgs.java index c8c1c84d54..f1ad590864 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1alpha1.inputs.ClusterTrustBundleSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -200,7 +201,9 @@ public Builder spec(ClusterTrustBundleSpecArgs spec) { public ClusterTrustBundleArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleSpecArgs.java index b14f73c438..e76d9f500d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/inputs/ClusterTrustBundleSpecArgs.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; @@ -165,7 +166,9 @@ public Builder trustBundle(String trustBundle) { } public ClusterTrustBundleSpecArgs build() { - $.trustBundle = Objects.requireNonNull($.trustBundle, "expected parameter 'trustBundle' to be non-null"); + if ($.trustBundle == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleSpecArgs", "trustBundle"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundle.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundle.java index 0088df0c84..7d4c63eda0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundle.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundle.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1alpha1.outputs.ClusterTrustBundleSpec; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(ClusterTrustBundle defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ClusterTrustBundleSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundle", "spec"); + } + this.spec = spec; return this; } public ClusterTrustBundle build() { - final var o = new ClusterTrustBundle(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ClusterTrustBundle(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpec.java index cdaa62bd0f..df62ef6894 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -82,19 +83,23 @@ public Builder(ClusterTrustBundleSpec defaults) { @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } @CustomType.Setter public Builder trustBundle(String trustBundle) { - this.trustBundle = Objects.requireNonNull(trustBundle); + if (trustBundle == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleSpec", "trustBundle"); + } + this.trustBundle = trustBundle; return this; } public ClusterTrustBundleSpec build() { - final var o = new ClusterTrustBundleSpec(); - o.signerName = signerName; - o.trustBundle = trustBundle; - return o; + final var _resultValue = new ClusterTrustBundleSpec(); + _resultValue.signerName = signerName; + _resultValue.trustBundle = trustBundle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpecPatch.java index 5d27b85107..3b1c02f0aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1alpha1/outputs/ClusterTrustBundleSpecPatch.java @@ -82,19 +82,21 @@ public Builder(ClusterTrustBundleSpecPatch defaults) { @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } @CustomType.Setter public Builder trustBundle(@Nullable String trustBundle) { + this.trustBundle = trustBundle; return this; } public ClusterTrustBundleSpecPatch build() { - final var o = new ClusterTrustBundleSpecPatch(); - o.signerName = signerName; - o.trustBundle = trustBundle; - return o; + final var _resultValue = new ClusterTrustBundleSpecPatch(); + _resultValue.signerName = signerName; + _resultValue.trustBundle = trustBundle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/CertificateSigningRequestListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/CertificateSigningRequestListArgs.java index e808058e95..aba9ecd14e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/CertificateSigningRequestListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/CertificateSigningRequestListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.certificates.v1beta1.inputs.CertificateSigningRequestArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder metadata(ListMetaArgs metadata) { public CertificateSigningRequestListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestConditionArgs.java index 59506b12b7..91ef15f7a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestConditionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,7 +262,9 @@ public Builder type(String type) { } public CertificateSigningRequestConditionArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestSpecArgs.java index 769adee7df..70a7e4d8eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/inputs/CertificateSigningRequestSpecArgs.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.Map; @@ -353,7 +354,9 @@ public Builder username(String username) { } public CertificateSigningRequestSpecArgs build() { - $.request = Objects.requireNonNull($.request, "expected parameter 'request' to be non-null"); + if ($.request == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpecArgs", "request"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequest.java index 819440d8bd..499630a938 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequest.java @@ -95,37 +95,42 @@ public Builder(CertificateSigningRequest defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable CertificateSigningRequestSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable CertificateSigningRequestStatus status) { + this.status = status; return this; } public CertificateSigningRequest build() { - final var o = new CertificateSigningRequest(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new CertificateSigningRequest(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestCondition.java index 6f241b7b8f..105d97a8b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1beta1.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,43 +115,51 @@ public Builder(CertificateSigningRequestCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestCondition", "type"); + } + this.type = type; return this; } public CertificateSigningRequestCondition build() { - final var o = new CertificateSigningRequestCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CertificateSigningRequestCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestConditionPatch.java index 6f4e5a0a00..d7db1c73d8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestConditionPatch.java @@ -114,43 +114,49 @@ public Builder(CertificateSigningRequestConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public CertificateSigningRequestConditionPatch build() { - final var o = new CertificateSigningRequestConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new CertificateSigningRequestConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpec.java index 3b368bc781..f5b56e9acd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.certificates.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Map; @@ -144,11 +145,13 @@ public Builder(CertificateSigningRequestSpec defaults) { @CustomType.Setter public Builder extra(@Nullable Map> extra) { + this.extra = extra; return this; } @CustomType.Setter public Builder groups(@Nullable List groups) { + this.groups = groups; return this; } @@ -157,21 +160,27 @@ public Builder groups(String... groups) { } @CustomType.Setter public Builder request(String request) { - this.request = Objects.requireNonNull(request); + if (request == null) { + throw new MissingRequiredPropertyException("CertificateSigningRequestSpec", "request"); + } + this.request = request; return this; } @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } @CustomType.Setter public Builder usages(@Nullable List usages) { + this.usages = usages; return this; } @@ -180,19 +189,20 @@ public Builder usages(String... usages) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } public CertificateSigningRequestSpec build() { - final var o = new CertificateSigningRequestSpec(); - o.extra = extra; - o.groups = groups; - o.request = request; - o.signerName = signerName; - o.uid = uid; - o.usages = usages; - o.username = username; - return o; + final var _resultValue = new CertificateSigningRequestSpec(); + _resultValue.extra = extra; + _resultValue.groups = groups; + _resultValue.request = request; + _resultValue.signerName = signerName; + _resultValue.uid = uid; + _resultValue.usages = usages; + _resultValue.username = username; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpecPatch.java index f09256c3dd..e6c7e08b64 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestSpecPatch.java @@ -144,11 +144,13 @@ public Builder(CertificateSigningRequestSpecPatch defaults) { @CustomType.Setter public Builder extra(@Nullable Map> extra) { + this.extra = extra; return this; } @CustomType.Setter public Builder groups(@Nullable List groups) { + this.groups = groups; return this; } @@ -157,21 +159,25 @@ public Builder groups(String... groups) { } @CustomType.Setter public Builder request(@Nullable String request) { + this.request = request; return this; } @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } @CustomType.Setter public Builder usages(@Nullable List usages) { + this.usages = usages; return this; } @@ -180,19 +186,20 @@ public Builder usages(String... usages) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } public CertificateSigningRequestSpecPatch build() { - final var o = new CertificateSigningRequestSpecPatch(); - o.extra = extra; - o.groups = groups; - o.request = request; - o.signerName = signerName; - o.uid = uid; - o.usages = usages; - o.username = username; - return o; + final var _resultValue = new CertificateSigningRequestSpecPatch(); + _resultValue.extra = extra; + _resultValue.groups = groups; + _resultValue.request = request; + _resultValue.signerName = signerName; + _resultValue.uid = uid; + _resultValue.usages = usages; + _resultValue.username = username; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatus.java index 9826c275a8..c7a82b6395 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatus.java @@ -60,11 +60,13 @@ public Builder(CertificateSigningRequestStatus defaults) { @CustomType.Setter public Builder certificate(@Nullable String certificate) { + this.certificate = certificate; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -72,10 +74,10 @@ public Builder conditions(CertificateSigningRequestCondition... conditions) { return conditions(List.of(conditions)); } public CertificateSigningRequestStatus build() { - final var o = new CertificateSigningRequestStatus(); - o.certificate = certificate; - o.conditions = conditions; - return o; + final var _resultValue = new CertificateSigningRequestStatus(); + _resultValue.certificate = certificate; + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatusPatch.java index d4548f7108..d4a7cff702 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/certificates/v1beta1/outputs/CertificateSigningRequestStatusPatch.java @@ -60,11 +60,13 @@ public Builder(CertificateSigningRequestStatusPatch defaults) { @CustomType.Setter public Builder certificate(@Nullable String certificate) { + this.certificate = certificate; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -72,10 +74,10 @@ public Builder conditions(CertificateSigningRequestConditionPatch... conditions) return conditions(List.of(conditions)); } public CertificateSigningRequestStatusPatch build() { - final var o = new CertificateSigningRequestStatusPatch(); - o.certificate = certificate; - o.conditions = conditions; - return o; + final var _resultValue = new CertificateSigningRequestStatusPatch(); + _resultValue.certificate = certificate; + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/LeaseListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/LeaseListArgs.java index 3483e02a43..e22bb090e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/LeaseListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/LeaseListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.coordination.v1.inputs.LeaseArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public LeaseListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("LeaseListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/Lease.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/Lease.java index 01665db2d7..06a8565d79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/Lease.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/Lease.java @@ -88,31 +88,35 @@ public Builder(Lease defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable LeaseSpec spec) { + this.spec = spec; return this; } public Lease build() { - final var o = new Lease(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new Lease(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpec.java index 68598a0e45..b347efe1a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpec.java @@ -101,37 +101,42 @@ public Builder(LeaseSpec defaults) { @CustomType.Setter public Builder acquireTime(@Nullable String acquireTime) { + this.acquireTime = acquireTime; return this; } @CustomType.Setter public Builder holderIdentity(@Nullable String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @CustomType.Setter public Builder leaseDurationSeconds(@Nullable Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @CustomType.Setter public Builder leaseTransitions(@Nullable Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @CustomType.Setter public Builder renewTime(@Nullable String renewTime) { + this.renewTime = renewTime; return this; } public LeaseSpec build() { - final var o = new LeaseSpec(); - o.acquireTime = acquireTime; - o.holderIdentity = holderIdentity; - o.leaseDurationSeconds = leaseDurationSeconds; - o.leaseTransitions = leaseTransitions; - o.renewTime = renewTime; - return o; + final var _resultValue = new LeaseSpec(); + _resultValue.acquireTime = acquireTime; + _resultValue.holderIdentity = holderIdentity; + _resultValue.leaseDurationSeconds = leaseDurationSeconds; + _resultValue.leaseTransitions = leaseTransitions; + _resultValue.renewTime = renewTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpecPatch.java index b3ba7f2e88..33465569cc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1/outputs/LeaseSpecPatch.java @@ -101,37 +101,42 @@ public Builder(LeaseSpecPatch defaults) { @CustomType.Setter public Builder acquireTime(@Nullable String acquireTime) { + this.acquireTime = acquireTime; return this; } @CustomType.Setter public Builder holderIdentity(@Nullable String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @CustomType.Setter public Builder leaseDurationSeconds(@Nullable Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @CustomType.Setter public Builder leaseTransitions(@Nullable Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @CustomType.Setter public Builder renewTime(@Nullable String renewTime) { + this.renewTime = renewTime; return this; } public LeaseSpecPatch build() { - final var o = new LeaseSpecPatch(); - o.acquireTime = acquireTime; - o.holderIdentity = holderIdentity; - o.leaseDurationSeconds = leaseDurationSeconds; - o.leaseTransitions = leaseTransitions; - o.renewTime = renewTime; - return o; + final var _resultValue = new LeaseSpecPatch(); + _resultValue.acquireTime = acquireTime; + _resultValue.holderIdentity = holderIdentity; + _resultValue.leaseDurationSeconds = leaseDurationSeconds; + _resultValue.leaseTransitions = leaseTransitions; + _resultValue.renewTime = renewTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/LeaseListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/LeaseListArgs.java index b034eb5567..47ea6d2e64 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/LeaseListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/LeaseListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.coordination.v1beta1.inputs.LeaseArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public LeaseListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("LeaseListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/Lease.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/Lease.java index 30c5e584bc..d4fe59eacc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/Lease.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/Lease.java @@ -88,31 +88,35 @@ public Builder(Lease defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable LeaseSpec spec) { + this.spec = spec; return this; } public Lease build() { - final var o = new Lease(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new Lease(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpec.java index e3c0e97ee6..6484e0a64d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpec.java @@ -101,37 +101,42 @@ public Builder(LeaseSpec defaults) { @CustomType.Setter public Builder acquireTime(@Nullable String acquireTime) { + this.acquireTime = acquireTime; return this; } @CustomType.Setter public Builder holderIdentity(@Nullable String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @CustomType.Setter public Builder leaseDurationSeconds(@Nullable Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @CustomType.Setter public Builder leaseTransitions(@Nullable Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @CustomType.Setter public Builder renewTime(@Nullable String renewTime) { + this.renewTime = renewTime; return this; } public LeaseSpec build() { - final var o = new LeaseSpec(); - o.acquireTime = acquireTime; - o.holderIdentity = holderIdentity; - o.leaseDurationSeconds = leaseDurationSeconds; - o.leaseTransitions = leaseTransitions; - o.renewTime = renewTime; - return o; + final var _resultValue = new LeaseSpec(); + _resultValue.acquireTime = acquireTime; + _resultValue.holderIdentity = holderIdentity; + _resultValue.leaseDurationSeconds = leaseDurationSeconds; + _resultValue.leaseTransitions = leaseTransitions; + _resultValue.renewTime = renewTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpecPatch.java index c165a4ff2e..6a2549caa5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/coordination/v1beta1/outputs/LeaseSpecPatch.java @@ -101,37 +101,42 @@ public Builder(LeaseSpecPatch defaults) { @CustomType.Setter public Builder acquireTime(@Nullable String acquireTime) { + this.acquireTime = acquireTime; return this; } @CustomType.Setter public Builder holderIdentity(@Nullable String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @CustomType.Setter public Builder leaseDurationSeconds(@Nullable Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @CustomType.Setter public Builder leaseTransitions(@Nullable Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @CustomType.Setter public Builder renewTime(@Nullable String renewTime) { + this.renewTime = renewTime; return this; } public LeaseSpecPatch build() { - final var o = new LeaseSpecPatch(); - o.acquireTime = acquireTime; - o.holderIdentity = holderIdentity; - o.leaseDurationSeconds = leaseDurationSeconds; - o.leaseTransitions = leaseTransitions; - o.renewTime = renewTime; - return o; + final var _resultValue = new LeaseSpecPatch(); + _resultValue.acquireTime = acquireTime; + _resultValue.holderIdentity = holderIdentity; + _resultValue.leaseDurationSeconds = leaseDurationSeconds; + _resultValue.leaseTransitions = leaseTransitions; + _resultValue.renewTime = renewTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/BindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/BindingArgs.java index 364b6ba609..3f71ff04ed 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/BindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/BindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder target(ObjectReferenceArgs target) { public BindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.target == null) { + throw new MissingRequiredPropertyException("BindingArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ConfigMapListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ConfigMapListArgs.java index ee77c2d219..0c2dae72a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ConfigMapListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ConfigMapListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ConfigMapArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ConfigMapListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ConfigMapListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EndpointsListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EndpointsListArgs.java index 5e5137736f..501d100053 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EndpointsListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EndpointsListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EndpointsArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EndpointsListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EndpointsListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventArgs.java index 4c8d927178..20532bbaeb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSeriesArgs; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; @@ -675,9 +676,13 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.involvedObject = Objects.requireNonNull($.involvedObject, "expected parameter 'involvedObject' to be non-null"); + if ($.involvedObject == null) { + throw new MissingRequiredPropertyException("EventArgs", "involvedObject"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.metadata = Objects.requireNonNull($.metadata, "expected parameter 'metadata' to be non-null"); + if ($.metadata == null) { + throw new MissingRequiredPropertyException("EventArgs", "metadata"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventListArgs.java index 2effe88ea8..07576c7082 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/EventListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EventListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EventListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/LimitRangeListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/LimitRangeListArgs.java index b34a581335..fdbf275069 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/LimitRangeListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/LimitRangeListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LimitRangeArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public LimitRangeListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("LimitRangeListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NamespaceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NamespaceListArgs.java index 4f7c066ba9..99f817f357 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NamespaceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NamespaceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NamespaceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public NamespaceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("NamespaceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NodeListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NodeListArgs.java index f63c539df4..981f617915 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NodeListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/NodeListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public NodeListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("NodeListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeClaimListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeClaimListArgs.java index 5d6bf8987e..3320533933 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeClaimListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeClaimListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PersistentVolumeClaimArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PersistentVolumeClaimListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeListArgs.java index 301e37781b..0ae087f279 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PersistentVolumeListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PersistentVolumeArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PersistentVolumeListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PersistentVolumeListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Pod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Pod.java index 224012f3fa..ca8e0a9758 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Pod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Pod.java @@ -36,7 +36,8 @@ * * ## Example Usage * ### Create a Pod with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -58,11 +59,11 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var pod = new Pod("pod", PodArgs.builder()        
+ *         var pod = new Pod("pod", PodArgs.builder()        
  *             .spec(PodSpecArgs.builder()
  *                 .containers(ContainerArgs.builder()
- *                     .image("nginx:1.14.2")
- *                     .name("nginx")
+ *                     .image("nginx:1.14.2")
+ *                     .name("nginx")
  *                     .ports(ContainerPortArgs.builder()
  *                         .containerPort(80)
  *                         .build())
@@ -72,9 +73,11 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create a Pod with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -97,14 +100,14 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var pod = new Pod("pod", PodArgs.builder()        
+ *         var pod = new Pod("pod", PodArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .name("nginx")
+ *                 .name("nginx")
  *                 .build())
  *             .spec(PodSpecArgs.builder()
  *                 .containers(ContainerArgs.builder()
- *                     .image("nginx:1.14.2")
- *                     .name("nginx")
+ *                     .image("nginx:1.14.2")
+ *                     .name("nginx")
  *                     .ports(ContainerPortArgs.builder()
  *                         .containerPort(80)
  *                         .build())
@@ -114,7 +117,8 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:core/v1:Pod") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodListArgs.java index f32f23e034..9d315c9ece 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodTemplateListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodTemplateListArgs.java index f19a9ef46b..1eeb88de58 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodTemplateListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/PodTemplateListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodTemplateListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodTemplateListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ReplicationControllerListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ReplicationControllerListArgs.java index fe6a3cc1ec..97e1ff2630 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ReplicationControllerListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ReplicationControllerListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ReplicationControllerArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ReplicationControllerListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ReplicationControllerListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ResourceQuotaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ResourceQuotaListArgs.java index 4b6f6dea04..e97dd1e2b6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ResourceQuotaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ResourceQuotaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ResourceQuotaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceQuotaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceQuotaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/SecretListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/SecretListArgs.java index 9449db8b7d..90936bb8b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/SecretListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/SecretListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public SecretListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("SecretListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Service.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Service.java index fdcfa63575..66ed575ffb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Service.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/Service.java @@ -46,7 +46,8 @@ * * ## Example Usage * ### Create a Service with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -68,22 +69,24 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var service = new Service("service", ServiceArgs.builder()        
+ *         var service = new Service("service", ServiceArgs.builder()        
  *             .spec(ServiceSpecArgs.builder()
  *                 .ports(ServicePortArgs.builder()
  *                     .port(80)
- *                     .protocol("TCP")
+ *                     .protocol("TCP")
  *                     .targetPort(9376)
  *                     .build())
- *                 .selector(Map.of("app", "MyApp"))
+ *                 .selector(Map.of("app", "MyApp"))
  *                 .build())
  *             .build());
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create a Service with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -106,23 +109,24 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var service = new Service("service", ServiceArgs.builder()        
+ *         var service = new Service("service", ServiceArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .name("my-service")
+ *                 .name("my-service")
  *                 .build())
  *             .spec(ServiceSpecArgs.builder()
  *                 .ports(ServicePortArgs.builder()
  *                     .port(80)
- *                     .protocol("TCP")
+ *                     .protocol("TCP")
  *                     .targetPort(9376)
  *                     .build())
- *                 .selector(Map.of("app", "MyApp"))
+ *                 .selector(Map.of("app", "MyApp"))
  *                 .build())
  *             .build());
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:core/v1:Service") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceAccountListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceAccountListArgs.java index 237df3aa23..f23c01b991 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceAccountListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceAccountListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ServiceAccountArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ServiceAccountListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ServiceAccountListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceListArgs.java index c9b894f265..ed21e88b82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/ServiceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ServiceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ServiceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ServiceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AWSElasticBlockStoreVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AWSElasticBlockStoreVolumeSourceArgs.java index 5a3a7323fe..3271f7943a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AWSElasticBlockStoreVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AWSElasticBlockStoreVolumeSourceArgs.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; @@ -195,7 +196,9 @@ public Builder volumeID(String volumeID) { } public AWSElasticBlockStoreVolumeSourceArgs build() { - $.volumeID = Objects.requireNonNull($.volumeID, "expected parameter 'volumeID' to be non-null"); + if ($.volumeID == null) { + throw new MissingRequiredPropertyException("AWSElasticBlockStoreVolumeSourceArgs", "volumeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AppArmorProfileArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AppArmorProfileArgs.java index 511289e199..d11203848e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AppArmorProfileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AppArmorProfileArgs.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; @@ -129,7 +130,9 @@ public Builder type(String type) { } public AppArmorProfileArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("AppArmorProfileArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AttachedVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AttachedVolumeArgs.java index 99853ef457..b2c2b78206 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AttachedVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AttachedVolumeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder name(String name) { } public AttachedVolumeArgs build() { - $.devicePath = Objects.requireNonNull($.devicePath, "expected parameter 'devicePath' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.devicePath == null) { + throw new MissingRequiredPropertyException("AttachedVolumeArgs", "devicePath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("AttachedVolumeArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureDiskVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureDiskVolumeSourceArgs.java index d282c71693..df356145db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureDiskVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureDiskVolumeSourceArgs.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; @@ -266,8 +267,12 @@ public Builder readOnly(Boolean readOnly) { } public AzureDiskVolumeSourceArgs build() { - $.diskName = Objects.requireNonNull($.diskName, "expected parameter 'diskName' to be non-null"); - $.diskURI = Objects.requireNonNull($.diskURI, "expected parameter 'diskURI' to be non-null"); + if ($.diskName == null) { + throw new MissingRequiredPropertyException("AzureDiskVolumeSourceArgs", "diskName"); + } + if ($.diskURI == null) { + throw new MissingRequiredPropertyException("AzureDiskVolumeSourceArgs", "diskURI"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFilePersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFilePersistentVolumeSourceArgs.java index 32d511dd41..bf87e8690a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFilePersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFilePersistentVolumeSourceArgs.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; @@ -192,8 +193,12 @@ public Builder shareName(String shareName) { } public AzureFilePersistentVolumeSourceArgs build() { - $.secretName = Objects.requireNonNull($.secretName, "expected parameter 'secretName' to be non-null"); - $.shareName = Objects.requireNonNull($.shareName, "expected parameter 'shareName' to be non-null"); + if ($.secretName == null) { + throw new MissingRequiredPropertyException("AzureFilePersistentVolumeSourceArgs", "secretName"); + } + if ($.shareName == null) { + throw new MissingRequiredPropertyException("AzureFilePersistentVolumeSourceArgs", "shareName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFileVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFileVolumeSourceArgs.java index 78f31debb8..8b7d13bde1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFileVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/AzureFileVolumeSourceArgs.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; @@ -155,8 +156,12 @@ public Builder shareName(String shareName) { } public AzureFileVolumeSourceArgs build() { - $.secretName = Objects.requireNonNull($.secretName, "expected parameter 'secretName' to be non-null"); - $.shareName = Objects.requireNonNull($.shareName, "expected parameter 'shareName' to be non-null"); + if ($.secretName == null) { + throw new MissingRequiredPropertyException("AzureFileVolumeSourceArgs", "secretName"); + } + if ($.shareName == null) { + throw new MissingRequiredPropertyException("AzureFileVolumeSourceArgs", "shareName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIPersistentVolumeSourceArgs.java index 89fdbd2f00..96728dec86 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -416,8 +417,12 @@ public Builder volumeHandle(String volumeHandle) { } public CSIPersistentVolumeSourceArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); - $.volumeHandle = Objects.requireNonNull($.volumeHandle, "expected parameter 'volumeHandle' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("CSIPersistentVolumeSourceArgs", "driver"); + } + if ($.volumeHandle == null) { + throw new MissingRequiredPropertyException("CSIPersistentVolumeSourceArgs", "volumeHandle"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIVolumeSourceArgs.java index ea37b1c352..7e559b863a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CSIVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -231,7 +232,9 @@ public Builder volumeAttributes(Map volumeAttributes) { } public CSIVolumeSourceArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("CSIVolumeSourceArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSPersistentVolumeSourceArgs.java index b73ea4e346..77c5c8557b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -278,7 +279,9 @@ public Builder user(String user) { } public CephFSPersistentVolumeSourceArgs build() { - $.monitors = Objects.requireNonNull($.monitors, "expected parameter 'monitors' to be non-null"); + if ($.monitors == null) { + throw new MissingRequiredPropertyException("CephFSPersistentVolumeSourceArgs", "monitors"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSVolumeSourceArgs.java index bfff6ff77b..626fb0d514 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CephFSVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -278,7 +279,9 @@ public Builder user(String user) { } public CephFSVolumeSourceArgs build() { - $.monitors = Objects.requireNonNull($.monitors, "expected parameter 'monitors' to be non-null"); + if ($.monitors == null) { + throw new MissingRequiredPropertyException("CephFSVolumeSourceArgs", "monitors"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderPersistentVolumeSourceArgs.java index e08381697f..e2c8fac277 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -193,7 +194,9 @@ public Builder volumeID(String volumeID) { } public CinderPersistentVolumeSourceArgs build() { - $.volumeID = Objects.requireNonNull($.volumeID, "expected parameter 'volumeID' to be non-null"); + if ($.volumeID == null) { + throw new MissingRequiredPropertyException("CinderPersistentVolumeSourceArgs", "volumeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderVolumeSourceArgs.java index 9060024d79..ccb91aa126 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/CinderVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -193,7 +194,9 @@ public Builder volumeID(String volumeID) { } public CinderVolumeSourceArgs build() { - $.volumeID = Objects.requireNonNull($.volumeID, "expected parameter 'volumeID' to be non-null"); + if ($.volumeID == null) { + throw new MissingRequiredPropertyException("CinderVolumeSourceArgs", "volumeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ClusterTrustBundleProjectionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ClusterTrustBundleProjectionArgs.java index 4ef19f5557..12dde644f5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ClusterTrustBundleProjectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ClusterTrustBundleProjectionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.Boolean; import java.lang.String; @@ -230,7 +231,9 @@ public Builder signerName(String signerName) { } public ClusterTrustBundleProjectionArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleProjectionArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapKeySelectorArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapKeySelectorArgs.java index 964980222a..30cff5d499 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapKeySelectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapKeySelectorArgs.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; @@ -155,7 +156,9 @@ public Builder optional(Boolean optional) { } public ConfigMapKeySelectorArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ConfigMapKeySelectorArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapNodeConfigSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapNodeConfigSourceArgs.java index 4dad22c9a8..ec57e04c47 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapNodeConfigSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ConfigMapNodeConfigSourceArgs.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; @@ -228,9 +229,15 @@ public Builder uid(String uid) { } public ConfigMapNodeConfigSourceArgs build() { - $.kubeletConfigKey = Objects.requireNonNull($.kubeletConfigKey, "expected parameter 'kubeletConfigKey' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.kubeletConfigKey == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSourceArgs", "kubeletConfigKey"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSourceArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSourceArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerArgs.java index 0c6f1e33d2..015cf50d77 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ContainerPortArgs; import com.pulumi.kubernetes.core.v1.inputs.ContainerResizePolicyArgs; import com.pulumi.kubernetes.core.v1.inputs.EnvFromSourceArgs; @@ -1023,7 +1024,9 @@ public Builder workingDir(String workingDir) { } public ContainerArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerImageArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerImageArgs.java index 801cc79320..05657f4a21 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerImageArgs.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; @@ -129,7 +130,9 @@ public Builder sizeBytes(Integer sizeBytes) { } public ContainerImageArgs build() { - $.names = Objects.requireNonNull($.names, "expected parameter 'names' to be non-null"); + if ($.names == null) { + throw new MissingRequiredPropertyException("ContainerImageArgs", "names"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerPortArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerPortArgs.java index be35808131..efb72fbb5e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerPortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerPortArgs.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; @@ -229,7 +230,9 @@ public Builder protocol(String protocol) { } public ContainerPortArgs build() { - $.containerPort = Objects.requireNonNull($.containerPort, "expected parameter 'containerPort' to be non-null"); + if ($.containerPort == null) { + throw new MissingRequiredPropertyException("ContainerPortArgs", "containerPort"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerResizePolicyArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerResizePolicyArgs.java index a765704c49..714d87cdf8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerResizePolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerResizePolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder restartPolicy(String restartPolicy) { } public ContainerResizePolicyArgs build() { - $.resourceName = Objects.requireNonNull($.resourceName, "expected parameter 'resourceName' to be non-null"); - $.restartPolicy = Objects.requireNonNull($.restartPolicy, "expected parameter 'restartPolicy' to be non-null"); + if ($.resourceName == null) { + throw new MissingRequiredPropertyException("ContainerResizePolicyArgs", "resourceName"); + } + if ($.restartPolicy == null) { + throw new MissingRequiredPropertyException("ContainerResizePolicyArgs", "restartPolicy"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStateTerminatedArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStateTerminatedArgs.java index a6cdc4b672..baaed3aab0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStateTerminatedArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStateTerminatedArgs.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; @@ -303,7 +304,9 @@ public Builder startedAt(String startedAt) { } public ContainerStateTerminatedArgs build() { - $.exitCode = Objects.requireNonNull($.exitCode, "expected parameter 'exitCode' to be non-null"); + if ($.exitCode == null) { + throw new MissingRequiredPropertyException("ContainerStateTerminatedArgs", "exitCode"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStatusArgs.java index cc2077ea47..6837533ca7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ContainerStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ContainerStateArgs; import com.pulumi.kubernetes.core.v1.inputs.ResourceRequirementsArgs; import com.pulumi.kubernetes.core.v1.inputs.VolumeMountStatusArgs; @@ -512,11 +513,21 @@ public Builder volumeMounts(VolumeMountStatusArgs... volumeMounts) { } public ContainerStatusArgs build() { - $.image = Objects.requireNonNull($.image, "expected parameter 'image' to be non-null"); - $.imageID = Objects.requireNonNull($.imageID, "expected parameter 'imageID' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.ready = Objects.requireNonNull($.ready, "expected parameter 'ready' to be non-null"); - $.restartCount = Objects.requireNonNull($.restartCount, "expected parameter 'restartCount' to be non-null"); + if ($.image == null) { + throw new MissingRequiredPropertyException("ContainerStatusArgs", "image"); + } + if ($.imageID == null) { + throw new MissingRequiredPropertyException("ContainerStatusArgs", "imageID"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ContainerStatusArgs", "name"); + } + if ($.ready == null) { + throw new MissingRequiredPropertyException("ContainerStatusArgs", "ready"); + } + if ($.restartCount == null) { + throw new MissingRequiredPropertyException("ContainerStatusArgs", "restartCount"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DaemonEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DaemonEndpointArgs.java index e1e5a3352d..97b29cf3f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DaemonEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DaemonEndpointArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -78,7 +79,9 @@ public Builder Port(Integer Port) { } public DaemonEndpointArgs build() { - $.Port = Objects.requireNonNull($.Port, "expected parameter 'Port' to be non-null"); + if ($.Port == null) { + throw new MissingRequiredPropertyException("DaemonEndpointArgs", "Port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DownwardAPIVolumeFileArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DownwardAPIVolumeFileArgs.java index c63053e1eb..cdab6e66e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DownwardAPIVolumeFileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/DownwardAPIVolumeFileArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ObjectFieldSelectorArgs; import com.pulumi.kubernetes.core.v1.inputs.ResourceFieldSelectorArgs; import java.lang.Integer; @@ -194,7 +195,9 @@ public Builder resourceFieldRef(ResourceFieldSelectorArgs resourceFieldRef) { } public DownwardAPIVolumeFileArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("DownwardAPIVolumeFileArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointAddressArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointAddressArgs.java index db43072df7..d5d6d653ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointAddressArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointAddressArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import java.lang.String; import java.util.Objects; @@ -192,7 +193,9 @@ public Builder targetRef(ObjectReferenceArgs targetRef) { } public EndpointAddressArgs build() { - $.ip = Objects.requireNonNull($.ip, "expected parameter 'ip' to be non-null"); + if ($.ip == null) { + throw new MissingRequiredPropertyException("EndpointAddressArgs", "ip"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointPortArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointPortArgs.java index ee022493bc..7c75ea8a83 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointPortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointPortArgs.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; @@ -228,7 +229,9 @@ public Builder protocol(String protocol) { } public EndpointPortArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("EndpointPortArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EnvVarArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EnvVarArgs.java index 05b4e47dda..2f08cce4fe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EnvVarArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EnvVarArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EnvVarSourceArgs; import java.lang.String; import java.util.Objects; @@ -155,7 +156,9 @@ public Builder valueFrom(EnvVarSourceArgs valueFrom) { } public EnvVarArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("EnvVarArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EphemeralContainerArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EphemeralContainerArgs.java index 4df70cad53..889e80fd65 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EphemeralContainerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EphemeralContainerArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ContainerPortArgs; import com.pulumi.kubernetes.core.v1.inputs.ContainerResizePolicyArgs; import com.pulumi.kubernetes.core.v1.inputs.EnvFromSourceArgs; @@ -1070,7 +1071,9 @@ public Builder workingDir(String workingDir) { } public EphemeralContainerArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("EphemeralContainerArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EventArgs.java index e2dd3a4b24..8d2a558b21 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSeriesArgs; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; @@ -679,9 +680,13 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.involvedObject = Objects.requireNonNull($.involvedObject, "expected parameter 'involvedObject' to be non-null"); + if ($.involvedObject == null) { + throw new MissingRequiredPropertyException("EventArgs", "involvedObject"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.metadata = Objects.requireNonNull($.metadata, "expected parameter 'metadata' to be non-null"); + if ($.metadata == null) { + throw new MissingRequiredPropertyException("EventArgs", "metadata"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexPersistentVolumeSourceArgs.java index 9f583f77d7..7e8c16f81c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -231,7 +232,9 @@ public Builder secretRef(SecretReferenceArgs secretRef) { } public FlexPersistentVolumeSourceArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("FlexPersistentVolumeSourceArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexVolumeSourceArgs.java index 96f80f3874..105a84e46b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/FlexVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -231,7 +232,9 @@ public Builder secretRef(LocalObjectReferenceArgs secretRef) { } public FlexVolumeSourceArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("FlexVolumeSourceArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GCEPersistentDiskVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GCEPersistentDiskVolumeSourceArgs.java index 18ed96b397..c5aafe6d09 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GCEPersistentDiskVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GCEPersistentDiskVolumeSourceArgs.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; @@ -195,7 +196,9 @@ public Builder readOnly(Boolean readOnly) { } public GCEPersistentDiskVolumeSourceArgs build() { - $.pdName = Objects.requireNonNull($.pdName, "expected parameter 'pdName' to be non-null"); + if ($.pdName == null) { + throw new MissingRequiredPropertyException("GCEPersistentDiskVolumeSourceArgs", "pdName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GRPCActionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GRPCActionArgs.java index ef574493d3..6348ee0676 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GRPCActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GRPCActionArgs.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; @@ -122,7 +123,9 @@ public Builder service(String service) { } public GRPCActionArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("GRPCActionArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GitRepoVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GitRepoVolumeSourceArgs.java index 9dad625f97..19a142e2b2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GitRepoVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GitRepoVolumeSourceArgs.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; @@ -156,7 +157,9 @@ public Builder revision(String revision) { } public GitRepoVolumeSourceArgs build() { - $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + if ($.repository == null) { + throw new MissingRequiredPropertyException("GitRepoVolumeSourceArgs", "repository"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsPersistentVolumeSourceArgs.java index ef1d0ab3f2..32010398a4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsPersistentVolumeSourceArgs.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; @@ -192,8 +193,12 @@ public Builder readOnly(Boolean readOnly) { } public GlusterfsPersistentVolumeSourceArgs build() { - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("GlusterfsPersistentVolumeSourceArgs", "endpoints"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("GlusterfsPersistentVolumeSourceArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsVolumeSourceArgs.java index d914c20b11..35b4d18ae5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/GlusterfsVolumeSourceArgs.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; @@ -155,8 +156,12 @@ public Builder readOnly(Boolean readOnly) { } public GlusterfsVolumeSourceArgs build() { - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("GlusterfsVolumeSourceArgs", "endpoints"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("GlusterfsVolumeSourceArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPGetActionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPGetActionArgs.java index 96ec5e5fa0..61d5102115 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPGetActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPGetActionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.HTTPHeaderArgs; import java.lang.Integer; import java.lang.String; @@ -262,7 +263,9 @@ public Builder scheme(String scheme) { } public HTTPGetActionArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("HTTPGetActionArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPHeaderArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPHeaderArgs.java index 9f87a4f2a5..2440331684 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPHeaderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HTTPHeaderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder value(String value) { } public HTTPHeaderArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("HTTPHeaderArgs", "name"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("HTTPHeaderArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HostPathVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HostPathVolumeSourceArgs.java index 2562991751..11af81d2ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HostPathVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/HostPathVolumeSourceArgs.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; @@ -117,7 +118,9 @@ public Builder type(String type) { } public HostPathVolumeSourceArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("HostPathVolumeSourceArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIPersistentVolumeSourceArgs.java index 65c351346a..e51d4f687d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.Integer; @@ -464,9 +465,15 @@ public Builder targetPortal(String targetPortal) { } public ISCSIPersistentVolumeSourceArgs build() { - $.iqn = Objects.requireNonNull($.iqn, "expected parameter 'iqn' to be non-null"); - $.lun = Objects.requireNonNull($.lun, "expected parameter 'lun' to be non-null"); - $.targetPortal = Objects.requireNonNull($.targetPortal, "expected parameter 'targetPortal' to be non-null"); + if ($.iqn == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSourceArgs", "iqn"); + } + if ($.lun == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSourceArgs", "lun"); + } + if ($.targetPortal == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSourceArgs", "targetPortal"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIVolumeSourceArgs.java index ed037174db..730730621b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ISCSIVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.Integer; @@ -464,9 +465,15 @@ public Builder targetPortal(String targetPortal) { } public ISCSIVolumeSourceArgs build() { - $.iqn = Objects.requireNonNull($.iqn, "expected parameter 'iqn' to be non-null"); - $.lun = Objects.requireNonNull($.lun, "expected parameter 'lun' to be non-null"); - $.targetPortal = Objects.requireNonNull($.targetPortal, "expected parameter 'targetPortal' to be non-null"); + if ($.iqn == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSourceArgs", "iqn"); + } + if ($.lun == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSourceArgs", "lun"); + } + if ($.targetPortal == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSourceArgs", "targetPortal"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/KeyToPathArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/KeyToPathArgs.java index 5d7bdcbdbb..24cf99548f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/KeyToPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/KeyToPathArgs.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; @@ -155,8 +156,12 @@ public Builder path(String path) { } public KeyToPathArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("KeyToPathArgs", "key"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("KeyToPathArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeItemArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeItemArgs.java index b3cea4e3d6..f4fdc5fb98 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeItemArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeItemArgs.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.Map; import java.util.Objects; @@ -266,7 +267,9 @@ public Builder type(String type) { } public LimitRangeItemArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitRangeItemArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeSpecArgs.java index 9414e57559..f3897088d6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LimitRangeSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LimitRangeItemArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder limits(LimitRangeItemArgs... limits) { } public LimitRangeSpecArgs build() { - $.limits = Objects.requireNonNull($.limits, "expected parameter 'limits' to be non-null"); + if ($.limits == null) { + throw new MissingRequiredPropertyException("LimitRangeSpecArgs", "limits"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LocalVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LocalVolumeSourceArgs.java index e262b8699b..40f73f90a6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LocalVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/LocalVolumeSourceArgs.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; @@ -117,7 +118,9 @@ public Builder path(String path) { } public LocalVolumeSourceArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("LocalVolumeSourceArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ModifyVolumeStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ModifyVolumeStatusArgs.java index 004fb9d797..b3bfc2140c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ModifyVolumeStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ModifyVolumeStatusArgs.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; @@ -153,7 +154,9 @@ public Builder targetVolumeAttributesClassName(String targetVolumeAttributesClas } public ModifyVolumeStatusArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("ModifyVolumeStatusArgs", "status"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NFSVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NFSVolumeSourceArgs.java index 2e561524aa..cc49b7f34a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NFSVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NFSVolumeSourceArgs.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; @@ -155,8 +156,12 @@ public Builder server(String server) { } public NFSVolumeSourceArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); - $.server = Objects.requireNonNull($.server, "expected parameter 'server' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("NFSVolumeSourceArgs", "path"); + } + if ($.server == null) { + throw new MissingRequiredPropertyException("NFSVolumeSourceArgs", "server"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NamespaceConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NamespaceConditionArgs.java index 7dd50859ee..3e25e0370e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NamespaceConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NamespaceConditionArgs.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; @@ -168,8 +169,12 @@ public Builder type(String type) { } public NamespaceConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("NamespaceConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("NamespaceConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeAddressArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeAddressArgs.java index 34c46e4d4e..b1d60a0254 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeAddressArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeAddressArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder type(String type) { } public NodeAddressArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("NodeAddressArgs", "address"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("NodeAddressArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeConditionArgs.java index ebac8429ce..9c2a4e3c5f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public NodeConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("NodeConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("NodeConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorArgs.java index 2d4f281f1e..ad2cb47678 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorTermArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder nodeSelectorTerms(NodeSelectorTermArgs... nodeSelectorTerms) { } public NodeSelectorArgs build() { - $.nodeSelectorTerms = Objects.requireNonNull($.nodeSelectorTerms, "expected parameter 'nodeSelectorTerms' to be non-null"); + if ($.nodeSelectorTerms == null) { + throw new MissingRequiredPropertyException("NodeSelectorArgs", "nodeSelectorTerms"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorRequirementArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorRequirementArgs.java index 6943981920..a1e5652b66 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorRequirementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSelectorRequirementArgs.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; @@ -165,8 +166,12 @@ public Builder values(String... values) { } public NodeSelectorRequirementArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("NodeSelectorRequirementArgs", "key"); + } + if ($.operator == null) { + throw new MissingRequiredPropertyException("NodeSelectorRequirementArgs", "operator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSystemInfoArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSystemInfoArgs.java index 392d9f447f..0124f8b6e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSystemInfoArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/NodeSystemInfoArgs.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; @@ -411,16 +412,36 @@ public Builder systemUUID(String systemUUID) { } public NodeSystemInfoArgs build() { - $.architecture = Objects.requireNonNull($.architecture, "expected parameter 'architecture' to be non-null"); - $.bootID = Objects.requireNonNull($.bootID, "expected parameter 'bootID' to be non-null"); - $.containerRuntimeVersion = Objects.requireNonNull($.containerRuntimeVersion, "expected parameter 'containerRuntimeVersion' to be non-null"); - $.kernelVersion = Objects.requireNonNull($.kernelVersion, "expected parameter 'kernelVersion' to be non-null"); - $.kubeProxyVersion = Objects.requireNonNull($.kubeProxyVersion, "expected parameter 'kubeProxyVersion' to be non-null"); - $.kubeletVersion = Objects.requireNonNull($.kubeletVersion, "expected parameter 'kubeletVersion' to be non-null"); - $.machineID = Objects.requireNonNull($.machineID, "expected parameter 'machineID' to be non-null"); - $.operatingSystem = Objects.requireNonNull($.operatingSystem, "expected parameter 'operatingSystem' to be non-null"); - $.osImage = Objects.requireNonNull($.osImage, "expected parameter 'osImage' to be non-null"); - $.systemUUID = Objects.requireNonNull($.systemUUID, "expected parameter 'systemUUID' to be non-null"); + if ($.architecture == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "architecture"); + } + if ($.bootID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "bootID"); + } + if ($.containerRuntimeVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "containerRuntimeVersion"); + } + if ($.kernelVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "kernelVersion"); + } + if ($.kubeProxyVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "kubeProxyVersion"); + } + if ($.kubeletVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "kubeletVersion"); + } + if ($.machineID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "machineID"); + } + if ($.operatingSystem == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "operatingSystem"); + } + if ($.osImage == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "osImage"); + } + if ($.systemUUID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfoArgs", "systemUUID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ObjectFieldSelectorArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ObjectFieldSelectorArgs.java index f2afab6ff9..ac8545cd95 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ObjectFieldSelectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ObjectFieldSelectorArgs.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; @@ -117,7 +118,9 @@ public Builder fieldPath(String fieldPath) { } public ObjectFieldSelectorArgs build() { - $.fieldPath = Objects.requireNonNull($.fieldPath, "expected parameter 'fieldPath' to be non-null"); + if ($.fieldPath == null) { + throw new MissingRequiredPropertyException("ObjectFieldSelectorArgs", "fieldPath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimConditionArgs.java index 026ca9bc8d..2db08ea448 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimConditionArgs.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; @@ -225,8 +226,12 @@ public Builder type(String type) { } public PersistentVolumeClaimConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimTemplateArgs.java index 4eb5522703..ce94b27eca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PersistentVolumeClaimSpecArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder spec(PersistentVolumeClaimSpecArgs spec) { } public PersistentVolumeClaimTemplateArgs build() { - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimTemplateArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimVolumeSourceArgs.java index 7448c92f08..fda1ae3314 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PersistentVolumeClaimVolumeSourceArgs.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; @@ -118,7 +119,9 @@ public Builder readOnly(Boolean readOnly) { } public PersistentVolumeClaimVolumeSourceArgs build() { - $.claimName = Objects.requireNonNull($.claimName, "expected parameter 'claimName' to be non-null"); + if ($.claimName == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimVolumeSourceArgs", "claimName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PhotonPersistentDiskVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PhotonPersistentDiskVolumeSourceArgs.java index c06f937a64..2ffcdcbf3e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PhotonPersistentDiskVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PhotonPersistentDiskVolumeSourceArgs.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; @@ -117,7 +118,9 @@ public Builder pdID(String pdID) { } public PhotonPersistentDiskVolumeSourceArgs build() { - $.pdID = Objects.requireNonNull($.pdID, "expected parameter 'pdID' to be non-null"); + if ($.pdID == null) { + throw new MissingRequiredPropertyException("PhotonPersistentDiskVolumeSourceArgs", "pdID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodAffinityTermArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodAffinityTermArgs.java index eaf54be1b3..3604631d36 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodAffinityTermArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodAffinityTermArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.String; import java.util.List; @@ -297,7 +298,9 @@ public Builder topologyKey(String topologyKey) { } public PodAffinityTermArgs build() { - $.topologyKey = Objects.requireNonNull($.topologyKey, "expected parameter 'topologyKey' to be non-null"); + if ($.topologyKey == null) { + throw new MissingRequiredPropertyException("PodAffinityTermArgs", "topologyKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodConditionArgs.java index 5d4d3038ed..e6e9dd63f9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public PodConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("PodConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("PodConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodOSArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodOSArgs.java index 260b854aff..d9b9180443 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodOSArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodOSArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PodOSArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PodOSArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodReadinessGateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodReadinessGateArgs.java index 035eba0cec..a6201d9d99 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodReadinessGateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodReadinessGateArgs.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; @@ -78,7 +79,9 @@ public Builder conditionType(String conditionType) { } public PodReadinessGateArgs build() { - $.conditionType = Objects.requireNonNull($.conditionType, "expected parameter 'conditionType' to be non-null"); + if ($.conditionType == null) { + throw new MissingRequiredPropertyException("PodReadinessGateArgs", "conditionType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimArgs.java index 819fa3af33..16c23c0f3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ClaimSourceArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder source(ClaimSourceArgs source) { } public PodResourceClaimArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PodResourceClaimArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimStatusArgs.java index b5bd6922c0..22b83995ef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodResourceClaimStatusArgs.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; @@ -117,7 +118,9 @@ public Builder resourceClaimName(String resourceClaimName) { } public PodResourceClaimStatusArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PodResourceClaimStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSchedulingGateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSchedulingGateArgs.java index ef2e9f275d..76c9718c59 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSchedulingGateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSchedulingGateArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PodSchedulingGateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PodSchedulingGateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSpecArgs.java index 733783fff4..208ef70016 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.AffinityArgs; import com.pulumi.kubernetes.core.v1.inputs.ContainerArgs; import com.pulumi.kubernetes.core.v1.inputs.EphemeralContainerArgs; @@ -1660,7 +1661,9 @@ public Builder volumes(VolumeArgs... volumes) { } public PodSpecArgs build() { - $.containers = Objects.requireNonNull($.containers, "expected parameter 'containers' to be non-null"); + if ($.containers == null) { + throw new MissingRequiredPropertyException("PodSpecArgs", "containers"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortStatusArgs.java index b4406c0b63..1ad8d4dfb0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortStatusArgs.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; @@ -163,8 +164,12 @@ public Builder protocol(String protocol) { } public PortStatusArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("PortStatusArgs", "port"); + } + if ($.protocol == null) { + throw new MissingRequiredPropertyException("PortStatusArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortworxVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortworxVolumeSourceArgs.java index 491cff1b2d..8a8f67625c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortworxVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PortworxVolumeSourceArgs.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; @@ -155,7 +156,9 @@ public Builder volumeID(String volumeID) { } public PortworxVolumeSourceArgs build() { - $.volumeID = Objects.requireNonNull($.volumeID, "expected parameter 'volumeID' to be non-null"); + if ($.volumeID == null) { + throw new MissingRequiredPropertyException("PortworxVolumeSourceArgs", "volumeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PreferredSchedulingTermArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PreferredSchedulingTermArgs.java index 49eb15b4f9..31e98666c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PreferredSchedulingTermArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PreferredSchedulingTermArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorTermArgs; import java.lang.Integer; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder weight(Integer weight) { } public PreferredSchedulingTermArgs build() { - $.preference = Objects.requireNonNull($.preference, "expected parameter 'preference' to be non-null"); - $.weight = Objects.requireNonNull($.weight, "expected parameter 'weight' to be non-null"); + if ($.preference == null) { + throw new MissingRequiredPropertyException("PreferredSchedulingTermArgs", "preference"); + } + if ($.weight == null) { + throw new MissingRequiredPropertyException("PreferredSchedulingTermArgs", "weight"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ProjectedVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ProjectedVolumeSourceArgs.java index 1e11b83828..71ed6779cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ProjectedVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ProjectedVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.VolumeProjectionArgs; import java.lang.Integer; import java.util.List; @@ -129,7 +130,9 @@ public Builder sources(VolumeProjectionArgs... sources) { } public ProjectedVolumeSourceArgs build() { - $.sources = Objects.requireNonNull($.sources, "expected parameter 'sources' to be non-null"); + if ($.sources == null) { + throw new MissingRequiredPropertyException("ProjectedVolumeSourceArgs", "sources"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/QuobyteVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/QuobyteVolumeSourceArgs.java index f95bea280b..163af3e630 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/QuobyteVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/QuobyteVolumeSourceArgs.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; @@ -266,8 +267,12 @@ public Builder volume(String volume) { } public QuobyteVolumeSourceArgs build() { - $.registry = Objects.requireNonNull($.registry, "expected parameter 'registry' to be non-null"); - $.volume = Objects.requireNonNull($.volume, "expected parameter 'volume' to be non-null"); + if ($.registry == null) { + throw new MissingRequiredPropertyException("QuobyteVolumeSourceArgs", "registry"); + } + if ($.volume == null) { + throw new MissingRequiredPropertyException("QuobyteVolumeSourceArgs", "volume"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDPersistentVolumeSourceArgs.java index 9a77e21bc8..a570d78572 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -352,8 +353,12 @@ public Builder user(String user) { } public RBDPersistentVolumeSourceArgs build() { - $.image = Objects.requireNonNull($.image, "expected parameter 'image' to be non-null"); - $.monitors = Objects.requireNonNull($.monitors, "expected parameter 'monitors' to be non-null"); + if ($.image == null) { + throw new MissingRequiredPropertyException("RBDPersistentVolumeSourceArgs", "image"); + } + if ($.monitors == null) { + throw new MissingRequiredPropertyException("RBDPersistentVolumeSourceArgs", "monitors"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDVolumeSourceArgs.java index 8291499f28..9cd6578768 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/RBDVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -352,8 +353,12 @@ public Builder user(String user) { } public RBDVolumeSourceArgs build() { - $.image = Objects.requireNonNull($.image, "expected parameter 'image' to be non-null"); - $.monitors = Objects.requireNonNull($.monitors, "expected parameter 'monitors' to be non-null"); + if ($.image == null) { + throw new MissingRequiredPropertyException("RBDVolumeSourceArgs", "image"); + } + if ($.monitors == null) { + throw new MissingRequiredPropertyException("RBDVolumeSourceArgs", "monitors"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerConditionArgs.java index 6e3f4c6d91..df4e355c8e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public ReplicationControllerConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("ReplicationControllerConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ReplicationControllerConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerStatusArgs.java index e38eaa89d6..a725a8bf6d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ReplicationControllerStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ReplicationControllerConditionArgs; import java.lang.Integer; import java.util.List; @@ -277,7 +278,9 @@ public Builder replicas(Integer replicas) { } public ReplicationControllerStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("ReplicationControllerStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceClaimArgs.java index 0cde5256df..a9db5b995c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceClaimArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public ResourceClaimArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClaimArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceFieldSelectorArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceFieldSelectorArgs.java index d8be3696db..09dd9f538e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceFieldSelectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ResourceFieldSelectorArgs.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; @@ -154,7 +155,9 @@ public Builder resource(String resource) { } public ResourceFieldSelectorArgs build() { - $.resource = Objects.requireNonNull($.resource, "expected parameter 'resource' to be non-null"); + if ($.resource == null) { + throw new MissingRequiredPropertyException("ResourceFieldSelectorArgs", "resource"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOPersistentVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOPersistentVolumeSourceArgs.java index 683b67feb4..48a7c249b1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOPersistentVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOPersistentVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SecretReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -415,9 +416,15 @@ public Builder volumeName(String volumeName) { } public ScaleIOPersistentVolumeSourceArgs build() { - $.gateway = Objects.requireNonNull($.gateway, "expected parameter 'gateway' to be non-null"); - $.secretRef = Objects.requireNonNull($.secretRef, "expected parameter 'secretRef' to be non-null"); - $.system = Objects.requireNonNull($.system, "expected parameter 'system' to be non-null"); + if ($.gateway == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSourceArgs", "gateway"); + } + if ($.secretRef == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSourceArgs", "secretRef"); + } + if ($.system == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSourceArgs", "system"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOVolumeSourceArgs.java index 13915356b1..694ba18527 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScaleIOVolumeSourceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.LocalObjectReferenceArgs; import java.lang.Boolean; import java.lang.String; @@ -415,9 +416,15 @@ public Builder volumeName(String volumeName) { } public ScaleIOVolumeSourceArgs build() { - $.gateway = Objects.requireNonNull($.gateway, "expected parameter 'gateway' to be non-null"); - $.secretRef = Objects.requireNonNull($.secretRef, "expected parameter 'secretRef' to be non-null"); - $.system = Objects.requireNonNull($.system, "expected parameter 'system' to be non-null"); + if ($.gateway == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSourceArgs", "gateway"); + } + if ($.secretRef == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSourceArgs", "secretRef"); + } + if ($.system == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSourceArgs", "system"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScopedResourceSelectorRequirementArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScopedResourceSelectorRequirementArgs.java index d6bd2d6af0..c627b04b39 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScopedResourceSelectorRequirementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ScopedResourceSelectorRequirementArgs.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; @@ -165,8 +166,12 @@ public Builder values(String... values) { } public ScopedResourceSelectorRequirementArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.scopeName = Objects.requireNonNull($.scopeName, "expected parameter 'scopeName' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("ScopedResourceSelectorRequirementArgs", "operator"); + } + if ($.scopeName == null) { + throw new MissingRequiredPropertyException("ScopedResourceSelectorRequirementArgs", "scopeName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SeccompProfileArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SeccompProfileArgs.java index d14594bc22..85df04de63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SeccompProfileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SeccompProfileArgs.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; @@ -125,7 +126,9 @@ public Builder type(String type) { } public SeccompProfileArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("SeccompProfileArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SecretKeySelectorArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SecretKeySelectorArgs.java index 3502d0df99..df050c501f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SecretKeySelectorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SecretKeySelectorArgs.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; @@ -155,7 +156,9 @@ public Builder optional(Boolean optional) { } public SecretKeySelectorArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("SecretKeySelectorArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceAccountTokenProjectionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceAccountTokenProjectionArgs.java index b265355869..de5a3315c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceAccountTokenProjectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceAccountTokenProjectionArgs.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; @@ -155,7 +156,9 @@ public Builder path(String path) { } public ServiceAccountTokenProjectionArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("ServiceAccountTokenProjectionArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServicePortArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServicePortArgs.java index e6d53691e6..6cacbb469b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServicePortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServicePortArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Either; 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; @@ -323,7 +324,9 @@ public Builder targetPort(String targetPort) { } public ServicePortArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("ServicePortArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SleepActionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SleepActionArgs.java index 6348388340..942b402438 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SleepActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SleepActionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -78,7 +79,9 @@ public Builder seconds(Integer seconds) { } public SleepActionArgs build() { - $.seconds = Objects.requireNonNull($.seconds, "expected parameter 'seconds' to be non-null"); + if ($.seconds == null) { + throw new MissingRequiredPropertyException("SleepActionArgs", "seconds"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SysctlArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SysctlArgs.java index 17c4ca16d9..b39270ebb3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SysctlArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SysctlArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder value(String value) { } public SysctlArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("SysctlArgs", "name"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("SysctlArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TCPSocketActionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TCPSocketActionArgs.java index a099c6afcf..974259b33e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TCPSocketActionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TCPSocketActionArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Either; 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; @@ -139,7 +140,9 @@ public Builder port(String port) { } public TCPSocketActionArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("TCPSocketActionArgs", "port"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TaintArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TaintArgs.java index 4ce34f3f32..c652e3a01b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TaintArgs.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; @@ -191,8 +192,12 @@ public Builder value(String value) { } public TaintArgs build() { - $.effect = Objects.requireNonNull($.effect, "expected parameter 'effect' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.effect == null) { + throw new MissingRequiredPropertyException("TaintArgs", "effect"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("TaintArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySelectorLabelRequirementArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySelectorLabelRequirementArgs.java index 78b5755bc7..1dd5d66d3b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySelectorLabelRequirementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySelectorLabelRequirementArgs.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; @@ -126,8 +127,12 @@ public Builder values(String... values) { } public TopologySelectorLabelRequirementArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("TopologySelectorLabelRequirementArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("TopologySelectorLabelRequirementArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySpreadConstraintArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySpreadConstraintArgs.java index af9a6c3e57..0207716ce4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySpreadConstraintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TopologySpreadConstraintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import java.lang.Integer; import java.lang.String; @@ -398,9 +399,15 @@ public Builder whenUnsatisfiable(String whenUnsatisfiable) { } public TopologySpreadConstraintArgs build() { - $.maxSkew = Objects.requireNonNull($.maxSkew, "expected parameter 'maxSkew' to be non-null"); - $.topologyKey = Objects.requireNonNull($.topologyKey, "expected parameter 'topologyKey' to be non-null"); - $.whenUnsatisfiable = Objects.requireNonNull($.whenUnsatisfiable, "expected parameter 'whenUnsatisfiable' to be non-null"); + if ($.maxSkew == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraintArgs", "maxSkew"); + } + if ($.topologyKey == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraintArgs", "topologyKey"); + } + if ($.whenUnsatisfiable == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraintArgs", "whenUnsatisfiable"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedLocalObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedLocalObjectReferenceArgs.java index bcb16173e3..51a10258d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedLocalObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedLocalObjectReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public TypedLocalObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("TypedLocalObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("TypedLocalObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedObjectReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedObjectReferenceArgs.java index a37c928dc9..9cc3e7077b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedObjectReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/TypedObjectReferenceArgs.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 namespace(String namespace) { } public TypedObjectReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("TypedObjectReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("TypedObjectReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeArgs.java index b11abca2ce..ed3dd8004f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.AWSElasticBlockStoreVolumeSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.AzureDiskVolumeSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.AzureFileVolumeSourceArgs; @@ -1234,7 +1235,9 @@ public Builder vsphereVolume(VsphereVirtualDiskVolumeSourceArgs vsphereVolume) { } public VolumeArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("VolumeArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeDeviceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeDeviceArgs.java index fba0273484..d4732786b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeDeviceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeDeviceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder name(String name) { } public VolumeDeviceArgs build() { - $.devicePath = Objects.requireNonNull($.devicePath, "expected parameter 'devicePath' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.devicePath == null) { + throw new MissingRequiredPropertyException("VolumeDeviceArgs", "devicePath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VolumeDeviceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountArgs.java index 1d7ddb3ad7..4fdc08f120 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountArgs.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; @@ -335,8 +336,12 @@ public Builder subPathExpr(String subPathExpr) { } public VolumeMountArgs build() { - $.mountPath = Objects.requireNonNull($.mountPath, "expected parameter 'mountPath' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.mountPath == null) { + throw new MissingRequiredPropertyException("VolumeMountArgs", "mountPath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VolumeMountArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountStatusArgs.java index 50f04a8da7..2138c58342 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VolumeMountStatusArgs.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; @@ -192,8 +193,12 @@ public Builder recursiveReadOnly(String recursiveReadOnly) { } public VolumeMountStatusArgs build() { - $.mountPath = Objects.requireNonNull($.mountPath, "expected parameter 'mountPath' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.mountPath == null) { + throw new MissingRequiredPropertyException("VolumeMountStatusArgs", "mountPath"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("VolumeMountStatusArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VsphereVirtualDiskVolumeSourceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VsphereVirtualDiskVolumeSourceArgs.java index b824983e4f..fafc6d86e3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VsphereVirtualDiskVolumeSourceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/VsphereVirtualDiskVolumeSourceArgs.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; @@ -191,7 +192,9 @@ public Builder volumePath(String volumePath) { } public VsphereVirtualDiskVolumeSourceArgs build() { - $.volumePath = Objects.requireNonNull($.volumePath, "expected parameter 'volumePath' to be non-null"); + if ($.volumePath == null) { + throw new MissingRequiredPropertyException("VsphereVirtualDiskVolumeSourceArgs", "volumePath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/WeightedPodAffinityTermArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/WeightedPodAffinityTermArgs.java index 425699bf8d..ff83c6705c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/WeightedPodAffinityTermArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/WeightedPodAffinityTermArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodAffinityTermArgs; import java.lang.Integer; import java.util.Objects; @@ -116,8 +117,12 @@ public Builder weight(Integer weight) { } public WeightedPodAffinityTermArgs build() { - $.podAffinityTerm = Objects.requireNonNull($.podAffinityTerm, "expected parameter 'podAffinityTerm' to be non-null"); - $.weight = Objects.requireNonNull($.weight, "expected parameter 'weight' to be non-null"); + if ($.podAffinityTerm == null) { + throw new MissingRequiredPropertyException("WeightedPodAffinityTermArgs", "podAffinityTerm"); + } + if ($.weight == null) { + throw new MissingRequiredPropertyException("WeightedPodAffinityTermArgs", "weight"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSource.java index 87d00cf7bd..ff6b262f40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +89,37 @@ public Builder(AWSElasticBlockStoreVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeID(String volumeID) { - this.volumeID = Objects.requireNonNull(volumeID); + if (volumeID == null) { + throw new MissingRequiredPropertyException("AWSElasticBlockStoreVolumeSource", "volumeID"); + } + this.volumeID = volumeID; return this; } public AWSElasticBlockStoreVolumeSource build() { - final var o = new AWSElasticBlockStoreVolumeSource(); - o.fsType = fsType; - o.partition = partition; - o.readOnly = readOnly; - o.volumeID = volumeID; - return o; + final var _resultValue = new AWSElasticBlockStoreVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.partition = partition; + _resultValue.readOnly = readOnly; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSourcePatch.java index d99bfa8456..a9b0a09198 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AWSElasticBlockStoreVolumeSourcePatch.java @@ -88,31 +88,35 @@ public Builder(AWSElasticBlockStoreVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeID(@Nullable String volumeID) { + this.volumeID = volumeID; return this; } public AWSElasticBlockStoreVolumeSourcePatch build() { - final var o = new AWSElasticBlockStoreVolumeSourcePatch(); - o.fsType = fsType; - o.partition = partition; - o.readOnly = readOnly; - o.volumeID = volumeID; - return o; + final var _resultValue = new AWSElasticBlockStoreVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.partition = partition; + _resultValue.readOnly = readOnly; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Affinity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Affinity.java index 781b468c40..3674f6de1c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Affinity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Affinity.java @@ -74,25 +74,28 @@ public Builder(Affinity defaults) { @CustomType.Setter public Builder nodeAffinity(@Nullable NodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } @CustomType.Setter public Builder podAffinity(@Nullable PodAffinity podAffinity) { + this.podAffinity = podAffinity; return this; } @CustomType.Setter public Builder podAntiAffinity(@Nullable PodAntiAffinity podAntiAffinity) { + this.podAntiAffinity = podAntiAffinity; return this; } public Affinity build() { - final var o = new Affinity(); - o.nodeAffinity = nodeAffinity; - o.podAffinity = podAffinity; - o.podAntiAffinity = podAntiAffinity; - return o; + final var _resultValue = new Affinity(); + _resultValue.nodeAffinity = nodeAffinity; + _resultValue.podAffinity = podAffinity; + _resultValue.podAntiAffinity = podAntiAffinity; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AffinityPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AffinityPatch.java index c8b110b184..edf27363f6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AffinityPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AffinityPatch.java @@ -74,25 +74,28 @@ public Builder(AffinityPatch defaults) { @CustomType.Setter public Builder nodeAffinity(@Nullable NodeAffinityPatch nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } @CustomType.Setter public Builder podAffinity(@Nullable PodAffinityPatch podAffinity) { + this.podAffinity = podAffinity; return this; } @CustomType.Setter public Builder podAntiAffinity(@Nullable PodAntiAffinityPatch podAntiAffinity) { + this.podAntiAffinity = podAntiAffinity; return this; } public AffinityPatch build() { - final var o = new AffinityPatch(); - o.nodeAffinity = nodeAffinity; - o.podAffinity = podAffinity; - o.podAntiAffinity = podAntiAffinity; - return o; + final var _resultValue = new AffinityPatch(); + _resultValue.nodeAffinity = nodeAffinity; + _resultValue.podAffinity = podAffinity; + _resultValue.podAntiAffinity = podAntiAffinity; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfile.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfile.java index 2542b20b2c..81921a37a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfile.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfile.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -64,19 +65,23 @@ public Builder(AppArmorProfile defaults) { @CustomType.Setter public Builder localhostProfile(@Nullable String localhostProfile) { + this.localhostProfile = localhostProfile; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("AppArmorProfile", "type"); + } + this.type = type; return this; } public AppArmorProfile build() { - final var o = new AppArmorProfile(); - o.localhostProfile = localhostProfile; - o.type = type; - return o; + final var _resultValue = new AppArmorProfile(); + _resultValue.localhostProfile = localhostProfile; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfilePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfilePatch.java index 0db6afcfc1..d8f43f4006 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfilePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AppArmorProfilePatch.java @@ -64,19 +64,21 @@ public Builder(AppArmorProfilePatch defaults) { @CustomType.Setter public Builder localhostProfile(@Nullable String localhostProfile) { + this.localhostProfile = localhostProfile; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public AppArmorProfilePatch build() { - final var o = new AppArmorProfilePatch(); - o.localhostProfile = localhostProfile; - o.type = type; - return o; + final var _resultValue = new AppArmorProfilePatch(); + _resultValue.localhostProfile = localhostProfile; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolume.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolume.java index 1951d3e339..ebb4741fd7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolume.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolume.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(AttachedVolume defaults) { @CustomType.Setter public Builder devicePath(String devicePath) { - this.devicePath = Objects.requireNonNull(devicePath); + if (devicePath == null) { + throw new MissingRequiredPropertyException("AttachedVolume", "devicePath"); + } + this.devicePath = devicePath; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AttachedVolume", "name"); + } + this.name = name; return this; } public AttachedVolume build() { - final var o = new AttachedVolume(); - o.devicePath = devicePath; - o.name = name; - return o; + final var _resultValue = new AttachedVolume(); + _resultValue.devicePath = devicePath; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolumePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolumePatch.java index 5b44f9d0ed..cd94655df3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolumePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AttachedVolumePatch.java @@ -58,19 +58,21 @@ public Builder(AttachedVolumePatch defaults) { @CustomType.Setter public Builder devicePath(@Nullable String devicePath) { + this.devicePath = devicePath; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public AttachedVolumePatch build() { - final var o = new AttachedVolumePatch(); - o.devicePath = devicePath; - o.name = name; - return o; + final var _resultValue = new AttachedVolumePatch(); + _resultValue.devicePath = devicePath; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSource.java index ebef7bdee5..45a1d0244f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -115,43 +116,53 @@ public Builder(AzureDiskVolumeSource defaults) { @CustomType.Setter public Builder cachingMode(@Nullable String cachingMode) { + this.cachingMode = cachingMode; return this; } @CustomType.Setter public Builder diskName(String diskName) { - this.diskName = Objects.requireNonNull(diskName); + if (diskName == null) { + throw new MissingRequiredPropertyException("AzureDiskVolumeSource", "diskName"); + } + this.diskName = diskName; return this; } @CustomType.Setter public Builder diskURI(String diskURI) { - this.diskURI = Objects.requireNonNull(diskURI); + if (diskURI == null) { + throw new MissingRequiredPropertyException("AzureDiskVolumeSource", "diskURI"); + } + this.diskURI = diskURI; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AzureDiskVolumeSource build() { - final var o = new AzureDiskVolumeSource(); - o.cachingMode = cachingMode; - o.diskName = diskName; - o.diskURI = diskURI; - o.fsType = fsType; - o.kind = kind; - o.readOnly = readOnly; - return o; + final var _resultValue = new AzureDiskVolumeSource(); + _resultValue.cachingMode = cachingMode; + _resultValue.diskName = diskName; + _resultValue.diskURI = diskURI; + _resultValue.fsType = fsType; + _resultValue.kind = kind; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSourcePatch.java index b3fa27b45f..922950182c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureDiskVolumeSourcePatch.java @@ -115,43 +115,49 @@ public Builder(AzureDiskVolumeSourcePatch defaults) { @CustomType.Setter public Builder cachingMode(@Nullable String cachingMode) { + this.cachingMode = cachingMode; return this; } @CustomType.Setter public Builder diskName(@Nullable String diskName) { + this.diskName = diskName; return this; } @CustomType.Setter public Builder diskURI(@Nullable String diskURI) { + this.diskURI = diskURI; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AzureDiskVolumeSourcePatch build() { - final var o = new AzureDiskVolumeSourcePatch(); - o.cachingMode = cachingMode; - o.diskName = diskName; - o.diskURI = diskURI; - o.fsType = fsType; - o.kind = kind; - o.readOnly = readOnly; - return o; + final var _resultValue = new AzureDiskVolumeSourcePatch(); + _resultValue.cachingMode = cachingMode; + _resultValue.diskName = diskName; + _resultValue.diskURI = diskURI; + _resultValue.fsType = fsType; + _resultValue.kind = kind; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSource.java index 3af2b0761e..80f6734865 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +88,39 @@ public Builder(AzureFilePersistentVolumeSource defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretName(String secretName) { - this.secretName = Objects.requireNonNull(secretName); + if (secretName == null) { + throw new MissingRequiredPropertyException("AzureFilePersistentVolumeSource", "secretName"); + } + this.secretName = secretName; return this; } @CustomType.Setter public Builder secretNamespace(@Nullable String secretNamespace) { + this.secretNamespace = secretNamespace; return this; } @CustomType.Setter public Builder shareName(String shareName) { - this.shareName = Objects.requireNonNull(shareName); + if (shareName == null) { + throw new MissingRequiredPropertyException("AzureFilePersistentVolumeSource", "shareName"); + } + this.shareName = shareName; return this; } public AzureFilePersistentVolumeSource build() { - final var o = new AzureFilePersistentVolumeSource(); - o.readOnly = readOnly; - o.secretName = secretName; - o.secretNamespace = secretNamespace; - o.shareName = shareName; - return o; + final var _resultValue = new AzureFilePersistentVolumeSource(); + _resultValue.readOnly = readOnly; + _resultValue.secretName = secretName; + _resultValue.secretNamespace = secretNamespace; + _resultValue.shareName = shareName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSourcePatch.java index fecabd5469..63370ee0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFilePersistentVolumeSourcePatch.java @@ -87,31 +87,35 @@ public Builder(AzureFilePersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } @CustomType.Setter public Builder secretNamespace(@Nullable String secretNamespace) { + this.secretNamespace = secretNamespace; return this; } @CustomType.Setter public Builder shareName(@Nullable String shareName) { + this.shareName = shareName; return this; } public AzureFilePersistentVolumeSourcePatch build() { - final var o = new AzureFilePersistentVolumeSourcePatch(); - o.readOnly = readOnly; - o.secretName = secretName; - o.secretNamespace = secretNamespace; - o.shareName = shareName; - return o; + final var _resultValue = new AzureFilePersistentVolumeSourcePatch(); + _resultValue.readOnly = readOnly; + _resultValue.secretName = secretName; + _resultValue.secretNamespace = secretNamespace; + _resultValue.shareName = shareName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSource.java index 4c318a311b..3204278425 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,32 @@ public Builder(AzureFileVolumeSource defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretName(String secretName) { - this.secretName = Objects.requireNonNull(secretName); + if (secretName == null) { + throw new MissingRequiredPropertyException("AzureFileVolumeSource", "secretName"); + } + this.secretName = secretName; return this; } @CustomType.Setter public Builder shareName(String shareName) { - this.shareName = Objects.requireNonNull(shareName); + if (shareName == null) { + throw new MissingRequiredPropertyException("AzureFileVolumeSource", "shareName"); + } + this.shareName = shareName; return this; } public AzureFileVolumeSource build() { - final var o = new AzureFileVolumeSource(); - o.readOnly = readOnly; - o.secretName = secretName; - o.shareName = shareName; - return o; + final var _resultValue = new AzureFileVolumeSource(); + _resultValue.readOnly = readOnly; + _resultValue.secretName = secretName; + _resultValue.shareName = shareName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSourcePatch.java index 830f33ff28..311b199248 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AzureFileVolumeSourcePatch.java @@ -73,25 +73,28 @@ public Builder(AzureFileVolumeSourcePatch defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } @CustomType.Setter public Builder shareName(@Nullable String shareName) { + this.shareName = shareName; return this; } public AzureFileVolumeSourcePatch build() { - final var o = new AzureFileVolumeSourcePatch(); - o.readOnly = readOnly; - o.secretName = secretName; - o.shareName = shareName; - return o; + final var _resultValue = new AzureFileVolumeSourcePatch(); + _resultValue.readOnly = readOnly; + _resultValue.secretName = secretName; + _resultValue.shareName = shareName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSource.java index a8d362117c..912be96cfa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -173,67 +174,81 @@ public Builder(CSIPersistentVolumeSource defaults) { @CustomType.Setter public Builder controllerExpandSecretRef(@Nullable SecretReference controllerExpandSecretRef) { + this.controllerExpandSecretRef = controllerExpandSecretRef; return this; } @CustomType.Setter public Builder controllerPublishSecretRef(@Nullable SecretReference controllerPublishSecretRef) { + this.controllerPublishSecretRef = controllerPublishSecretRef; return this; } @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("CSIPersistentVolumeSource", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder nodeExpandSecretRef(@Nullable SecretReference nodeExpandSecretRef) { + this.nodeExpandSecretRef = nodeExpandSecretRef; return this; } @CustomType.Setter public Builder nodePublishSecretRef(@Nullable SecretReference nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } @CustomType.Setter public Builder nodeStageSecretRef(@Nullable SecretReference nodeStageSecretRef) { + this.nodeStageSecretRef = nodeStageSecretRef; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeAttributes(@Nullable Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } @CustomType.Setter public Builder volumeHandle(String volumeHandle) { - this.volumeHandle = Objects.requireNonNull(volumeHandle); + if (volumeHandle == null) { + throw new MissingRequiredPropertyException("CSIPersistentVolumeSource", "volumeHandle"); + } + this.volumeHandle = volumeHandle; return this; } public CSIPersistentVolumeSource build() { - final var o = new CSIPersistentVolumeSource(); - o.controllerExpandSecretRef = controllerExpandSecretRef; - o.controllerPublishSecretRef = controllerPublishSecretRef; - o.driver = driver; - o.fsType = fsType; - o.nodeExpandSecretRef = nodeExpandSecretRef; - o.nodePublishSecretRef = nodePublishSecretRef; - o.nodeStageSecretRef = nodeStageSecretRef; - o.readOnly = readOnly; - o.volumeAttributes = volumeAttributes; - o.volumeHandle = volumeHandle; - return o; + final var _resultValue = new CSIPersistentVolumeSource(); + _resultValue.controllerExpandSecretRef = controllerExpandSecretRef; + _resultValue.controllerPublishSecretRef = controllerPublishSecretRef; + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.nodeExpandSecretRef = nodeExpandSecretRef; + _resultValue.nodePublishSecretRef = nodePublishSecretRef; + _resultValue.nodeStageSecretRef = nodeStageSecretRef; + _resultValue.readOnly = readOnly; + _resultValue.volumeAttributes = volumeAttributes; + _resultValue.volumeHandle = volumeHandle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSourcePatch.java index 43fbb4ef6e..f1669cd228 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIPersistentVolumeSourcePatch.java @@ -173,67 +173,77 @@ public Builder(CSIPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder controllerExpandSecretRef(@Nullable SecretReferencePatch controllerExpandSecretRef) { + this.controllerExpandSecretRef = controllerExpandSecretRef; return this; } @CustomType.Setter public Builder controllerPublishSecretRef(@Nullable SecretReferencePatch controllerPublishSecretRef) { + this.controllerPublishSecretRef = controllerPublishSecretRef; return this; } @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder nodeExpandSecretRef(@Nullable SecretReferencePatch nodeExpandSecretRef) { + this.nodeExpandSecretRef = nodeExpandSecretRef; return this; } @CustomType.Setter public Builder nodePublishSecretRef(@Nullable SecretReferencePatch nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } @CustomType.Setter public Builder nodeStageSecretRef(@Nullable SecretReferencePatch nodeStageSecretRef) { + this.nodeStageSecretRef = nodeStageSecretRef; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeAttributes(@Nullable Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } @CustomType.Setter public Builder volumeHandle(@Nullable String volumeHandle) { + this.volumeHandle = volumeHandle; return this; } public CSIPersistentVolumeSourcePatch build() { - final var o = new CSIPersistentVolumeSourcePatch(); - o.controllerExpandSecretRef = controllerExpandSecretRef; - o.controllerPublishSecretRef = controllerPublishSecretRef; - o.driver = driver; - o.fsType = fsType; - o.nodeExpandSecretRef = nodeExpandSecretRef; - o.nodePublishSecretRef = nodePublishSecretRef; - o.nodeStageSecretRef = nodeStageSecretRef; - o.readOnly = readOnly; - o.volumeAttributes = volumeAttributes; - o.volumeHandle = volumeHandle; - return o; + final var _resultValue = new CSIPersistentVolumeSourcePatch(); + _resultValue.controllerExpandSecretRef = controllerExpandSecretRef; + _resultValue.controllerPublishSecretRef = controllerPublishSecretRef; + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.nodeExpandSecretRef = nodeExpandSecretRef; + _resultValue.nodePublishSecretRef = nodePublishSecretRef; + _resultValue.nodeStageSecretRef = nodeStageSecretRef; + _resultValue.readOnly = readOnly; + _resultValue.volumeAttributes = volumeAttributes; + _resultValue.volumeHandle = volumeHandle; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSource.java index 37e7ffccd7..e732831ced 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(CSIVolumeSource defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("CSIVolumeSource", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder nodePublishSecretRef(@Nullable LocalObjectReference nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeAttributes(@Nullable Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } public CSIVolumeSource build() { - final var o = new CSIVolumeSource(); - o.driver = driver; - o.fsType = fsType; - o.nodePublishSecretRef = nodePublishSecretRef; - o.readOnly = readOnly; - o.volumeAttributes = volumeAttributes; - return o; + final var _resultValue = new CSIVolumeSource(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.nodePublishSecretRef = nodePublishSecretRef; + _resultValue.readOnly = readOnly; + _resultValue.volumeAttributes = volumeAttributes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSourcePatch.java index c25d125b32..4a9de6e010 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CSIVolumeSourcePatch.java @@ -103,37 +103,42 @@ public Builder(CSIVolumeSourcePatch defaults) { @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder nodePublishSecretRef(@Nullable LocalObjectReferencePatch nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeAttributes(@Nullable Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } public CSIVolumeSourcePatch build() { - final var o = new CSIVolumeSourcePatch(); - o.driver = driver; - o.fsType = fsType; - o.nodePublishSecretRef = nodePublishSecretRef; - o.readOnly = readOnly; - o.volumeAttributes = volumeAttributes; - return o; + final var _resultValue = new CSIVolumeSourcePatch(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.nodePublishSecretRef = nodePublishSecretRef; + _resultValue.readOnly = readOnly; + _resultValue.volumeAttributes = volumeAttributes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Capabilities.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Capabilities.java index 5dddfabde9..188d84bb8c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Capabilities.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Capabilities.java @@ -58,6 +58,7 @@ public Builder(Capabilities defaults) { @CustomType.Setter public Builder add(@Nullable List add) { + this.add = add; return this; } @@ -66,6 +67,7 @@ public Builder add(String... add) { } @CustomType.Setter public Builder drop(@Nullable List drop) { + this.drop = drop; return this; } @@ -73,10 +75,10 @@ public Builder drop(String... drop) { return drop(List.of(drop)); } public Capabilities build() { - final var o = new Capabilities(); - o.add = add; - o.drop = drop; - return o; + final var _resultValue = new Capabilities(); + _resultValue.add = add; + _resultValue.drop = drop; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CapabilitiesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CapabilitiesPatch.java index fa132011b4..9ae07be3af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CapabilitiesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CapabilitiesPatch.java @@ -58,6 +58,7 @@ public Builder(CapabilitiesPatch defaults) { @CustomType.Setter public Builder add(@Nullable List add) { + this.add = add; return this; } @@ -66,6 +67,7 @@ public Builder add(String... add) { } @CustomType.Setter public Builder drop(@Nullable List drop) { + this.drop = drop; return this; } @@ -73,10 +75,10 @@ public Builder drop(String... drop) { return drop(List.of(drop)); } public CapabilitiesPatch build() { - final var o = new CapabilitiesPatch(); - o.add = add; - o.drop = drop; - return o; + final var _resultValue = new CapabilitiesPatch(); + _resultValue.add = add; + _resultValue.drop = drop; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSource.java index e12f148754..7c9f531b52 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -117,7 +118,10 @@ public Builder(CephFSPersistentVolumeSource defaults) { @CustomType.Setter public Builder monitors(List monitors) { - this.monitors = Objects.requireNonNull(monitors); + if (monitors == null) { + throw new MissingRequiredPropertyException("CephFSPersistentVolumeSource", "monitors"); + } + this.monitors = monitors; return this; } public Builder monitors(String... monitors) { @@ -125,38 +129,43 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretFile(@Nullable String secretFile) { + this.secretFile = secretFile; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public CephFSPersistentVolumeSource build() { - final var o = new CephFSPersistentVolumeSource(); - o.monitors = monitors; - o.path = path; - o.readOnly = readOnly; - o.secretFile = secretFile; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new CephFSPersistentVolumeSource(); + _resultValue.monitors = monitors; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.secretFile = secretFile; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSourcePatch.java index 3964745be4..b22dfc7033 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSPersistentVolumeSourcePatch.java @@ -117,6 +117,7 @@ public Builder(CephFSPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder monitors(@Nullable List monitors) { + this.monitors = monitors; return this; } @@ -125,38 +126,43 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretFile(@Nullable String secretFile) { + this.secretFile = secretFile; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public CephFSPersistentVolumeSourcePatch build() { - final var o = new CephFSPersistentVolumeSourcePatch(); - o.monitors = monitors; - o.path = path; - o.readOnly = readOnly; - o.secretFile = secretFile; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new CephFSPersistentVolumeSourcePatch(); + _resultValue.monitors = monitors; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.secretFile = secretFile; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSource.java index 3918567bdc..d0c15bf43e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -117,7 +118,10 @@ public Builder(CephFSVolumeSource defaults) { @CustomType.Setter public Builder monitors(List monitors) { - this.monitors = Objects.requireNonNull(monitors); + if (monitors == null) { + throw new MissingRequiredPropertyException("CephFSVolumeSource", "monitors"); + } + this.monitors = monitors; return this; } public Builder monitors(String... monitors) { @@ -125,38 +129,43 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretFile(@Nullable String secretFile) { + this.secretFile = secretFile; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public CephFSVolumeSource build() { - final var o = new CephFSVolumeSource(); - o.monitors = monitors; - o.path = path; - o.readOnly = readOnly; - o.secretFile = secretFile; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new CephFSVolumeSource(); + _resultValue.monitors = monitors; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.secretFile = secretFile; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSourcePatch.java index 97b7ee65b5..4bedb90fd6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CephFSVolumeSourcePatch.java @@ -117,6 +117,7 @@ public Builder(CephFSVolumeSourcePatch defaults) { @CustomType.Setter public Builder monitors(@Nullable List monitors) { + this.monitors = monitors; return this; } @@ -125,38 +126,43 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretFile(@Nullable String secretFile) { + this.secretFile = secretFile; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public CephFSVolumeSourcePatch build() { - final var o = new CephFSVolumeSourcePatch(); - o.monitors = monitors; - o.path = path; - o.readOnly = readOnly; - o.secretFile = secretFile; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new CephFSVolumeSourcePatch(); + _resultValue.monitors = monitors; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.secretFile = secretFile; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSource.java index d95decf428..cc304f1854 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CinderPersistentVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeID(String volumeID) { - this.volumeID = Objects.requireNonNull(volumeID); + if (volumeID == null) { + throw new MissingRequiredPropertyException("CinderPersistentVolumeSource", "volumeID"); + } + this.volumeID = volumeID; return this; } public CinderPersistentVolumeSource build() { - final var o = new CinderPersistentVolumeSource(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeID = volumeID; - return o; + final var _resultValue = new CinderPersistentVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSourcePatch.java index aaa4419c1b..5d643ab795 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderPersistentVolumeSourcePatch.java @@ -88,31 +88,35 @@ public Builder(CinderPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeID(@Nullable String volumeID) { + this.volumeID = volumeID; return this; } public CinderPersistentVolumeSourcePatch build() { - final var o = new CinderPersistentVolumeSourcePatch(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeID = volumeID; - return o; + final var _resultValue = new CinderPersistentVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSource.java index 5c3693c18c..691fb9ab69 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CinderVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeID(String volumeID) { - this.volumeID = Objects.requireNonNull(volumeID); + if (volumeID == null) { + throw new MissingRequiredPropertyException("CinderVolumeSource", "volumeID"); + } + this.volumeID = volumeID; return this; } public CinderVolumeSource build() { - final var o = new CinderVolumeSource(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeID = volumeID; - return o; + final var _resultValue = new CinderVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSourcePatch.java index 55e6b2c6b2..f9876c9bdf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/CinderVolumeSourcePatch.java @@ -88,31 +88,35 @@ public Builder(CinderVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeID(@Nullable String volumeID) { + this.volumeID = volumeID; return this; } public CinderVolumeSourcePatch build() { - final var o = new CinderVolumeSourcePatch(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeID = volumeID; - return o; + final var _resultValue = new CinderVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSource.java index 161a152fb1..57c586a632 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSource.java @@ -66,19 +66,21 @@ public Builder(ClaimSource defaults) { @CustomType.Setter public Builder resourceClaimName(@Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return this; } @CustomType.Setter public Builder resourceClaimTemplateName(@Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; return this; } public ClaimSource build() { - final var o = new ClaimSource(); - o.resourceClaimName = resourceClaimName; - o.resourceClaimTemplateName = resourceClaimTemplateName; - return o; + final var _resultValue = new ClaimSource(); + _resultValue.resourceClaimName = resourceClaimName; + _resultValue.resourceClaimTemplateName = resourceClaimTemplateName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSourcePatch.java index 279cdddf06..00bf6f0593 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClaimSourcePatch.java @@ -66,19 +66,21 @@ public Builder(ClaimSourcePatch defaults) { @CustomType.Setter public Builder resourceClaimName(@Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return this; } @CustomType.Setter public Builder resourceClaimTemplateName(@Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; return this; } public ClaimSourcePatch build() { - final var o = new ClaimSourcePatch(); - o.resourceClaimName = resourceClaimName; - o.resourceClaimTemplateName = resourceClaimTemplateName; - return o; + final var _resultValue = new ClaimSourcePatch(); + _resultValue.resourceClaimName = resourceClaimName; + _resultValue.resourceClaimTemplateName = resourceClaimTemplateName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfig.java index 132b76617a..6026be4841 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfig.java @@ -44,13 +44,14 @@ public Builder(ClientIPConfig defaults) { @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ClientIPConfig build() { - final var o = new ClientIPConfig(); - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ClientIPConfig(); + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfigPatch.java index 414506a725..2b19c4b6a1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClientIPConfigPatch.java @@ -44,13 +44,14 @@ public Builder(ClientIPConfigPatch defaults) { @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ClientIPConfigPatch build() { - final var o = new ClientIPConfigPatch(); - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ClientIPConfigPatch(); + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjection.java index c24f7ecf88..a807d2c0c5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjection.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.Boolean; import java.lang.String; @@ -102,37 +103,44 @@ public Builder(ClusterTrustBundleProjection defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelector labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ClusterTrustBundleProjection", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } public ClusterTrustBundleProjection build() { - final var o = new ClusterTrustBundleProjection(); - o.labelSelector = labelSelector; - o.name = name; - o.optional = optional; - o.path = path; - o.signerName = signerName; - return o; + final var _resultValue = new ClusterTrustBundleProjection(); + _resultValue.labelSelector = labelSelector; + _resultValue.name = name; + _resultValue.optional = optional; + _resultValue.path = path; + _resultValue.signerName = signerName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjectionPatch.java index 4541489ae0..aaf4f6a460 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ClusterTrustBundleProjectionPatch.java @@ -102,37 +102,42 @@ public Builder(ClusterTrustBundleProjectionPatch defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelectorPatch labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder signerName(@Nullable String signerName) { + this.signerName = signerName; return this; } public ClusterTrustBundleProjectionPatch build() { - final var o = new ClusterTrustBundleProjectionPatch(); - o.labelSelector = labelSelector; - o.name = name; - o.optional = optional; - o.path = path; - o.signerName = signerName; - return o; + final var _resultValue = new ClusterTrustBundleProjectionPatch(); + _resultValue.labelSelector = labelSelector; + _resultValue.name = name; + _resultValue.optional = optional; + _resultValue.path = path; + _resultValue.signerName = signerName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMap.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMap.java index 726023dd62..3d3ea13a67 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMap.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMap.java @@ -117,43 +117,49 @@ public Builder(ConfigMap defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder binaryData(@Nullable Map binaryData) { + this.binaryData = binaryData; return this; } @CustomType.Setter public Builder data(@Nullable Map data) { + this.data = data; return this; } @CustomType.Setter public Builder immutable(@Nullable Boolean immutable) { + this.immutable = immutable; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } public ConfigMap build() { - final var o = new ConfigMap(); - o.apiVersion = apiVersion; - o.binaryData = binaryData; - o.data = data; - o.immutable = immutable; - o.kind = kind; - o.metadata = metadata; - return o; + final var _resultValue = new ConfigMap(); + _resultValue.apiVersion = apiVersion; + _resultValue.binaryData = binaryData; + _resultValue.data = data; + _resultValue.immutable = immutable; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSource.java index 02a6a88c03..45e65b9e72 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSource.java @@ -59,19 +59,21 @@ public Builder(ConfigMapEnvSource defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapEnvSource build() { - final var o = new ConfigMapEnvSource(); - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapEnvSource(); + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSourcePatch.java index eb2b6d6f4a..284a669a10 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapEnvSourcePatch.java @@ -59,19 +59,21 @@ public Builder(ConfigMapEnvSourcePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapEnvSourcePatch build() { - final var o = new ConfigMapEnvSourcePatch(); - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapEnvSourcePatch(); + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelector.java index 85ff5c2bc1..5f6516a47c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelector.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,30 @@ public Builder(ConfigMapKeySelector defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ConfigMapKeySelector", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapKeySelector build() { - final var o = new ConfigMapKeySelector(); - o.key = key; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapKeySelector(); + _resultValue.key = key; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelectorPatch.java index 05baf8f22b..30ecf1b503 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapKeySelectorPatch.java @@ -73,25 +73,28 @@ public Builder(ConfigMapKeySelectorPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapKeySelectorPatch build() { - final var o = new ConfigMapKeySelectorPatch(); - o.key = key; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapKeySelectorPatch(); + _resultValue.key = key; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSource.java index 16be0c3778..7a71d69c9f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,48 @@ public Builder(ConfigMapNodeConfigSource defaults) { @CustomType.Setter public Builder kubeletConfigKey(String kubeletConfigKey) { - this.kubeletConfigKey = Objects.requireNonNull(kubeletConfigKey); + if (kubeletConfigKey == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSource", "kubeletConfigKey"); + } + this.kubeletConfigKey = kubeletConfigKey; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSource", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ConfigMapNodeConfigSource", "namespace"); + } + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ConfigMapNodeConfigSource build() { - final var o = new ConfigMapNodeConfigSource(); - o.kubeletConfigKey = kubeletConfigKey; - o.name = name; - o.namespace = namespace; - o.resourceVersion = resourceVersion; - o.uid = uid; - return o; + final var _resultValue = new ConfigMapNodeConfigSource(); + _resultValue.kubeletConfigKey = kubeletConfigKey; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resourceVersion = resourceVersion; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSourcePatch.java index 537c548ad0..5faed7eb40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapNodeConfigSourcePatch.java @@ -100,37 +100,42 @@ public Builder(ConfigMapNodeConfigSourcePatch defaults) { @CustomType.Setter public Builder kubeletConfigKey(@Nullable String kubeletConfigKey) { + this.kubeletConfigKey = kubeletConfigKey; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ConfigMapNodeConfigSourcePatch build() { - final var o = new ConfigMapNodeConfigSourcePatch(); - o.kubeletConfigKey = kubeletConfigKey; - o.name = name; - o.namespace = namespace; - o.resourceVersion = resourceVersion; - o.uid = uid; - return o; + final var _resultValue = new ConfigMapNodeConfigSourcePatch(); + _resultValue.kubeletConfigKey = kubeletConfigKey; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resourceVersion = resourceVersion; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjection.java index 7b38474ad9..aa461be982 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjection.java @@ -75,6 +75,7 @@ public Builder(ConfigMapProjection defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -83,20 +84,22 @@ public Builder items(KeyToPath... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapProjection build() { - final var o = new ConfigMapProjection(); - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapProjection(); + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjectionPatch.java index 08dcda29e0..dceb19e25e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapProjectionPatch.java @@ -75,6 +75,7 @@ public Builder(ConfigMapProjectionPatch defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -83,20 +84,22 @@ public Builder items(KeyToPathPatch... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapProjectionPatch build() { - final var o = new ConfigMapProjectionPatch(); - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapProjectionPatch(); + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSource.java index a412e6d912..ee053cd91e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSource.java @@ -90,11 +90,13 @@ public Builder(ConfigMapVolumeSource defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -103,21 +105,23 @@ public Builder items(KeyToPath... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapVolumeSource build() { - final var o = new ConfigMapVolumeSource(); - o.defaultMode = defaultMode; - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapVolumeSource(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSourcePatch.java index 8c2a60d81d..9168d540e3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ConfigMapVolumeSourcePatch.java @@ -90,11 +90,13 @@ public Builder(ConfigMapVolumeSourcePatch defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -103,21 +105,23 @@ public Builder items(KeyToPathPatch... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public ConfigMapVolumeSourcePatch build() { - final var o = new ConfigMapVolumeSourcePatch(); - o.defaultMode = defaultMode; - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new ConfigMapVolumeSourcePatch(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Container.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Container.java index 9ecf537e42..22e37c40d8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Container.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Container.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ContainerPort; import com.pulumi.kubernetes.core.v1.outputs.ContainerResizePolicy; import com.pulumi.kubernetes.core.v1.outputs.EnvFromSource; @@ -378,6 +379,7 @@ public Builder(Container defaults) { @CustomType.Setter public Builder args(@Nullable List args) { + this.args = args; return this; } @@ -386,6 +388,7 @@ public Builder args(String... args) { } @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -394,6 +397,7 @@ public Builder command(String... command) { } @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -402,6 +406,7 @@ public Builder env(EnvVar... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -410,31 +415,39 @@ public Builder envFrom(EnvFromSource... envFrom) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder lifecycle(@Nullable Lifecycle lifecycle) { + this.lifecycle = lifecycle; return this; } @CustomType.Setter public Builder livenessProbe(@Nullable Probe livenessProbe) { + this.livenessProbe = livenessProbe; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Container", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -443,11 +456,13 @@ public Builder ports(ContainerPort... ports) { } @CustomType.Setter public Builder readinessProbe(@Nullable Probe readinessProbe) { + this.readinessProbe = readinessProbe; return this; } @CustomType.Setter public Builder resizePolicy(@Nullable List resizePolicy) { + this.resizePolicy = resizePolicy; return this; } @@ -456,51 +471,61 @@ public Builder resizePolicy(ContainerResizePolicy... resizePolicy) { } @CustomType.Setter public Builder resources(@Nullable ResourceRequirements resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder securityContext(@Nullable SecurityContext securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder startupProbe(@Nullable Probe startupProbe) { + this.startupProbe = startupProbe; return this; } @CustomType.Setter public Builder stdin(@Nullable Boolean stdin) { + this.stdin = stdin; return this; } @CustomType.Setter public Builder stdinOnce(@Nullable Boolean stdinOnce) { + this.stdinOnce = stdinOnce; return this; } @CustomType.Setter public Builder terminationMessagePath(@Nullable String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; return this; } @CustomType.Setter public Builder terminationMessagePolicy(@Nullable String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; return this; } @CustomType.Setter public Builder tty(@Nullable Boolean tty) { + this.tty = tty; return this; } @CustomType.Setter public Builder volumeDevices(@Nullable List volumeDevices) { + this.volumeDevices = volumeDevices; return this; } @@ -509,6 +534,7 @@ public Builder volumeDevices(VolumeDevice... volumeDevices) { } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -517,36 +543,37 @@ public Builder volumeMounts(VolumeMount... volumeMounts) { } @CustomType.Setter public Builder workingDir(@Nullable String workingDir) { + this.workingDir = workingDir; return this; } public Container build() { - final var o = new Container(); - o.args = args; - o.command = command; - o.env = env; - o.envFrom = envFrom; - o.image = image; - o.imagePullPolicy = imagePullPolicy; - o.lifecycle = lifecycle; - o.livenessProbe = livenessProbe; - o.name = name; - o.ports = ports; - o.readinessProbe = readinessProbe; - o.resizePolicy = resizePolicy; - o.resources = resources; - o.restartPolicy = restartPolicy; - o.securityContext = securityContext; - o.startupProbe = startupProbe; - o.stdin = stdin; - o.stdinOnce = stdinOnce; - o.terminationMessagePath = terminationMessagePath; - o.terminationMessagePolicy = terminationMessagePolicy; - o.tty = tty; - o.volumeDevices = volumeDevices; - o.volumeMounts = volumeMounts; - o.workingDir = workingDir; - return o; + final var _resultValue = new Container(); + _resultValue.args = args; + _resultValue.command = command; + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.image = image; + _resultValue.imagePullPolicy = imagePullPolicy; + _resultValue.lifecycle = lifecycle; + _resultValue.livenessProbe = livenessProbe; + _resultValue.name = name; + _resultValue.ports = ports; + _resultValue.readinessProbe = readinessProbe; + _resultValue.resizePolicy = resizePolicy; + _resultValue.resources = resources; + _resultValue.restartPolicy = restartPolicy; + _resultValue.securityContext = securityContext; + _resultValue.startupProbe = startupProbe; + _resultValue.stdin = stdin; + _resultValue.stdinOnce = stdinOnce; + _resultValue.terminationMessagePath = terminationMessagePath; + _resultValue.terminationMessagePolicy = terminationMessagePolicy; + _resultValue.tty = tty; + _resultValue.volumeDevices = volumeDevices; + _resultValue.volumeMounts = volumeMounts; + _resultValue.workingDir = workingDir; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImage.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImage.java index 0597354eb8..17d4fc4543 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImage.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImage.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -60,7 +61,10 @@ public Builder(ContainerImage defaults) { @CustomType.Setter public Builder names(List names) { - this.names = Objects.requireNonNull(names); + if (names == null) { + throw new MissingRequiredPropertyException("ContainerImage", "names"); + } + this.names = names; return this; } public Builder names(String... names) { @@ -68,14 +72,15 @@ public Builder names(String... names) { } @CustomType.Setter public Builder sizeBytes(@Nullable Integer sizeBytes) { + this.sizeBytes = sizeBytes; return this; } public ContainerImage build() { - final var o = new ContainerImage(); - o.names = names; - o.sizeBytes = sizeBytes; - return o; + final var _resultValue = new ContainerImage(); + _resultValue.names = names; + _resultValue.sizeBytes = sizeBytes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImagePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImagePatch.java index 80c28515ad..7d0caf9b7a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImagePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerImagePatch.java @@ -60,6 +60,7 @@ public Builder(ContainerImagePatch defaults) { @CustomType.Setter public Builder names(@Nullable List names) { + this.names = names; return this; } @@ -68,14 +69,15 @@ public Builder names(String... names) { } @CustomType.Setter public Builder sizeBytes(@Nullable Integer sizeBytes) { + this.sizeBytes = sizeBytes; return this; } public ContainerImagePatch build() { - final var o = new ContainerImagePatch(); - o.names = names; - o.sizeBytes = sizeBytes; - return o; + final var _resultValue = new ContainerImagePatch(); + _resultValue.names = names; + _resultValue.sizeBytes = sizeBytes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPatch.java index 43133c0014..4bbff440fd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPatch.java @@ -378,6 +378,7 @@ public Builder(ContainerPatch defaults) { @CustomType.Setter public Builder args(@Nullable List args) { + this.args = args; return this; } @@ -386,6 +387,7 @@ public Builder args(String... args) { } @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -394,6 +396,7 @@ public Builder command(String... command) { } @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -402,6 +405,7 @@ public Builder env(EnvVarPatch... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -410,31 +414,37 @@ public Builder envFrom(EnvFromSourcePatch... envFrom) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder lifecycle(@Nullable LifecyclePatch lifecycle) { + this.lifecycle = lifecycle; return this; } @CustomType.Setter public Builder livenessProbe(@Nullable ProbePatch livenessProbe) { + this.livenessProbe = livenessProbe; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -443,11 +453,13 @@ public Builder ports(ContainerPortPatch... ports) { } @CustomType.Setter public Builder readinessProbe(@Nullable ProbePatch readinessProbe) { + this.readinessProbe = readinessProbe; return this; } @CustomType.Setter public Builder resizePolicy(@Nullable List resizePolicy) { + this.resizePolicy = resizePolicy; return this; } @@ -456,51 +468,61 @@ public Builder resizePolicy(ContainerResizePolicyPatch... resizePolicy) { } @CustomType.Setter public Builder resources(@Nullable ResourceRequirementsPatch resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder securityContext(@Nullable SecurityContextPatch securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder startupProbe(@Nullable ProbePatch startupProbe) { + this.startupProbe = startupProbe; return this; } @CustomType.Setter public Builder stdin(@Nullable Boolean stdin) { + this.stdin = stdin; return this; } @CustomType.Setter public Builder stdinOnce(@Nullable Boolean stdinOnce) { + this.stdinOnce = stdinOnce; return this; } @CustomType.Setter public Builder terminationMessagePath(@Nullable String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; return this; } @CustomType.Setter public Builder terminationMessagePolicy(@Nullable String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; return this; } @CustomType.Setter public Builder tty(@Nullable Boolean tty) { + this.tty = tty; return this; } @CustomType.Setter public Builder volumeDevices(@Nullable List volumeDevices) { + this.volumeDevices = volumeDevices; return this; } @@ -509,6 +531,7 @@ public Builder volumeDevices(VolumeDevicePatch... volumeDevices) { } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -517,36 +540,37 @@ public Builder volumeMounts(VolumeMountPatch... volumeMounts) { } @CustomType.Setter public Builder workingDir(@Nullable String workingDir) { + this.workingDir = workingDir; return this; } public ContainerPatch build() { - final var o = new ContainerPatch(); - o.args = args; - o.command = command; - o.env = env; - o.envFrom = envFrom; - o.image = image; - o.imagePullPolicy = imagePullPolicy; - o.lifecycle = lifecycle; - o.livenessProbe = livenessProbe; - o.name = name; - o.ports = ports; - o.readinessProbe = readinessProbe; - o.resizePolicy = resizePolicy; - o.resources = resources; - o.restartPolicy = restartPolicy; - o.securityContext = securityContext; - o.startupProbe = startupProbe; - o.stdin = stdin; - o.stdinOnce = stdinOnce; - o.terminationMessagePath = terminationMessagePath; - o.terminationMessagePolicy = terminationMessagePolicy; - o.tty = tty; - o.volumeDevices = volumeDevices; - o.volumeMounts = volumeMounts; - o.workingDir = workingDir; - return o; + final var _resultValue = new ContainerPatch(); + _resultValue.args = args; + _resultValue.command = command; + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.image = image; + _resultValue.imagePullPolicy = imagePullPolicy; + _resultValue.lifecycle = lifecycle; + _resultValue.livenessProbe = livenessProbe; + _resultValue.name = name; + _resultValue.ports = ports; + _resultValue.readinessProbe = readinessProbe; + _resultValue.resizePolicy = resizePolicy; + _resultValue.resources = resources; + _resultValue.restartPolicy = restartPolicy; + _resultValue.securityContext = securityContext; + _resultValue.startupProbe = startupProbe; + _resultValue.stdin = stdin; + _resultValue.stdinOnce = stdinOnce; + _resultValue.terminationMessagePath = terminationMessagePath; + _resultValue.terminationMessagePolicy = terminationMessagePolicy; + _resultValue.tty = tty; + _resultValue.volumeDevices = volumeDevices; + _resultValue.volumeMounts = volumeMounts; + _resultValue.workingDir = workingDir; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPort.java index 23056e7002..4fa790bc61 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPort.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,37 +102,44 @@ public Builder(ContainerPort defaults) { @CustomType.Setter public Builder containerPort(Integer containerPort) { - this.containerPort = Objects.requireNonNull(containerPort); + if (containerPort == null) { + throw new MissingRequiredPropertyException("ContainerPort", "containerPort"); + } + this.containerPort = containerPort; return this; } @CustomType.Setter public Builder hostIP(@Nullable String hostIP) { + this.hostIP = hostIP; return this; } @CustomType.Setter public Builder hostPort(@Nullable Integer hostPort) { + this.hostPort = hostPort; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public ContainerPort build() { - final var o = new ContainerPort(); - o.containerPort = containerPort; - o.hostIP = hostIP; - o.hostPort = hostPort; - o.name = name; - o.protocol = protocol; - return o; + final var _resultValue = new ContainerPort(); + _resultValue.containerPort = containerPort; + _resultValue.hostIP = hostIP; + _resultValue.hostPort = hostPort; + _resultValue.name = name; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPortPatch.java index 209a28e92f..9cfc96741e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPortPatch.java @@ -101,37 +101,42 @@ public Builder(ContainerPortPatch defaults) { @CustomType.Setter public Builder containerPort(@Nullable Integer containerPort) { + this.containerPort = containerPort; return this; } @CustomType.Setter public Builder hostIP(@Nullable String hostIP) { + this.hostIP = hostIP; return this; } @CustomType.Setter public Builder hostPort(@Nullable Integer hostPort) { + this.hostPort = hostPort; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public ContainerPortPatch build() { - final var o = new ContainerPortPatch(); - o.containerPort = containerPort; - o.hostIP = hostIP; - o.hostPort = hostPort; - o.name = name; - o.protocol = protocol; - return o; + final var _resultValue = new ContainerPortPatch(); + _resultValue.containerPort = containerPort; + _resultValue.hostIP = hostIP; + _resultValue.hostPort = hostPort; + _resultValue.name = name; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicy.java index e350a7d0f4..ef418c5840 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicy.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ContainerResizePolicy defaults) { @CustomType.Setter public Builder resourceName(String resourceName) { - this.resourceName = Objects.requireNonNull(resourceName); + if (resourceName == null) { + throw new MissingRequiredPropertyException("ContainerResizePolicy", "resourceName"); + } + this.resourceName = resourceName; return this; } @CustomType.Setter public Builder restartPolicy(String restartPolicy) { - this.restartPolicy = Objects.requireNonNull(restartPolicy); + if (restartPolicy == null) { + throw new MissingRequiredPropertyException("ContainerResizePolicy", "restartPolicy"); + } + this.restartPolicy = restartPolicy; return this; } public ContainerResizePolicy build() { - final var o = new ContainerResizePolicy(); - o.resourceName = resourceName; - o.restartPolicy = restartPolicy; - return o; + final var _resultValue = new ContainerResizePolicy(); + _resultValue.resourceName = resourceName; + _resultValue.restartPolicy = restartPolicy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicyPatch.java index a7ce9bcc9a..7eebd510dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerResizePolicyPatch.java @@ -58,19 +58,21 @@ public Builder(ContainerResizePolicyPatch defaults) { @CustomType.Setter public Builder resourceName(@Nullable String resourceName) { + this.resourceName = resourceName; return this; } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } public ContainerResizePolicyPatch build() { - final var o = new ContainerResizePolicyPatch(); - o.resourceName = resourceName; - o.restartPolicy = restartPolicy; - return o; + final var _resultValue = new ContainerResizePolicyPatch(); + _resultValue.resourceName = resourceName; + _resultValue.restartPolicy = restartPolicy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerState.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerState.java index 726aa2363e..67bd082737 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerState.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerState.java @@ -74,25 +74,28 @@ public Builder(ContainerState defaults) { @CustomType.Setter public Builder running(@Nullable ContainerStateRunning running) { + this.running = running; return this; } @CustomType.Setter public Builder terminated(@Nullable ContainerStateTerminated terminated) { + this.terminated = terminated; return this; } @CustomType.Setter public Builder waiting(@Nullable ContainerStateWaiting waiting) { + this.waiting = waiting; return this; } public ContainerState build() { - final var o = new ContainerState(); - o.running = running; - o.terminated = terminated; - o.waiting = waiting; - return o; + final var _resultValue = new ContainerState(); + _resultValue.running = running; + _resultValue.terminated = terminated; + _resultValue.waiting = waiting; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatePatch.java index 042a5dd4c9..c2617ab64a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatePatch.java @@ -74,25 +74,28 @@ public Builder(ContainerStatePatch defaults) { @CustomType.Setter public Builder running(@Nullable ContainerStateRunningPatch running) { + this.running = running; return this; } @CustomType.Setter public Builder terminated(@Nullable ContainerStateTerminatedPatch terminated) { + this.terminated = terminated; return this; } @CustomType.Setter public Builder waiting(@Nullable ContainerStateWaitingPatch waiting) { + this.waiting = waiting; return this; } public ContainerStatePatch build() { - final var o = new ContainerStatePatch(); - o.running = running; - o.terminated = terminated; - o.waiting = waiting; - return o; + final var _resultValue = new ContainerStatePatch(); + _resultValue.running = running; + _resultValue.terminated = terminated; + _resultValue.waiting = waiting; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunning.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunning.java index a8c1425551..03a94dadb5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunning.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunning.java @@ -44,13 +44,14 @@ public Builder(ContainerStateRunning defaults) { @CustomType.Setter public Builder startedAt(@Nullable String startedAt) { + this.startedAt = startedAt; return this; } public ContainerStateRunning build() { - final var o = new ContainerStateRunning(); - o.startedAt = startedAt; - return o; + final var _resultValue = new ContainerStateRunning(); + _resultValue.startedAt = startedAt; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunningPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunningPatch.java index ba5d63f82b..008466011a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunningPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateRunningPatch.java @@ -44,13 +44,14 @@ public Builder(ContainerStateRunningPatch defaults) { @CustomType.Setter public Builder startedAt(@Nullable String startedAt) { + this.startedAt = startedAt; return this; } public ContainerStateRunningPatch build() { - final var o = new ContainerStateRunningPatch(); - o.startedAt = startedAt; - return o; + final var _resultValue = new ContainerStateRunningPatch(); + _resultValue.startedAt = startedAt; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminated.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminated.java index 00e87d69a5..d5b1e2c40c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminated.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminated.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,49 +130,58 @@ public Builder(ContainerStateTerminated defaults) { @CustomType.Setter public Builder containerID(@Nullable String containerID) { + this.containerID = containerID; return this; } @CustomType.Setter public Builder exitCode(Integer exitCode) { - this.exitCode = Objects.requireNonNull(exitCode); + if (exitCode == null) { + throw new MissingRequiredPropertyException("ContainerStateTerminated", "exitCode"); + } + this.exitCode = exitCode; return this; } @CustomType.Setter public Builder finishedAt(@Nullable String finishedAt) { + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder signal(@Nullable Integer signal) { + this.signal = signal; return this; } @CustomType.Setter public Builder startedAt(@Nullable String startedAt) { + this.startedAt = startedAt; return this; } public ContainerStateTerminated build() { - final var o = new ContainerStateTerminated(); - o.containerID = containerID; - o.exitCode = exitCode; - o.finishedAt = finishedAt; - o.message = message; - o.reason = reason; - o.signal = signal; - o.startedAt = startedAt; - return o; + final var _resultValue = new ContainerStateTerminated(); + _resultValue.containerID = containerID; + _resultValue.exitCode = exitCode; + _resultValue.finishedAt = finishedAt; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.signal = signal; + _resultValue.startedAt = startedAt; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminatedPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminatedPatch.java index 89d44b5490..283a5988a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminatedPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateTerminatedPatch.java @@ -129,49 +129,56 @@ public Builder(ContainerStateTerminatedPatch defaults) { @CustomType.Setter public Builder containerID(@Nullable String containerID) { + this.containerID = containerID; return this; } @CustomType.Setter public Builder exitCode(@Nullable Integer exitCode) { + this.exitCode = exitCode; return this; } @CustomType.Setter public Builder finishedAt(@Nullable String finishedAt) { + this.finishedAt = finishedAt; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder signal(@Nullable Integer signal) { + this.signal = signal; return this; } @CustomType.Setter public Builder startedAt(@Nullable String startedAt) { + this.startedAt = startedAt; return this; } public ContainerStateTerminatedPatch build() { - final var o = new ContainerStateTerminatedPatch(); - o.containerID = containerID; - o.exitCode = exitCode; - o.finishedAt = finishedAt; - o.message = message; - o.reason = reason; - o.signal = signal; - o.startedAt = startedAt; - return o; + final var _resultValue = new ContainerStateTerminatedPatch(); + _resultValue.containerID = containerID; + _resultValue.exitCode = exitCode; + _resultValue.finishedAt = finishedAt; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.signal = signal; + _resultValue.startedAt = startedAt; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaiting.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaiting.java index 7235e21b37..4dbe44024e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaiting.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaiting.java @@ -58,19 +58,21 @@ public Builder(ContainerStateWaiting defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public ContainerStateWaiting build() { - final var o = new ContainerStateWaiting(); - o.message = message; - o.reason = reason; - return o; + final var _resultValue = new ContainerStateWaiting(); + _resultValue.message = message; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaitingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaitingPatch.java index f07838349e..52095b3f4a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaitingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStateWaitingPatch.java @@ -58,19 +58,21 @@ public Builder(ContainerStateWaitingPatch defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public ContainerStateWaitingPatch build() { - final var o = new ContainerStateWaitingPatch(); - o.message = message; - o.reason = reason; - return o; + final var _resultValue = new ContainerStateWaitingPatch(); + _resultValue.message = message; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatus.java index 4e1d557450..a39ea9057a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ContainerState; import com.pulumi.kubernetes.core.v1.outputs.ResourceRequirements; import com.pulumi.kubernetes.core.v1.outputs.VolumeMountStatus; @@ -209,61 +210,83 @@ public Builder(ContainerStatus defaults) { @CustomType.Setter public Builder allocatedResources(@Nullable Map allocatedResources) { + this.allocatedResources = allocatedResources; return this; } @CustomType.Setter public Builder containerID(@Nullable String containerID) { + this.containerID = containerID; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("ContainerStatus", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder imageID(String imageID) { - this.imageID = Objects.requireNonNull(imageID); + if (imageID == null) { + throw new MissingRequiredPropertyException("ContainerStatus", "imageID"); + } + this.imageID = imageID; return this; } @CustomType.Setter public Builder lastState(@Nullable ContainerState lastState) { + this.lastState = lastState; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ContainerStatus", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ready(Boolean ready) { - this.ready = Objects.requireNonNull(ready); + if (ready == null) { + throw new MissingRequiredPropertyException("ContainerStatus", "ready"); + } + this.ready = ready; return this; } @CustomType.Setter public Builder resources(@Nullable ResourceRequirements resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartCount(Integer restartCount) { - this.restartCount = Objects.requireNonNull(restartCount); + if (restartCount == null) { + throw new MissingRequiredPropertyException("ContainerStatus", "restartCount"); + } + this.restartCount = restartCount; return this; } @CustomType.Setter public Builder started(@Nullable Boolean started) { + this.started = started; return this; } @CustomType.Setter public Builder state(@Nullable ContainerState state) { + this.state = state; return this; } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -271,20 +294,20 @@ public Builder volumeMounts(VolumeMountStatus... volumeMounts) { return volumeMounts(List.of(volumeMounts)); } public ContainerStatus build() { - final var o = new ContainerStatus(); - o.allocatedResources = allocatedResources; - o.containerID = containerID; - o.image = image; - o.imageID = imageID; - o.lastState = lastState; - o.name = name; - o.ready = ready; - o.resources = resources; - o.restartCount = restartCount; - o.started = started; - o.state = state; - o.volumeMounts = volumeMounts; - return o; + final var _resultValue = new ContainerStatus(); + _resultValue.allocatedResources = allocatedResources; + _resultValue.containerID = containerID; + _resultValue.image = image; + _resultValue.imageID = imageID; + _resultValue.lastState = lastState; + _resultValue.name = name; + _resultValue.ready = ready; + _resultValue.resources = resources; + _resultValue.restartCount = restartCount; + _resultValue.started = started; + _resultValue.state = state; + _resultValue.volumeMounts = volumeMounts; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatusPatch.java index 1afe3b0142..441fa0a0ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerStatusPatch.java @@ -209,61 +209,73 @@ public Builder(ContainerStatusPatch defaults) { @CustomType.Setter public Builder allocatedResources(@Nullable Map allocatedResources) { + this.allocatedResources = allocatedResources; return this; } @CustomType.Setter public Builder containerID(@Nullable String containerID) { + this.containerID = containerID; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder imageID(@Nullable String imageID) { + this.imageID = imageID; return this; } @CustomType.Setter public Builder lastState(@Nullable ContainerStatePatch lastState) { + this.lastState = lastState; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder ready(@Nullable Boolean ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder resources(@Nullable ResourceRequirementsPatch resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartCount(@Nullable Integer restartCount) { + this.restartCount = restartCount; return this; } @CustomType.Setter public Builder started(@Nullable Boolean started) { + this.started = started; return this; } @CustomType.Setter public Builder state(@Nullable ContainerStatePatch state) { + this.state = state; return this; } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -271,20 +283,20 @@ public Builder volumeMounts(VolumeMountStatusPatch... volumeMounts) { return volumeMounts(List.of(volumeMounts)); } public ContainerStatusPatch build() { - final var o = new ContainerStatusPatch(); - o.allocatedResources = allocatedResources; - o.containerID = containerID; - o.image = image; - o.imageID = imageID; - o.lastState = lastState; - o.name = name; - o.ready = ready; - o.resources = resources; - o.restartCount = restartCount; - o.started = started; - o.state = state; - o.volumeMounts = volumeMounts; - return o; + final var _resultValue = new ContainerStatusPatch(); + _resultValue.allocatedResources = allocatedResources; + _resultValue.containerID = containerID; + _resultValue.image = image; + _resultValue.imageID = imageID; + _resultValue.lastState = lastState; + _resultValue.name = name; + _resultValue.ready = ready; + _resultValue.resources = resources; + _resultValue.restartCount = restartCount; + _resultValue.started = started; + _resultValue.state = state; + _resultValue.volumeMounts = volumeMounts; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpoint.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpoint.java index 92db605553..d0944ef3f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpoint.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(DaemonEndpoint defaults) { @CustomType.Setter public Builder Port(Integer Port) { - this.Port = Objects.requireNonNull(Port); + if (Port == null) { + throw new MissingRequiredPropertyException("DaemonEndpoint", "Port"); + } + this.Port = Port; return this; } public DaemonEndpoint build() { - final var o = new DaemonEndpoint(); - o.Port = Port; - return o; + final var _resultValue = new DaemonEndpoint(); + _resultValue.Port = Port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpointPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpointPatch.java index 4bde1c50af..c3983983c6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpointPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DaemonEndpointPatch.java @@ -44,13 +44,14 @@ public Builder(DaemonEndpointPatch defaults) { @CustomType.Setter public Builder Port(@Nullable Integer Port) { + this.Port = Port; return this; } public DaemonEndpointPatch build() { - final var o = new DaemonEndpointPatch(); - o.Port = Port; - return o; + final var _resultValue = new DaemonEndpointPatch(); + _resultValue.Port = Port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjection.java index d940cbb2c3..91215a4b10 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjection.java @@ -44,6 +44,7 @@ public Builder(DownwardAPIProjection defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -51,9 +52,9 @@ public Builder items(DownwardAPIVolumeFile... items) { return items(List.of(items)); } public DownwardAPIProjection build() { - final var o = new DownwardAPIProjection(); - o.items = items; - return o; + final var _resultValue = new DownwardAPIProjection(); + _resultValue.items = items; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjectionPatch.java index 91c17ea584..e339e3d954 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIProjectionPatch.java @@ -44,6 +44,7 @@ public Builder(DownwardAPIProjectionPatch defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -51,9 +52,9 @@ public Builder items(DownwardAPIVolumeFilePatch... items) { return items(List.of(items)); } public DownwardAPIProjectionPatch build() { - final var o = new DownwardAPIProjectionPatch(); - o.items = items; - return o; + final var _resultValue = new DownwardAPIProjectionPatch(); + _resultValue.items = items; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFile.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFile.java index 4a1d12cfcf..f82b4e791b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFile.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFile.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ObjectFieldSelector; import com.pulumi.kubernetes.core.v1.outputs.ResourceFieldSelector; import java.lang.Integer; @@ -89,31 +90,37 @@ public Builder(DownwardAPIVolumeFile defaults) { @CustomType.Setter public Builder fieldRef(@Nullable ObjectFieldSelector fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder mode(@Nullable Integer mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("DownwardAPIVolumeFile", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder resourceFieldRef(@Nullable ResourceFieldSelector resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } public DownwardAPIVolumeFile build() { - final var o = new DownwardAPIVolumeFile(); - o.fieldRef = fieldRef; - o.mode = mode; - o.path = path; - o.resourceFieldRef = resourceFieldRef; - return o; + final var _resultValue = new DownwardAPIVolumeFile(); + _resultValue.fieldRef = fieldRef; + _resultValue.mode = mode; + _resultValue.path = path; + _resultValue.resourceFieldRef = resourceFieldRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFilePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFilePatch.java index 8f1e9c3ba1..13d6c7484b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFilePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeFilePatch.java @@ -89,31 +89,35 @@ public Builder(DownwardAPIVolumeFilePatch defaults) { @CustomType.Setter public Builder fieldRef(@Nullable ObjectFieldSelectorPatch fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder mode(@Nullable Integer mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder resourceFieldRef(@Nullable ResourceFieldSelectorPatch resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } public DownwardAPIVolumeFilePatch build() { - final var o = new DownwardAPIVolumeFilePatch(); - o.fieldRef = fieldRef; - o.mode = mode; - o.path = path; - o.resourceFieldRef = resourceFieldRef; - return o; + final var _resultValue = new DownwardAPIVolumeFilePatch(); + _resultValue.fieldRef = fieldRef; + _resultValue.mode = mode; + _resultValue.path = path; + _resultValue.resourceFieldRef = resourceFieldRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSource.java index 60d3a53f3f..c02021cac4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSource.java @@ -60,11 +60,13 @@ public Builder(DownwardAPIVolumeSource defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -72,10 +74,10 @@ public Builder items(DownwardAPIVolumeFile... items) { return items(List.of(items)); } public DownwardAPIVolumeSource build() { - final var o = new DownwardAPIVolumeSource(); - o.defaultMode = defaultMode; - o.items = items; - return o; + final var _resultValue = new DownwardAPIVolumeSource(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSourcePatch.java index db8cdaa638..974f22ec34 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/DownwardAPIVolumeSourcePatch.java @@ -60,11 +60,13 @@ public Builder(DownwardAPIVolumeSourcePatch defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -72,10 +74,10 @@ public Builder items(DownwardAPIVolumeFilePatch... items) { return items(List.of(items)); } public DownwardAPIVolumeSourcePatch build() { - final var o = new DownwardAPIVolumeSourcePatch(); - o.defaultMode = defaultMode; - o.items = items; - return o; + final var _resultValue = new DownwardAPIVolumeSourcePatch(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSource.java index 346e391c59..abe06ee528 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSource.java @@ -58,19 +58,21 @@ public Builder(EmptyDirVolumeSource defaults) { @CustomType.Setter public Builder medium(@Nullable String medium) { + this.medium = medium; return this; } @CustomType.Setter public Builder sizeLimit(@Nullable String sizeLimit) { + this.sizeLimit = sizeLimit; return this; } public EmptyDirVolumeSource build() { - final var o = new EmptyDirVolumeSource(); - o.medium = medium; - o.sizeLimit = sizeLimit; - return o; + final var _resultValue = new EmptyDirVolumeSource(); + _resultValue.medium = medium; + _resultValue.sizeLimit = sizeLimit; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSourcePatch.java index bac1c4823b..36745e9f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EmptyDirVolumeSourcePatch.java @@ -58,19 +58,21 @@ public Builder(EmptyDirVolumeSourcePatch defaults) { @CustomType.Setter public Builder medium(@Nullable String medium) { + this.medium = medium; return this; } @CustomType.Setter public Builder sizeLimit(@Nullable String sizeLimit) { + this.sizeLimit = sizeLimit; return this; } public EmptyDirVolumeSourcePatch build() { - final var o = new EmptyDirVolumeSourcePatch(); - o.medium = medium; - o.sizeLimit = sizeLimit; - return o; + final var _resultValue = new EmptyDirVolumeSourcePatch(); + _resultValue.medium = medium; + _resultValue.sizeLimit = sizeLimit; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddress.java index e5731f8dfd..51b6178e94 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddress.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; import java.lang.String; import java.util.Objects; @@ -87,31 +88,37 @@ public Builder(EndpointAddress defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(String ip) { - this.ip = Objects.requireNonNull(ip); + if (ip == null) { + throw new MissingRequiredPropertyException("EndpointAddress", "ip"); + } + this.ip = ip; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReference targetRef) { + this.targetRef = targetRef; return this; } public EndpointAddress build() { - final var o = new EndpointAddress(); - o.hostname = hostname; - o.ip = ip; - o.nodeName = nodeName; - o.targetRef = targetRef; - return o; + final var _resultValue = new EndpointAddress(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddressPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddressPatch.java index dad96a037b..1570ecc79c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddressPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddressPatch.java @@ -87,31 +87,35 @@ public Builder(EndpointAddressPatch defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReferencePatch targetRef) { + this.targetRef = targetRef; return this; } public EndpointAddressPatch build() { - final var o = new EndpointAddressPatch(); - o.hostname = hostname; - o.ip = ip; - o.nodeName = nodeName; - o.targetRef = targetRef; - return o; + final var _resultValue = new EndpointAddressPatch(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPort.java index d058639596..fa20b19e5b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPort.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -105,31 +106,37 @@ public Builder(EndpointPort defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("EndpointPort", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPort build() { - final var o = new EndpointPort(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPort(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPortPatch.java index 626cfca9a1..0c8d3e0d00 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointPortPatch.java @@ -105,31 +105,35 @@ public Builder(EndpointPortPatch defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPortPatch build() { - final var o = new EndpointPortPatch(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPortPatch(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubset.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubset.java index eb8257b573..56b1b6889c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubset.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubset.java @@ -73,6 +73,7 @@ public Builder(EndpointSubset defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -81,6 +82,7 @@ public Builder addresses(EndpointAddress... addresses) { } @CustomType.Setter public Builder notReadyAddresses(@Nullable List notReadyAddresses) { + this.notReadyAddresses = notReadyAddresses; return this; } @@ -89,6 +91,7 @@ public Builder notReadyAddresses(EndpointAddress... notReadyAddresses) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -96,11 +99,11 @@ public Builder ports(EndpointPort... ports) { return ports(List.of(ports)); } public EndpointSubset build() { - final var o = new EndpointSubset(); - o.addresses = addresses; - o.notReadyAddresses = notReadyAddresses; - o.ports = ports; - return o; + final var _resultValue = new EndpointSubset(); + _resultValue.addresses = addresses; + _resultValue.notReadyAddresses = notReadyAddresses; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubsetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubsetPatch.java index b73fee6300..7b0d5a5a40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubsetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointSubsetPatch.java @@ -73,6 +73,7 @@ public Builder(EndpointSubsetPatch defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -81,6 +82,7 @@ public Builder addresses(EndpointAddressPatch... addresses) { } @CustomType.Setter public Builder notReadyAddresses(@Nullable List notReadyAddresses) { + this.notReadyAddresses = notReadyAddresses; return this; } @@ -89,6 +91,7 @@ public Builder notReadyAddresses(EndpointAddressPatch... notReadyAddresses) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -96,11 +99,11 @@ public Builder ports(EndpointPortPatch... ports) { return ports(List.of(ports)); } public EndpointSubsetPatch build() { - final var o = new EndpointSubsetPatch(); - o.addresses = addresses; - o.notReadyAddresses = notReadyAddresses; - o.ports = ports; - return o; + final var _resultValue = new EndpointSubsetPatch(); + _resultValue.addresses = addresses; + _resultValue.notReadyAddresses = notReadyAddresses; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Endpoints.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Endpoints.java index 67abb142d3..ee2566a5cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Endpoints.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Endpoints.java @@ -89,21 +89,25 @@ public Builder(Endpoints defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder subsets(@Nullable List subsets) { + this.subsets = subsets; return this; } @@ -111,12 +115,12 @@ public Builder subsets(EndpointSubset... subsets) { return subsets(List.of(subsets)); } public Endpoints build() { - final var o = new Endpoints(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.subsets = subsets; - return o; + final var _resultValue = new Endpoints(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.subsets = subsets; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSource.java index cfcfb928fb..f8d60c8324 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSource.java @@ -74,25 +74,28 @@ public Builder(EnvFromSource defaults) { @CustomType.Setter public Builder configMapRef(@Nullable ConfigMapEnvSource configMapRef) { + this.configMapRef = configMapRef; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretEnvSource secretRef) { + this.secretRef = secretRef; return this; } public EnvFromSource build() { - final var o = new EnvFromSource(); - o.configMapRef = configMapRef; - o.prefix = prefix; - o.secretRef = secretRef; - return o; + final var _resultValue = new EnvFromSource(); + _resultValue.configMapRef = configMapRef; + _resultValue.prefix = prefix; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSourcePatch.java index 8fd74b750f..b3c4d23b70 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvFromSourcePatch.java @@ -74,25 +74,28 @@ public Builder(EnvFromSourcePatch defaults) { @CustomType.Setter public Builder configMapRef(@Nullable ConfigMapEnvSourcePatch configMapRef) { + this.configMapRef = configMapRef; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretEnvSourcePatch secretRef) { + this.secretRef = secretRef; return this; } public EnvFromSourcePatch build() { - final var o = new EnvFromSourcePatch(); - o.configMapRef = configMapRef; - o.prefix = prefix; - o.secretRef = secretRef; - return o; + final var _resultValue = new EnvFromSourcePatch(); + _resultValue.configMapRef = configMapRef; + _resultValue.prefix = prefix; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVar.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVar.java index 48554ab023..f4a233ed85 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVar.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVar.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.EnvVarSource; import java.lang.String; import java.util.Objects; @@ -73,25 +74,30 @@ public Builder(EnvVar defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("EnvVar", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } @CustomType.Setter public Builder valueFrom(@Nullable EnvVarSource valueFrom) { + this.valueFrom = valueFrom; return this; } public EnvVar build() { - final var o = new EnvVar(); - o.name = name; - o.value = value; - o.valueFrom = valueFrom; - return o; + final var _resultValue = new EnvVar(); + _resultValue.name = name; + _resultValue.value = value; + _resultValue.valueFrom = valueFrom; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarPatch.java index 97636b7fa1..aaf8588ede 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarPatch.java @@ -73,25 +73,28 @@ public Builder(EnvVarPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } @CustomType.Setter public Builder valueFrom(@Nullable EnvVarSourcePatch valueFrom) { + this.valueFrom = valueFrom; return this; } public EnvVarPatch build() { - final var o = new EnvVarPatch(); - o.name = name; - o.value = value; - o.valueFrom = valueFrom; - return o; + final var _resultValue = new EnvVarPatch(); + _resultValue.name = name; + _resultValue.value = value; + _resultValue.valueFrom = valueFrom; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSource.java index d365bb4779..33ca3a1dea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSource.java @@ -89,31 +89,35 @@ public Builder(EnvVarSource defaults) { @CustomType.Setter public Builder configMapKeyRef(@Nullable ConfigMapKeySelector configMapKeyRef) { + this.configMapKeyRef = configMapKeyRef; return this; } @CustomType.Setter public Builder fieldRef(@Nullable ObjectFieldSelector fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder resourceFieldRef(@Nullable ResourceFieldSelector resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } @CustomType.Setter public Builder secretKeyRef(@Nullable SecretKeySelector secretKeyRef) { + this.secretKeyRef = secretKeyRef; return this; } public EnvVarSource build() { - final var o = new EnvVarSource(); - o.configMapKeyRef = configMapKeyRef; - o.fieldRef = fieldRef; - o.resourceFieldRef = resourceFieldRef; - o.secretKeyRef = secretKeyRef; - return o; + final var _resultValue = new EnvVarSource(); + _resultValue.configMapKeyRef = configMapKeyRef; + _resultValue.fieldRef = fieldRef; + _resultValue.resourceFieldRef = resourceFieldRef; + _resultValue.secretKeyRef = secretKeyRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSourcePatch.java index 65111f8beb..5b923ff237 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EnvVarSourcePatch.java @@ -89,31 +89,35 @@ public Builder(EnvVarSourcePatch defaults) { @CustomType.Setter public Builder configMapKeyRef(@Nullable ConfigMapKeySelectorPatch configMapKeyRef) { + this.configMapKeyRef = configMapKeyRef; return this; } @CustomType.Setter public Builder fieldRef(@Nullable ObjectFieldSelectorPatch fieldRef) { + this.fieldRef = fieldRef; return this; } @CustomType.Setter public Builder resourceFieldRef(@Nullable ResourceFieldSelectorPatch resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } @CustomType.Setter public Builder secretKeyRef(@Nullable SecretKeySelectorPatch secretKeyRef) { + this.secretKeyRef = secretKeyRef; return this; } public EnvVarSourcePatch build() { - final var o = new EnvVarSourcePatch(); - o.configMapKeyRef = configMapKeyRef; - o.fieldRef = fieldRef; - o.resourceFieldRef = resourceFieldRef; - o.secretKeyRef = secretKeyRef; - return o; + final var _resultValue = new EnvVarSourcePatch(); + _resultValue.configMapKeyRef = configMapKeyRef; + _resultValue.fieldRef = fieldRef; + _resultValue.resourceFieldRef = resourceFieldRef; + _resultValue.secretKeyRef = secretKeyRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java index edb80279f1..8d91c1922c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainer.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ContainerPort; import com.pulumi.kubernetes.core.v1.outputs.ContainerResizePolicy; import com.pulumi.kubernetes.core.v1.outputs.EnvFromSource; @@ -396,6 +397,7 @@ public Builder(EphemeralContainer defaults) { @CustomType.Setter public Builder args(@Nullable List args) { + this.args = args; return this; } @@ -404,6 +406,7 @@ public Builder args(String... args) { } @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -412,6 +415,7 @@ public Builder command(String... command) { } @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -420,6 +424,7 @@ public Builder env(EnvVar... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -428,31 +433,39 @@ public Builder envFrom(EnvFromSource... envFrom) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder lifecycle(@Nullable Lifecycle lifecycle) { + this.lifecycle = lifecycle; return this; } @CustomType.Setter public Builder livenessProbe(@Nullable Probe livenessProbe) { + this.livenessProbe = livenessProbe; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("EphemeralContainer", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -461,11 +474,13 @@ public Builder ports(ContainerPort... ports) { } @CustomType.Setter public Builder readinessProbe(@Nullable Probe readinessProbe) { + this.readinessProbe = readinessProbe; return this; } @CustomType.Setter public Builder resizePolicy(@Nullable List resizePolicy) { + this.resizePolicy = resizePolicy; return this; } @@ -474,56 +489,67 @@ public Builder resizePolicy(ContainerResizePolicy... resizePolicy) { } @CustomType.Setter public Builder resources(@Nullable ResourceRequirements resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder securityContext(@Nullable SecurityContext securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder startupProbe(@Nullable Probe startupProbe) { + this.startupProbe = startupProbe; return this; } @CustomType.Setter public Builder stdin(@Nullable Boolean stdin) { + this.stdin = stdin; return this; } @CustomType.Setter public Builder stdinOnce(@Nullable Boolean stdinOnce) { + this.stdinOnce = stdinOnce; return this; } @CustomType.Setter public Builder targetContainerName(@Nullable String targetContainerName) { + this.targetContainerName = targetContainerName; return this; } @CustomType.Setter public Builder terminationMessagePath(@Nullable String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; return this; } @CustomType.Setter public Builder terminationMessagePolicy(@Nullable String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; return this; } @CustomType.Setter public Builder tty(@Nullable Boolean tty) { + this.tty = tty; return this; } @CustomType.Setter public Builder volumeDevices(@Nullable List volumeDevices) { + this.volumeDevices = volumeDevices; return this; } @@ -532,6 +558,7 @@ public Builder volumeDevices(VolumeDevice... volumeDevices) { } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -540,37 +567,38 @@ public Builder volumeMounts(VolumeMount... volumeMounts) { } @CustomType.Setter public Builder workingDir(@Nullable String workingDir) { + this.workingDir = workingDir; return this; } public EphemeralContainer build() { - final var o = new EphemeralContainer(); - o.args = args; - o.command = command; - o.env = env; - o.envFrom = envFrom; - o.image = image; - o.imagePullPolicy = imagePullPolicy; - o.lifecycle = lifecycle; - o.livenessProbe = livenessProbe; - o.name = name; - o.ports = ports; - o.readinessProbe = readinessProbe; - o.resizePolicy = resizePolicy; - o.resources = resources; - o.restartPolicy = restartPolicy; - o.securityContext = securityContext; - o.startupProbe = startupProbe; - o.stdin = stdin; - o.stdinOnce = stdinOnce; - o.targetContainerName = targetContainerName; - o.terminationMessagePath = terminationMessagePath; - o.terminationMessagePolicy = terminationMessagePolicy; - o.tty = tty; - o.volumeDevices = volumeDevices; - o.volumeMounts = volumeMounts; - o.workingDir = workingDir; - return o; + final var _resultValue = new EphemeralContainer(); + _resultValue.args = args; + _resultValue.command = command; + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.image = image; + _resultValue.imagePullPolicy = imagePullPolicy; + _resultValue.lifecycle = lifecycle; + _resultValue.livenessProbe = livenessProbe; + _resultValue.name = name; + _resultValue.ports = ports; + _resultValue.readinessProbe = readinessProbe; + _resultValue.resizePolicy = resizePolicy; + _resultValue.resources = resources; + _resultValue.restartPolicy = restartPolicy; + _resultValue.securityContext = securityContext; + _resultValue.startupProbe = startupProbe; + _resultValue.stdin = stdin; + _resultValue.stdinOnce = stdinOnce; + _resultValue.targetContainerName = targetContainerName; + _resultValue.terminationMessagePath = terminationMessagePath; + _resultValue.terminationMessagePolicy = terminationMessagePolicy; + _resultValue.tty = tty; + _resultValue.volumeDevices = volumeDevices; + _resultValue.volumeMounts = volumeMounts; + _resultValue.workingDir = workingDir; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainerPatch.java index 6325e38593..e2086d6d8b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralContainerPatch.java @@ -396,6 +396,7 @@ public Builder(EphemeralContainerPatch defaults) { @CustomType.Setter public Builder args(@Nullable List args) { + this.args = args; return this; } @@ -404,6 +405,7 @@ public Builder args(String... args) { } @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -412,6 +414,7 @@ public Builder command(String... command) { } @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -420,6 +423,7 @@ public Builder env(EnvVarPatch... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -428,31 +432,37 @@ public Builder envFrom(EnvFromSourcePatch... envFrom) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder lifecycle(@Nullable LifecyclePatch lifecycle) { + this.lifecycle = lifecycle; return this; } @CustomType.Setter public Builder livenessProbe(@Nullable ProbePatch livenessProbe) { + this.livenessProbe = livenessProbe; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -461,11 +471,13 @@ public Builder ports(ContainerPortPatch... ports) { } @CustomType.Setter public Builder readinessProbe(@Nullable ProbePatch readinessProbe) { + this.readinessProbe = readinessProbe; return this; } @CustomType.Setter public Builder resizePolicy(@Nullable List resizePolicy) { + this.resizePolicy = resizePolicy; return this; } @@ -474,56 +486,67 @@ public Builder resizePolicy(ContainerResizePolicyPatch... resizePolicy) { } @CustomType.Setter public Builder resources(@Nullable ResourceRequirementsPatch resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder securityContext(@Nullable SecurityContextPatch securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder startupProbe(@Nullable ProbePatch startupProbe) { + this.startupProbe = startupProbe; return this; } @CustomType.Setter public Builder stdin(@Nullable Boolean stdin) { + this.stdin = stdin; return this; } @CustomType.Setter public Builder stdinOnce(@Nullable Boolean stdinOnce) { + this.stdinOnce = stdinOnce; return this; } @CustomType.Setter public Builder targetContainerName(@Nullable String targetContainerName) { + this.targetContainerName = targetContainerName; return this; } @CustomType.Setter public Builder terminationMessagePath(@Nullable String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; return this; } @CustomType.Setter public Builder terminationMessagePolicy(@Nullable String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; return this; } @CustomType.Setter public Builder tty(@Nullable Boolean tty) { + this.tty = tty; return this; } @CustomType.Setter public Builder volumeDevices(@Nullable List volumeDevices) { + this.volumeDevices = volumeDevices; return this; } @@ -532,6 +555,7 @@ public Builder volumeDevices(VolumeDevicePatch... volumeDevices) { } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -540,37 +564,38 @@ public Builder volumeMounts(VolumeMountPatch... volumeMounts) { } @CustomType.Setter public Builder workingDir(@Nullable String workingDir) { + this.workingDir = workingDir; return this; } public EphemeralContainerPatch build() { - final var o = new EphemeralContainerPatch(); - o.args = args; - o.command = command; - o.env = env; - o.envFrom = envFrom; - o.image = image; - o.imagePullPolicy = imagePullPolicy; - o.lifecycle = lifecycle; - o.livenessProbe = livenessProbe; - o.name = name; - o.ports = ports; - o.readinessProbe = readinessProbe; - o.resizePolicy = resizePolicy; - o.resources = resources; - o.restartPolicy = restartPolicy; - o.securityContext = securityContext; - o.startupProbe = startupProbe; - o.stdin = stdin; - o.stdinOnce = stdinOnce; - o.targetContainerName = targetContainerName; - o.terminationMessagePath = terminationMessagePath; - o.terminationMessagePolicy = terminationMessagePolicy; - o.tty = tty; - o.volumeDevices = volumeDevices; - o.volumeMounts = volumeMounts; - o.workingDir = workingDir; - return o; + final var _resultValue = new EphemeralContainerPatch(); + _resultValue.args = args; + _resultValue.command = command; + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.image = image; + _resultValue.imagePullPolicy = imagePullPolicy; + _resultValue.lifecycle = lifecycle; + _resultValue.livenessProbe = livenessProbe; + _resultValue.name = name; + _resultValue.ports = ports; + _resultValue.readinessProbe = readinessProbe; + _resultValue.resizePolicy = resizePolicy; + _resultValue.resources = resources; + _resultValue.restartPolicy = restartPolicy; + _resultValue.securityContext = securityContext; + _resultValue.startupProbe = startupProbe; + _resultValue.stdin = stdin; + _resultValue.stdinOnce = stdinOnce; + _resultValue.targetContainerName = targetContainerName; + _resultValue.terminationMessagePath = terminationMessagePath; + _resultValue.terminationMessagePolicy = terminationMessagePolicy; + _resultValue.tty = tty; + _resultValue.volumeDevices = volumeDevices; + _resultValue.volumeMounts = volumeMounts; + _resultValue.workingDir = workingDir; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSource.java index 0fe039d322..282d136d94 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSource.java @@ -71,19 +71,21 @@ public Builder(EphemeralVolumeSource defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeClaimTemplate(@Nullable PersistentVolumeClaimTemplate volumeClaimTemplate) { + this.volumeClaimTemplate = volumeClaimTemplate; return this; } public EphemeralVolumeSource build() { - final var o = new EphemeralVolumeSource(); - o.readOnly = readOnly; - o.volumeClaimTemplate = volumeClaimTemplate; - return o; + final var _resultValue = new EphemeralVolumeSource(); + _resultValue.readOnly = readOnly; + _resultValue.volumeClaimTemplate = volumeClaimTemplate; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSourcePatch.java index defb21dfb3..b7ba28b103 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EphemeralVolumeSourcePatch.java @@ -71,19 +71,21 @@ public Builder(EphemeralVolumeSourcePatch defaults) { @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeClaimTemplate(@Nullable PersistentVolumeClaimTemplatePatch volumeClaimTemplate) { + this.volumeClaimTemplate = volumeClaimTemplate; return this; } public EphemeralVolumeSourcePatch build() { - final var o = new EphemeralVolumeSourcePatch(); - o.readOnly = readOnly; - o.volumeClaimTemplate = volumeClaimTemplate; - return o; + final var _resultValue = new EphemeralVolumeSourcePatch(); + _resultValue.readOnly = readOnly; + _resultValue.volumeClaimTemplate = volumeClaimTemplate; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Event.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Event.java index 73c3b9fe39..cfd84170eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Event.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Event.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.EventSeries; import com.pulumi.kubernetes.core.v1.outputs.EventSource; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; @@ -273,109 +274,130 @@ public Builder(Event defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder eventTime(@Nullable String eventTime) { + this.eventTime = eventTime; return this; } @CustomType.Setter public Builder firstTimestamp(@Nullable String firstTimestamp) { + this.firstTimestamp = firstTimestamp; return this; } @CustomType.Setter public Builder involvedObject(ObjectReference involvedObject) { - this.involvedObject = Objects.requireNonNull(involvedObject); + if (involvedObject == null) { + throw new MissingRequiredPropertyException("Event", "involvedObject"); + } + this.involvedObject = involvedObject; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder lastTimestamp(@Nullable String lastTimestamp) { + this.lastTimestamp = lastTimestamp; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder metadata(ObjectMeta metadata) { - this.metadata = Objects.requireNonNull(metadata); + if (metadata == null) { + throw new MissingRequiredPropertyException("Event", "metadata"); + } + this.metadata = metadata; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder related(@Nullable ObjectReference related) { + this.related = related; return this; } @CustomType.Setter public Builder reportingComponent(@Nullable String reportingComponent) { + this.reportingComponent = reportingComponent; return this; } @CustomType.Setter public Builder reportingInstance(@Nullable String reportingInstance) { + this.reportingInstance = reportingInstance; return this; } @CustomType.Setter public Builder series(@Nullable EventSeries series) { + this.series = series; return this; } @CustomType.Setter public Builder source(@Nullable EventSource source) { + this.source = source; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public Event build() { - final var o = new Event(); - o.action = action; - o.apiVersion = apiVersion; - o.count = count; - o.eventTime = eventTime; - o.firstTimestamp = firstTimestamp; - o.involvedObject = involvedObject; - o.kind = kind; - o.lastTimestamp = lastTimestamp; - o.message = message; - o.metadata = metadata; - o.reason = reason; - o.related = related; - o.reportingComponent = reportingComponent; - o.reportingInstance = reportingInstance; - o.series = series; - o.source = source; - o.type = type; - return o; + final var _resultValue = new Event(); + _resultValue.action = action; + _resultValue.apiVersion = apiVersion; + _resultValue.count = count; + _resultValue.eventTime = eventTime; + _resultValue.firstTimestamp = firstTimestamp; + _resultValue.involvedObject = involvedObject; + _resultValue.kind = kind; + _resultValue.lastTimestamp = lastTimestamp; + _resultValue.message = message; + _resultValue.metadata = metadata; + _resultValue.reason = reason; + _resultValue.related = related; + _resultValue.reportingComponent = reportingComponent; + _resultValue.reportingInstance = reportingInstance; + _resultValue.series = series; + _resultValue.source = source; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeries.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeries.java index 94e624ad6a..acb8eab960 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeries.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeries.java @@ -73,25 +73,28 @@ public Builder(EventSeries defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(@Nullable String lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } public EventSeries build() { - final var o = new EventSeries(); - o.count = count; - o.lastObservedTime = lastObservedTime; - o.state = state; - return o; + final var _resultValue = new EventSeries(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + _resultValue.state = state; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeriesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeriesPatch.java index ca74e900b2..1e246403d6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeriesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSeriesPatch.java @@ -73,25 +73,28 @@ public Builder(EventSeriesPatch defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(@Nullable String lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } public EventSeriesPatch build() { - final var o = new EventSeriesPatch(); - o.count = count; - o.lastObservedTime = lastObservedTime; - o.state = state; - return o; + final var _resultValue = new EventSeriesPatch(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + _resultValue.state = state; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSource.java index f1bf917412..01069c5986 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSource.java @@ -58,19 +58,21 @@ public Builder(EventSource defaults) { @CustomType.Setter public Builder component(@Nullable String component) { + this.component = component; return this; } @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } public EventSource build() { - final var o = new EventSource(); - o.component = component; - o.host = host; - return o; + final var _resultValue = new EventSource(); + _resultValue.component = component; + _resultValue.host = host; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSourcePatch.java index c9a1a1d859..0aba3b02c9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EventSourcePatch.java @@ -58,19 +58,21 @@ public Builder(EventSourcePatch defaults) { @CustomType.Setter public Builder component(@Nullable String component) { + this.component = component; return this; } @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } public EventSourcePatch build() { - final var o = new EventSourcePatch(); - o.component = component; - o.host = host; - return o; + final var _resultValue = new EventSourcePatch(); + _resultValue.component = component; + _resultValue.host = host; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecAction.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecAction.java index f08810c61a..633ea1fceb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecAction.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecAction.java @@ -44,6 +44,7 @@ public Builder(ExecAction defaults) { @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -51,9 +52,9 @@ public Builder command(String... command) { return command(List.of(command)); } public ExecAction build() { - final var o = new ExecAction(); - o.command = command; - return o; + final var _resultValue = new ExecAction(); + _resultValue.command = command; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecActionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecActionPatch.java index bf6ddc0277..2811460498 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecActionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ExecActionPatch.java @@ -44,6 +44,7 @@ public Builder(ExecActionPatch defaults) { @CustomType.Setter public Builder command(@Nullable List command) { + this.command = command; return this; } @@ -51,9 +52,9 @@ public Builder command(String... command) { return command(List.of(command)); } public ExecActionPatch build() { - final var o = new ExecActionPatch(); - o.command = command; - return o; + final var _resultValue = new ExecActionPatch(); + _resultValue.command = command; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSource.java index 40b8d77277..1d374c5556 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSource.java @@ -103,21 +103,25 @@ public Builder(FCVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder lun(@Nullable Integer lun) { + this.lun = lun; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder targetWWNs(@Nullable List targetWWNs) { + this.targetWWNs = targetWWNs; return this; } @@ -126,6 +130,7 @@ public Builder targetWWNs(String... targetWWNs) { } @CustomType.Setter public Builder wwids(@Nullable List wwids) { + this.wwids = wwids; return this; } @@ -133,13 +138,13 @@ public Builder wwids(String... wwids) { return wwids(List.of(wwids)); } public FCVolumeSource build() { - final var o = new FCVolumeSource(); - o.fsType = fsType; - o.lun = lun; - o.readOnly = readOnly; - o.targetWWNs = targetWWNs; - o.wwids = wwids; - return o; + final var _resultValue = new FCVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.lun = lun; + _resultValue.readOnly = readOnly; + _resultValue.targetWWNs = targetWWNs; + _resultValue.wwids = wwids; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSourcePatch.java index bfabfb2c6a..67a9224d9d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FCVolumeSourcePatch.java @@ -103,21 +103,25 @@ public Builder(FCVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder lun(@Nullable Integer lun) { + this.lun = lun; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder targetWWNs(@Nullable List targetWWNs) { + this.targetWWNs = targetWWNs; return this; } @@ -126,6 +130,7 @@ public Builder targetWWNs(String... targetWWNs) { } @CustomType.Setter public Builder wwids(@Nullable List wwids) { + this.wwids = wwids; return this; } @@ -133,13 +138,13 @@ public Builder wwids(String... wwids) { return wwids(List.of(wwids)); } public FCVolumeSourcePatch build() { - final var o = new FCVolumeSourcePatch(); - o.fsType = fsType; - o.lun = lun; - o.readOnly = readOnly; - o.targetWWNs = targetWWNs; - o.wwids = wwids; - return o; + final var _resultValue = new FCVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.lun = lun; + _resultValue.readOnly = readOnly; + _resultValue.targetWWNs = targetWWNs; + _resultValue.wwids = wwids; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSource.java index 6ff2bd0b74..e336650c2c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(FlexPersistentVolumeSource defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("FlexPersistentVolumeSource", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReference secretRef) { + this.secretRef = secretRef; return this; } public FlexPersistentVolumeSource build() { - final var o = new FlexPersistentVolumeSource(); - o.driver = driver; - o.fsType = fsType; - o.options = options; - o.readOnly = readOnly; - o.secretRef = secretRef; - return o; + final var _resultValue = new FlexPersistentVolumeSource(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.options = options; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSourcePatch.java index 818c225f71..3efea1de30 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexPersistentVolumeSourcePatch.java @@ -103,37 +103,42 @@ public Builder(FlexPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } public FlexPersistentVolumeSourcePatch build() { - final var o = new FlexPersistentVolumeSourcePatch(); - o.driver = driver; - o.fsType = fsType; - o.options = options; - o.readOnly = readOnly; - o.secretRef = secretRef; - return o; + final var _resultValue = new FlexPersistentVolumeSourcePatch(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.options = options; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSource.java index 792900821d..790494c8de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -103,37 +104,44 @@ public Builder(FlexVolumeSource defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("FlexVolumeSource", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } public FlexVolumeSource build() { - final var o = new FlexVolumeSource(); - o.driver = driver; - o.fsType = fsType; - o.options = options; - o.readOnly = readOnly; - o.secretRef = secretRef; - return o; + final var _resultValue = new FlexVolumeSource(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.options = options; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSourcePatch.java index 9a808960e9..b92c53b4de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlexVolumeSourcePatch.java @@ -103,37 +103,42 @@ public Builder(FlexVolumeSourcePatch defaults) { @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } public FlexVolumeSourcePatch build() { - final var o = new FlexVolumeSourcePatch(); - o.driver = driver; - o.fsType = fsType; - o.options = options; - o.readOnly = readOnly; - o.secretRef = secretRef; - return o; + final var _resultValue = new FlexVolumeSourcePatch(); + _resultValue.driver = driver; + _resultValue.fsType = fsType; + _resultValue.options = options; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSource.java index a3afb6cf2e..60f6116e55 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSource.java @@ -58,19 +58,21 @@ public Builder(FlockerVolumeSource defaults) { @CustomType.Setter public Builder datasetName(@Nullable String datasetName) { + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder datasetUUID(@Nullable String datasetUUID) { + this.datasetUUID = datasetUUID; return this; } public FlockerVolumeSource build() { - final var o = new FlockerVolumeSource(); - o.datasetName = datasetName; - o.datasetUUID = datasetUUID; - return o; + final var _resultValue = new FlockerVolumeSource(); + _resultValue.datasetName = datasetName; + _resultValue.datasetUUID = datasetUUID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSourcePatch.java index 7754313aef..8ff2425b3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/FlockerVolumeSourcePatch.java @@ -58,19 +58,21 @@ public Builder(FlockerVolumeSourcePatch defaults) { @CustomType.Setter public Builder datasetName(@Nullable String datasetName) { + this.datasetName = datasetName; return this; } @CustomType.Setter public Builder datasetUUID(@Nullable String datasetUUID) { + this.datasetUUID = datasetUUID; return this; } public FlockerVolumeSourcePatch build() { - final var o = new FlockerVolumeSourcePatch(); - o.datasetName = datasetName; - o.datasetUUID = datasetUUID; - return o; + final var _resultValue = new FlockerVolumeSourcePatch(); + _resultValue.datasetName = datasetName; + _resultValue.datasetUUID = datasetUUID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSource.java index a38bffde12..89c0d073e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +89,37 @@ public Builder(GCEPersistentDiskVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } @CustomType.Setter public Builder pdName(String pdName) { - this.pdName = Objects.requireNonNull(pdName); + if (pdName == null) { + throw new MissingRequiredPropertyException("GCEPersistentDiskVolumeSource", "pdName"); + } + this.pdName = pdName; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GCEPersistentDiskVolumeSource build() { - final var o = new GCEPersistentDiskVolumeSource(); - o.fsType = fsType; - o.partition = partition; - o.pdName = pdName; - o.readOnly = readOnly; - return o; + final var _resultValue = new GCEPersistentDiskVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.partition = partition; + _resultValue.pdName = pdName; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSourcePatch.java index 01445dd234..3538068cf1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GCEPersistentDiskVolumeSourcePatch.java @@ -88,31 +88,35 @@ public Builder(GCEPersistentDiskVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder partition(@Nullable Integer partition) { + this.partition = partition; return this; } @CustomType.Setter public Builder pdName(@Nullable String pdName) { + this.pdName = pdName; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GCEPersistentDiskVolumeSourcePatch build() { - final var o = new GCEPersistentDiskVolumeSourcePatch(); - o.fsType = fsType; - o.partition = partition; - o.pdName = pdName; - o.readOnly = readOnly; - return o; + final var _resultValue = new GCEPersistentDiskVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.partition = partition; + _resultValue.pdName = pdName; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCAction.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCAction.java index dfa50dbde5..3307b1b733 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCAction.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCAction.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -63,19 +64,23 @@ public Builder(GRPCAction defaults) { @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GRPCAction", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder service(@Nullable String service) { + this.service = service; return this; } public GRPCAction build() { - final var o = new GRPCAction(); - o.port = port; - o.service = service; - return o; + final var _resultValue = new GRPCAction(); + _resultValue.port = port; + _resultValue.service = service; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCActionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCActionPatch.java index 8e50f152e7..b573749ca0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCActionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GRPCActionPatch.java @@ -63,19 +63,21 @@ public Builder(GRPCActionPatch defaults) { @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder service(@Nullable String service) { + this.service = service; return this; } public GRPCActionPatch build() { - final var o = new GRPCActionPatch(); - o.port = port; - o.service = service; - return o; + final var _resultValue = new GRPCActionPatch(); + _resultValue.port = port; + _resultValue.service = service; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSource.java index 4bd7e209b0..fba1af58ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +73,30 @@ public Builder(GitRepoVolumeSource defaults) { @CustomType.Setter public Builder directory(@Nullable String directory) { + this.directory = directory; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("GitRepoVolumeSource", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder revision(@Nullable String revision) { + this.revision = revision; return this; } public GitRepoVolumeSource build() { - final var o = new GitRepoVolumeSource(); - o.directory = directory; - o.repository = repository; - o.revision = revision; - return o; + final var _resultValue = new GitRepoVolumeSource(); + _resultValue.directory = directory; + _resultValue.repository = repository; + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSourcePatch.java index 7cc03c2ccf..92e7147e23 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GitRepoVolumeSourcePatch.java @@ -72,25 +72,28 @@ public Builder(GitRepoVolumeSourcePatch defaults) { @CustomType.Setter public Builder directory(@Nullable String directory) { + this.directory = directory; return this; } @CustomType.Setter public Builder repository(@Nullable String repository) { + this.repository = repository; return this; } @CustomType.Setter public Builder revision(@Nullable String revision) { + this.revision = revision; return this; } public GitRepoVolumeSourcePatch build() { - final var o = new GitRepoVolumeSourcePatch(); - o.directory = directory; - o.repository = repository; - o.revision = revision; - return o; + final var _resultValue = new GitRepoVolumeSourcePatch(); + _resultValue.directory = directory; + _resultValue.repository = repository; + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSource.java index 4cafb27abf..6a2340529c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +88,39 @@ public Builder(GlusterfsPersistentVolumeSource defaults) { @CustomType.Setter public Builder endpoints(String endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GlusterfsPersistentVolumeSource", "endpoints"); + } + this.endpoints = endpoints; return this; } @CustomType.Setter public Builder endpointsNamespace(@Nullable String endpointsNamespace) { + this.endpointsNamespace = endpointsNamespace; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GlusterfsPersistentVolumeSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GlusterfsPersistentVolumeSource build() { - final var o = new GlusterfsPersistentVolumeSource(); - o.endpoints = endpoints; - o.endpointsNamespace = endpointsNamespace; - o.path = path; - o.readOnly = readOnly; - return o; + final var _resultValue = new GlusterfsPersistentVolumeSource(); + _resultValue.endpoints = endpoints; + _resultValue.endpointsNamespace = endpointsNamespace; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSourcePatch.java index dac68d8d9b..78d27dbc0f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsPersistentVolumeSourcePatch.java @@ -87,31 +87,35 @@ public Builder(GlusterfsPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder endpoints(@Nullable String endpoints) { + this.endpoints = endpoints; return this; } @CustomType.Setter public Builder endpointsNamespace(@Nullable String endpointsNamespace) { + this.endpointsNamespace = endpointsNamespace; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GlusterfsPersistentVolumeSourcePatch build() { - final var o = new GlusterfsPersistentVolumeSourcePatch(); - o.endpoints = endpoints; - o.endpointsNamespace = endpointsNamespace; - o.path = path; - o.readOnly = readOnly; - return o; + final var _resultValue = new GlusterfsPersistentVolumeSourcePatch(); + _resultValue.endpoints = endpoints; + _resultValue.endpointsNamespace = endpointsNamespace; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSource.java index d6e73a2ee6..b3180d98c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,32 @@ public Builder(GlusterfsVolumeSource defaults) { @CustomType.Setter public Builder endpoints(String endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("GlusterfsVolumeSource", "endpoints"); + } + this.endpoints = endpoints; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GlusterfsVolumeSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GlusterfsVolumeSource build() { - final var o = new GlusterfsVolumeSource(); - o.endpoints = endpoints; - o.path = path; - o.readOnly = readOnly; - return o; + final var _resultValue = new GlusterfsVolumeSource(); + _resultValue.endpoints = endpoints; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSourcePatch.java index 021cdd39b3..b91249982d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/GlusterfsVolumeSourcePatch.java @@ -73,25 +73,28 @@ public Builder(GlusterfsVolumeSourcePatch defaults) { @CustomType.Setter public Builder endpoints(@Nullable String endpoints) { + this.endpoints = endpoints; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public GlusterfsVolumeSourcePatch build() { - final var o = new GlusterfsVolumeSourcePatch(); - o.endpoints = endpoints; - o.path = path; - o.readOnly = readOnly; - return o; + final var _resultValue = new GlusterfsVolumeSourcePatch(); + _resultValue.endpoints = endpoints; + _resultValue.path = path; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetAction.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetAction.java index 66cb3e54db..f913a5761d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetAction.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetAction.java @@ -5,6 +5,7 @@ import com.pulumi.core.Either; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.HTTPHeader; import java.lang.Integer; import java.lang.String; @@ -104,11 +105,13 @@ public Builder(HTTPGetAction defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder httpHeaders(@Nullable List httpHeaders) { + this.httpHeaders = httpHeaders; return this; } @@ -117,27 +120,32 @@ public Builder httpHeaders(HTTPHeader... httpHeaders) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(Either port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("HTTPGetAction", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } public HTTPGetAction build() { - final var o = new HTTPGetAction(); - o.host = host; - o.httpHeaders = httpHeaders; - o.path = path; - o.port = port; - o.scheme = scheme; - return o; + final var _resultValue = new HTTPGetAction(); + _resultValue.host = host; + _resultValue.httpHeaders = httpHeaders; + _resultValue.path = path; + _resultValue.port = port; + _resultValue.scheme = scheme; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetActionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetActionPatch.java index 3bb869427f..3f3a631439 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetActionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPGetActionPatch.java @@ -104,11 +104,13 @@ public Builder(HTTPGetActionPatch defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder httpHeaders(@Nullable List httpHeaders) { + this.httpHeaders = httpHeaders; return this; } @@ -117,27 +119,30 @@ public Builder httpHeaders(HTTPHeaderPatch... httpHeaders) { } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } public HTTPGetActionPatch build() { - final var o = new HTTPGetActionPatch(); - o.host = host; - o.httpHeaders = httpHeaders; - o.path = path; - o.port = port; - o.scheme = scheme; - return o; + final var _resultValue = new HTTPGetActionPatch(); + _resultValue.host = host; + _resultValue.httpHeaders = httpHeaders; + _resultValue.path = path; + _resultValue.port = port; + _resultValue.scheme = scheme; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeader.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeader.java index d4c022b0a1..097837e084 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeader.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeader.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(HTTPHeader defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("HTTPHeader", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("HTTPHeader", "value"); + } + this.value = value; return this; } public HTTPHeader build() { - final var o = new HTTPHeader(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new HTTPHeader(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeaderPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeaderPatch.java index d8096b9737..bd190da48c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeaderPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HTTPHeaderPatch.java @@ -58,19 +58,21 @@ public Builder(HTTPHeaderPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public HTTPHeaderPatch build() { - final var o = new HTTPHeaderPatch(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new HTTPHeaderPatch(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAlias.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAlias.java index 8d52e9d8ab..2ba3ca2b0d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAlias.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAlias.java @@ -59,6 +59,7 @@ public Builder(HostAlias defaults) { @CustomType.Setter public Builder hostnames(@Nullable List hostnames) { + this.hostnames = hostnames; return this; } @@ -67,14 +68,15 @@ public Builder hostnames(String... hostnames) { } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public HostAlias build() { - final var o = new HostAlias(); - o.hostnames = hostnames; - o.ip = ip; - return o; + final var _resultValue = new HostAlias(); + _resultValue.hostnames = hostnames; + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAliasPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAliasPatch.java index d1ccdb37cc..c42bfbd6be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAliasPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostAliasPatch.java @@ -59,6 +59,7 @@ public Builder(HostAliasPatch defaults) { @CustomType.Setter public Builder hostnames(@Nullable List hostnames) { + this.hostnames = hostnames; return this; } @@ -67,14 +68,15 @@ public Builder hostnames(String... hostnames) { } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public HostAliasPatch build() { - final var o = new HostAliasPatch(); - o.hostnames = hostnames; - o.ip = ip; - return o; + final var _resultValue = new HostAliasPatch(); + _resultValue.hostnames = hostnames; + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIP.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIP.java index 8d69666927..1301220021 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIP.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIP.java @@ -44,13 +44,14 @@ public Builder(HostIP defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public HostIP build() { - final var o = new HostIP(); - o.ip = ip; - return o; + final var _resultValue = new HostIP(); + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIPPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIPPatch.java index 88e9493043..c09b01b900 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIPPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostIPPatch.java @@ -44,13 +44,14 @@ public Builder(HostIPPatch defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public HostIPPatch build() { - final var o = new HostIPPatch(); - o.ip = ip; - return o; + final var _resultValue = new HostIPPatch(); + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSource.java index c7a3b27e09..ce8f377839 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,19 +59,23 @@ public Builder(HostPathVolumeSource defaults) { @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("HostPathVolumeSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public HostPathVolumeSource build() { - final var o = new HostPathVolumeSource(); - o.path = path; - o.type = type; - return o; + final var _resultValue = new HostPathVolumeSource(); + _resultValue.path = path; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSourcePatch.java index 4c4d99a761..7b189542cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/HostPathVolumeSourcePatch.java @@ -58,19 +58,21 @@ public Builder(HostPathVolumeSourcePatch defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public HostPathVolumeSourcePatch build() { - final var o = new HostPathVolumeSourcePatch(); - o.path = path; - o.type = type; - return o; + final var _resultValue = new HostPathVolumeSourcePatch(); + _resultValue.path = path; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSource.java index af6b34efc0..e5dc6807c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.Integer; @@ -188,41 +189,53 @@ public Builder(ISCSIPersistentVolumeSource defaults) { @CustomType.Setter public Builder chapAuthDiscovery(@Nullable Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @CustomType.Setter public Builder chapAuthSession(@Nullable Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder initiatorName(@Nullable String initiatorName) { + this.initiatorName = initiatorName; return this; } @CustomType.Setter public Builder iqn(String iqn) { - this.iqn = Objects.requireNonNull(iqn); + if (iqn == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSource", "iqn"); + } + this.iqn = iqn; return this; } @CustomType.Setter public Builder iscsiInterface(@Nullable String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @CustomType.Setter public Builder lun(Integer lun) { - this.lun = Objects.requireNonNull(lun); + if (lun == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSource", "lun"); + } + this.lun = lun; return this; } @CustomType.Setter public Builder portals(@Nullable List portals) { + this.portals = portals; return this; } @@ -231,33 +244,38 @@ public Builder portals(String... portals) { } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder targetPortal(String targetPortal) { - this.targetPortal = Objects.requireNonNull(targetPortal); + if (targetPortal == null) { + throw new MissingRequiredPropertyException("ISCSIPersistentVolumeSource", "targetPortal"); + } + this.targetPortal = targetPortal; return this; } public ISCSIPersistentVolumeSource build() { - final var o = new ISCSIPersistentVolumeSource(); - o.chapAuthDiscovery = chapAuthDiscovery; - o.chapAuthSession = chapAuthSession; - o.fsType = fsType; - o.initiatorName = initiatorName; - o.iqn = iqn; - o.iscsiInterface = iscsiInterface; - o.lun = lun; - o.portals = portals; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.targetPortal = targetPortal; - return o; + final var _resultValue = new ISCSIPersistentVolumeSource(); + _resultValue.chapAuthDiscovery = chapAuthDiscovery; + _resultValue.chapAuthSession = chapAuthSession; + _resultValue.fsType = fsType; + _resultValue.initiatorName = initiatorName; + _resultValue.iqn = iqn; + _resultValue.iscsiInterface = iscsiInterface; + _resultValue.lun = lun; + _resultValue.portals = portals; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.targetPortal = targetPortal; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSourcePatch.java index 59a4740195..059695f9a1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIPersistentVolumeSourcePatch.java @@ -188,41 +188,49 @@ public Builder(ISCSIPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder chapAuthDiscovery(@Nullable Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @CustomType.Setter public Builder chapAuthSession(@Nullable Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder initiatorName(@Nullable String initiatorName) { + this.initiatorName = initiatorName; return this; } @CustomType.Setter public Builder iqn(@Nullable String iqn) { + this.iqn = iqn; return this; } @CustomType.Setter public Builder iscsiInterface(@Nullable String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @CustomType.Setter public Builder lun(@Nullable Integer lun) { + this.lun = lun; return this; } @CustomType.Setter public Builder portals(@Nullable List portals) { + this.portals = portals; return this; } @@ -231,33 +239,36 @@ public Builder portals(String... portals) { } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder targetPortal(@Nullable String targetPortal) { + this.targetPortal = targetPortal; return this; } public ISCSIPersistentVolumeSourcePatch build() { - final var o = new ISCSIPersistentVolumeSourcePatch(); - o.chapAuthDiscovery = chapAuthDiscovery; - o.chapAuthSession = chapAuthSession; - o.fsType = fsType; - o.initiatorName = initiatorName; - o.iqn = iqn; - o.iscsiInterface = iscsiInterface; - o.lun = lun; - o.portals = portals; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.targetPortal = targetPortal; - return o; + final var _resultValue = new ISCSIPersistentVolumeSourcePatch(); + _resultValue.chapAuthDiscovery = chapAuthDiscovery; + _resultValue.chapAuthSession = chapAuthSession; + _resultValue.fsType = fsType; + _resultValue.initiatorName = initiatorName; + _resultValue.iqn = iqn; + _resultValue.iscsiInterface = iscsiInterface; + _resultValue.lun = lun; + _resultValue.portals = portals; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.targetPortal = targetPortal; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSource.java index 71415f16fe..af571ce744 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.Integer; @@ -188,41 +189,53 @@ public Builder(ISCSIVolumeSource defaults) { @CustomType.Setter public Builder chapAuthDiscovery(@Nullable Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @CustomType.Setter public Builder chapAuthSession(@Nullable Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder initiatorName(@Nullable String initiatorName) { + this.initiatorName = initiatorName; return this; } @CustomType.Setter public Builder iqn(String iqn) { - this.iqn = Objects.requireNonNull(iqn); + if (iqn == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSource", "iqn"); + } + this.iqn = iqn; return this; } @CustomType.Setter public Builder iscsiInterface(@Nullable String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @CustomType.Setter public Builder lun(Integer lun) { - this.lun = Objects.requireNonNull(lun); + if (lun == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSource", "lun"); + } + this.lun = lun; return this; } @CustomType.Setter public Builder portals(@Nullable List portals) { + this.portals = portals; return this; } @@ -231,33 +244,38 @@ public Builder portals(String... portals) { } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder targetPortal(String targetPortal) { - this.targetPortal = Objects.requireNonNull(targetPortal); + if (targetPortal == null) { + throw new MissingRequiredPropertyException("ISCSIVolumeSource", "targetPortal"); + } + this.targetPortal = targetPortal; return this; } public ISCSIVolumeSource build() { - final var o = new ISCSIVolumeSource(); - o.chapAuthDiscovery = chapAuthDiscovery; - o.chapAuthSession = chapAuthSession; - o.fsType = fsType; - o.initiatorName = initiatorName; - o.iqn = iqn; - o.iscsiInterface = iscsiInterface; - o.lun = lun; - o.portals = portals; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.targetPortal = targetPortal; - return o; + final var _resultValue = new ISCSIVolumeSource(); + _resultValue.chapAuthDiscovery = chapAuthDiscovery; + _resultValue.chapAuthSession = chapAuthSession; + _resultValue.fsType = fsType; + _resultValue.initiatorName = initiatorName; + _resultValue.iqn = iqn; + _resultValue.iscsiInterface = iscsiInterface; + _resultValue.lun = lun; + _resultValue.portals = portals; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.targetPortal = targetPortal; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSourcePatch.java index 97ea835fae..f60319196f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ISCSIVolumeSourcePatch.java @@ -188,41 +188,49 @@ public Builder(ISCSIVolumeSourcePatch defaults) { @CustomType.Setter public Builder chapAuthDiscovery(@Nullable Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @CustomType.Setter public Builder chapAuthSession(@Nullable Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder initiatorName(@Nullable String initiatorName) { + this.initiatorName = initiatorName; return this; } @CustomType.Setter public Builder iqn(@Nullable String iqn) { + this.iqn = iqn; return this; } @CustomType.Setter public Builder iscsiInterface(@Nullable String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @CustomType.Setter public Builder lun(@Nullable Integer lun) { + this.lun = lun; return this; } @CustomType.Setter public Builder portals(@Nullable List portals) { + this.portals = portals; return this; } @@ -231,33 +239,36 @@ public Builder portals(String... portals) { } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder targetPortal(@Nullable String targetPortal) { + this.targetPortal = targetPortal; return this; } public ISCSIVolumeSourcePatch build() { - final var o = new ISCSIVolumeSourcePatch(); - o.chapAuthDiscovery = chapAuthDiscovery; - o.chapAuthSession = chapAuthSession; - o.fsType = fsType; - o.initiatorName = initiatorName; - o.iqn = iqn; - o.iscsiInterface = iscsiInterface; - o.lun = lun; - o.portals = portals; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.targetPortal = targetPortal; - return o; + final var _resultValue = new ISCSIVolumeSourcePatch(); + _resultValue.chapAuthDiscovery = chapAuthDiscovery; + _resultValue.chapAuthSession = chapAuthSession; + _resultValue.fsType = fsType; + _resultValue.initiatorName = initiatorName; + _resultValue.iqn = iqn; + _resultValue.iscsiInterface = iscsiInterface; + _resultValue.lun = lun; + _resultValue.portals = portals; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.targetPortal = targetPortal; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPath.java index 83e5e35fc0..eceaf6b79c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPath.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,32 @@ public Builder(KeyToPath defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("KeyToPath", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder mode(@Nullable Integer mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("KeyToPath", "path"); + } + this.path = path; return this; } public KeyToPath build() { - final var o = new KeyToPath(); - o.key = key; - o.mode = mode; - o.path = path; - return o; + final var _resultValue = new KeyToPath(); + _resultValue.key = key; + _resultValue.mode = mode; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPathPatch.java index c2c5d7e25d..94127651fd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/KeyToPathPatch.java @@ -73,25 +73,28 @@ public Builder(KeyToPathPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder mode(@Nullable Integer mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } public KeyToPathPatch build() { - final var o = new KeyToPathPatch(); - o.key = key; - o.mode = mode; - o.path = path; - return o; + final var _resultValue = new KeyToPathPatch(); + _resultValue.key = key; + _resultValue.mode = mode; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Lifecycle.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Lifecycle.java index a5bdfd248c..03b7e540bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Lifecycle.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Lifecycle.java @@ -58,19 +58,21 @@ public Builder(Lifecycle defaults) { @CustomType.Setter public Builder postStart(@Nullable LifecycleHandler postStart) { + this.postStart = postStart; return this; } @CustomType.Setter public Builder preStop(@Nullable LifecycleHandler preStop) { + this.preStop = preStop; return this; } public Lifecycle build() { - final var o = new Lifecycle(); - o.postStart = postStart; - o.preStop = preStop; - return o; + final var _resultValue = new Lifecycle(); + _resultValue.postStart = postStart; + _resultValue.preStop = preStop; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandler.java index 947ef9061a..4d3fb3c638 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandler.java @@ -89,31 +89,35 @@ public Builder(LifecycleHandler defaults) { @CustomType.Setter public Builder exec(@Nullable ExecAction exec) { + this.exec = exec; return this; } @CustomType.Setter public Builder httpGet(@Nullable HTTPGetAction httpGet) { + this.httpGet = httpGet; return this; } @CustomType.Setter public Builder sleep(@Nullable SleepAction sleep) { + this.sleep = sleep; return this; } @CustomType.Setter public Builder tcpSocket(@Nullable TCPSocketAction tcpSocket) { + this.tcpSocket = tcpSocket; return this; } public LifecycleHandler build() { - final var o = new LifecycleHandler(); - o.exec = exec; - o.httpGet = httpGet; - o.sleep = sleep; - o.tcpSocket = tcpSocket; - return o; + final var _resultValue = new LifecycleHandler(); + _resultValue.exec = exec; + _resultValue.httpGet = httpGet; + _resultValue.sleep = sleep; + _resultValue.tcpSocket = tcpSocket; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandlerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandlerPatch.java index 25aa2cbb7c..6fe5856fb4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandlerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecycleHandlerPatch.java @@ -89,31 +89,35 @@ public Builder(LifecycleHandlerPatch defaults) { @CustomType.Setter public Builder exec(@Nullable ExecActionPatch exec) { + this.exec = exec; return this; } @CustomType.Setter public Builder httpGet(@Nullable HTTPGetActionPatch httpGet) { + this.httpGet = httpGet; return this; } @CustomType.Setter public Builder sleep(@Nullable SleepActionPatch sleep) { + this.sleep = sleep; return this; } @CustomType.Setter public Builder tcpSocket(@Nullable TCPSocketActionPatch tcpSocket) { + this.tcpSocket = tcpSocket; return this; } public LifecycleHandlerPatch build() { - final var o = new LifecycleHandlerPatch(); - o.exec = exec; - o.httpGet = httpGet; - o.sleep = sleep; - o.tcpSocket = tcpSocket; - return o; + final var _resultValue = new LifecycleHandlerPatch(); + _resultValue.exec = exec; + _resultValue.httpGet = httpGet; + _resultValue.sleep = sleep; + _resultValue.tcpSocket = tcpSocket; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecyclePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecyclePatch.java index 3ef488989f..a86ebd4968 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecyclePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LifecyclePatch.java @@ -58,19 +58,21 @@ public Builder(LifecyclePatch defaults) { @CustomType.Setter public Builder postStart(@Nullable LifecycleHandlerPatch postStart) { + this.postStart = postStart; return this; } @CustomType.Setter public Builder preStop(@Nullable LifecycleHandlerPatch preStop) { + this.preStop = preStop; return this; } public LifecyclePatch build() { - final var o = new LifecyclePatch(); - o.postStart = postStart; - o.preStop = preStop; - return o; + final var _resultValue = new LifecyclePatch(); + _resultValue.postStart = postStart; + _resultValue.preStop = preStop; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRange.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRange.java index 90dc29e58f..a8c94d2f7f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRange.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRange.java @@ -88,31 +88,35 @@ public Builder(LimitRange defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable LimitRangeSpec spec) { + this.spec = spec; return this; } public LimitRange build() { - final var o = new LimitRange(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new LimitRange(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItem.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItem.java index 294f5a5eef..128f7529d9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItem.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItem.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Map; import java.util.Objects; @@ -114,43 +115,51 @@ public Builder(LimitRangeItem defaults) { @CustomType.Setter("default") public Builder default_(@Nullable Map default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder defaultRequest(@Nullable Map defaultRequest) { + this.defaultRequest = defaultRequest; return this; } @CustomType.Setter public Builder max(@Nullable Map max) { + this.max = max; return this; } @CustomType.Setter public Builder maxLimitRequestRatio(@Nullable Map maxLimitRequestRatio) { + this.maxLimitRequestRatio = maxLimitRequestRatio; return this; } @CustomType.Setter public Builder min(@Nullable Map min) { + this.min = min; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitRangeItem", "type"); + } + this.type = type; return this; } public LimitRangeItem build() { - final var o = new LimitRangeItem(); - o.default_ = default_; - o.defaultRequest = defaultRequest; - o.max = max; - o.maxLimitRequestRatio = maxLimitRequestRatio; - o.min = min; - o.type = type; - return o; + final var _resultValue = new LimitRangeItem(); + _resultValue.default_ = default_; + _resultValue.defaultRequest = defaultRequest; + _resultValue.max = max; + _resultValue.maxLimitRequestRatio = maxLimitRequestRatio; + _resultValue.min = min; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItemPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItemPatch.java index 8ac594e5dc..be932964fd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItemPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeItemPatch.java @@ -115,43 +115,49 @@ public Builder(LimitRangeItemPatch defaults) { @CustomType.Setter("default") public Builder default_(@Nullable Map default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder defaultRequest(@Nullable Map defaultRequest) { + this.defaultRequest = defaultRequest; return this; } @CustomType.Setter public Builder max(@Nullable Map max) { + this.max = max; return this; } @CustomType.Setter public Builder maxLimitRequestRatio(@Nullable Map maxLimitRequestRatio) { + this.maxLimitRequestRatio = maxLimitRequestRatio; return this; } @CustomType.Setter public Builder min(@Nullable Map min) { + this.min = min; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitRangeItemPatch build() { - final var o = new LimitRangeItemPatch(); - o.default_ = default_; - o.defaultRequest = defaultRequest; - o.max = max; - o.maxLimitRequestRatio = maxLimitRequestRatio; - o.min = min; - o.type = type; - return o; + final var _resultValue = new LimitRangeItemPatch(); + _resultValue.default_ = default_; + _resultValue.defaultRequest = defaultRequest; + _resultValue.max = max; + _resultValue.maxLimitRequestRatio = maxLimitRequestRatio; + _resultValue.min = min; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpec.java index 373b44bb83..8833cea60b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LimitRangeItem; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(LimitRangeSpec defaults) { @CustomType.Setter public Builder limits(List limits) { - this.limits = Objects.requireNonNull(limits); + if (limits == null) { + throw new MissingRequiredPropertyException("LimitRangeSpec", "limits"); + } + this.limits = limits; return this; } public Builder limits(LimitRangeItem... limits) { return limits(List.of(limits)); } public LimitRangeSpec build() { - final var o = new LimitRangeSpec(); - o.limits = limits; - return o; + final var _resultValue = new LimitRangeSpec(); + _resultValue.limits = limits; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpecPatch.java index 9dd5f77cde..a4c4a2f0f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LimitRangeSpecPatch.java @@ -44,6 +44,7 @@ public Builder(LimitRangeSpecPatch defaults) { @CustomType.Setter public Builder limits(@Nullable List limits) { + this.limits = limits; return this; } @@ -51,9 +52,9 @@ public Builder limits(LimitRangeItemPatch... limits) { return limits(List.of(limits)); } public LimitRangeSpecPatch build() { - final var o = new LimitRangeSpecPatch(); - o.limits = limits; - return o; + final var _resultValue = new LimitRangeSpecPatch(); + _resultValue.limits = limits; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngress.java index f57a1eb85b..3178a23190 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngress.java @@ -88,21 +88,25 @@ public Builder(LoadBalancerIngress defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder ipMode(@Nullable String ipMode) { + this.ipMode = ipMode; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -110,12 +114,12 @@ public Builder ports(PortStatus... ports) { return ports(List.of(ports)); } public LoadBalancerIngress build() { - final var o = new LoadBalancerIngress(); - o.hostname = hostname; - o.ip = ip; - o.ipMode = ipMode; - o.ports = ports; - return o; + final var _resultValue = new LoadBalancerIngress(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.ipMode = ipMode; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngressPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngressPatch.java index a32f47f5be..b30a9cd369 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngressPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerIngressPatch.java @@ -88,21 +88,25 @@ public Builder(LoadBalancerIngressPatch defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder ipMode(@Nullable String ipMode) { + this.ipMode = ipMode; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -110,12 +114,12 @@ public Builder ports(PortStatusPatch... ports) { return ports(List.of(ports)); } public LoadBalancerIngressPatch build() { - final var o = new LoadBalancerIngressPatch(); - o.hostname = hostname; - o.ip = ip; - o.ipMode = ipMode; - o.ports = ports; - return o; + final var _resultValue = new LoadBalancerIngressPatch(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.ipMode = ipMode; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatus.java index 6d94b7f407..fd0a323a6b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatus.java @@ -44,6 +44,7 @@ public Builder(LoadBalancerStatus defaults) { @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -51,9 +52,9 @@ public Builder ingress(LoadBalancerIngress... ingress) { return ingress(List.of(ingress)); } public LoadBalancerStatus build() { - final var o = new LoadBalancerStatus(); - o.ingress = ingress; - return o; + final var _resultValue = new LoadBalancerStatus(); + _resultValue.ingress = ingress; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatusPatch.java index 10f7029633..6a97d945db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LoadBalancerStatusPatch.java @@ -44,6 +44,7 @@ public Builder(LoadBalancerStatusPatch defaults) { @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -51,9 +52,9 @@ public Builder ingress(LoadBalancerIngressPatch... ingress) { return ingress(List.of(ingress)); } public LoadBalancerStatusPatch build() { - final var o = new LoadBalancerStatusPatch(); - o.ingress = ingress; - return o; + final var _resultValue = new LoadBalancerStatusPatch(); + _resultValue.ingress = ingress; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReference.java index 2e3884ba9c..b1abd12389 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReference.java @@ -44,13 +44,14 @@ public Builder(LocalObjectReference defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public LocalObjectReference build() { - final var o = new LocalObjectReference(); - o.name = name; - return o; + final var _resultValue = new LocalObjectReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReferencePatch.java index 03628ab86c..833c8cc54b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalObjectReferencePatch.java @@ -44,13 +44,14 @@ public Builder(LocalObjectReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public LocalObjectReferencePatch build() { - final var o = new LocalObjectReferencePatch(); - o.name = name; - return o; + final var _resultValue = new LocalObjectReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSource.java index 3506ec74f3..a51c6c7bb3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,19 +59,23 @@ public Builder(LocalVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("LocalVolumeSource", "path"); + } + this.path = path; return this; } public LocalVolumeSource build() { - final var o = new LocalVolumeSource(); - o.fsType = fsType; - o.path = path; - return o; + final var _resultValue = new LocalVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSourcePatch.java index 310fc9439f..10a1ecf7df 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/LocalVolumeSourcePatch.java @@ -58,19 +58,21 @@ public Builder(LocalVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } public LocalVolumeSourcePatch build() { - final var o = new LocalVolumeSourcePatch(); - o.fsType = fsType; - o.path = path; - return o; + final var _resultValue = new LocalVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatus.java index 2031b95d7c..af8f8dfa9b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -76,19 +77,23 @@ public Builder(ModifyVolumeStatus defaults) { @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ModifyVolumeStatus", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder targetVolumeAttributesClassName(@Nullable String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; return this; } public ModifyVolumeStatus build() { - final var o = new ModifyVolumeStatus(); - o.status = status; - o.targetVolumeAttributesClassName = targetVolumeAttributesClassName; - return o; + final var _resultValue = new ModifyVolumeStatus(); + _resultValue.status = status; + _resultValue.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatusPatch.java index d1dc913fa2..bfac450c8b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ModifyVolumeStatusPatch.java @@ -76,19 +76,21 @@ public Builder(ModifyVolumeStatusPatch defaults) { @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder targetVolumeAttributesClassName(@Nullable String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; return this; } public ModifyVolumeStatusPatch build() { - final var o = new ModifyVolumeStatusPatch(); - o.status = status; - o.targetVolumeAttributesClassName = targetVolumeAttributesClassName; - return o; + final var _resultValue = new ModifyVolumeStatusPatch(); + _resultValue.status = status; + _resultValue.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSource.java index 247d0d6277..61d28ef765 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,32 @@ public Builder(NFSVolumeSource defaults) { @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("NFSVolumeSource", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder server(String server) { - this.server = Objects.requireNonNull(server); + if (server == null) { + throw new MissingRequiredPropertyException("NFSVolumeSource", "server"); + } + this.server = server; return this; } public NFSVolumeSource build() { - final var o = new NFSVolumeSource(); - o.path = path; - o.readOnly = readOnly; - o.server = server; - return o; + final var _resultValue = new NFSVolumeSource(); + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.server = server; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSourcePatch.java index 3311692b35..ebc98d710f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NFSVolumeSourcePatch.java @@ -73,25 +73,28 @@ public Builder(NFSVolumeSourcePatch defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder server(@Nullable String server) { + this.server = server; return this; } public NFSVolumeSourcePatch build() { - final var o = new NFSVolumeSourcePatch(); - o.path = path; - o.readOnly = readOnly; - o.server = server; - return o; + final var _resultValue = new NFSVolumeSourcePatch(); + _resultValue.path = path; + _resultValue.readOnly = readOnly; + _resultValue.server = server; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Namespace.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Namespace.java index 4842f98d06..c5034748d5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Namespace.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Namespace.java @@ -103,37 +103,42 @@ public Builder(Namespace defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable NamespaceSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable NamespaceStatus status) { + this.status = status; return this; } public Namespace build() { - final var o = new Namespace(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Namespace(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceCondition.java index 94a82ba5bd..2c8661e7e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -76,37 +77,46 @@ public Builder(NamespaceCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("NamespaceCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("NamespaceCondition", "type"); + } + this.type = type; return this; } public NamespaceCondition build() { - final var o = new NamespaceCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new NamespaceCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceConditionPatch.java index b11f1768df..a4efc9550e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceConditionPatch.java @@ -76,37 +76,42 @@ public Builder(NamespaceConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public NamespaceConditionPatch build() { - final var o = new NamespaceConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new NamespaceConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpec.java index 002fcf268e..5539c3d5dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpec.java @@ -44,6 +44,7 @@ public Builder(NamespaceSpec defaults) { @CustomType.Setter public Builder finalizers(@Nullable List finalizers) { + this.finalizers = finalizers; return this; } @@ -51,9 +52,9 @@ public Builder finalizers(String... finalizers) { return finalizers(List.of(finalizers)); } public NamespaceSpec build() { - final var o = new NamespaceSpec(); - o.finalizers = finalizers; - return o; + final var _resultValue = new NamespaceSpec(); + _resultValue.finalizers = finalizers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpecPatch.java index 732b6b2b06..bbb24dcee1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceSpecPatch.java @@ -44,6 +44,7 @@ public Builder(NamespaceSpecPatch defaults) { @CustomType.Setter public Builder finalizers(@Nullable List finalizers) { + this.finalizers = finalizers; return this; } @@ -51,9 +52,9 @@ public Builder finalizers(String... finalizers) { return finalizers(List.of(finalizers)); } public NamespaceSpecPatch build() { - final var o = new NamespaceSpecPatch(); - o.finalizers = finalizers; - return o; + final var _resultValue = new NamespaceSpecPatch(); + _resultValue.finalizers = finalizers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatus.java index a66da222fb..239c72fc19 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatus.java @@ -60,6 +60,7 @@ public Builder(NamespaceStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(NamespaceCondition... conditions) { } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } public NamespaceStatus build() { - final var o = new NamespaceStatus(); - o.conditions = conditions; - o.phase = phase; - return o; + final var _resultValue = new NamespaceStatus(); + _resultValue.conditions = conditions; + _resultValue.phase = phase; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatusPatch.java index 3d345e7120..87c69d6d0f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NamespaceStatusPatch.java @@ -60,6 +60,7 @@ public Builder(NamespaceStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(NamespaceConditionPatch... conditions) { } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } public NamespaceStatusPatch build() { - final var o = new NamespaceStatusPatch(); - o.conditions = conditions; - o.phase = phase; - return o; + final var _resultValue = new NamespaceStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.phase = phase; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Node.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Node.java index 92f5d7f47d..2fab33a707 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Node.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Node.java @@ -103,37 +103,42 @@ public Builder(Node defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable NodeSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable NodeStatus status) { + this.status = status; return this; } public Node build() { - final var o = new Node(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Node(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddress.java index c58f3b440a..1c9235eed2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddress.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(NodeAddress defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("NodeAddress", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("NodeAddress", "type"); + } + this.type = type; return this; } public NodeAddress build() { - final var o = new NodeAddress(); - o.address = address; - o.type = type; - return o; + final var _resultValue = new NodeAddress(); + _resultValue.address = address; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddressPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddressPatch.java index 97481dc6f9..d9b286d9fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddressPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAddressPatch.java @@ -58,19 +58,21 @@ public Builder(NodeAddressPatch defaults) { @CustomType.Setter public Builder address(@Nullable String address) { + this.address = address; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public NodeAddressPatch build() { - final var o = new NodeAddressPatch(); - o.address = address; - o.type = type; - return o; + final var _resultValue = new NodeAddressPatch(); + _resultValue.address = address; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinity.java index 346d088afd..5b9c77b1a0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinity.java @@ -60,6 +60,7 @@ public Builder(NodeAffinity defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -68,14 +69,15 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(PreferredScheduli } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } public NodeAffinity build() { - final var o = new NodeAffinity(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new NodeAffinity(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinityPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinityPatch.java index 62686e2caf..1f34fc84af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinityPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeAffinityPatch.java @@ -60,6 +60,7 @@ public Builder(NodeAffinityPatch defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -68,14 +69,15 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(PreferredScheduli } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable NodeSelectorPatch requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } public NodeAffinityPatch build() { - final var o = new NodeAffinityPatch(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new NodeAffinityPatch(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeCondition.java index e276f69c37..2f3c2256b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,43 +115,53 @@ public Builder(NodeCondition defaults) { @CustomType.Setter public Builder lastHeartbeatTime(@Nullable String lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("NodeCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("NodeCondition", "type"); + } + this.type = type; return this; } public NodeCondition build() { - final var o = new NodeCondition(); - o.lastHeartbeatTime = lastHeartbeatTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new NodeCondition(); + _resultValue.lastHeartbeatTime = lastHeartbeatTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConditionPatch.java index 1e59f44306..1dbb40c114 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConditionPatch.java @@ -114,43 +114,49 @@ public Builder(NodeConditionPatch defaults) { @CustomType.Setter public Builder lastHeartbeatTime(@Nullable String lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public NodeConditionPatch build() { - final var o = new NodeConditionPatch(); - o.lastHeartbeatTime = lastHeartbeatTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new NodeConditionPatch(); + _resultValue.lastHeartbeatTime = lastHeartbeatTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSource.java index bbb15d47bc..b7b0d4c8c2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSource.java @@ -44,13 +44,14 @@ public Builder(NodeConfigSource defaults) { @CustomType.Setter public Builder configMap(@Nullable ConfigMapNodeConfigSource configMap) { + this.configMap = configMap; return this; } public NodeConfigSource build() { - final var o = new NodeConfigSource(); - o.configMap = configMap; - return o; + final var _resultValue = new NodeConfigSource(); + _resultValue.configMap = configMap; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSourcePatch.java index a00b50f704..79cee1f1cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigSourcePatch.java @@ -44,13 +44,14 @@ public Builder(NodeConfigSourcePatch defaults) { @CustomType.Setter public Builder configMap(@Nullable ConfigMapNodeConfigSourcePatch configMap) { + this.configMap = configMap; return this; } public NodeConfigSourcePatch build() { - final var o = new NodeConfigSourcePatch(); - o.configMap = configMap; - return o; + final var _resultValue = new NodeConfigSourcePatch(); + _resultValue.configMap = configMap; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatus.java index 6dd150465d..5014ea7147 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatus.java @@ -87,31 +87,35 @@ public Builder(NodeConfigStatus defaults) { @CustomType.Setter public Builder active(@Nullable NodeConfigSource active) { + this.active = active; return this; } @CustomType.Setter public Builder assigned(@Nullable NodeConfigSource assigned) { + this.assigned = assigned; return this; } @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder lastKnownGood(@Nullable NodeConfigSource lastKnownGood) { + this.lastKnownGood = lastKnownGood; return this; } public NodeConfigStatus build() { - final var o = new NodeConfigStatus(); - o.active = active; - o.assigned = assigned; - o.error = error; - o.lastKnownGood = lastKnownGood; - return o; + final var _resultValue = new NodeConfigStatus(); + _resultValue.active = active; + _resultValue.assigned = assigned; + _resultValue.error = error; + _resultValue.lastKnownGood = lastKnownGood; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatusPatch.java index 9be346c30f..45c6d5ed50 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeConfigStatusPatch.java @@ -87,31 +87,35 @@ public Builder(NodeConfigStatusPatch defaults) { @CustomType.Setter public Builder active(@Nullable NodeConfigSourcePatch active) { + this.active = active; return this; } @CustomType.Setter public Builder assigned(@Nullable NodeConfigSourcePatch assigned) { + this.assigned = assigned; return this; } @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder lastKnownGood(@Nullable NodeConfigSourcePatch lastKnownGood) { + this.lastKnownGood = lastKnownGood; return this; } public NodeConfigStatusPatch build() { - final var o = new NodeConfigStatusPatch(); - o.active = active; - o.assigned = assigned; - o.error = error; - o.lastKnownGood = lastKnownGood; - return o; + final var _resultValue = new NodeConfigStatusPatch(); + _resultValue.active = active; + _resultValue.assigned = assigned; + _resultValue.error = error; + _resultValue.lastKnownGood = lastKnownGood; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpoints.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpoints.java index 9a95e6a60f..6b34dd714c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpoints.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpoints.java @@ -44,13 +44,14 @@ public Builder(NodeDaemonEndpoints defaults) { @CustomType.Setter public Builder kubeletEndpoint(@Nullable DaemonEndpoint kubeletEndpoint) { + this.kubeletEndpoint = kubeletEndpoint; return this; } public NodeDaemonEndpoints build() { - final var o = new NodeDaemonEndpoints(); - o.kubeletEndpoint = kubeletEndpoint; - return o; + final var _resultValue = new NodeDaemonEndpoints(); + _resultValue.kubeletEndpoint = kubeletEndpoint; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpointsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpointsPatch.java index 99d136c28a..db6067a82f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpointsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeDaemonEndpointsPatch.java @@ -44,13 +44,14 @@ public Builder(NodeDaemonEndpointsPatch defaults) { @CustomType.Setter public Builder kubeletEndpoint(@Nullable DaemonEndpointPatch kubeletEndpoint) { + this.kubeletEndpoint = kubeletEndpoint; return this; } public NodeDaemonEndpointsPatch build() { - final var o = new NodeDaemonEndpointsPatch(); - o.kubeletEndpoint = kubeletEndpoint; - return o; + final var _resultValue = new NodeDaemonEndpointsPatch(); + _resultValue.kubeletEndpoint = kubeletEndpoint; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandler.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandler.java index 0adc9e05b9..8e17995e35 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandler.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandler.java @@ -59,19 +59,21 @@ public Builder(NodeRuntimeHandler defaults) { @CustomType.Setter public Builder features(@Nullable NodeRuntimeHandlerFeatures features) { + this.features = features; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public NodeRuntimeHandler build() { - final var o = new NodeRuntimeHandler(); - o.features = features; - o.name = name; - return o; + final var _resultValue = new NodeRuntimeHandler(); + _resultValue.features = features; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeatures.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeatures.java index 075de35d22..358ffb731c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeatures.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeatures.java @@ -44,13 +44,14 @@ public Builder(NodeRuntimeHandlerFeatures defaults) { @CustomType.Setter public Builder recursiveReadOnlyMounts(@Nullable Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; return this; } public NodeRuntimeHandlerFeatures build() { - final var o = new NodeRuntimeHandlerFeatures(); - o.recursiveReadOnlyMounts = recursiveReadOnlyMounts; - return o; + final var _resultValue = new NodeRuntimeHandlerFeatures(); + _resultValue.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeaturesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeaturesPatch.java index ae64828a3f..4001051548 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeaturesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerFeaturesPatch.java @@ -44,13 +44,14 @@ public Builder(NodeRuntimeHandlerFeaturesPatch defaults) { @CustomType.Setter public Builder recursiveReadOnlyMounts(@Nullable Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; return this; } public NodeRuntimeHandlerFeaturesPatch build() { - final var o = new NodeRuntimeHandlerFeaturesPatch(); - o.recursiveReadOnlyMounts = recursiveReadOnlyMounts; - return o; + final var _resultValue = new NodeRuntimeHandlerFeaturesPatch(); + _resultValue.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerPatch.java index 2c96e0561d..5a43d9a8cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeRuntimeHandlerPatch.java @@ -59,19 +59,21 @@ public Builder(NodeRuntimeHandlerPatch defaults) { @CustomType.Setter public Builder features(@Nullable NodeRuntimeHandlerFeaturesPatch features) { + this.features = features; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public NodeRuntimeHandlerPatch build() { - final var o = new NodeRuntimeHandlerPatch(); - o.features = features; - o.name = name; - return o; + final var _resultValue = new NodeRuntimeHandlerPatch(); + _resultValue.features = features; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelector.java index 3de894a275..7687427221 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelector.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.NodeSelectorTerm; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(NodeSelector defaults) { @CustomType.Setter public Builder nodeSelectorTerms(List nodeSelectorTerms) { - this.nodeSelectorTerms = Objects.requireNonNull(nodeSelectorTerms); + if (nodeSelectorTerms == null) { + throw new MissingRequiredPropertyException("NodeSelector", "nodeSelectorTerms"); + } + this.nodeSelectorTerms = nodeSelectorTerms; return this; } public Builder nodeSelectorTerms(NodeSelectorTerm... nodeSelectorTerms) { return nodeSelectorTerms(List.of(nodeSelectorTerms)); } public NodeSelector build() { - final var o = new NodeSelector(); - o.nodeSelectorTerms = nodeSelectorTerms; - return o; + final var _resultValue = new NodeSelector(); + _resultValue.nodeSelectorTerms = nodeSelectorTerms; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorPatch.java index 1a01b96234..7e500f1b93 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorPatch.java @@ -44,6 +44,7 @@ public Builder(NodeSelectorPatch defaults) { @CustomType.Setter public Builder nodeSelectorTerms(@Nullable List nodeSelectorTerms) { + this.nodeSelectorTerms = nodeSelectorTerms; return this; } @@ -51,9 +52,9 @@ public Builder nodeSelectorTerms(NodeSelectorTermPatch... nodeSelectorTerms) { return nodeSelectorTerms(List.of(nodeSelectorTerms)); } public NodeSelectorPatch build() { - final var o = new NodeSelectorPatch(); - o.nodeSelectorTerms = nodeSelectorTerms; - return o; + final var _resultValue = new NodeSelectorPatch(); + _resultValue.nodeSelectorTerms = nodeSelectorTerms; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirement.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirement.java index da7f592973..1b23c1e2ee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirement.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -72,16 +73,23 @@ public Builder(NodeSelectorRequirement defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("NodeSelectorRequirement", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("NodeSelectorRequirement", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -89,11 +97,11 @@ public Builder values(String... values) { return values(List.of(values)); } public NodeSelectorRequirement build() { - final var o = new NodeSelectorRequirement(); - o.key = key; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new NodeSelectorRequirement(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirementPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirementPatch.java index 82c577bed8..d55dc86253 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirementPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorRequirementPatch.java @@ -73,16 +73,19 @@ public Builder(NodeSelectorRequirementPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -90,11 +93,11 @@ public Builder values(String... values) { return values(List.of(values)); } public NodeSelectorRequirementPatch build() { - final var o = new NodeSelectorRequirementPatch(); - o.key = key; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new NodeSelectorRequirementPatch(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTerm.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTerm.java index cbba121f36..9f3ea2c885 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTerm.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTerm.java @@ -58,6 +58,7 @@ public Builder(NodeSelectorTerm defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -66,6 +67,7 @@ public Builder matchExpressions(NodeSelectorRequirement... matchExpressions) { } @CustomType.Setter public Builder matchFields(@Nullable List matchFields) { + this.matchFields = matchFields; return this; } @@ -73,10 +75,10 @@ public Builder matchFields(NodeSelectorRequirement... matchFields) { return matchFields(List.of(matchFields)); } public NodeSelectorTerm build() { - final var o = new NodeSelectorTerm(); - o.matchExpressions = matchExpressions; - o.matchFields = matchFields; - return o; + final var _resultValue = new NodeSelectorTerm(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchFields = matchFields; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTermPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTermPatch.java index 37a8323ca2..0548aa7540 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTermPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSelectorTermPatch.java @@ -58,6 +58,7 @@ public Builder(NodeSelectorTermPatch defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -66,6 +67,7 @@ public Builder matchExpressions(NodeSelectorRequirementPatch... matchExpressions } @CustomType.Setter public Builder matchFields(@Nullable List matchFields) { + this.matchFields = matchFields; return this; } @@ -73,10 +75,10 @@ public Builder matchFields(NodeSelectorRequirementPatch... matchFields) { return matchFields(List.of(matchFields)); } public NodeSelectorTermPatch build() { - final var o = new NodeSelectorTermPatch(); - o.matchExpressions = matchExpressions; - o.matchFields = matchFields; - return o; + final var _resultValue = new NodeSelectorTermPatch(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchFields = matchFields; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpec.java index 886f1e5ecf..bba7a82616 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpec.java @@ -132,21 +132,25 @@ public Builder(NodeSpec defaults) { @CustomType.Setter public Builder configSource(@Nullable NodeConfigSource configSource) { + this.configSource = configSource; return this; } @CustomType.Setter public Builder externalID(@Nullable String externalID) { + this.externalID = externalID; return this; } @CustomType.Setter public Builder podCIDR(@Nullable String podCIDR) { + this.podCIDR = podCIDR; return this; } @CustomType.Setter public Builder podCIDRs(@Nullable List podCIDRs) { + this.podCIDRs = podCIDRs; return this; } @@ -155,11 +159,13 @@ public Builder podCIDRs(String... podCIDRs) { } @CustomType.Setter public Builder providerID(@Nullable String providerID) { + this.providerID = providerID; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -168,19 +174,20 @@ public Builder taints(Taint... taints) { } @CustomType.Setter public Builder unschedulable(@Nullable Boolean unschedulable) { + this.unschedulable = unschedulable; return this; } public NodeSpec build() { - final var o = new NodeSpec(); - o.configSource = configSource; - o.externalID = externalID; - o.podCIDR = podCIDR; - o.podCIDRs = podCIDRs; - o.providerID = providerID; - o.taints = taints; - o.unschedulable = unschedulable; - return o; + final var _resultValue = new NodeSpec(); + _resultValue.configSource = configSource; + _resultValue.externalID = externalID; + _resultValue.podCIDR = podCIDR; + _resultValue.podCIDRs = podCIDRs; + _resultValue.providerID = providerID; + _resultValue.taints = taints; + _resultValue.unschedulable = unschedulable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpecPatch.java index 930927e1a3..69c0cb5728 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSpecPatch.java @@ -132,21 +132,25 @@ public Builder(NodeSpecPatch defaults) { @CustomType.Setter public Builder configSource(@Nullable NodeConfigSourcePatch configSource) { + this.configSource = configSource; return this; } @CustomType.Setter public Builder externalID(@Nullable String externalID) { + this.externalID = externalID; return this; } @CustomType.Setter public Builder podCIDR(@Nullable String podCIDR) { + this.podCIDR = podCIDR; return this; } @CustomType.Setter public Builder podCIDRs(@Nullable List podCIDRs) { + this.podCIDRs = podCIDRs; return this; } @@ -155,11 +159,13 @@ public Builder podCIDRs(String... podCIDRs) { } @CustomType.Setter public Builder providerID(@Nullable String providerID) { + this.providerID = providerID; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -168,19 +174,20 @@ public Builder taints(TaintPatch... taints) { } @CustomType.Setter public Builder unschedulable(@Nullable Boolean unschedulable) { + this.unschedulable = unschedulable; return this; } public NodeSpecPatch build() { - final var o = new NodeSpecPatch(); - o.configSource = configSource; - o.externalID = externalID; - o.podCIDR = podCIDR; - o.podCIDRs = podCIDRs; - o.providerID = providerID; - o.taints = taints; - o.unschedulable = unschedulable; - return o; + final var _resultValue = new NodeSpecPatch(); + _resultValue.configSource = configSource; + _resultValue.externalID = externalID; + _resultValue.podCIDR = podCIDR; + _resultValue.podCIDRs = podCIDRs; + _resultValue.providerID = providerID; + _resultValue.taints = taints; + _resultValue.unschedulable = unschedulable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatus.java index 9d72276a3b..8c70c9208d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatus.java @@ -208,6 +208,7 @@ public Builder(NodeStatus defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -216,16 +217,19 @@ public Builder addresses(NodeAddress... addresses) { } @CustomType.Setter public Builder allocatable(@Nullable Map allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -234,16 +238,19 @@ public Builder conditions(NodeCondition... conditions) { } @CustomType.Setter public Builder config(@Nullable NodeConfigStatus config) { + this.config = config; return this; } @CustomType.Setter public Builder daemonEndpoints(@Nullable NodeDaemonEndpoints daemonEndpoints) { + this.daemonEndpoints = daemonEndpoints; return this; } @CustomType.Setter public Builder images(@Nullable List images) { + this.images = images; return this; } @@ -252,16 +259,19 @@ public Builder images(ContainerImage... images) { } @CustomType.Setter public Builder nodeInfo(@Nullable NodeSystemInfo nodeInfo) { + this.nodeInfo = nodeInfo; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder runtimeHandlers(@Nullable List runtimeHandlers) { + this.runtimeHandlers = runtimeHandlers; return this; } @@ -270,6 +280,7 @@ public Builder runtimeHandlers(NodeRuntimeHandler... runtimeHandlers) { } @CustomType.Setter public Builder volumesAttached(@Nullable List volumesAttached) { + this.volumesAttached = volumesAttached; return this; } @@ -278,6 +289,7 @@ public Builder volumesAttached(AttachedVolume... volumesAttached) { } @CustomType.Setter public Builder volumesInUse(@Nullable List volumesInUse) { + this.volumesInUse = volumesInUse; return this; } @@ -285,20 +297,20 @@ public Builder volumesInUse(String... volumesInUse) { return volumesInUse(List.of(volumesInUse)); } public NodeStatus build() { - final var o = new NodeStatus(); - o.addresses = addresses; - o.allocatable = allocatable; - o.capacity = capacity; - o.conditions = conditions; - o.config = config; - o.daemonEndpoints = daemonEndpoints; - o.images = images; - o.nodeInfo = nodeInfo; - o.phase = phase; - o.runtimeHandlers = runtimeHandlers; - o.volumesAttached = volumesAttached; - o.volumesInUse = volumesInUse; - return o; + final var _resultValue = new NodeStatus(); + _resultValue.addresses = addresses; + _resultValue.allocatable = allocatable; + _resultValue.capacity = capacity; + _resultValue.conditions = conditions; + _resultValue.config = config; + _resultValue.daemonEndpoints = daemonEndpoints; + _resultValue.images = images; + _resultValue.nodeInfo = nodeInfo; + _resultValue.phase = phase; + _resultValue.runtimeHandlers = runtimeHandlers; + _resultValue.volumesAttached = volumesAttached; + _resultValue.volumesInUse = volumesInUse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatusPatch.java index 7b23ba812d..762bdcb014 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeStatusPatch.java @@ -208,6 +208,7 @@ public Builder(NodeStatusPatch defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -216,16 +217,19 @@ public Builder addresses(NodeAddressPatch... addresses) { } @CustomType.Setter public Builder allocatable(@Nullable Map allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -234,16 +238,19 @@ public Builder conditions(NodeConditionPatch... conditions) { } @CustomType.Setter public Builder config(@Nullable NodeConfigStatusPatch config) { + this.config = config; return this; } @CustomType.Setter public Builder daemonEndpoints(@Nullable NodeDaemonEndpointsPatch daemonEndpoints) { + this.daemonEndpoints = daemonEndpoints; return this; } @CustomType.Setter public Builder images(@Nullable List images) { + this.images = images; return this; } @@ -252,16 +259,19 @@ public Builder images(ContainerImagePatch... images) { } @CustomType.Setter public Builder nodeInfo(@Nullable NodeSystemInfoPatch nodeInfo) { + this.nodeInfo = nodeInfo; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder runtimeHandlers(@Nullable List runtimeHandlers) { + this.runtimeHandlers = runtimeHandlers; return this; } @@ -270,6 +280,7 @@ public Builder runtimeHandlers(NodeRuntimeHandlerPatch... runtimeHandlers) { } @CustomType.Setter public Builder volumesAttached(@Nullable List volumesAttached) { + this.volumesAttached = volumesAttached; return this; } @@ -278,6 +289,7 @@ public Builder volumesAttached(AttachedVolumePatch... volumesAttached) { } @CustomType.Setter public Builder volumesInUse(@Nullable List volumesInUse) { + this.volumesInUse = volumesInUse; return this; } @@ -285,20 +297,20 @@ public Builder volumesInUse(String... volumesInUse) { return volumesInUse(List.of(volumesInUse)); } public NodeStatusPatch build() { - final var o = new NodeStatusPatch(); - o.addresses = addresses; - o.allocatable = allocatable; - o.capacity = capacity; - o.conditions = conditions; - o.config = config; - o.daemonEndpoints = daemonEndpoints; - o.images = images; - o.nodeInfo = nodeInfo; - o.phase = phase; - o.runtimeHandlers = runtimeHandlers; - o.volumesAttached = volumesAttached; - o.volumesInUse = volumesInUse; - return o; + final var _resultValue = new NodeStatusPatch(); + _resultValue.addresses = addresses; + _resultValue.allocatable = allocatable; + _resultValue.capacity = capacity; + _resultValue.conditions = conditions; + _resultValue.config = config; + _resultValue.daemonEndpoints = daemonEndpoints; + _resultValue.images = images; + _resultValue.nodeInfo = nodeInfo; + _resultValue.phase = phase; + _resultValue.runtimeHandlers = runtimeHandlers; + _resultValue.volumesAttached = volumesAttached; + _resultValue.volumesInUse = volumesInUse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfo.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfo.java index 77d04fd016..6d2784cf4c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfo.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfo.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -168,67 +169,97 @@ public Builder(NodeSystemInfo defaults) { @CustomType.Setter public Builder architecture(String architecture) { - this.architecture = Objects.requireNonNull(architecture); + if (architecture == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "architecture"); + } + this.architecture = architecture; return this; } @CustomType.Setter public Builder bootID(String bootID) { - this.bootID = Objects.requireNonNull(bootID); + if (bootID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "bootID"); + } + this.bootID = bootID; return this; } @CustomType.Setter public Builder containerRuntimeVersion(String containerRuntimeVersion) { - this.containerRuntimeVersion = Objects.requireNonNull(containerRuntimeVersion); + if (containerRuntimeVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "containerRuntimeVersion"); + } + this.containerRuntimeVersion = containerRuntimeVersion; return this; } @CustomType.Setter public Builder kernelVersion(String kernelVersion) { - this.kernelVersion = Objects.requireNonNull(kernelVersion); + if (kernelVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "kernelVersion"); + } + this.kernelVersion = kernelVersion; return this; } @CustomType.Setter public Builder kubeProxyVersion(String kubeProxyVersion) { - this.kubeProxyVersion = Objects.requireNonNull(kubeProxyVersion); + if (kubeProxyVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "kubeProxyVersion"); + } + this.kubeProxyVersion = kubeProxyVersion; return this; } @CustomType.Setter public Builder kubeletVersion(String kubeletVersion) { - this.kubeletVersion = Objects.requireNonNull(kubeletVersion); + if (kubeletVersion == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "kubeletVersion"); + } + this.kubeletVersion = kubeletVersion; return this; } @CustomType.Setter public Builder machineID(String machineID) { - this.machineID = Objects.requireNonNull(machineID); + if (machineID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "machineID"); + } + this.machineID = machineID; return this; } @CustomType.Setter public Builder operatingSystem(String operatingSystem) { - this.operatingSystem = Objects.requireNonNull(operatingSystem); + if (operatingSystem == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "operatingSystem"); + } + this.operatingSystem = operatingSystem; return this; } @CustomType.Setter public Builder osImage(String osImage) { - this.osImage = Objects.requireNonNull(osImage); + if (osImage == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "osImage"); + } + this.osImage = osImage; return this; } @CustomType.Setter public Builder systemUUID(String systemUUID) { - this.systemUUID = Objects.requireNonNull(systemUUID); + if (systemUUID == null) { + throw new MissingRequiredPropertyException("NodeSystemInfo", "systemUUID"); + } + this.systemUUID = systemUUID; return this; } public NodeSystemInfo build() { - final var o = new NodeSystemInfo(); - o.architecture = architecture; - o.bootID = bootID; - o.containerRuntimeVersion = containerRuntimeVersion; - o.kernelVersion = kernelVersion; - o.kubeProxyVersion = kubeProxyVersion; - o.kubeletVersion = kubeletVersion; - o.machineID = machineID; - o.operatingSystem = operatingSystem; - o.osImage = osImage; - o.systemUUID = systemUUID; - return o; + final var _resultValue = new NodeSystemInfo(); + _resultValue.architecture = architecture; + _resultValue.bootID = bootID; + _resultValue.containerRuntimeVersion = containerRuntimeVersion; + _resultValue.kernelVersion = kernelVersion; + _resultValue.kubeProxyVersion = kubeProxyVersion; + _resultValue.kubeletVersion = kubeletVersion; + _resultValue.machineID = machineID; + _resultValue.operatingSystem = operatingSystem; + _resultValue.osImage = osImage; + _resultValue.systemUUID = systemUUID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfoPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfoPatch.java index ea0a6d5e68..ea32c4e7fc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfoPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/NodeSystemInfoPatch.java @@ -170,67 +170,77 @@ public Builder(NodeSystemInfoPatch defaults) { @CustomType.Setter public Builder architecture(@Nullable String architecture) { + this.architecture = architecture; return this; } @CustomType.Setter public Builder bootID(@Nullable String bootID) { + this.bootID = bootID; return this; } @CustomType.Setter public Builder containerRuntimeVersion(@Nullable String containerRuntimeVersion) { + this.containerRuntimeVersion = containerRuntimeVersion; return this; } @CustomType.Setter public Builder kernelVersion(@Nullable String kernelVersion) { + this.kernelVersion = kernelVersion; return this; } @CustomType.Setter public Builder kubeProxyVersion(@Nullable String kubeProxyVersion) { + this.kubeProxyVersion = kubeProxyVersion; return this; } @CustomType.Setter public Builder kubeletVersion(@Nullable String kubeletVersion) { + this.kubeletVersion = kubeletVersion; return this; } @CustomType.Setter public Builder machineID(@Nullable String machineID) { + this.machineID = machineID; return this; } @CustomType.Setter public Builder operatingSystem(@Nullable String operatingSystem) { + this.operatingSystem = operatingSystem; return this; } @CustomType.Setter public Builder osImage(@Nullable String osImage) { + this.osImage = osImage; return this; } @CustomType.Setter public Builder systemUUID(@Nullable String systemUUID) { + this.systemUUID = systemUUID; return this; } public NodeSystemInfoPatch build() { - final var o = new NodeSystemInfoPatch(); - o.architecture = architecture; - o.bootID = bootID; - o.containerRuntimeVersion = containerRuntimeVersion; - o.kernelVersion = kernelVersion; - o.kubeProxyVersion = kubeProxyVersion; - o.kubeletVersion = kubeletVersion; - o.machineID = machineID; - o.operatingSystem = operatingSystem; - o.osImage = osImage; - o.systemUUID = systemUUID; - return o; + final var _resultValue = new NodeSystemInfoPatch(); + _resultValue.architecture = architecture; + _resultValue.bootID = bootID; + _resultValue.containerRuntimeVersion = containerRuntimeVersion; + _resultValue.kernelVersion = kernelVersion; + _resultValue.kubeProxyVersion = kubeProxyVersion; + _resultValue.kubeletVersion = kubeletVersion; + _resultValue.machineID = machineID; + _resultValue.operatingSystem = operatingSystem; + _resultValue.osImage = osImage; + _resultValue.systemUUID = systemUUID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelector.java index 620edfbcdd..0d82bda86b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelector.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,19 +59,23 @@ public Builder(ObjectFieldSelector defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldPath(String fieldPath) { - this.fieldPath = Objects.requireNonNull(fieldPath); + if (fieldPath == null) { + throw new MissingRequiredPropertyException("ObjectFieldSelector", "fieldPath"); + } + this.fieldPath = fieldPath; return this; } public ObjectFieldSelector build() { - final var o = new ObjectFieldSelector(); - o.apiVersion = apiVersion; - o.fieldPath = fieldPath; - return o; + final var _resultValue = new ObjectFieldSelector(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldPath = fieldPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelectorPatch.java index 2135705890..3de446232c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectFieldSelectorPatch.java @@ -58,19 +58,21 @@ public Builder(ObjectFieldSelectorPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldPath(@Nullable String fieldPath) { + this.fieldPath = fieldPath; return this; } public ObjectFieldSelectorPatch build() { - final var o = new ObjectFieldSelectorPatch(); - o.apiVersion = apiVersion; - o.fieldPath = fieldPath; - return o; + final var _resultValue = new ObjectFieldSelectorPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldPath = fieldPath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReference.java index 05853b3dda..8449e07f59 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReference.java @@ -128,49 +128,56 @@ public Builder(ObjectReference defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldPath(@Nullable String fieldPath) { + this.fieldPath = fieldPath; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ObjectReference build() { - final var o = new ObjectReference(); - o.apiVersion = apiVersion; - o.fieldPath = fieldPath; - o.kind = kind; - o.name = name; - o.namespace = namespace; - o.resourceVersion = resourceVersion; - o.uid = uid; - return o; + final var _resultValue = new ObjectReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldPath = fieldPath; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resourceVersion = resourceVersion; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReferencePatch.java index 6f63654ce2..1b323b38c5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ObjectReferencePatch.java @@ -128,49 +128,56 @@ public Builder(ObjectReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldPath(@Nullable String fieldPath) { + this.fieldPath = fieldPath; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ObjectReferencePatch build() { - final var o = new ObjectReferencePatch(); - o.apiVersion = apiVersion; - o.fieldPath = fieldPath; - o.kind = kind; - o.name = name; - o.namespace = namespace; - o.resourceVersion = resourceVersion; - o.uid = uid; - return o; + final var _resultValue = new ObjectReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldPath = fieldPath; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resourceVersion = resourceVersion; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolume.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolume.java index 866d29682a..4678c3b982 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolume.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolume.java @@ -103,37 +103,42 @@ public Builder(PersistentVolume defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PersistentVolumeSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PersistentVolumeStatus status) { + this.status = status; return this; } public PersistentVolume build() { - final var o = new PersistentVolume(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PersistentVolume(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaim.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaim.java index 2076c58e0d..ba38f5e60c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaim.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaim.java @@ -103,37 +103,42 @@ public Builder(PersistentVolumeClaim defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PersistentVolumeClaimSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PersistentVolumeClaimStatus status) { + this.status = status; return this; } public PersistentVolumeClaim build() { - final var o = new PersistentVolumeClaim(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PersistentVolumeClaim(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimCondition.java index dc9377722a..71217fd91e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -98,43 +99,53 @@ public Builder(PersistentVolumeClaimCondition defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimCondition", "type"); + } + this.type = type; return this; } public PersistentVolumeClaimCondition build() { - final var o = new PersistentVolumeClaimCondition(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PersistentVolumeClaimCondition(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimConditionPatch.java index 440b711b8b..33d52a925f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimConditionPatch.java @@ -98,43 +98,49 @@ public Builder(PersistentVolumeClaimConditionPatch defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PersistentVolumeClaimConditionPatch build() { - final var o = new PersistentVolumeClaimConditionPatch(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PersistentVolumeClaimConditionPatch(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimPatch.java index da70b44d10..349ab5ed77 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimPatch.java @@ -103,37 +103,42 @@ public Builder(PersistentVolumeClaimPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PersistentVolumeClaimSpecPatch spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PersistentVolumeClaimStatusPatch status) { + this.status = status; return this; } public PersistentVolumeClaimPatch build() { - final var o = new PersistentVolumeClaimPatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PersistentVolumeClaimPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpec.java index 430e1129e9..a82ca39596 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpec.java @@ -175,6 +175,7 @@ public Builder(PersistentVolumeClaimSpec defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -183,56 +184,64 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder dataSource(@Nullable TypedLocalObjectReference dataSource) { + this.dataSource = dataSource; return this; } @CustomType.Setter public Builder dataSourceRef(@Nullable TypedObjectReference dataSourceRef) { + this.dataSourceRef = dataSourceRef; return this; } @CustomType.Setter public Builder resources(@Nullable VolumeResourceRequirements resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder storageClassName(@Nullable String storageClassName) { + this.storageClassName = storageClassName; return this; } @CustomType.Setter public Builder volumeAttributesClassName(@Nullable String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; return this; } @CustomType.Setter public Builder volumeMode(@Nullable String volumeMode) { + this.volumeMode = volumeMode; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public PersistentVolumeClaimSpec build() { - final var o = new PersistentVolumeClaimSpec(); - o.accessModes = accessModes; - o.dataSource = dataSource; - o.dataSourceRef = dataSourceRef; - o.resources = resources; - o.selector = selector; - o.storageClassName = storageClassName; - o.volumeAttributesClassName = volumeAttributesClassName; - o.volumeMode = volumeMode; - o.volumeName = volumeName; - return o; + final var _resultValue = new PersistentVolumeClaimSpec(); + _resultValue.accessModes = accessModes; + _resultValue.dataSource = dataSource; + _resultValue.dataSourceRef = dataSourceRef; + _resultValue.resources = resources; + _resultValue.selector = selector; + _resultValue.storageClassName = storageClassName; + _resultValue.volumeAttributesClassName = volumeAttributesClassName; + _resultValue.volumeMode = volumeMode; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpecPatch.java index d0c7fe2766..11b4dc5609 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimSpecPatch.java @@ -175,6 +175,7 @@ public Builder(PersistentVolumeClaimSpecPatch defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -183,56 +184,64 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder dataSource(@Nullable TypedLocalObjectReferencePatch dataSource) { + this.dataSource = dataSource; return this; } @CustomType.Setter public Builder dataSourceRef(@Nullable TypedObjectReferencePatch dataSourceRef) { + this.dataSourceRef = dataSourceRef; return this; } @CustomType.Setter public Builder resources(@Nullable VolumeResourceRequirementsPatch resources) { + this.resources = resources; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder storageClassName(@Nullable String storageClassName) { + this.storageClassName = storageClassName; return this; } @CustomType.Setter public Builder volumeAttributesClassName(@Nullable String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; return this; } @CustomType.Setter public Builder volumeMode(@Nullable String volumeMode) { + this.volumeMode = volumeMode; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public PersistentVolumeClaimSpecPatch build() { - final var o = new PersistentVolumeClaimSpecPatch(); - o.accessModes = accessModes; - o.dataSource = dataSource; - o.dataSourceRef = dataSourceRef; - o.resources = resources; - o.selector = selector; - o.storageClassName = storageClassName; - o.volumeAttributesClassName = volumeAttributesClassName; - o.volumeMode = volumeMode; - o.volumeName = volumeName; - return o; + final var _resultValue = new PersistentVolumeClaimSpecPatch(); + _resultValue.accessModes = accessModes; + _resultValue.dataSource = dataSource; + _resultValue.dataSourceRef = dataSourceRef; + _resultValue.resources = resources; + _resultValue.selector = selector; + _resultValue.storageClassName = storageClassName; + _resultValue.volumeAttributesClassName = volumeAttributesClassName; + _resultValue.volumeMode = volumeMode; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatus.java index c96063c4f8..9857f75d83 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatus.java @@ -238,6 +238,7 @@ public Builder(PersistentVolumeClaimStatus defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -246,21 +247,25 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder allocatedResourceStatuses(@Nullable Map allocatedResourceStatuses) { + this.allocatedResourceStatuses = allocatedResourceStatuses; return this; } @CustomType.Setter public Builder allocatedResources(@Nullable Map allocatedResources) { + this.allocatedResources = allocatedResources; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -269,36 +274,40 @@ public Builder conditions(PersistentVolumeClaimCondition... conditions) { } @CustomType.Setter public Builder currentVolumeAttributesClassName(@Nullable String currentVolumeAttributesClassName) { + this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; return this; } @CustomType.Setter public Builder modifyVolumeStatus(@Nullable ModifyVolumeStatus modifyVolumeStatus) { + this.modifyVolumeStatus = modifyVolumeStatus; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder resizeStatus(@Nullable String resizeStatus) { + this.resizeStatus = resizeStatus; return this; } public PersistentVolumeClaimStatus build() { - final var o = new PersistentVolumeClaimStatus(); - o.accessModes = accessModes; - o.allocatedResourceStatuses = allocatedResourceStatuses; - o.allocatedResources = allocatedResources; - o.capacity = capacity; - o.conditions = conditions; - o.currentVolumeAttributesClassName = currentVolumeAttributesClassName; - o.modifyVolumeStatus = modifyVolumeStatus; - o.phase = phase; - o.resizeStatus = resizeStatus; - return o; + final var _resultValue = new PersistentVolumeClaimStatus(); + _resultValue.accessModes = accessModes; + _resultValue.allocatedResourceStatuses = allocatedResourceStatuses; + _resultValue.allocatedResources = allocatedResources; + _resultValue.capacity = capacity; + _resultValue.conditions = conditions; + _resultValue.currentVolumeAttributesClassName = currentVolumeAttributesClassName; + _resultValue.modifyVolumeStatus = modifyVolumeStatus; + _resultValue.phase = phase; + _resultValue.resizeStatus = resizeStatus; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatusPatch.java index e694fb9e79..319d89b7cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimStatusPatch.java @@ -238,6 +238,7 @@ public Builder(PersistentVolumeClaimStatusPatch defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -246,21 +247,25 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder allocatedResourceStatuses(@Nullable Map allocatedResourceStatuses) { + this.allocatedResourceStatuses = allocatedResourceStatuses; return this; } @CustomType.Setter public Builder allocatedResources(@Nullable Map allocatedResources) { + this.allocatedResources = allocatedResources; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -269,36 +274,40 @@ public Builder conditions(PersistentVolumeClaimConditionPatch... conditions) { } @CustomType.Setter public Builder currentVolumeAttributesClassName(@Nullable String currentVolumeAttributesClassName) { + this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; return this; } @CustomType.Setter public Builder modifyVolumeStatus(@Nullable ModifyVolumeStatusPatch modifyVolumeStatus) { + this.modifyVolumeStatus = modifyVolumeStatus; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder resizeStatus(@Nullable String resizeStatus) { + this.resizeStatus = resizeStatus; return this; } public PersistentVolumeClaimStatusPatch build() { - final var o = new PersistentVolumeClaimStatusPatch(); - o.accessModes = accessModes; - o.allocatedResourceStatuses = allocatedResourceStatuses; - o.allocatedResources = allocatedResources; - o.capacity = capacity; - o.conditions = conditions; - o.currentVolumeAttributesClassName = currentVolumeAttributesClassName; - o.modifyVolumeStatus = modifyVolumeStatus; - o.phase = phase; - o.resizeStatus = resizeStatus; - return o; + final var _resultValue = new PersistentVolumeClaimStatusPatch(); + _resultValue.accessModes = accessModes; + _resultValue.allocatedResourceStatuses = allocatedResourceStatuses; + _resultValue.allocatedResources = allocatedResources; + _resultValue.capacity = capacity; + _resultValue.conditions = conditions; + _resultValue.currentVolumeAttributesClassName = currentVolumeAttributesClassName; + _resultValue.modifyVolumeStatus = modifyVolumeStatus; + _resultValue.phase = phase; + _resultValue.resizeStatus = resizeStatus; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplate.java index 794d459559..7ea9661960 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplate.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PersistentVolumeClaimSpec; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(PersistentVolumeClaimTemplate defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(PersistentVolumeClaimSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimTemplate", "spec"); + } + this.spec = spec; return this; } public PersistentVolumeClaimTemplate build() { - final var o = new PersistentVolumeClaimTemplate(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PersistentVolumeClaimTemplate(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplatePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplatePatch.java index da2cfbb13e..65eca3b70c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplatePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimTemplatePatch.java @@ -59,19 +59,21 @@ public Builder(PersistentVolumeClaimTemplatePatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PersistentVolumeClaimSpecPatch spec) { + this.spec = spec; return this; } public PersistentVolumeClaimTemplatePatch build() { - final var o = new PersistentVolumeClaimTemplatePatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PersistentVolumeClaimTemplatePatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSource.java index c57722495d..c189430dfc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(PersistentVolumeClaimVolumeSource defaults) { @CustomType.Setter public Builder claimName(String claimName) { - this.claimName = Objects.requireNonNull(claimName); + if (claimName == null) { + throw new MissingRequiredPropertyException("PersistentVolumeClaimVolumeSource", "claimName"); + } + this.claimName = claimName; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public PersistentVolumeClaimVolumeSource build() { - final var o = new PersistentVolumeClaimVolumeSource(); - o.claimName = claimName; - o.readOnly = readOnly; - return o; + final var _resultValue = new PersistentVolumeClaimVolumeSource(); + _resultValue.claimName = claimName; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSourcePatch.java index d083b3ae70..865ef3062d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeClaimVolumeSourcePatch.java @@ -59,19 +59,21 @@ public Builder(PersistentVolumeClaimVolumeSourcePatch defaults) { @CustomType.Setter public Builder claimName(@Nullable String claimName) { + this.claimName = claimName; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public PersistentVolumeClaimVolumeSourcePatch build() { - final var o = new PersistentVolumeClaimVolumeSourcePatch(); - o.claimName = claimName; - o.readOnly = readOnly; - return o; + final var _resultValue = new PersistentVolumeClaimVolumeSourcePatch(); + _resultValue.claimName = claimName; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpec.java index b8072faeb0..123d1e7228 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpec.java @@ -490,6 +490,7 @@ public Builder(PersistentVolumeSpec defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -498,86 +499,103 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder awsElasticBlockStore(@Nullable AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } @CustomType.Setter public Builder azureDisk(@Nullable AzureDiskVolumeSource azureDisk) { + this.azureDisk = azureDisk; return this; } @CustomType.Setter public Builder azureFile(@Nullable AzureFilePersistentVolumeSource azureFile) { + this.azureFile = azureFile; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder cephfs(@Nullable CephFSPersistentVolumeSource cephfs) { + this.cephfs = cephfs; return this; } @CustomType.Setter public Builder cinder(@Nullable CinderPersistentVolumeSource cinder) { + this.cinder = cinder; return this; } @CustomType.Setter public Builder claimRef(@Nullable ObjectReference claimRef) { + this.claimRef = claimRef; return this; } @CustomType.Setter public Builder csi(@Nullable CSIPersistentVolumeSource csi) { + this.csi = csi; return this; } @CustomType.Setter public Builder fc(@Nullable FCVolumeSource fc) { + this.fc = fc; return this; } @CustomType.Setter public Builder flexVolume(@Nullable FlexPersistentVolumeSource flexVolume) { + this.flexVolume = flexVolume; return this; } @CustomType.Setter public Builder flocker(@Nullable FlockerVolumeSource flocker) { + this.flocker = flocker; return this; } @CustomType.Setter public Builder gcePersistentDisk(@Nullable GCEPersistentDiskVolumeSource gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } @CustomType.Setter public Builder glusterfs(@Nullable GlusterfsPersistentVolumeSource glusterfs) { + this.glusterfs = glusterfs; return this; } @CustomType.Setter public Builder hostPath(@Nullable HostPathVolumeSource hostPath) { + this.hostPath = hostPath; return this; } @CustomType.Setter public Builder iscsi(@Nullable ISCSIPersistentVolumeSource iscsi) { + this.iscsi = iscsi; return this; } @CustomType.Setter public Builder local(@Nullable LocalVolumeSource local) { + this.local = local; return this; } @CustomType.Setter public Builder mountOptions(@Nullable List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -586,103 +604,116 @@ public Builder mountOptions(String... mountOptions) { } @CustomType.Setter public Builder nfs(@Nullable NFSVolumeSource nfs) { + this.nfs = nfs; return this; } @CustomType.Setter public Builder nodeAffinity(@Nullable VolumeNodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } @CustomType.Setter public Builder persistentVolumeReclaimPolicy(@Nullable String persistentVolumeReclaimPolicy) { + this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return this; } @CustomType.Setter public Builder photonPersistentDisk(@Nullable PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } @CustomType.Setter public Builder portworxVolume(@Nullable PortworxVolumeSource portworxVolume) { + this.portworxVolume = portworxVolume; return this; } @CustomType.Setter public Builder quobyte(@Nullable QuobyteVolumeSource quobyte) { + this.quobyte = quobyte; return this; } @CustomType.Setter public Builder rbd(@Nullable RBDPersistentVolumeSource rbd) { + this.rbd = rbd; return this; } @CustomType.Setter public Builder scaleIO(@Nullable ScaleIOPersistentVolumeSource scaleIO) { + this.scaleIO = scaleIO; return this; } @CustomType.Setter public Builder storageClassName(@Nullable String storageClassName) { + this.storageClassName = storageClassName; return this; } @CustomType.Setter public Builder storageos(@Nullable StorageOSPersistentVolumeSource storageos) { + this.storageos = storageos; return this; } @CustomType.Setter public Builder volumeAttributesClassName(@Nullable String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; return this; } @CustomType.Setter public Builder volumeMode(@Nullable String volumeMode) { + this.volumeMode = volumeMode; return this; } @CustomType.Setter public Builder vsphereVolume(@Nullable VsphereVirtualDiskVolumeSource vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } public PersistentVolumeSpec build() { - final var o = new PersistentVolumeSpec(); - o.accessModes = accessModes; - o.awsElasticBlockStore = awsElasticBlockStore; - o.azureDisk = azureDisk; - o.azureFile = azureFile; - o.capacity = capacity; - o.cephfs = cephfs; - o.cinder = cinder; - o.claimRef = claimRef; - o.csi = csi; - o.fc = fc; - o.flexVolume = flexVolume; - o.flocker = flocker; - o.gcePersistentDisk = gcePersistentDisk; - o.glusterfs = glusterfs; - o.hostPath = hostPath; - o.iscsi = iscsi; - o.local = local; - o.mountOptions = mountOptions; - o.nfs = nfs; - o.nodeAffinity = nodeAffinity; - o.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; - o.photonPersistentDisk = photonPersistentDisk; - o.portworxVolume = portworxVolume; - o.quobyte = quobyte; - o.rbd = rbd; - o.scaleIO = scaleIO; - o.storageClassName = storageClassName; - o.storageos = storageos; - o.volumeAttributesClassName = volumeAttributesClassName; - o.volumeMode = volumeMode; - o.vsphereVolume = vsphereVolume; - return o; + final var _resultValue = new PersistentVolumeSpec(); + _resultValue.accessModes = accessModes; + _resultValue.awsElasticBlockStore = awsElasticBlockStore; + _resultValue.azureDisk = azureDisk; + _resultValue.azureFile = azureFile; + _resultValue.capacity = capacity; + _resultValue.cephfs = cephfs; + _resultValue.cinder = cinder; + _resultValue.claimRef = claimRef; + _resultValue.csi = csi; + _resultValue.fc = fc; + _resultValue.flexVolume = flexVolume; + _resultValue.flocker = flocker; + _resultValue.gcePersistentDisk = gcePersistentDisk; + _resultValue.glusterfs = glusterfs; + _resultValue.hostPath = hostPath; + _resultValue.iscsi = iscsi; + _resultValue.local = local; + _resultValue.mountOptions = mountOptions; + _resultValue.nfs = nfs; + _resultValue.nodeAffinity = nodeAffinity; + _resultValue.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; + _resultValue.photonPersistentDisk = photonPersistentDisk; + _resultValue.portworxVolume = portworxVolume; + _resultValue.quobyte = quobyte; + _resultValue.rbd = rbd; + _resultValue.scaleIO = scaleIO; + _resultValue.storageClassName = storageClassName; + _resultValue.storageos = storageos; + _resultValue.volumeAttributesClassName = volumeAttributesClassName; + _resultValue.volumeMode = volumeMode; + _resultValue.vsphereVolume = vsphereVolume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpecPatch.java index 5a2553122c..c104d99f54 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeSpecPatch.java @@ -490,6 +490,7 @@ public Builder(PersistentVolumeSpecPatch defaults) { @CustomType.Setter public Builder accessModes(@Nullable List accessModes) { + this.accessModes = accessModes; return this; } @@ -498,86 +499,103 @@ public Builder accessModes(String... accessModes) { } @CustomType.Setter public Builder awsElasticBlockStore(@Nullable AWSElasticBlockStoreVolumeSourcePatch awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } @CustomType.Setter public Builder azureDisk(@Nullable AzureDiskVolumeSourcePatch azureDisk) { + this.azureDisk = azureDisk; return this; } @CustomType.Setter public Builder azureFile(@Nullable AzureFilePersistentVolumeSourcePatch azureFile) { + this.azureFile = azureFile; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder cephfs(@Nullable CephFSPersistentVolumeSourcePatch cephfs) { + this.cephfs = cephfs; return this; } @CustomType.Setter public Builder cinder(@Nullable CinderPersistentVolumeSourcePatch cinder) { + this.cinder = cinder; return this; } @CustomType.Setter public Builder claimRef(@Nullable ObjectReferencePatch claimRef) { + this.claimRef = claimRef; return this; } @CustomType.Setter public Builder csi(@Nullable CSIPersistentVolumeSourcePatch csi) { + this.csi = csi; return this; } @CustomType.Setter public Builder fc(@Nullable FCVolumeSourcePatch fc) { + this.fc = fc; return this; } @CustomType.Setter public Builder flexVolume(@Nullable FlexPersistentVolumeSourcePatch flexVolume) { + this.flexVolume = flexVolume; return this; } @CustomType.Setter public Builder flocker(@Nullable FlockerVolumeSourcePatch flocker) { + this.flocker = flocker; return this; } @CustomType.Setter public Builder gcePersistentDisk(@Nullable GCEPersistentDiskVolumeSourcePatch gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } @CustomType.Setter public Builder glusterfs(@Nullable GlusterfsPersistentVolumeSourcePatch glusterfs) { + this.glusterfs = glusterfs; return this; } @CustomType.Setter public Builder hostPath(@Nullable HostPathVolumeSourcePatch hostPath) { + this.hostPath = hostPath; return this; } @CustomType.Setter public Builder iscsi(@Nullable ISCSIPersistentVolumeSourcePatch iscsi) { + this.iscsi = iscsi; return this; } @CustomType.Setter public Builder local(@Nullable LocalVolumeSourcePatch local) { + this.local = local; return this; } @CustomType.Setter public Builder mountOptions(@Nullable List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -586,103 +604,116 @@ public Builder mountOptions(String... mountOptions) { } @CustomType.Setter public Builder nfs(@Nullable NFSVolumeSourcePatch nfs) { + this.nfs = nfs; return this; } @CustomType.Setter public Builder nodeAffinity(@Nullable VolumeNodeAffinityPatch nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } @CustomType.Setter public Builder persistentVolumeReclaimPolicy(@Nullable String persistentVolumeReclaimPolicy) { + this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return this; } @CustomType.Setter public Builder photonPersistentDisk(@Nullable PhotonPersistentDiskVolumeSourcePatch photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } @CustomType.Setter public Builder portworxVolume(@Nullable PortworxVolumeSourcePatch portworxVolume) { + this.portworxVolume = portworxVolume; return this; } @CustomType.Setter public Builder quobyte(@Nullable QuobyteVolumeSourcePatch quobyte) { + this.quobyte = quobyte; return this; } @CustomType.Setter public Builder rbd(@Nullable RBDPersistentVolumeSourcePatch rbd) { + this.rbd = rbd; return this; } @CustomType.Setter public Builder scaleIO(@Nullable ScaleIOPersistentVolumeSourcePatch scaleIO) { + this.scaleIO = scaleIO; return this; } @CustomType.Setter public Builder storageClassName(@Nullable String storageClassName) { + this.storageClassName = storageClassName; return this; } @CustomType.Setter public Builder storageos(@Nullable StorageOSPersistentVolumeSourcePatch storageos) { + this.storageos = storageos; return this; } @CustomType.Setter public Builder volumeAttributesClassName(@Nullable String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; return this; } @CustomType.Setter public Builder volumeMode(@Nullable String volumeMode) { + this.volumeMode = volumeMode; return this; } @CustomType.Setter public Builder vsphereVolume(@Nullable VsphereVirtualDiskVolumeSourcePatch vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } public PersistentVolumeSpecPatch build() { - final var o = new PersistentVolumeSpecPatch(); - o.accessModes = accessModes; - o.awsElasticBlockStore = awsElasticBlockStore; - o.azureDisk = azureDisk; - o.azureFile = azureFile; - o.capacity = capacity; - o.cephfs = cephfs; - o.cinder = cinder; - o.claimRef = claimRef; - o.csi = csi; - o.fc = fc; - o.flexVolume = flexVolume; - o.flocker = flocker; - o.gcePersistentDisk = gcePersistentDisk; - o.glusterfs = glusterfs; - o.hostPath = hostPath; - o.iscsi = iscsi; - o.local = local; - o.mountOptions = mountOptions; - o.nfs = nfs; - o.nodeAffinity = nodeAffinity; - o.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; - o.photonPersistentDisk = photonPersistentDisk; - o.portworxVolume = portworxVolume; - o.quobyte = quobyte; - o.rbd = rbd; - o.scaleIO = scaleIO; - o.storageClassName = storageClassName; - o.storageos = storageos; - o.volumeAttributesClassName = volumeAttributesClassName; - o.volumeMode = volumeMode; - o.vsphereVolume = vsphereVolume; - return o; + final var _resultValue = new PersistentVolumeSpecPatch(); + _resultValue.accessModes = accessModes; + _resultValue.awsElasticBlockStore = awsElasticBlockStore; + _resultValue.azureDisk = azureDisk; + _resultValue.azureFile = azureFile; + _resultValue.capacity = capacity; + _resultValue.cephfs = cephfs; + _resultValue.cinder = cinder; + _resultValue.claimRef = claimRef; + _resultValue.csi = csi; + _resultValue.fc = fc; + _resultValue.flexVolume = flexVolume; + _resultValue.flocker = flocker; + _resultValue.gcePersistentDisk = gcePersistentDisk; + _resultValue.glusterfs = glusterfs; + _resultValue.hostPath = hostPath; + _resultValue.iscsi = iscsi; + _resultValue.local = local; + _resultValue.mountOptions = mountOptions; + _resultValue.nfs = nfs; + _resultValue.nodeAffinity = nodeAffinity; + _resultValue.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; + _resultValue.photonPersistentDisk = photonPersistentDisk; + _resultValue.portworxVolume = portworxVolume; + _resultValue.quobyte = quobyte; + _resultValue.rbd = rbd; + _resultValue.scaleIO = scaleIO; + _resultValue.storageClassName = storageClassName; + _resultValue.storageos = storageos; + _resultValue.volumeAttributesClassName = volumeAttributesClassName; + _resultValue.volumeMode = volumeMode; + _resultValue.vsphereVolume = vsphereVolume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatus.java index c357ad26b2..811cf95200 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatus.java @@ -86,31 +86,35 @@ public Builder(PersistentVolumeStatus defaults) { @CustomType.Setter public Builder lastPhaseTransitionTime(@Nullable String lastPhaseTransitionTime) { + this.lastPhaseTransitionTime = lastPhaseTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public PersistentVolumeStatus build() { - final var o = new PersistentVolumeStatus(); - o.lastPhaseTransitionTime = lastPhaseTransitionTime; - o.message = message; - o.phase = phase; - o.reason = reason; - return o; + final var _resultValue = new PersistentVolumeStatus(); + _resultValue.lastPhaseTransitionTime = lastPhaseTransitionTime; + _resultValue.message = message; + _resultValue.phase = phase; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatusPatch.java index 8a1dc52e5d..9f0af9c942 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PersistentVolumeStatusPatch.java @@ -86,31 +86,35 @@ public Builder(PersistentVolumeStatusPatch defaults) { @CustomType.Setter public Builder lastPhaseTransitionTime(@Nullable String lastPhaseTransitionTime) { + this.lastPhaseTransitionTime = lastPhaseTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public PersistentVolumeStatusPatch build() { - final var o = new PersistentVolumeStatusPatch(); - o.lastPhaseTransitionTime = lastPhaseTransitionTime; - o.message = message; - o.phase = phase; - o.reason = reason; - return o; + final var _resultValue = new PersistentVolumeStatusPatch(); + _resultValue.lastPhaseTransitionTime = lastPhaseTransitionTime; + _resultValue.message = message; + _resultValue.phase = phase; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSource.java index a0bc0d34db..fce09c6330 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,19 +59,23 @@ public Builder(PhotonPersistentDiskVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder pdID(String pdID) { - this.pdID = Objects.requireNonNull(pdID); + if (pdID == null) { + throw new MissingRequiredPropertyException("PhotonPersistentDiskVolumeSource", "pdID"); + } + this.pdID = pdID; return this; } public PhotonPersistentDiskVolumeSource build() { - final var o = new PhotonPersistentDiskVolumeSource(); - o.fsType = fsType; - o.pdID = pdID; - return o; + final var _resultValue = new PhotonPersistentDiskVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.pdID = pdID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSourcePatch.java index 545c7e4bc8..a77ea46700 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PhotonPersistentDiskVolumeSourcePatch.java @@ -58,19 +58,21 @@ public Builder(PhotonPersistentDiskVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder pdID(@Nullable String pdID) { + this.pdID = pdID; return this; } public PhotonPersistentDiskVolumeSourcePatch build() { - final var o = new PhotonPersistentDiskVolumeSourcePatch(); - o.fsType = fsType; - o.pdID = pdID; - return o; + final var _resultValue = new PhotonPersistentDiskVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.pdID = pdID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Pod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Pod.java index 3b3005e4ed..b1cf11abc0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Pod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Pod.java @@ -103,37 +103,42 @@ public Builder(Pod defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PodStatus status) { + this.status = status; return this; } public Pod build() { - final var o = new Pod(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Pod(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinity.java index 732ebcb715..533260901e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinity.java @@ -59,6 +59,7 @@ public Builder(PodAffinity defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -67,6 +68,7 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(WeightedPodAffini } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -74,10 +76,10 @@ public Builder requiredDuringSchedulingIgnoredDuringExecution(PodAffinityTerm... return requiredDuringSchedulingIgnoredDuringExecution(List.of(requiredDuringSchedulingIgnoredDuringExecution)); } public PodAffinity build() { - final var o = new PodAffinity(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new PodAffinity(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityPatch.java index e3ec223cb2..13c86a8b18 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityPatch.java @@ -59,6 +59,7 @@ public Builder(PodAffinityPatch defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -67,6 +68,7 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(WeightedPodAffini } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -74,10 +76,10 @@ public Builder requiredDuringSchedulingIgnoredDuringExecution(PodAffinityTermPat return requiredDuringSchedulingIgnoredDuringExecution(List.of(requiredDuringSchedulingIgnoredDuringExecution)); } public PodAffinityPatch build() { - final var o = new PodAffinityPatch(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new PodAffinityPatch(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTerm.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTerm.java index 3d57a40885..340a04df2e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTerm.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTerm.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.String; import java.util.List; @@ -116,11 +117,13 @@ public Builder(PodAffinityTerm defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelector labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder matchLabelKeys(@Nullable List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; return this; } @@ -129,6 +132,7 @@ public Builder matchLabelKeys(String... matchLabelKeys) { } @CustomType.Setter public Builder mismatchLabelKeys(@Nullable List mismatchLabelKeys) { + this.mismatchLabelKeys = mismatchLabelKeys; return this; } @@ -137,11 +141,13 @@ public Builder mismatchLabelKeys(String... mismatchLabelKeys) { } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -150,18 +156,21 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder topologyKey(String topologyKey) { - this.topologyKey = Objects.requireNonNull(topologyKey); + if (topologyKey == null) { + throw new MissingRequiredPropertyException("PodAffinityTerm", "topologyKey"); + } + this.topologyKey = topologyKey; return this; } public PodAffinityTerm build() { - final var o = new PodAffinityTerm(); - o.labelSelector = labelSelector; - o.matchLabelKeys = matchLabelKeys; - o.mismatchLabelKeys = mismatchLabelKeys; - o.namespaceSelector = namespaceSelector; - o.namespaces = namespaces; - o.topologyKey = topologyKey; - return o; + final var _resultValue = new PodAffinityTerm(); + _resultValue.labelSelector = labelSelector; + _resultValue.matchLabelKeys = matchLabelKeys; + _resultValue.mismatchLabelKeys = mismatchLabelKeys; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.namespaces = namespaces; + _resultValue.topologyKey = topologyKey; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTermPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTermPatch.java index 920308c2ef..51229e23d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTermPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTermPatch.java @@ -116,11 +116,13 @@ public Builder(PodAffinityTermPatch defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelectorPatch labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder matchLabelKeys(@Nullable List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; return this; } @@ -129,6 +131,7 @@ public Builder matchLabelKeys(String... matchLabelKeys) { } @CustomType.Setter public Builder mismatchLabelKeys(@Nullable List mismatchLabelKeys) { + this.mismatchLabelKeys = mismatchLabelKeys; return this; } @@ -137,11 +140,13 @@ public Builder mismatchLabelKeys(String... mismatchLabelKeys) { } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -150,18 +155,19 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder topologyKey(@Nullable String topologyKey) { + this.topologyKey = topologyKey; return this; } public PodAffinityTermPatch build() { - final var o = new PodAffinityTermPatch(); - o.labelSelector = labelSelector; - o.matchLabelKeys = matchLabelKeys; - o.mismatchLabelKeys = mismatchLabelKeys; - o.namespaceSelector = namespaceSelector; - o.namespaces = namespaces; - o.topologyKey = topologyKey; - return o; + final var _resultValue = new PodAffinityTermPatch(); + _resultValue.labelSelector = labelSelector; + _resultValue.matchLabelKeys = matchLabelKeys; + _resultValue.mismatchLabelKeys = mismatchLabelKeys; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.namespaces = namespaces; + _resultValue.topologyKey = topologyKey; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinity.java index 502a69c7cc..f326ee704c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinity.java @@ -59,6 +59,7 @@ public Builder(PodAntiAffinity defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -67,6 +68,7 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(WeightedPodAffini } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -74,10 +76,10 @@ public Builder requiredDuringSchedulingIgnoredDuringExecution(PodAffinityTerm... return requiredDuringSchedulingIgnoredDuringExecution(List.of(requiredDuringSchedulingIgnoredDuringExecution)); } public PodAntiAffinity build() { - final var o = new PodAntiAffinity(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new PodAntiAffinity(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinityPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinityPatch.java index d6b6aba258..38e88fddb0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinityPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAntiAffinityPatch.java @@ -59,6 +59,7 @@ public Builder(PodAntiAffinityPatch defaults) { @CustomType.Setter public Builder preferredDuringSchedulingIgnoredDuringExecution(@Nullable List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -67,6 +68,7 @@ public Builder preferredDuringSchedulingIgnoredDuringExecution(WeightedPodAffini } @CustomType.Setter public Builder requiredDuringSchedulingIgnoredDuringExecution(@Nullable List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -74,10 +76,10 @@ public Builder requiredDuringSchedulingIgnoredDuringExecution(PodAffinityTermPat return requiredDuringSchedulingIgnoredDuringExecution(List.of(requiredDuringSchedulingIgnoredDuringExecution)); } public PodAntiAffinityPatch build() { - final var o = new PodAntiAffinityPatch(); - o.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; - o.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; - return o; + final var _resultValue = new PodAntiAffinityPatch(); + _resultValue.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + _resultValue.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodCondition.java index aadedfc173..796603db5b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,43 +115,53 @@ public Builder(PodCondition defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("PodCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PodCondition", "type"); + } + this.type = type; return this; } public PodCondition build() { - final var o = new PodCondition(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PodCondition(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodConditionPatch.java index 8f279a5cb2..fbd99a6ce1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodConditionPatch.java @@ -114,43 +114,49 @@ public Builder(PodConditionPatch defaults) { @CustomType.Setter public Builder lastProbeTime(@Nullable String lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PodConditionPatch build() { - final var o = new PodConditionPatch(); - o.lastProbeTime = lastProbeTime; - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PodConditionPatch(); + _resultValue.lastProbeTime = lastProbeTime; + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfig.java index 7c49af18e9..a296b25a24 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfig.java @@ -73,6 +73,7 @@ public Builder(PodDNSConfig defaults) { @CustomType.Setter public Builder nameservers(@Nullable List nameservers) { + this.nameservers = nameservers; return this; } @@ -81,6 +82,7 @@ public Builder nameservers(String... nameservers) { } @CustomType.Setter public Builder options(@Nullable List options) { + this.options = options; return this; } @@ -89,6 +91,7 @@ public Builder options(PodDNSConfigOption... options) { } @CustomType.Setter public Builder searches(@Nullable List searches) { + this.searches = searches; return this; } @@ -96,11 +99,11 @@ public Builder searches(String... searches) { return searches(List.of(searches)); } public PodDNSConfig build() { - final var o = new PodDNSConfig(); - o.nameservers = nameservers; - o.options = options; - o.searches = searches; - return o; + final var _resultValue = new PodDNSConfig(); + _resultValue.nameservers = nameservers; + _resultValue.options = options; + _resultValue.searches = searches; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOption.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOption.java index 92808b11db..003c705fc3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOption.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOption.java @@ -50,19 +50,21 @@ public Builder(PodDNSConfigOption defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public PodDNSConfigOption build() { - final var o = new PodDNSConfigOption(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new PodDNSConfigOption(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOptionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOptionPatch.java index cdb88e3edc..565ab12218 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOptionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigOptionPatch.java @@ -50,19 +50,21 @@ public Builder(PodDNSConfigOptionPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public PodDNSConfigOptionPatch build() { - final var o = new PodDNSConfigOptionPatch(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new PodDNSConfigOptionPatch(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigPatch.java index c8a33627cb..0e1f923e6f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodDNSConfigPatch.java @@ -73,6 +73,7 @@ public Builder(PodDNSConfigPatch defaults) { @CustomType.Setter public Builder nameservers(@Nullable List nameservers) { + this.nameservers = nameservers; return this; } @@ -81,6 +82,7 @@ public Builder nameservers(String... nameservers) { } @CustomType.Setter public Builder options(@Nullable List options) { + this.options = options; return this; } @@ -89,6 +91,7 @@ public Builder options(PodDNSConfigOptionPatch... options) { } @CustomType.Setter public Builder searches(@Nullable List searches) { + this.searches = searches; return this; } @@ -96,11 +99,11 @@ public Builder searches(String... searches) { return searches(List.of(searches)); } public PodDNSConfigPatch build() { - final var o = new PodDNSConfigPatch(); - o.nameservers = nameservers; - o.options = options; - o.searches = searches; - return o; + final var _resultValue = new PodDNSConfigPatch(); + _resultValue.nameservers = nameservers; + _resultValue.options = options; + _resultValue.searches = searches; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIP.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIP.java index 494b8367f6..8d9adec789 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIP.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIP.java @@ -44,13 +44,14 @@ public Builder(PodIP defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public PodIP build() { - final var o = new PodIP(); - o.ip = ip; - return o; + final var _resultValue = new PodIP(); + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIPPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIPPatch.java index 51f97f4ab5..54942d4bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIPPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodIPPatch.java @@ -44,13 +44,14 @@ public Builder(PodIPPatch defaults) { @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } public PodIPPatch build() { - final var o = new PodIPPatch(); - o.ip = ip; - return o; + final var _resultValue = new PodIPPatch(); + _resultValue.ip = ip; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOS.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOS.java index e825f1982a..2d66a349b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOS.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOS.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PodOS defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PodOS", "name"); + } + this.name = name; return this; } public PodOS build() { - final var o = new PodOS(); - o.name = name; - return o; + final var _resultValue = new PodOS(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOSPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOSPatch.java index f9cb524142..e470a5742d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOSPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodOSPatch.java @@ -44,13 +44,14 @@ public Builder(PodOSPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PodOSPatch build() { - final var o = new PodOSPatch(); - o.name = name; - return o; + final var _resultValue = new PodOSPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGate.java index 49ff14dc32..b5eea9d318 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGate.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PodReadinessGate defaults) { @CustomType.Setter public Builder conditionType(String conditionType) { - this.conditionType = Objects.requireNonNull(conditionType); + if (conditionType == null) { + throw new MissingRequiredPropertyException("PodReadinessGate", "conditionType"); + } + this.conditionType = conditionType; return this; } public PodReadinessGate build() { - final var o = new PodReadinessGate(); - o.conditionType = conditionType; - return o; + final var _resultValue = new PodReadinessGate(); + _resultValue.conditionType = conditionType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGatePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGatePatch.java index ed3326e547..26188cd76d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGatePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodReadinessGatePatch.java @@ -44,13 +44,14 @@ public Builder(PodReadinessGatePatch defaults) { @CustomType.Setter public Builder conditionType(@Nullable String conditionType) { + this.conditionType = conditionType; return this; } public PodReadinessGatePatch build() { - final var o = new PodReadinessGatePatch(); - o.conditionType = conditionType; - return o; + final var _resultValue = new PodReadinessGatePatch(); + _resultValue.conditionType = conditionType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaim.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaim.java index 7a10733765..d148cb3ee7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaim.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaim.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ClaimSource; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(PodResourceClaim defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PodResourceClaim", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder source(@Nullable ClaimSource source) { + this.source = source; return this; } public PodResourceClaim build() { - final var o = new PodResourceClaim(); - o.name = name; - o.source = source; - return o; + final var _resultValue = new PodResourceClaim(); + _resultValue.name = name; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimPatch.java index 3651c1e4b3..f6e491bbaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimPatch.java @@ -59,19 +59,21 @@ public Builder(PodResourceClaimPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder source(@Nullable ClaimSourcePatch source) { + this.source = source; return this; } public PodResourceClaimPatch build() { - final var o = new PodResourceClaimPatch(); - o.name = name; - o.source = source; - return o; + final var _resultValue = new PodResourceClaimPatch(); + _resultValue.name = name; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatus.java index 79d2e1df89..84859632ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,19 +59,23 @@ public Builder(PodResourceClaimStatus defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PodResourceClaimStatus", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resourceClaimName(@Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return this; } public PodResourceClaimStatus build() { - final var o = new PodResourceClaimStatus(); - o.name = name; - o.resourceClaimName = resourceClaimName; - return o; + final var _resultValue = new PodResourceClaimStatus(); + _resultValue.name = name; + _resultValue.resourceClaimName = resourceClaimName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatusPatch.java index 3083355f08..b4ac79ea9c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodResourceClaimStatusPatch.java @@ -58,19 +58,21 @@ public Builder(PodResourceClaimStatusPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder resourceClaimName(@Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return this; } public PodResourceClaimStatusPatch build() { - final var o = new PodResourceClaimStatusPatch(); - o.name = name; - o.resourceClaimName = resourceClaimName; - return o; + final var _resultValue = new PodResourceClaimStatusPatch(); + _resultValue.name = name; + _resultValue.resourceClaimName = resourceClaimName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGate.java index 2ba68cfd31..dc3e2da4c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGate.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PodSchedulingGate defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PodSchedulingGate", "name"); + } + this.name = name; return this; } public PodSchedulingGate build() { - final var o = new PodSchedulingGate(); - o.name = name; - return o; + final var _resultValue = new PodSchedulingGate(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGatePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGatePatch.java index 4ddf1b6a55..a4b171f5d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGatePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSchedulingGatePatch.java @@ -44,13 +44,14 @@ public Builder(PodSchedulingGatePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PodSchedulingGatePatch build() { - final var o = new PodSchedulingGatePatch(); - o.name = name; - return o; + final var _resultValue = new PodSchedulingGatePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContext.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContext.java index aa725140fd..288482abe1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContext.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContext.java @@ -200,46 +200,55 @@ public Builder(PodSecurityContext defaults) { @CustomType.Setter public Builder appArmorProfile(@Nullable AppArmorProfile appArmorProfile) { + this.appArmorProfile = appArmorProfile; return this; } @CustomType.Setter public Builder fsGroup(@Nullable Integer fsGroup) { + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder fsGroupChangePolicy(@Nullable String fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; return this; } @CustomType.Setter public Builder runAsGroup(@Nullable Integer runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsNonRoot(@Nullable Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @CustomType.Setter public Builder runAsUser(@Nullable Integer runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } @CustomType.Setter public Builder seccompProfile(@Nullable SeccompProfile seccompProfile) { + this.seccompProfile = seccompProfile; return this; } @CustomType.Setter public Builder supplementalGroups(@Nullable List supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } @@ -248,6 +257,7 @@ public Builder supplementalGroups(Integer... supplementalGroups) { } @CustomType.Setter public Builder sysctls(@Nullable List sysctls) { + this.sysctls = sysctls; return this; } @@ -256,23 +266,24 @@ public Builder sysctls(Sysctl... sysctls) { } @CustomType.Setter public Builder windowsOptions(@Nullable WindowsSecurityContextOptions windowsOptions) { + this.windowsOptions = windowsOptions; return this; } public PodSecurityContext build() { - final var o = new PodSecurityContext(); - o.appArmorProfile = appArmorProfile; - o.fsGroup = fsGroup; - o.fsGroupChangePolicy = fsGroupChangePolicy; - o.runAsGroup = runAsGroup; - o.runAsNonRoot = runAsNonRoot; - o.runAsUser = runAsUser; - o.seLinuxOptions = seLinuxOptions; - o.seccompProfile = seccompProfile; - o.supplementalGroups = supplementalGroups; - o.sysctls = sysctls; - o.windowsOptions = windowsOptions; - return o; + final var _resultValue = new PodSecurityContext(); + _resultValue.appArmorProfile = appArmorProfile; + _resultValue.fsGroup = fsGroup; + _resultValue.fsGroupChangePolicy = fsGroupChangePolicy; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsNonRoot = runAsNonRoot; + _resultValue.runAsUser = runAsUser; + _resultValue.seLinuxOptions = seLinuxOptions; + _resultValue.seccompProfile = seccompProfile; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.sysctls = sysctls; + _resultValue.windowsOptions = windowsOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContextPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContextPatch.java index cde835599b..6d8a881b61 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContextPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSecurityContextPatch.java @@ -200,46 +200,55 @@ public Builder(PodSecurityContextPatch defaults) { @CustomType.Setter public Builder appArmorProfile(@Nullable AppArmorProfilePatch appArmorProfile) { + this.appArmorProfile = appArmorProfile; return this; } @CustomType.Setter public Builder fsGroup(@Nullable Integer fsGroup) { + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder fsGroupChangePolicy(@Nullable String fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; return this; } @CustomType.Setter public Builder runAsGroup(@Nullable Integer runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsNonRoot(@Nullable Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @CustomType.Setter public Builder runAsUser(@Nullable Integer runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptionsPatch seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } @CustomType.Setter public Builder seccompProfile(@Nullable SeccompProfilePatch seccompProfile) { + this.seccompProfile = seccompProfile; return this; } @CustomType.Setter public Builder supplementalGroups(@Nullable List supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } @@ -248,6 +257,7 @@ public Builder supplementalGroups(Integer... supplementalGroups) { } @CustomType.Setter public Builder sysctls(@Nullable List sysctls) { + this.sysctls = sysctls; return this; } @@ -256,23 +266,24 @@ public Builder sysctls(SysctlPatch... sysctls) { } @CustomType.Setter public Builder windowsOptions(@Nullable WindowsSecurityContextOptionsPatch windowsOptions) { + this.windowsOptions = windowsOptions; return this; } public PodSecurityContextPatch build() { - final var o = new PodSecurityContextPatch(); - o.appArmorProfile = appArmorProfile; - o.fsGroup = fsGroup; - o.fsGroupChangePolicy = fsGroupChangePolicy; - o.runAsGroup = runAsGroup; - o.runAsNonRoot = runAsNonRoot; - o.runAsUser = runAsUser; - o.seLinuxOptions = seLinuxOptions; - o.seccompProfile = seccompProfile; - o.supplementalGroups = supplementalGroups; - o.sysctls = sysctls; - o.windowsOptions = windowsOptions; - return o; + final var _resultValue = new PodSecurityContextPatch(); + _resultValue.appArmorProfile = appArmorProfile; + _resultValue.fsGroup = fsGroup; + _resultValue.fsGroupChangePolicy = fsGroupChangePolicy; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsNonRoot = runAsNonRoot; + _resultValue.runAsUser = runAsUser; + _resultValue.seLinuxOptions = seLinuxOptions; + _resultValue.seccompProfile = seccompProfile; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.sysctls = sysctls; + _resultValue.windowsOptions = windowsOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpec.java index 9683998609..7a7ad66131 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.Affinity; import com.pulumi.kubernetes.core.v1.outputs.Container; import com.pulumi.kubernetes.core.v1.outputs.EphemeralContainer; @@ -614,22 +615,28 @@ public Builder(PodSpec defaults) { @CustomType.Setter public Builder activeDeadlineSeconds(@Nullable Integer activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @CustomType.Setter public Builder affinity(@Nullable Affinity affinity) { + this.affinity = affinity; return this; } @CustomType.Setter public Builder automountServiceAccountToken(@Nullable Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return this; } @CustomType.Setter public Builder containers(List containers) { - this.containers = Objects.requireNonNull(containers); + if (containers == null) { + throw new MissingRequiredPropertyException("PodSpec", "containers"); + } + this.containers = containers; return this; } public Builder containers(Container... containers) { @@ -637,21 +644,25 @@ public Builder containers(Container... containers) { } @CustomType.Setter public Builder dnsConfig(@Nullable PodDNSConfig dnsConfig) { + this.dnsConfig = dnsConfig; return this; } @CustomType.Setter public Builder dnsPolicy(@Nullable String dnsPolicy) { + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder enableServiceLinks(@Nullable Boolean enableServiceLinks) { + this.enableServiceLinks = enableServiceLinks; return this; } @CustomType.Setter public Builder ephemeralContainers(@Nullable List ephemeralContainers) { + this.ephemeralContainers = ephemeralContainers; return this; } @@ -660,6 +671,7 @@ public Builder ephemeralContainers(EphemeralContainer... ephemeralContainers) { } @CustomType.Setter public Builder hostAliases(@Nullable List hostAliases) { + this.hostAliases = hostAliases; return this; } @@ -668,31 +680,37 @@ public Builder hostAliases(HostAlias... hostAliases) { } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostUsers(@Nullable Boolean hostUsers) { + this.hostUsers = hostUsers; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder imagePullSecrets(@Nullable List imagePullSecrets) { + this.imagePullSecrets = imagePullSecrets; return this; } @@ -701,6 +719,7 @@ public Builder imagePullSecrets(LocalObjectReference... imagePullSecrets) { } @CustomType.Setter public Builder initContainers(@Nullable List initContainers) { + this.initContainers = initContainers; return this; } @@ -709,41 +728,49 @@ public Builder initContainers(Container... initContainers) { } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder os(@Nullable PodOS os) { + this.os = os; return this; } @CustomType.Setter public Builder overhead(@Nullable Map overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder preemptionPolicy(@Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder priorityClassName(@Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; return this; } @CustomType.Setter public Builder readinessGates(@Nullable List readinessGates) { + this.readinessGates = readinessGates; return this; } @@ -752,6 +779,7 @@ public Builder readinessGates(PodReadinessGate... readinessGates) { } @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -760,21 +788,25 @@ public Builder resourceClaims(PodResourceClaim... resourceClaims) { } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder runtimeClassName(@Nullable String runtimeClassName) { + this.runtimeClassName = runtimeClassName; return this; } @CustomType.Setter public Builder schedulerName(@Nullable String schedulerName) { + this.schedulerName = schedulerName; return this; } @CustomType.Setter public Builder schedulingGates(@Nullable List schedulingGates) { + this.schedulingGates = schedulingGates; return this; } @@ -783,41 +815,49 @@ public Builder schedulingGates(PodSchedulingGate... schedulingGates) { } @CustomType.Setter public Builder securityContext(@Nullable PodSecurityContext securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable String serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder serviceAccountName(@Nullable String serviceAccountName) { + this.serviceAccountName = serviceAccountName; return this; } @CustomType.Setter public Builder setHostnameAsFQDN(@Nullable Boolean setHostnameAsFQDN) { + this.setHostnameAsFQDN = setHostnameAsFQDN; return this; } @CustomType.Setter public Builder shareProcessNamespace(@Nullable Boolean shareProcessNamespace) { + this.shareProcessNamespace = shareProcessNamespace; return this; } @CustomType.Setter public Builder subdomain(@Nullable String subdomain) { + this.subdomain = subdomain; return this; } @CustomType.Setter public Builder terminationGracePeriodSeconds(@Nullable Integer terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -826,6 +866,7 @@ public Builder tolerations(Toleration... tolerations) { } @CustomType.Setter public Builder topologySpreadConstraints(@Nullable List topologySpreadConstraints) { + this.topologySpreadConstraints = topologySpreadConstraints; return this; } @@ -834,6 +875,7 @@ public Builder topologySpreadConstraints(TopologySpreadConstraint... topologySpr } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -841,47 +883,47 @@ public Builder volumes(Volume... volumes) { return volumes(List.of(volumes)); } public PodSpec build() { - final var o = new PodSpec(); - o.activeDeadlineSeconds = activeDeadlineSeconds; - o.affinity = affinity; - o.automountServiceAccountToken = automountServiceAccountToken; - o.containers = containers; - o.dnsConfig = dnsConfig; - o.dnsPolicy = dnsPolicy; - o.enableServiceLinks = enableServiceLinks; - o.ephemeralContainers = ephemeralContainers; - o.hostAliases = hostAliases; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostUsers = hostUsers; - o.hostname = hostname; - o.imagePullSecrets = imagePullSecrets; - o.initContainers = initContainers; - o.nodeName = nodeName; - o.nodeSelector = nodeSelector; - o.os = os; - o.overhead = overhead; - o.preemptionPolicy = preemptionPolicy; - o.priority = priority; - o.priorityClassName = priorityClassName; - o.readinessGates = readinessGates; - o.resourceClaims = resourceClaims; - o.restartPolicy = restartPolicy; - o.runtimeClassName = runtimeClassName; - o.schedulerName = schedulerName; - o.schedulingGates = schedulingGates; - o.securityContext = securityContext; - o.serviceAccount = serviceAccount; - o.serviceAccountName = serviceAccountName; - o.setHostnameAsFQDN = setHostnameAsFQDN; - o.shareProcessNamespace = shareProcessNamespace; - o.subdomain = subdomain; - o.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - o.tolerations = tolerations; - o.topologySpreadConstraints = topologySpreadConstraints; - o.volumes = volumes; - return o; + final var _resultValue = new PodSpec(); + _resultValue.activeDeadlineSeconds = activeDeadlineSeconds; + _resultValue.affinity = affinity; + _resultValue.automountServiceAccountToken = automountServiceAccountToken; + _resultValue.containers = containers; + _resultValue.dnsConfig = dnsConfig; + _resultValue.dnsPolicy = dnsPolicy; + _resultValue.enableServiceLinks = enableServiceLinks; + _resultValue.ephemeralContainers = ephemeralContainers; + _resultValue.hostAliases = hostAliases; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostUsers = hostUsers; + _resultValue.hostname = hostname; + _resultValue.imagePullSecrets = imagePullSecrets; + _resultValue.initContainers = initContainers; + _resultValue.nodeName = nodeName; + _resultValue.nodeSelector = nodeSelector; + _resultValue.os = os; + _resultValue.overhead = overhead; + _resultValue.preemptionPolicy = preemptionPolicy; + _resultValue.priority = priority; + _resultValue.priorityClassName = priorityClassName; + _resultValue.readinessGates = readinessGates; + _resultValue.resourceClaims = resourceClaims; + _resultValue.restartPolicy = restartPolicy; + _resultValue.runtimeClassName = runtimeClassName; + _resultValue.schedulerName = schedulerName; + _resultValue.schedulingGates = schedulingGates; + _resultValue.securityContext = securityContext; + _resultValue.serviceAccount = serviceAccount; + _resultValue.serviceAccountName = serviceAccountName; + _resultValue.setHostnameAsFQDN = setHostnameAsFQDN; + _resultValue.shareProcessNamespace = shareProcessNamespace; + _resultValue.subdomain = subdomain; + _resultValue.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + _resultValue.tolerations = tolerations; + _resultValue.topologySpreadConstraints = topologySpreadConstraints; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpecPatch.java index 48d98f5466..5afb444793 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodSpecPatch.java @@ -614,21 +614,25 @@ public Builder(PodSpecPatch defaults) { @CustomType.Setter public Builder activeDeadlineSeconds(@Nullable Integer activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @CustomType.Setter public Builder affinity(@Nullable AffinityPatch affinity) { + this.affinity = affinity; return this; } @CustomType.Setter public Builder automountServiceAccountToken(@Nullable Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return this; } @CustomType.Setter public Builder containers(@Nullable List containers) { + this.containers = containers; return this; } @@ -637,21 +641,25 @@ public Builder containers(ContainerPatch... containers) { } @CustomType.Setter public Builder dnsConfig(@Nullable PodDNSConfigPatch dnsConfig) { + this.dnsConfig = dnsConfig; return this; } @CustomType.Setter public Builder dnsPolicy(@Nullable String dnsPolicy) { + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder enableServiceLinks(@Nullable Boolean enableServiceLinks) { + this.enableServiceLinks = enableServiceLinks; return this; } @CustomType.Setter public Builder ephemeralContainers(@Nullable List ephemeralContainers) { + this.ephemeralContainers = ephemeralContainers; return this; } @@ -660,6 +668,7 @@ public Builder ephemeralContainers(EphemeralContainerPatch... ephemeralContainer } @CustomType.Setter public Builder hostAliases(@Nullable List hostAliases) { + this.hostAliases = hostAliases; return this; } @@ -668,31 +677,37 @@ public Builder hostAliases(HostAliasPatch... hostAliases) { } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostUsers(@Nullable Boolean hostUsers) { + this.hostUsers = hostUsers; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder imagePullSecrets(@Nullable List imagePullSecrets) { + this.imagePullSecrets = imagePullSecrets; return this; } @@ -701,6 +716,7 @@ public Builder imagePullSecrets(LocalObjectReferencePatch... imagePullSecrets) { } @CustomType.Setter public Builder initContainers(@Nullable List initContainers) { + this.initContainers = initContainers; return this; } @@ -709,41 +725,49 @@ public Builder initContainers(ContainerPatch... initContainers) { } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder os(@Nullable PodOSPatch os) { + this.os = os; return this; } @CustomType.Setter public Builder overhead(@Nullable Map overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder preemptionPolicy(@Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return this; } @CustomType.Setter public Builder priority(@Nullable Integer priority) { + this.priority = priority; return this; } @CustomType.Setter public Builder priorityClassName(@Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; return this; } @CustomType.Setter public Builder readinessGates(@Nullable List readinessGates) { + this.readinessGates = readinessGates; return this; } @@ -752,6 +776,7 @@ public Builder readinessGates(PodReadinessGatePatch... readinessGates) { } @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -760,21 +785,25 @@ public Builder resourceClaims(PodResourceClaimPatch... resourceClaims) { } @CustomType.Setter public Builder restartPolicy(@Nullable String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @CustomType.Setter public Builder runtimeClassName(@Nullable String runtimeClassName) { + this.runtimeClassName = runtimeClassName; return this; } @CustomType.Setter public Builder schedulerName(@Nullable String schedulerName) { + this.schedulerName = schedulerName; return this; } @CustomType.Setter public Builder schedulingGates(@Nullable List schedulingGates) { + this.schedulingGates = schedulingGates; return this; } @@ -783,41 +812,49 @@ public Builder schedulingGates(PodSchedulingGatePatch... schedulingGates) { } @CustomType.Setter public Builder securityContext(@Nullable PodSecurityContextPatch securityContext) { + this.securityContext = securityContext; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable String serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder serviceAccountName(@Nullable String serviceAccountName) { + this.serviceAccountName = serviceAccountName; return this; } @CustomType.Setter public Builder setHostnameAsFQDN(@Nullable Boolean setHostnameAsFQDN) { + this.setHostnameAsFQDN = setHostnameAsFQDN; return this; } @CustomType.Setter public Builder shareProcessNamespace(@Nullable Boolean shareProcessNamespace) { + this.shareProcessNamespace = shareProcessNamespace; return this; } @CustomType.Setter public Builder subdomain(@Nullable String subdomain) { + this.subdomain = subdomain; return this; } @CustomType.Setter public Builder terminationGracePeriodSeconds(@Nullable Integer terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -826,6 +863,7 @@ public Builder tolerations(TolerationPatch... tolerations) { } @CustomType.Setter public Builder topologySpreadConstraints(@Nullable List topologySpreadConstraints) { + this.topologySpreadConstraints = topologySpreadConstraints; return this; } @@ -834,6 +872,7 @@ public Builder topologySpreadConstraints(TopologySpreadConstraintPatch... topolo } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -841,47 +880,47 @@ public Builder volumes(VolumePatch... volumes) { return volumes(List.of(volumes)); } public PodSpecPatch build() { - final var o = new PodSpecPatch(); - o.activeDeadlineSeconds = activeDeadlineSeconds; - o.affinity = affinity; - o.automountServiceAccountToken = automountServiceAccountToken; - o.containers = containers; - o.dnsConfig = dnsConfig; - o.dnsPolicy = dnsPolicy; - o.enableServiceLinks = enableServiceLinks; - o.ephemeralContainers = ephemeralContainers; - o.hostAliases = hostAliases; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostUsers = hostUsers; - o.hostname = hostname; - o.imagePullSecrets = imagePullSecrets; - o.initContainers = initContainers; - o.nodeName = nodeName; - o.nodeSelector = nodeSelector; - o.os = os; - o.overhead = overhead; - o.preemptionPolicy = preemptionPolicy; - o.priority = priority; - o.priorityClassName = priorityClassName; - o.readinessGates = readinessGates; - o.resourceClaims = resourceClaims; - o.restartPolicy = restartPolicy; - o.runtimeClassName = runtimeClassName; - o.schedulerName = schedulerName; - o.schedulingGates = schedulingGates; - o.securityContext = securityContext; - o.serviceAccount = serviceAccount; - o.serviceAccountName = serviceAccountName; - o.setHostnameAsFQDN = setHostnameAsFQDN; - o.shareProcessNamespace = shareProcessNamespace; - o.subdomain = subdomain; - o.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - o.tolerations = tolerations; - o.topologySpreadConstraints = topologySpreadConstraints; - o.volumes = volumes; - return o; + final var _resultValue = new PodSpecPatch(); + _resultValue.activeDeadlineSeconds = activeDeadlineSeconds; + _resultValue.affinity = affinity; + _resultValue.automountServiceAccountToken = automountServiceAccountToken; + _resultValue.containers = containers; + _resultValue.dnsConfig = dnsConfig; + _resultValue.dnsPolicy = dnsPolicy; + _resultValue.enableServiceLinks = enableServiceLinks; + _resultValue.ephemeralContainers = ephemeralContainers; + _resultValue.hostAliases = hostAliases; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostUsers = hostUsers; + _resultValue.hostname = hostname; + _resultValue.imagePullSecrets = imagePullSecrets; + _resultValue.initContainers = initContainers; + _resultValue.nodeName = nodeName; + _resultValue.nodeSelector = nodeSelector; + _resultValue.os = os; + _resultValue.overhead = overhead; + _resultValue.preemptionPolicy = preemptionPolicy; + _resultValue.priority = priority; + _resultValue.priorityClassName = priorityClassName; + _resultValue.readinessGates = readinessGates; + _resultValue.resourceClaims = resourceClaims; + _resultValue.restartPolicy = restartPolicy; + _resultValue.runtimeClassName = runtimeClassName; + _resultValue.schedulerName = schedulerName; + _resultValue.schedulingGates = schedulingGates; + _resultValue.securityContext = securityContext; + _resultValue.serviceAccount = serviceAccount; + _resultValue.serviceAccountName = serviceAccountName; + _resultValue.setHostnameAsFQDN = setHostnameAsFQDN; + _resultValue.shareProcessNamespace = shareProcessNamespace; + _resultValue.subdomain = subdomain; + _resultValue.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + _resultValue.tolerations = tolerations; + _resultValue.topologySpreadConstraints = topologySpreadConstraints; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatus.java index 9dd5233b8e..8c9c7d8d10 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatus.java @@ -268,6 +268,7 @@ public Builder(PodStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -276,6 +277,7 @@ public Builder conditions(PodCondition... conditions) { } @CustomType.Setter public Builder containerStatuses(@Nullable List containerStatuses) { + this.containerStatuses = containerStatuses; return this; } @@ -284,6 +286,7 @@ public Builder containerStatuses(ContainerStatus... containerStatuses) { } @CustomType.Setter public Builder ephemeralContainerStatuses(@Nullable List ephemeralContainerStatuses) { + this.ephemeralContainerStatuses = ephemeralContainerStatuses; return this; } @@ -292,11 +295,13 @@ public Builder ephemeralContainerStatuses(ContainerStatus... ephemeralContainerS } @CustomType.Setter public Builder hostIP(@Nullable String hostIP) { + this.hostIP = hostIP; return this; } @CustomType.Setter public Builder hostIPs(@Nullable List hostIPs) { + this.hostIPs = hostIPs; return this; } @@ -305,6 +310,7 @@ public Builder hostIPs(HostIP... hostIPs) { } @CustomType.Setter public Builder initContainerStatuses(@Nullable List initContainerStatuses) { + this.initContainerStatuses = initContainerStatuses; return this; } @@ -313,26 +319,31 @@ public Builder initContainerStatuses(ContainerStatus... initContainerStatuses) { } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder nominatedNodeName(@Nullable String nominatedNodeName) { + this.nominatedNodeName = nominatedNodeName; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder podIP(@Nullable String podIP) { + this.podIP = podIP; return this; } @CustomType.Setter public Builder podIPs(@Nullable List podIPs) { + this.podIPs = podIPs; return this; } @@ -341,21 +352,25 @@ public Builder podIPs(PodIP... podIPs) { } @CustomType.Setter public Builder qosClass(@Nullable String qosClass) { + this.qosClass = qosClass; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder resize(@Nullable String resize) { + this.resize = resize; return this; } @CustomType.Setter public Builder resourceClaimStatuses(@Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; return this; } @@ -364,28 +379,29 @@ public Builder resourceClaimStatuses(PodResourceClaimStatus... resourceClaimStat } @CustomType.Setter public Builder startTime(@Nullable String startTime) { + this.startTime = startTime; return this; } public PodStatus build() { - final var o = new PodStatus(); - o.conditions = conditions; - o.containerStatuses = containerStatuses; - o.ephemeralContainerStatuses = ephemeralContainerStatuses; - o.hostIP = hostIP; - o.hostIPs = hostIPs; - o.initContainerStatuses = initContainerStatuses; - o.message = message; - o.nominatedNodeName = nominatedNodeName; - o.phase = phase; - o.podIP = podIP; - o.podIPs = podIPs; - o.qosClass = qosClass; - o.reason = reason; - o.resize = resize; - o.resourceClaimStatuses = resourceClaimStatuses; - o.startTime = startTime; - return o; + final var _resultValue = new PodStatus(); + _resultValue.conditions = conditions; + _resultValue.containerStatuses = containerStatuses; + _resultValue.ephemeralContainerStatuses = ephemeralContainerStatuses; + _resultValue.hostIP = hostIP; + _resultValue.hostIPs = hostIPs; + _resultValue.initContainerStatuses = initContainerStatuses; + _resultValue.message = message; + _resultValue.nominatedNodeName = nominatedNodeName; + _resultValue.phase = phase; + _resultValue.podIP = podIP; + _resultValue.podIPs = podIPs; + _resultValue.qosClass = qosClass; + _resultValue.reason = reason; + _resultValue.resize = resize; + _resultValue.resourceClaimStatuses = resourceClaimStatuses; + _resultValue.startTime = startTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatusPatch.java index 4c76b3fa4d..107b716626 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodStatusPatch.java @@ -268,6 +268,7 @@ public Builder(PodStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -276,6 +277,7 @@ public Builder conditions(PodConditionPatch... conditions) { } @CustomType.Setter public Builder containerStatuses(@Nullable List containerStatuses) { + this.containerStatuses = containerStatuses; return this; } @@ -284,6 +286,7 @@ public Builder containerStatuses(ContainerStatusPatch... containerStatuses) { } @CustomType.Setter public Builder ephemeralContainerStatuses(@Nullable List ephemeralContainerStatuses) { + this.ephemeralContainerStatuses = ephemeralContainerStatuses; return this; } @@ -292,11 +295,13 @@ public Builder ephemeralContainerStatuses(ContainerStatusPatch... ephemeralConta } @CustomType.Setter public Builder hostIP(@Nullable String hostIP) { + this.hostIP = hostIP; return this; } @CustomType.Setter public Builder hostIPs(@Nullable List hostIPs) { + this.hostIPs = hostIPs; return this; } @@ -305,6 +310,7 @@ public Builder hostIPs(HostIPPatch... hostIPs) { } @CustomType.Setter public Builder initContainerStatuses(@Nullable List initContainerStatuses) { + this.initContainerStatuses = initContainerStatuses; return this; } @@ -313,26 +319,31 @@ public Builder initContainerStatuses(ContainerStatusPatch... initContainerStatus } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder nominatedNodeName(@Nullable String nominatedNodeName) { + this.nominatedNodeName = nominatedNodeName; return this; } @CustomType.Setter public Builder phase(@Nullable String phase) { + this.phase = phase; return this; } @CustomType.Setter public Builder podIP(@Nullable String podIP) { + this.podIP = podIP; return this; } @CustomType.Setter public Builder podIPs(@Nullable List podIPs) { + this.podIPs = podIPs; return this; } @@ -341,21 +352,25 @@ public Builder podIPs(PodIPPatch... podIPs) { } @CustomType.Setter public Builder qosClass(@Nullable String qosClass) { + this.qosClass = qosClass; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder resize(@Nullable String resize) { + this.resize = resize; return this; } @CustomType.Setter public Builder resourceClaimStatuses(@Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; return this; } @@ -364,28 +379,29 @@ public Builder resourceClaimStatuses(PodResourceClaimStatusPatch... resourceClai } @CustomType.Setter public Builder startTime(@Nullable String startTime) { + this.startTime = startTime; return this; } public PodStatusPatch build() { - final var o = new PodStatusPatch(); - o.conditions = conditions; - o.containerStatuses = containerStatuses; - o.ephemeralContainerStatuses = ephemeralContainerStatuses; - o.hostIP = hostIP; - o.hostIPs = hostIPs; - o.initContainerStatuses = initContainerStatuses; - o.message = message; - o.nominatedNodeName = nominatedNodeName; - o.phase = phase; - o.podIP = podIP; - o.podIPs = podIPs; - o.qosClass = qosClass; - o.reason = reason; - o.resize = resize; - o.resourceClaimStatuses = resourceClaimStatuses; - o.startTime = startTime; - return o; + final var _resultValue = new PodStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.containerStatuses = containerStatuses; + _resultValue.ephemeralContainerStatuses = ephemeralContainerStatuses; + _resultValue.hostIP = hostIP; + _resultValue.hostIPs = hostIPs; + _resultValue.initContainerStatuses = initContainerStatuses; + _resultValue.message = message; + _resultValue.nominatedNodeName = nominatedNodeName; + _resultValue.phase = phase; + _resultValue.podIP = podIP; + _resultValue.podIPs = podIPs; + _resultValue.qosClass = qosClass; + _resultValue.reason = reason; + _resultValue.resize = resize; + _resultValue.resourceClaimStatuses = resourceClaimStatuses; + _resultValue.startTime = startTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplate.java index dee0ff88ce..5cadf25326 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplate.java @@ -88,31 +88,35 @@ public Builder(PodTemplate defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpec template) { + this.template = template; return this; } public PodTemplate build() { - final var o = new PodTemplate(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.template = template; - return o; + final var _resultValue = new PodTemplate(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpec.java index d594528e2a..dc33633648 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpec.java @@ -59,19 +59,21 @@ public Builder(PodTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodSpec spec) { + this.spec = spec; return this; } public PodTemplateSpec build() { - final var o = new PodTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PodTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpecPatch.java index 87f42bc29b..b06a43985a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(PodTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodSpecPatch spec) { + this.spec = spec; return this; } public PodTemplateSpecPatch build() { - final var o = new PodTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PodTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatus.java index 4167e1b7a9..b5bd08bfda 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -79,25 +80,32 @@ public Builder(PortStatus defaults) { @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("PortStatus", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("PortStatus", "protocol"); + } + this.protocol = protocol; return this; } public PortStatus build() { - final var o = new PortStatus(); - o.error = error; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new PortStatus(); + _resultValue.error = error; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatusPatch.java index 7264e48d4e..f740af8441 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortStatusPatch.java @@ -79,25 +79,28 @@ public Builder(PortStatusPatch defaults) { @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public PortStatusPatch build() { - final var o = new PortStatusPatch(); - o.error = error; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new PortStatusPatch(); + _resultValue.error = error; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSource.java index acbd37bf58..4178c32de6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,30 @@ public Builder(PortworxVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeID(String volumeID) { - this.volumeID = Objects.requireNonNull(volumeID); + if (volumeID == null) { + throw new MissingRequiredPropertyException("PortworxVolumeSource", "volumeID"); + } + this.volumeID = volumeID; return this; } public PortworxVolumeSource build() { - final var o = new PortworxVolumeSource(); - o.fsType = fsType; - o.readOnly = readOnly; - o.volumeID = volumeID; - return o; + final var _resultValue = new PortworxVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSourcePatch.java index 2d211f72fd..d8add8533e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PortworxVolumeSourcePatch.java @@ -73,25 +73,28 @@ public Builder(PortworxVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder volumeID(@Nullable String volumeID) { + this.volumeID = volumeID; return this; } public PortworxVolumeSourcePatch build() { - final var o = new PortworxVolumeSourcePatch(); - o.fsType = fsType; - o.readOnly = readOnly; - o.volumeID = volumeID; - return o; + final var _resultValue = new PortworxVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.volumeID = volumeID; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTerm.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTerm.java index 7665614d87..ae1177137e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTerm.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTerm.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.NodeSelectorTerm; import java.lang.Integer; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(PreferredSchedulingTerm defaults) { @CustomType.Setter public Builder preference(NodeSelectorTerm preference) { - this.preference = Objects.requireNonNull(preference); + if (preference == null) { + throw new MissingRequiredPropertyException("PreferredSchedulingTerm", "preference"); + } + this.preference = preference; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("PreferredSchedulingTerm", "weight"); + } + this.weight = weight; return this; } public PreferredSchedulingTerm build() { - final var o = new PreferredSchedulingTerm(); - o.preference = preference; - o.weight = weight; - return o; + final var _resultValue = new PreferredSchedulingTerm(); + _resultValue.preference = preference; + _resultValue.weight = weight; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTermPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTermPatch.java index 62df093f9b..43b8c64d0a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTermPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PreferredSchedulingTermPatch.java @@ -59,19 +59,21 @@ public Builder(PreferredSchedulingTermPatch defaults) { @CustomType.Setter public Builder preference(@Nullable NodeSelectorTermPatch preference) { + this.preference = preference; return this; } @CustomType.Setter public Builder weight(@Nullable Integer weight) { + this.weight = weight; return this; } public PreferredSchedulingTermPatch build() { - final var o = new PreferredSchedulingTermPatch(); - o.preference = preference; - o.weight = weight; - return o; + final var _resultValue = new PreferredSchedulingTermPatch(); + _resultValue.preference = preference; + _resultValue.weight = weight; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Probe.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Probe.java index 3ce6906c3c..b12715f044 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Probe.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Probe.java @@ -174,67 +174,77 @@ public Builder(Probe defaults) { @CustomType.Setter public Builder exec(@Nullable ExecAction exec) { + this.exec = exec; return this; } @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { + this.failureThreshold = failureThreshold; return this; } @CustomType.Setter public Builder grpc(@Nullable GRPCAction grpc) { + this.grpc = grpc; return this; } @CustomType.Setter public Builder httpGet(@Nullable HTTPGetAction httpGet) { + this.httpGet = httpGet; return this; } @CustomType.Setter public Builder initialDelaySeconds(@Nullable Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; return this; } @CustomType.Setter public Builder periodSeconds(@Nullable Integer periodSeconds) { + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder successThreshold(@Nullable Integer successThreshold) { + this.successThreshold = successThreshold; return this; } @CustomType.Setter public Builder tcpSocket(@Nullable TCPSocketAction tcpSocket) { + this.tcpSocket = tcpSocket; return this; } @CustomType.Setter public Builder terminationGracePeriodSeconds(@Nullable Integer terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public Probe build() { - final var o = new Probe(); - o.exec = exec; - o.failureThreshold = failureThreshold; - o.grpc = grpc; - o.httpGet = httpGet; - o.initialDelaySeconds = initialDelaySeconds; - o.periodSeconds = periodSeconds; - o.successThreshold = successThreshold; - o.tcpSocket = tcpSocket; - o.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new Probe(); + _resultValue.exec = exec; + _resultValue.failureThreshold = failureThreshold; + _resultValue.grpc = grpc; + _resultValue.httpGet = httpGet; + _resultValue.initialDelaySeconds = initialDelaySeconds; + _resultValue.periodSeconds = periodSeconds; + _resultValue.successThreshold = successThreshold; + _resultValue.tcpSocket = tcpSocket; + _resultValue.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProbePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProbePatch.java index 9e78ddec4f..e4d42f8cfd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProbePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProbePatch.java @@ -174,67 +174,77 @@ public Builder(ProbePatch defaults) { @CustomType.Setter public Builder exec(@Nullable ExecActionPatch exec) { + this.exec = exec; return this; } @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { + this.failureThreshold = failureThreshold; return this; } @CustomType.Setter public Builder grpc(@Nullable GRPCActionPatch grpc) { + this.grpc = grpc; return this; } @CustomType.Setter public Builder httpGet(@Nullable HTTPGetActionPatch httpGet) { + this.httpGet = httpGet; return this; } @CustomType.Setter public Builder initialDelaySeconds(@Nullable Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; return this; } @CustomType.Setter public Builder periodSeconds(@Nullable Integer periodSeconds) { + this.periodSeconds = periodSeconds; return this; } @CustomType.Setter public Builder successThreshold(@Nullable Integer successThreshold) { + this.successThreshold = successThreshold; return this; } @CustomType.Setter public Builder tcpSocket(@Nullable TCPSocketActionPatch tcpSocket) { + this.tcpSocket = tcpSocket; return this; } @CustomType.Setter public Builder terminationGracePeriodSeconds(@Nullable Integer terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } public ProbePatch build() { - final var o = new ProbePatch(); - o.exec = exec; - o.failureThreshold = failureThreshold; - o.grpc = grpc; - o.httpGet = httpGet; - o.initialDelaySeconds = initialDelaySeconds; - o.periodSeconds = periodSeconds; - o.successThreshold = successThreshold; - o.tcpSocket = tcpSocket; - o.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - o.timeoutSeconds = timeoutSeconds; - return o; + final var _resultValue = new ProbePatch(); + _resultValue.exec = exec; + _resultValue.failureThreshold = failureThreshold; + _resultValue.grpc = grpc; + _resultValue.httpGet = httpGet; + _resultValue.initialDelaySeconds = initialDelaySeconds; + _resultValue.periodSeconds = periodSeconds; + _resultValue.successThreshold = successThreshold; + _resultValue.tcpSocket = tcpSocket; + _resultValue.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + _resultValue.timeoutSeconds = timeoutSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSource.java index d7a1bd8f97..e95372e388 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.VolumeProjection; import java.lang.Integer; import java.util.List; @@ -60,22 +61,26 @@ public Builder(ProjectedVolumeSource defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder sources(List sources) { - this.sources = Objects.requireNonNull(sources); + if (sources == null) { + throw new MissingRequiredPropertyException("ProjectedVolumeSource", "sources"); + } + this.sources = sources; return this; } public Builder sources(VolumeProjection... sources) { return sources(List.of(sources)); } public ProjectedVolumeSource build() { - final var o = new ProjectedVolumeSource(); - o.defaultMode = defaultMode; - o.sources = sources; - return o; + final var _resultValue = new ProjectedVolumeSource(); + _resultValue.defaultMode = defaultMode; + _resultValue.sources = sources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSourcePatch.java index 8671c9285b..f38c85f4c9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ProjectedVolumeSourcePatch.java @@ -60,11 +60,13 @@ public Builder(ProjectedVolumeSourcePatch defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder sources(@Nullable List sources) { + this.sources = sources; return this; } @@ -72,10 +74,10 @@ public Builder sources(VolumeProjectionPatch... sources) { return sources(List.of(sources)); } public ProjectedVolumeSourcePatch build() { - final var o = new ProjectedVolumeSourcePatch(); - o.defaultMode = defaultMode; - o.sources = sources; - return o; + final var _resultValue = new ProjectedVolumeSourcePatch(); + _resultValue.defaultMode = defaultMode; + _resultValue.sources = sources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSource.java index 6d07656121..558b41b609 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -115,43 +116,53 @@ public Builder(QuobyteVolumeSource defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder registry(String registry) { - this.registry = Objects.requireNonNull(registry); + if (registry == null) { + throw new MissingRequiredPropertyException("QuobyteVolumeSource", "registry"); + } + this.registry = registry; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } @CustomType.Setter public Builder volume(String volume) { - this.volume = Objects.requireNonNull(volume); + if (volume == null) { + throw new MissingRequiredPropertyException("QuobyteVolumeSource", "volume"); + } + this.volume = volume; return this; } public QuobyteVolumeSource build() { - final var o = new QuobyteVolumeSource(); - o.group = group; - o.readOnly = readOnly; - o.registry = registry; - o.tenant = tenant; - o.user = user; - o.volume = volume; - return o; + final var _resultValue = new QuobyteVolumeSource(); + _resultValue.group = group; + _resultValue.readOnly = readOnly; + _resultValue.registry = registry; + _resultValue.tenant = tenant; + _resultValue.user = user; + _resultValue.volume = volume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSourcePatch.java index 760b5bc2a8..bfb64f1b34 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/QuobyteVolumeSourcePatch.java @@ -115,43 +115,49 @@ public Builder(QuobyteVolumeSourcePatch defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } @CustomType.Setter public Builder volume(@Nullable String volume) { + this.volume = volume; return this; } public QuobyteVolumeSourcePatch build() { - final var o = new QuobyteVolumeSourcePatch(); - o.group = group; - o.readOnly = readOnly; - o.registry = registry; - o.tenant = tenant; - o.user = user; - o.volume = volume; - return o; + final var _resultValue = new QuobyteVolumeSourcePatch(); + _resultValue.group = group; + _resultValue.readOnly = readOnly; + _resultValue.registry = registry; + _resultValue.tenant = tenant; + _resultValue.user = user; + _resultValue.volume = volume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSource.java index f4ed295b07..d35f926b40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -145,22 +146,30 @@ public Builder(RBDPersistentVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("RBDPersistentVolumeSource", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder keyring(@Nullable String keyring) { + this.keyring = keyring; return this; } @CustomType.Setter public Builder monitors(List monitors) { - this.monitors = Objects.requireNonNull(monitors); + if (monitors == null) { + throw new MissingRequiredPropertyException("RBDPersistentVolumeSource", "monitors"); + } + this.monitors = monitors; return this; } public Builder monitors(String... monitors) { @@ -168,35 +177,39 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public RBDPersistentVolumeSource build() { - final var o = new RBDPersistentVolumeSource(); - o.fsType = fsType; - o.image = image; - o.keyring = keyring; - o.monitors = monitors; - o.pool = pool; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new RBDPersistentVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.image = image; + _resultValue.keyring = keyring; + _resultValue.monitors = monitors; + _resultValue.pool = pool; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSourcePatch.java index 420ab1ade2..3346b0ab1f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDPersistentVolumeSourcePatch.java @@ -145,21 +145,25 @@ public Builder(RBDPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder keyring(@Nullable String keyring) { + this.keyring = keyring; return this; } @CustomType.Setter public Builder monitors(@Nullable List monitors) { + this.monitors = monitors; return this; } @@ -168,35 +172,39 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public RBDPersistentVolumeSourcePatch build() { - final var o = new RBDPersistentVolumeSourcePatch(); - o.fsType = fsType; - o.image = image; - o.keyring = keyring; - o.monitors = monitors; - o.pool = pool; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new RBDPersistentVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.image = image; + _resultValue.keyring = keyring; + _resultValue.monitors = monitors; + _resultValue.pool = pool; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSource.java index 959a8af61c..cf34d6cad4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -145,22 +146,30 @@ public Builder(RBDVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("RBDVolumeSource", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder keyring(@Nullable String keyring) { + this.keyring = keyring; return this; } @CustomType.Setter public Builder monitors(List monitors) { - this.monitors = Objects.requireNonNull(monitors); + if (monitors == null) { + throw new MissingRequiredPropertyException("RBDVolumeSource", "monitors"); + } + this.monitors = monitors; return this; } public Builder monitors(String... monitors) { @@ -168,35 +177,39 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public RBDVolumeSource build() { - final var o = new RBDVolumeSource(); - o.fsType = fsType; - o.image = image; - o.keyring = keyring; - o.monitors = monitors; - o.pool = pool; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new RBDVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.image = image; + _resultValue.keyring = keyring; + _resultValue.monitors = monitors; + _resultValue.pool = pool; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSourcePatch.java index fecc828415..721ed0768d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/RBDVolumeSourcePatch.java @@ -145,21 +145,25 @@ public Builder(RBDVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder keyring(@Nullable String keyring) { + this.keyring = keyring; return this; } @CustomType.Setter public Builder monitors(@Nullable List monitors) { + this.monitors = monitors; return this; } @@ -168,35 +172,39 @@ public Builder monitors(String... monitors) { } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public RBDVolumeSourcePatch build() { - final var o = new RBDVolumeSourcePatch(); - o.fsType = fsType; - o.image = image; - o.keyring = keyring; - o.monitors = monitors; - o.pool = pool; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.user = user; - return o; + final var _resultValue = new RBDVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.image = image; + _resultValue.keyring = keyring; + _resultValue.monitors = monitors; + _resultValue.pool = pool; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationController.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationController.java index 11ae829de8..716c0753d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationController.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationController.java @@ -103,37 +103,42 @@ public Builder(ReplicationController defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ReplicationControllerSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ReplicationControllerStatus status) { + this.status = status; return this; } public ReplicationController build() { - final var o = new ReplicationController(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ReplicationController(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerCondition.java index 7fb0c92f99..ea6213dfdc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(ReplicationControllerCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ReplicationControllerCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ReplicationControllerCondition", "type"); + } + this.type = type; return this; } public ReplicationControllerCondition build() { - final var o = new ReplicationControllerCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicationControllerCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerConditionPatch.java index f342f84878..05e8730730 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerConditionPatch.java @@ -100,37 +100,42 @@ public Builder(ReplicationControllerConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ReplicationControllerConditionPatch build() { - final var o = new ReplicationControllerConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicationControllerConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpec.java index 463acecc58..d15778e99c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpec.java @@ -89,31 +89,35 @@ public Builder(ReplicationControllerSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpec template) { + this.template = template; return this; } public ReplicationControllerSpec build() { - final var o = new ReplicationControllerSpec(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicationControllerSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpecPatch.java index 1bf5bf4180..0d780da257 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerSpecPatch.java @@ -89,31 +89,35 @@ public Builder(ReplicationControllerSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public ReplicationControllerSpecPatch build() { - final var o = new ReplicationControllerSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicationControllerSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatus.java index 6c041630f1..ab36da33be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ReplicationControllerCondition; import java.lang.Integer; import java.util.List; @@ -116,11 +117,13 @@ public Builder(ReplicationControllerStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +132,39 @@ public Builder conditions(ReplicationControllerCondition... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("ReplicationControllerStatus", "replicas"); + } + this.replicas = replicas; return this; } public ReplicationControllerStatus build() { - final var o = new ReplicationControllerStatus(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicationControllerStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatusPatch.java index a179c7a5cf..8843affde5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ReplicationControllerStatusPatch.java @@ -116,11 +116,13 @@ public Builder(ReplicationControllerStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +131,37 @@ public Builder conditions(ReplicationControllerConditionPatch... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } public ReplicationControllerStatusPatch build() { - final var o = new ReplicationControllerStatusPatch(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicationControllerStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaim.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaim.java index 60f4dab5a7..99829da151 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaim.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaim.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(ResourceClaim defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClaim", "name"); + } + this.name = name; return this; } public ResourceClaim build() { - final var o = new ResourceClaim(); - o.name = name; - return o; + final var _resultValue = new ResourceClaim(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaimPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaimPatch.java index 79917d0c9f..0247a65d8c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaimPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceClaimPatch.java @@ -44,13 +44,14 @@ public Builder(ResourceClaimPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceClaimPatch build() { - final var o = new ResourceClaimPatch(); - o.name = name; - return o; + final var _resultValue = new ResourceClaimPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelector.java index b62a60c39e..ca3411a7a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelector.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +73,30 @@ public Builder(ResourceFieldSelector defaults) { @CustomType.Setter public Builder containerName(@Nullable String containerName) { + this.containerName = containerName; return this; } @CustomType.Setter public Builder divisor(@Nullable String divisor) { + this.divisor = divisor; return this; } @CustomType.Setter public Builder resource(String resource) { - this.resource = Objects.requireNonNull(resource); + if (resource == null) { + throw new MissingRequiredPropertyException("ResourceFieldSelector", "resource"); + } + this.resource = resource; return this; } public ResourceFieldSelector build() { - final var o = new ResourceFieldSelector(); - o.containerName = containerName; - o.divisor = divisor; - o.resource = resource; - return o; + final var _resultValue = new ResourceFieldSelector(); + _resultValue.containerName = containerName; + _resultValue.divisor = divisor; + _resultValue.resource = resource; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelectorPatch.java index 69475b01c7..46d0d3b124 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceFieldSelectorPatch.java @@ -72,25 +72,28 @@ public Builder(ResourceFieldSelectorPatch defaults) { @CustomType.Setter public Builder containerName(@Nullable String containerName) { + this.containerName = containerName; return this; } @CustomType.Setter public Builder divisor(@Nullable String divisor) { + this.divisor = divisor; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } public ResourceFieldSelectorPatch build() { - final var o = new ResourceFieldSelectorPatch(); - o.containerName = containerName; - o.divisor = divisor; - o.resource = resource; - return o; + final var _resultValue = new ResourceFieldSelectorPatch(); + _resultValue.containerName = containerName; + _resultValue.divisor = divisor; + _resultValue.resource = resource; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuota.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuota.java index 30633c030b..92cb971922 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuota.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuota.java @@ -103,37 +103,42 @@ public Builder(ResourceQuota defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ResourceQuotaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ResourceQuotaStatus status) { + this.status = status; return this; } public ResourceQuota build() { - final var o = new ResourceQuota(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ResourceQuota(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpec.java index 47d27b158c..a675b9bf2f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpec.java @@ -75,16 +75,19 @@ public Builder(ResourceQuotaSpec defaults) { @CustomType.Setter public Builder hard(@Nullable Map hard) { + this.hard = hard; return this; } @CustomType.Setter public Builder scopeSelector(@Nullable ScopeSelector scopeSelector) { + this.scopeSelector = scopeSelector; return this; } @CustomType.Setter public Builder scopes(@Nullable List scopes) { + this.scopes = scopes; return this; } @@ -92,11 +95,11 @@ public Builder scopes(String... scopes) { return scopes(List.of(scopes)); } public ResourceQuotaSpec build() { - final var o = new ResourceQuotaSpec(); - o.hard = hard; - o.scopeSelector = scopeSelector; - o.scopes = scopes; - return o; + final var _resultValue = new ResourceQuotaSpec(); + _resultValue.hard = hard; + _resultValue.scopeSelector = scopeSelector; + _resultValue.scopes = scopes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpecPatch.java index f6b7362bbb..05aea91b7b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaSpecPatch.java @@ -75,16 +75,19 @@ public Builder(ResourceQuotaSpecPatch defaults) { @CustomType.Setter public Builder hard(@Nullable Map hard) { + this.hard = hard; return this; } @CustomType.Setter public Builder scopeSelector(@Nullable ScopeSelectorPatch scopeSelector) { + this.scopeSelector = scopeSelector; return this; } @CustomType.Setter public Builder scopes(@Nullable List scopes) { + this.scopes = scopes; return this; } @@ -92,11 +95,11 @@ public Builder scopes(String... scopes) { return scopes(List.of(scopes)); } public ResourceQuotaSpecPatch build() { - final var o = new ResourceQuotaSpecPatch(); - o.hard = hard; - o.scopeSelector = scopeSelector; - o.scopes = scopes; - return o; + final var _resultValue = new ResourceQuotaSpecPatch(); + _resultValue.hard = hard; + _resultValue.scopeSelector = scopeSelector; + _resultValue.scopes = scopes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatus.java index 92a12def1d..b8efe22c8b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatus.java @@ -58,19 +58,21 @@ public Builder(ResourceQuotaStatus defaults) { @CustomType.Setter public Builder hard(@Nullable Map hard) { + this.hard = hard; return this; } @CustomType.Setter public Builder used(@Nullable Map used) { + this.used = used; return this; } public ResourceQuotaStatus build() { - final var o = new ResourceQuotaStatus(); - o.hard = hard; - o.used = used; - return o; + final var _resultValue = new ResourceQuotaStatus(); + _resultValue.hard = hard; + _resultValue.used = used; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatusPatch.java index a010878235..73404e7ee9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceQuotaStatusPatch.java @@ -58,19 +58,21 @@ public Builder(ResourceQuotaStatusPatch defaults) { @CustomType.Setter public Builder hard(@Nullable Map hard) { + this.hard = hard; return this; } @CustomType.Setter public Builder used(@Nullable Map used) { + this.used = used; return this; } public ResourceQuotaStatusPatch build() { - final var o = new ResourceQuotaStatusPatch(); - o.hard = hard; - o.used = used; - return o; + final var _resultValue = new ResourceQuotaStatusPatch(); + _resultValue.hard = hard; + _resultValue.used = used; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirements.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirements.java index 33f72ecc92..edd9ed8eb6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirements.java @@ -82,6 +82,7 @@ public Builder(ResourceRequirements defaults) { @CustomType.Setter public Builder claims(@Nullable List claims) { + this.claims = claims; return this; } @@ -90,20 +91,22 @@ public Builder claims(ResourceClaim... claims) { } @CustomType.Setter public Builder limits(@Nullable Map limits) { + this.limits = limits; return this; } @CustomType.Setter public Builder requests(@Nullable Map requests) { + this.requests = requests; return this; } public ResourceRequirements build() { - final var o = new ResourceRequirements(); - o.claims = claims; - o.limits = limits; - o.requests = requests; - return o; + final var _resultValue = new ResourceRequirements(); + _resultValue.claims = claims; + _resultValue.limits = limits; + _resultValue.requests = requests; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirementsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirementsPatch.java index d7b7f2084a..736d89b679 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirementsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ResourceRequirementsPatch.java @@ -82,6 +82,7 @@ public Builder(ResourceRequirementsPatch defaults) { @CustomType.Setter public Builder claims(@Nullable List claims) { + this.claims = claims; return this; } @@ -90,20 +91,22 @@ public Builder claims(ResourceClaimPatch... claims) { } @CustomType.Setter public Builder limits(@Nullable Map limits) { + this.limits = limits; return this; } @CustomType.Setter public Builder requests(@Nullable Map requests) { + this.requests = requests; return this; } public ResourceRequirementsPatch build() { - final var o = new ResourceRequirementsPatch(); - o.claims = claims; - o.limits = limits; - o.requests = requests; - return o; + final var _resultValue = new ResourceRequirementsPatch(); + _resultValue.claims = claims; + _resultValue.limits = limits; + _resultValue.requests = requests; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptions.java index 2719bae1e4..537196d1c4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptions.java @@ -86,31 +86,35 @@ public Builder(SELinuxOptions defaults) { @CustomType.Setter public Builder level(@Nullable String level) { + this.level = level; return this; } @CustomType.Setter public Builder role(@Nullable String role) { + this.role = role; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public SELinuxOptions build() { - final var o = new SELinuxOptions(); - o.level = level; - o.role = role; - o.type = type; - o.user = user; - return o; + final var _resultValue = new SELinuxOptions(); + _resultValue.level = level; + _resultValue.role = role; + _resultValue.type = type; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptionsPatch.java index abff16d098..d1a02cf5a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SELinuxOptionsPatch.java @@ -86,31 +86,35 @@ public Builder(SELinuxOptionsPatch defaults) { @CustomType.Setter public Builder level(@Nullable String level) { + this.level = level; return this; } @CustomType.Setter public Builder role(@Nullable String role) { + this.role = role; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } public SELinuxOptionsPatch build() { - final var o = new SELinuxOptionsPatch(); - o.level = level; - o.role = role; - o.type = type; - o.user = user; - return o; + final var _resultValue = new SELinuxOptionsPatch(); + _resultValue.level = level; + _resultValue.role = role; + _resultValue.type = type; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSource.java index a2fc837765..87be41e826 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SecretReference; import java.lang.Boolean; import java.lang.String; @@ -172,67 +173,83 @@ public Builder(ScaleIOPersistentVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSource", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter public Builder protectionDomain(@Nullable String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(SecretReference secretRef) { - this.secretRef = Objects.requireNonNull(secretRef); + if (secretRef == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSource", "secretRef"); + } + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder sslEnabled(@Nullable Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @CustomType.Setter public Builder storageMode(@Nullable String storageMode) { + this.storageMode = storageMode; return this; } @CustomType.Setter public Builder storagePool(@Nullable String storagePool) { + this.storagePool = storagePool; return this; } @CustomType.Setter public Builder system(String system) { - this.system = Objects.requireNonNull(system); + if (system == null) { + throw new MissingRequiredPropertyException("ScaleIOPersistentVolumeSource", "system"); + } + this.system = system; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public ScaleIOPersistentVolumeSource build() { - final var o = new ScaleIOPersistentVolumeSource(); - o.fsType = fsType; - o.gateway = gateway; - o.protectionDomain = protectionDomain; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.sslEnabled = sslEnabled; - o.storageMode = storageMode; - o.storagePool = storagePool; - o.system = system; - o.volumeName = volumeName; - return o; + final var _resultValue = new ScaleIOPersistentVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.gateway = gateway; + _resultValue.protectionDomain = protectionDomain; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.sslEnabled = sslEnabled; + _resultValue.storageMode = storageMode; + _resultValue.storagePool = storagePool; + _resultValue.system = system; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSourcePatch.java index 0778d3f2f5..be1d337747 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOPersistentVolumeSourcePatch.java @@ -172,67 +172,77 @@ public Builder(ScaleIOPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder gateway(@Nullable String gateway) { + this.gateway = gateway; return this; } @CustomType.Setter public Builder protectionDomain(@Nullable String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable SecretReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder sslEnabled(@Nullable Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @CustomType.Setter public Builder storageMode(@Nullable String storageMode) { + this.storageMode = storageMode; return this; } @CustomType.Setter public Builder storagePool(@Nullable String storagePool) { + this.storagePool = storagePool; return this; } @CustomType.Setter public Builder system(@Nullable String system) { + this.system = system; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public ScaleIOPersistentVolumeSourcePatch build() { - final var o = new ScaleIOPersistentVolumeSourcePatch(); - o.fsType = fsType; - o.gateway = gateway; - o.protectionDomain = protectionDomain; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.sslEnabled = sslEnabled; - o.storageMode = storageMode; - o.storagePool = storagePool; - o.system = system; - o.volumeName = volumeName; - return o; + final var _resultValue = new ScaleIOPersistentVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.gateway = gateway; + _resultValue.protectionDomain = protectionDomain; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.sslEnabled = sslEnabled; + _resultValue.storageMode = storageMode; + _resultValue.storagePool = storagePool; + _resultValue.system = system; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSource.java index cc51f834a8..6d5732d048 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.LocalObjectReference; import java.lang.Boolean; import java.lang.String; @@ -172,67 +173,83 @@ public Builder(ScaleIOVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSource", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter public Builder protectionDomain(@Nullable String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(LocalObjectReference secretRef) { - this.secretRef = Objects.requireNonNull(secretRef); + if (secretRef == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSource", "secretRef"); + } + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder sslEnabled(@Nullable Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @CustomType.Setter public Builder storageMode(@Nullable String storageMode) { + this.storageMode = storageMode; return this; } @CustomType.Setter public Builder storagePool(@Nullable String storagePool) { + this.storagePool = storagePool; return this; } @CustomType.Setter public Builder system(String system) { - this.system = Objects.requireNonNull(system); + if (system == null) { + throw new MissingRequiredPropertyException("ScaleIOVolumeSource", "system"); + } + this.system = system; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public ScaleIOVolumeSource build() { - final var o = new ScaleIOVolumeSource(); - o.fsType = fsType; - o.gateway = gateway; - o.protectionDomain = protectionDomain; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.sslEnabled = sslEnabled; - o.storageMode = storageMode; - o.storagePool = storagePool; - o.system = system; - o.volumeName = volumeName; - return o; + final var _resultValue = new ScaleIOVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.gateway = gateway; + _resultValue.protectionDomain = protectionDomain; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.sslEnabled = sslEnabled; + _resultValue.storageMode = storageMode; + _resultValue.storagePool = storagePool; + _resultValue.system = system; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSourcePatch.java index 53ed1b27eb..4ff10fd902 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScaleIOVolumeSourcePatch.java @@ -172,67 +172,77 @@ public Builder(ScaleIOVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder gateway(@Nullable String gateway) { + this.gateway = gateway; return this; } @CustomType.Setter public Builder protectionDomain(@Nullable String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder sslEnabled(@Nullable Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @CustomType.Setter public Builder storageMode(@Nullable String storageMode) { + this.storageMode = storageMode; return this; } @CustomType.Setter public Builder storagePool(@Nullable String storagePool) { + this.storagePool = storagePool; return this; } @CustomType.Setter public Builder system(@Nullable String system) { + this.system = system; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } public ScaleIOVolumeSourcePatch build() { - final var o = new ScaleIOVolumeSourcePatch(); - o.fsType = fsType; - o.gateway = gateway; - o.protectionDomain = protectionDomain; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.sslEnabled = sslEnabled; - o.storageMode = storageMode; - o.storagePool = storagePool; - o.system = system; - o.volumeName = volumeName; - return o; + final var _resultValue = new ScaleIOVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.gateway = gateway; + _resultValue.protectionDomain = protectionDomain; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.sslEnabled = sslEnabled; + _resultValue.storageMode = storageMode; + _resultValue.storagePool = storagePool; + _resultValue.system = system; + _resultValue.volumeName = volumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelector.java index 04d6538019..ca9ccabfbf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelector.java @@ -44,6 +44,7 @@ public Builder(ScopeSelector defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -51,9 +52,9 @@ public Builder matchExpressions(ScopedResourceSelectorRequirement... matchExpres return matchExpressions(List.of(matchExpressions)); } public ScopeSelector build() { - final var o = new ScopeSelector(); - o.matchExpressions = matchExpressions; - return o; + final var _resultValue = new ScopeSelector(); + _resultValue.matchExpressions = matchExpressions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelectorPatch.java index aa3541b98f..85cf99fb53 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopeSelectorPatch.java @@ -44,6 +44,7 @@ public Builder(ScopeSelectorPatch defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -51,9 +52,9 @@ public Builder matchExpressions(ScopedResourceSelectorRequirementPatch... matchE return matchExpressions(List.of(matchExpressions)); } public ScopeSelectorPatch build() { - final var o = new ScopeSelectorPatch(); - o.matchExpressions = matchExpressions; - return o; + final var _resultValue = new ScopeSelectorPatch(); + _resultValue.matchExpressions = matchExpressions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirement.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirement.java index cf152e889e..16713374df 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirement.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -72,16 +73,23 @@ public Builder(ScopedResourceSelectorRequirement defaults) { @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("ScopedResourceSelectorRequirement", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder scopeName(String scopeName) { - this.scopeName = Objects.requireNonNull(scopeName); + if (scopeName == null) { + throw new MissingRequiredPropertyException("ScopedResourceSelectorRequirement", "scopeName"); + } + this.scopeName = scopeName; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -89,11 +97,11 @@ public Builder values(String... values) { return values(List.of(values)); } public ScopedResourceSelectorRequirement build() { - final var o = new ScopedResourceSelectorRequirement(); - o.operator = operator; - o.scopeName = scopeName; - o.values = values; - return o; + final var _resultValue = new ScopedResourceSelectorRequirement(); + _resultValue.operator = operator; + _resultValue.scopeName = scopeName; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirementPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirementPatch.java index a9f6b99102..27563f44c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirementPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ScopedResourceSelectorRequirementPatch.java @@ -73,16 +73,19 @@ public Builder(ScopedResourceSelectorRequirementPatch defaults) { @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder scopeName(@Nullable String scopeName) { + this.scopeName = scopeName; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -90,11 +93,11 @@ public Builder values(String... values) { return values(List.of(values)); } public ScopedResourceSelectorRequirementPatch build() { - final var o = new ScopedResourceSelectorRequirementPatch(); - o.operator = operator; - o.scopeName = scopeName; - o.values = values; - return o; + final var _resultValue = new ScopedResourceSelectorRequirementPatch(); + _resultValue.operator = operator; + _resultValue.scopeName = scopeName; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfile.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfile.java index 4bb9970205..3bdd618e1d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfile.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfile.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -62,19 +63,23 @@ public Builder(SeccompProfile defaults) { @CustomType.Setter public Builder localhostProfile(@Nullable String localhostProfile) { + this.localhostProfile = localhostProfile; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("SeccompProfile", "type"); + } + this.type = type; return this; } public SeccompProfile build() { - final var o = new SeccompProfile(); - o.localhostProfile = localhostProfile; - o.type = type; - return o; + final var _resultValue = new SeccompProfile(); + _resultValue.localhostProfile = localhostProfile; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfilePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfilePatch.java index 49932218bd..510d425a0e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfilePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SeccompProfilePatch.java @@ -62,19 +62,21 @@ public Builder(SeccompProfilePatch defaults) { @CustomType.Setter public Builder localhostProfile(@Nullable String localhostProfile) { + this.localhostProfile = localhostProfile; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public SeccompProfilePatch build() { - final var o = new SeccompProfilePatch(); - o.localhostProfile = localhostProfile; - o.type = type; - return o; + final var _resultValue = new SeccompProfilePatch(); + _resultValue.localhostProfile = localhostProfile; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Secret.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Secret.java index 9b81df2785..baccb8bef7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Secret.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Secret.java @@ -131,49 +131,56 @@ public Builder(Secret defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder data(@Nullable Map data) { + this.data = data; return this; } @CustomType.Setter public Builder immutable(@Nullable Boolean immutable) { + this.immutable = immutable; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder stringData(@Nullable Map stringData) { + this.stringData = stringData; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public Secret build() { - final var o = new Secret(); - o.apiVersion = apiVersion; - o.data = data; - o.immutable = immutable; - o.kind = kind; - o.metadata = metadata; - o.stringData = stringData; - o.type = type; - return o; + final var _resultValue = new Secret(); + _resultValue.apiVersion = apiVersion; + _resultValue.data = data; + _resultValue.immutable = immutable; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.stringData = stringData; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSource.java index 993e53ae27..077f44e6dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSource.java @@ -59,19 +59,21 @@ public Builder(SecretEnvSource defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretEnvSource build() { - final var o = new SecretEnvSource(); - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretEnvSource(); + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSourcePatch.java index 4b489317e0..03a5b0a02e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretEnvSourcePatch.java @@ -59,19 +59,21 @@ public Builder(SecretEnvSourcePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretEnvSourcePatch build() { - final var o = new SecretEnvSourcePatch(); - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretEnvSourcePatch(); + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelector.java index 83f56fb8c0..44fa92ff92 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelector.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,30 @@ public Builder(SecretKeySelector defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("SecretKeySelector", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretKeySelector build() { - final var o = new SecretKeySelector(); - o.key = key; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretKeySelector(); + _resultValue.key = key; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelectorPatch.java index 4aa4ed0ec6..51397f2449 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretKeySelectorPatch.java @@ -73,25 +73,28 @@ public Builder(SecretKeySelectorPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretKeySelectorPatch build() { - final var o = new SecretKeySelectorPatch(); - o.key = key; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretKeySelectorPatch(); + _resultValue.key = key; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjection.java index c224d80b15..4acb1abd39 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjection.java @@ -75,6 +75,7 @@ public Builder(SecretProjection defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -83,20 +84,22 @@ public Builder items(KeyToPath... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretProjection build() { - final var o = new SecretProjection(); - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretProjection(); + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjectionPatch.java index 4816f6d5a8..01f118ce82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretProjectionPatch.java @@ -75,6 +75,7 @@ public Builder(SecretProjectionPatch defaults) { @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -83,20 +84,22 @@ public Builder items(KeyToPathPatch... items) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } public SecretProjectionPatch build() { - final var o = new SecretProjectionPatch(); - o.items = items; - o.name = name; - o.optional = optional; - return o; + final var _resultValue = new SecretProjectionPatch(); + _resultValue.items = items; + _resultValue.name = name; + _resultValue.optional = optional; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReference.java index 2c90275fa2..4c33201482 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReference.java @@ -58,19 +58,21 @@ public Builder(SecretReference defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public SecretReference build() { - final var o = new SecretReference(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new SecretReference(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReferencePatch.java index 1b9b51db18..b53c91b77b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretReferencePatch.java @@ -58,19 +58,21 @@ public Builder(SecretReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public SecretReferencePatch build() { - final var o = new SecretReferencePatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new SecretReferencePatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSource.java index 94f621dcac..5d3429a45c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSource.java @@ -90,11 +90,13 @@ public Builder(SecretVolumeSource defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -103,21 +105,23 @@ public Builder items(KeyToPath... items) { } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public SecretVolumeSource build() { - final var o = new SecretVolumeSource(); - o.defaultMode = defaultMode; - o.items = items; - o.optional = optional; - o.secretName = secretName; - return o; + final var _resultValue = new SecretVolumeSource(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + _resultValue.optional = optional; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSourcePatch.java index 6e49a9b0c0..ff973b0f34 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecretVolumeSourcePatch.java @@ -90,11 +90,13 @@ public Builder(SecretVolumeSourcePatch defaults) { @CustomType.Setter public Builder defaultMode(@Nullable Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @CustomType.Setter public Builder items(@Nullable List items) { + this.items = items; return this; } @@ -103,21 +105,23 @@ public Builder items(KeyToPathPatch... items) { } @CustomType.Setter public Builder optional(@Nullable Boolean optional) { + this.optional = optional; return this; } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public SecretVolumeSourcePatch build() { - final var o = new SecretVolumeSourcePatch(); - o.defaultMode = defaultMode; - o.items = items; - o.optional = optional; - o.secretName = secretName; - return o; + final var _resultValue = new SecretVolumeSourcePatch(); + _resultValue.defaultMode = defaultMode; + _resultValue.items = items; + _resultValue.optional = optional; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContext.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContext.java index 7eab0b1c50..91c58e7e36 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContext.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContext.java @@ -205,79 +205,91 @@ public Builder(SecurityContext defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder appArmorProfile(@Nullable AppArmorProfile appArmorProfile) { + this.appArmorProfile = appArmorProfile; return this; } @CustomType.Setter public Builder capabilities(@Nullable Capabilities capabilities) { + this.capabilities = capabilities; return this; } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder procMount(@Nullable String procMount) { + this.procMount = procMount; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder runAsGroup(@Nullable Integer runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsNonRoot(@Nullable Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @CustomType.Setter public Builder runAsUser(@Nullable Integer runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } @CustomType.Setter public Builder seccompProfile(@Nullable SeccompProfile seccompProfile) { + this.seccompProfile = seccompProfile; return this; } @CustomType.Setter public Builder windowsOptions(@Nullable WindowsSecurityContextOptions windowsOptions) { + this.windowsOptions = windowsOptions; return this; } public SecurityContext build() { - final var o = new SecurityContext(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.appArmorProfile = appArmorProfile; - o.capabilities = capabilities; - o.privileged = privileged; - o.procMount = procMount; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.runAsGroup = runAsGroup; - o.runAsNonRoot = runAsNonRoot; - o.runAsUser = runAsUser; - o.seLinuxOptions = seLinuxOptions; - o.seccompProfile = seccompProfile; - o.windowsOptions = windowsOptions; - return o; + final var _resultValue = new SecurityContext(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.appArmorProfile = appArmorProfile; + _resultValue.capabilities = capabilities; + _resultValue.privileged = privileged; + _resultValue.procMount = procMount; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsNonRoot = runAsNonRoot; + _resultValue.runAsUser = runAsUser; + _resultValue.seLinuxOptions = seLinuxOptions; + _resultValue.seccompProfile = seccompProfile; + _resultValue.windowsOptions = windowsOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContextPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContextPatch.java index 52945d1413..6183382b97 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContextPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SecurityContextPatch.java @@ -205,79 +205,91 @@ public Builder(SecurityContextPatch defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder appArmorProfile(@Nullable AppArmorProfilePatch appArmorProfile) { + this.appArmorProfile = appArmorProfile; return this; } @CustomType.Setter public Builder capabilities(@Nullable CapabilitiesPatch capabilities) { + this.capabilities = capabilities; return this; } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder procMount(@Nullable String procMount) { + this.procMount = procMount; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder runAsGroup(@Nullable Integer runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsNonRoot(@Nullable Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @CustomType.Setter public Builder runAsUser(@Nullable Integer runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptionsPatch seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } @CustomType.Setter public Builder seccompProfile(@Nullable SeccompProfilePatch seccompProfile) { + this.seccompProfile = seccompProfile; return this; } @CustomType.Setter public Builder windowsOptions(@Nullable WindowsSecurityContextOptionsPatch windowsOptions) { + this.windowsOptions = windowsOptions; return this; } public SecurityContextPatch build() { - final var o = new SecurityContextPatch(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.appArmorProfile = appArmorProfile; - o.capabilities = capabilities; - o.privileged = privileged; - o.procMount = procMount; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.runAsGroup = runAsGroup; - o.runAsNonRoot = runAsNonRoot; - o.runAsUser = runAsUser; - o.seLinuxOptions = seLinuxOptions; - o.seccompProfile = seccompProfile; - o.windowsOptions = windowsOptions; - return o; + final var _resultValue = new SecurityContextPatch(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.appArmorProfile = appArmorProfile; + _resultValue.capabilities = capabilities; + _resultValue.privileged = privileged; + _resultValue.procMount = procMount; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsNonRoot = runAsNonRoot; + _resultValue.runAsUser = runAsUser; + _resultValue.seLinuxOptions = seLinuxOptions; + _resultValue.seccompProfile = seccompProfile; + _resultValue.windowsOptions = windowsOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Service.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Service.java index abeed9a560..662d451117 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Service.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Service.java @@ -103,37 +103,42 @@ public Builder(Service defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ServiceSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ServiceStatus status) { + this.status = status; return this; } public Service build() { - final var o = new Service(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Service(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccount.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccount.java index 595fc7a4e3..312b701bc0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccount.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccount.java @@ -119,16 +119,19 @@ public Builder(ServiceAccount defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder automountServiceAccountToken(@Nullable Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return this; } @CustomType.Setter public Builder imagePullSecrets(@Nullable List imagePullSecrets) { + this.imagePullSecrets = imagePullSecrets; return this; } @@ -137,16 +140,19 @@ public Builder imagePullSecrets(LocalObjectReference... imagePullSecrets) { } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder secrets(@Nullable List secrets) { + this.secrets = secrets; return this; } @@ -154,14 +160,14 @@ public Builder secrets(ObjectReference... secrets) { return secrets(List.of(secrets)); } public ServiceAccount build() { - final var o = new ServiceAccount(); - o.apiVersion = apiVersion; - o.automountServiceAccountToken = automountServiceAccountToken; - o.imagePullSecrets = imagePullSecrets; - o.kind = kind; - o.metadata = metadata; - o.secrets = secrets; - return o; + final var _resultValue = new ServiceAccount(); + _resultValue.apiVersion = apiVersion; + _resultValue.automountServiceAccountToken = automountServiceAccountToken; + _resultValue.imagePullSecrets = imagePullSecrets; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.secrets = secrets; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjection.java index 9620fe96d5..3d24508863 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjection.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +74,30 @@ public Builder(ServiceAccountTokenProjection defaults) { @CustomType.Setter public Builder audience(@Nullable String audience) { + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("ServiceAccountTokenProjection", "path"); + } + this.path = path; return this; } public ServiceAccountTokenProjection build() { - final var o = new ServiceAccountTokenProjection(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - o.path = path; - return o; + final var _resultValue = new ServiceAccountTokenProjection(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjectionPatch.java index 061a3c4c2a..fbdb56c4cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceAccountTokenProjectionPatch.java @@ -73,25 +73,28 @@ public Builder(ServiceAccountTokenProjectionPatch defaults) { @CustomType.Setter public Builder audience(@Nullable String audience) { + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } public ServiceAccountTokenProjectionPatch build() { - final var o = new ServiceAccountTokenProjectionPatch(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - o.path = path; - return o; + final var _resultValue = new ServiceAccountTokenProjectionPatch(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + _resultValue.path = path; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePort.java index 4ddcaba695..536d9be4fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePort.java @@ -5,6 +5,7 @@ import com.pulumi.core.Either; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -134,43 +135,51 @@ public Builder(ServicePort defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodePort(@Nullable Integer nodePort) { + this.nodePort = nodePort; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("ServicePort", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } @CustomType.Setter public Builder targetPort(@Nullable Either targetPort) { + this.targetPort = targetPort; return this; } public ServicePort build() { - final var o = new ServicePort(); - o.appProtocol = appProtocol; - o.name = name; - o.nodePort = nodePort; - o.port = port; - o.protocol = protocol; - o.targetPort = targetPort; - return o; + final var _resultValue = new ServicePort(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.nodePort = nodePort; + _resultValue.port = port; + _resultValue.protocol = protocol; + _resultValue.targetPort = targetPort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePortPatch.java index 6d3b72cc9f..d77276d92a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServicePortPatch.java @@ -134,43 +134,49 @@ public Builder(ServicePortPatch defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodePort(@Nullable Integer nodePort) { + this.nodePort = nodePort; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } @CustomType.Setter public Builder targetPort(@Nullable Either targetPort) { + this.targetPort = targetPort; return this; } public ServicePortPatch build() { - final var o = new ServicePortPatch(); - o.appProtocol = appProtocol; - o.name = name; - o.nodePort = nodePort; - o.port = port; - o.protocol = protocol; - o.targetPort = targetPort; - return o; + final var _resultValue = new ServicePortPatch(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.nodePort = nodePort; + _resultValue.port = port; + _resultValue.protocol = protocol; + _resultValue.targetPort = targetPort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpec.java index 94ef8a8476..b52e6b118d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpec.java @@ -352,16 +352,19 @@ public Builder(ServiceSpec defaults) { @CustomType.Setter public Builder allocateLoadBalancerNodePorts(@Nullable Boolean allocateLoadBalancerNodePorts) { + this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; return this; } @CustomType.Setter public Builder clusterIP(@Nullable String clusterIP) { + this.clusterIP = clusterIP; return this; } @CustomType.Setter public Builder clusterIPs(@Nullable List clusterIPs) { + this.clusterIPs = clusterIPs; return this; } @@ -370,6 +373,7 @@ public Builder clusterIPs(String... clusterIPs) { } @CustomType.Setter public Builder externalIPs(@Nullable List externalIPs) { + this.externalIPs = externalIPs; return this; } @@ -378,26 +382,31 @@ public Builder externalIPs(String... externalIPs) { } @CustomType.Setter public Builder externalName(@Nullable String externalName) { + this.externalName = externalName; return this; } @CustomType.Setter public Builder externalTrafficPolicy(@Nullable String externalTrafficPolicy) { + this.externalTrafficPolicy = externalTrafficPolicy; return this; } @CustomType.Setter public Builder healthCheckNodePort(@Nullable Integer healthCheckNodePort) { + this.healthCheckNodePort = healthCheckNodePort; return this; } @CustomType.Setter public Builder internalTrafficPolicy(@Nullable String internalTrafficPolicy) { + this.internalTrafficPolicy = internalTrafficPolicy; return this; } @CustomType.Setter public Builder ipFamilies(@Nullable List ipFamilies) { + this.ipFamilies = ipFamilies; return this; } @@ -406,26 +415,31 @@ public Builder ipFamilies(String... ipFamilies) { } @CustomType.Setter public Builder ipFamily(@Nullable String ipFamily) { + this.ipFamily = ipFamily; return this; } @CustomType.Setter public Builder ipFamilyPolicy(@Nullable String ipFamilyPolicy) { + this.ipFamilyPolicy = ipFamilyPolicy; return this; } @CustomType.Setter public Builder loadBalancerClass(@Nullable String loadBalancerClass) { + this.loadBalancerClass = loadBalancerClass; return this; } @CustomType.Setter public Builder loadBalancerIP(@Nullable String loadBalancerIP) { + this.loadBalancerIP = loadBalancerIP; return this; } @CustomType.Setter public Builder loadBalancerSourceRanges(@Nullable List loadBalancerSourceRanges) { + this.loadBalancerSourceRanges = loadBalancerSourceRanges; return this; } @@ -434,6 +448,7 @@ public Builder loadBalancerSourceRanges(String... loadBalancerSourceRanges) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -442,26 +457,31 @@ public Builder ports(ServicePort... ports) { } @CustomType.Setter public Builder publishNotReadyAddresses(@Nullable Boolean publishNotReadyAddresses) { + this.publishNotReadyAddresses = publishNotReadyAddresses; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder sessionAffinity(@Nullable String sessionAffinity) { + this.sessionAffinity = sessionAffinity; return this; } @CustomType.Setter public Builder sessionAffinityConfig(@Nullable SessionAffinityConfig sessionAffinityConfig) { + this.sessionAffinityConfig = sessionAffinityConfig; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -470,39 +490,41 @@ public Builder topologyKeys(String... topologyKeys) { } @CustomType.Setter public Builder trafficDistribution(@Nullable String trafficDistribution) { + this.trafficDistribution = trafficDistribution; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ServiceSpec build() { - final var o = new ServiceSpec(); - o.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; - o.clusterIP = clusterIP; - o.clusterIPs = clusterIPs; - o.externalIPs = externalIPs; - o.externalName = externalName; - o.externalTrafficPolicy = externalTrafficPolicy; - o.healthCheckNodePort = healthCheckNodePort; - o.internalTrafficPolicy = internalTrafficPolicy; - o.ipFamilies = ipFamilies; - o.ipFamily = ipFamily; - o.ipFamilyPolicy = ipFamilyPolicy; - o.loadBalancerClass = loadBalancerClass; - o.loadBalancerIP = loadBalancerIP; - o.loadBalancerSourceRanges = loadBalancerSourceRanges; - o.ports = ports; - o.publishNotReadyAddresses = publishNotReadyAddresses; - o.selector = selector; - o.sessionAffinity = sessionAffinity; - o.sessionAffinityConfig = sessionAffinityConfig; - o.topologyKeys = topologyKeys; - o.trafficDistribution = trafficDistribution; - o.type = type; - return o; + final var _resultValue = new ServiceSpec(); + _resultValue.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; + _resultValue.clusterIP = clusterIP; + _resultValue.clusterIPs = clusterIPs; + _resultValue.externalIPs = externalIPs; + _resultValue.externalName = externalName; + _resultValue.externalTrafficPolicy = externalTrafficPolicy; + _resultValue.healthCheckNodePort = healthCheckNodePort; + _resultValue.internalTrafficPolicy = internalTrafficPolicy; + _resultValue.ipFamilies = ipFamilies; + _resultValue.ipFamily = ipFamily; + _resultValue.ipFamilyPolicy = ipFamilyPolicy; + _resultValue.loadBalancerClass = loadBalancerClass; + _resultValue.loadBalancerIP = loadBalancerIP; + _resultValue.loadBalancerSourceRanges = loadBalancerSourceRanges; + _resultValue.ports = ports; + _resultValue.publishNotReadyAddresses = publishNotReadyAddresses; + _resultValue.selector = selector; + _resultValue.sessionAffinity = sessionAffinity; + _resultValue.sessionAffinityConfig = sessionAffinityConfig; + _resultValue.topologyKeys = topologyKeys; + _resultValue.trafficDistribution = trafficDistribution; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpecPatch.java index b20d2e437b..06f2a73834 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpecPatch.java @@ -352,16 +352,19 @@ public Builder(ServiceSpecPatch defaults) { @CustomType.Setter public Builder allocateLoadBalancerNodePorts(@Nullable Boolean allocateLoadBalancerNodePorts) { + this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; return this; } @CustomType.Setter public Builder clusterIP(@Nullable String clusterIP) { + this.clusterIP = clusterIP; return this; } @CustomType.Setter public Builder clusterIPs(@Nullable List clusterIPs) { + this.clusterIPs = clusterIPs; return this; } @@ -370,6 +373,7 @@ public Builder clusterIPs(String... clusterIPs) { } @CustomType.Setter public Builder externalIPs(@Nullable List externalIPs) { + this.externalIPs = externalIPs; return this; } @@ -378,26 +382,31 @@ public Builder externalIPs(String... externalIPs) { } @CustomType.Setter public Builder externalName(@Nullable String externalName) { + this.externalName = externalName; return this; } @CustomType.Setter public Builder externalTrafficPolicy(@Nullable String externalTrafficPolicy) { + this.externalTrafficPolicy = externalTrafficPolicy; return this; } @CustomType.Setter public Builder healthCheckNodePort(@Nullable Integer healthCheckNodePort) { + this.healthCheckNodePort = healthCheckNodePort; return this; } @CustomType.Setter public Builder internalTrafficPolicy(@Nullable String internalTrafficPolicy) { + this.internalTrafficPolicy = internalTrafficPolicy; return this; } @CustomType.Setter public Builder ipFamilies(@Nullable List ipFamilies) { + this.ipFamilies = ipFamilies; return this; } @@ -406,26 +415,31 @@ public Builder ipFamilies(String... ipFamilies) { } @CustomType.Setter public Builder ipFamily(@Nullable String ipFamily) { + this.ipFamily = ipFamily; return this; } @CustomType.Setter public Builder ipFamilyPolicy(@Nullable String ipFamilyPolicy) { + this.ipFamilyPolicy = ipFamilyPolicy; return this; } @CustomType.Setter public Builder loadBalancerClass(@Nullable String loadBalancerClass) { + this.loadBalancerClass = loadBalancerClass; return this; } @CustomType.Setter public Builder loadBalancerIP(@Nullable String loadBalancerIP) { + this.loadBalancerIP = loadBalancerIP; return this; } @CustomType.Setter public Builder loadBalancerSourceRanges(@Nullable List loadBalancerSourceRanges) { + this.loadBalancerSourceRanges = loadBalancerSourceRanges; return this; } @@ -434,6 +448,7 @@ public Builder loadBalancerSourceRanges(String... loadBalancerSourceRanges) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -442,26 +457,31 @@ public Builder ports(ServicePortPatch... ports) { } @CustomType.Setter public Builder publishNotReadyAddresses(@Nullable Boolean publishNotReadyAddresses) { + this.publishNotReadyAddresses = publishNotReadyAddresses; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder sessionAffinity(@Nullable String sessionAffinity) { + this.sessionAffinity = sessionAffinity; return this; } @CustomType.Setter public Builder sessionAffinityConfig(@Nullable SessionAffinityConfigPatch sessionAffinityConfig) { + this.sessionAffinityConfig = sessionAffinityConfig; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -470,39 +490,41 @@ public Builder topologyKeys(String... topologyKeys) { } @CustomType.Setter public Builder trafficDistribution(@Nullable String trafficDistribution) { + this.trafficDistribution = trafficDistribution; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ServiceSpecPatch build() { - final var o = new ServiceSpecPatch(); - o.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; - o.clusterIP = clusterIP; - o.clusterIPs = clusterIPs; - o.externalIPs = externalIPs; - o.externalName = externalName; - o.externalTrafficPolicy = externalTrafficPolicy; - o.healthCheckNodePort = healthCheckNodePort; - o.internalTrafficPolicy = internalTrafficPolicy; - o.ipFamilies = ipFamilies; - o.ipFamily = ipFamily; - o.ipFamilyPolicy = ipFamilyPolicy; - o.loadBalancerClass = loadBalancerClass; - o.loadBalancerIP = loadBalancerIP; - o.loadBalancerSourceRanges = loadBalancerSourceRanges; - o.ports = ports; - o.publishNotReadyAddresses = publishNotReadyAddresses; - o.selector = selector; - o.sessionAffinity = sessionAffinity; - o.sessionAffinityConfig = sessionAffinityConfig; - o.topologyKeys = topologyKeys; - o.trafficDistribution = trafficDistribution; - o.type = type; - return o; + final var _resultValue = new ServiceSpecPatch(); + _resultValue.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; + _resultValue.clusterIP = clusterIP; + _resultValue.clusterIPs = clusterIPs; + _resultValue.externalIPs = externalIPs; + _resultValue.externalName = externalName; + _resultValue.externalTrafficPolicy = externalTrafficPolicy; + _resultValue.healthCheckNodePort = healthCheckNodePort; + _resultValue.internalTrafficPolicy = internalTrafficPolicy; + _resultValue.ipFamilies = ipFamilies; + _resultValue.ipFamily = ipFamily; + _resultValue.ipFamilyPolicy = ipFamilyPolicy; + _resultValue.loadBalancerClass = loadBalancerClass; + _resultValue.loadBalancerIP = loadBalancerIP; + _resultValue.loadBalancerSourceRanges = loadBalancerSourceRanges; + _resultValue.ports = ports; + _resultValue.publishNotReadyAddresses = publishNotReadyAddresses; + _resultValue.selector = selector; + _resultValue.sessionAffinity = sessionAffinity; + _resultValue.sessionAffinityConfig = sessionAffinityConfig; + _resultValue.topologyKeys = topologyKeys; + _resultValue.trafficDistribution = trafficDistribution; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatus.java index afa945e7e0..f7697fe57b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatus.java @@ -60,6 +60,7 @@ public Builder(ServiceStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(Condition... conditions) { } @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public ServiceStatus build() { - final var o = new ServiceStatus(); - o.conditions = conditions; - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new ServiceStatus(); + _resultValue.conditions = conditions; + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatusPatch.java index 6467fd3bd0..b13fcaac0b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceStatusPatch.java @@ -60,6 +60,7 @@ public Builder(ServiceStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(ConditionPatch... conditions) { } @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatusPatch loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public ServiceStatusPatch build() { - final var o = new ServiceStatusPatch(); - o.conditions = conditions; - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new ServiceStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfig.java index 161f1d5ca9..c3a85c2365 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfig.java @@ -44,13 +44,14 @@ public Builder(SessionAffinityConfig defaults) { @CustomType.Setter public Builder clientIP(@Nullable ClientIPConfig clientIP) { + this.clientIP = clientIP; return this; } public SessionAffinityConfig build() { - final var o = new SessionAffinityConfig(); - o.clientIP = clientIP; - return o; + final var _resultValue = new SessionAffinityConfig(); + _resultValue.clientIP = clientIP; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfigPatch.java index db36b18e70..5c1d7a1236 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SessionAffinityConfigPatch.java @@ -44,13 +44,14 @@ public Builder(SessionAffinityConfigPatch defaults) { @CustomType.Setter public Builder clientIP(@Nullable ClientIPConfigPatch clientIP) { + this.clientIP = clientIP; return this; } public SessionAffinityConfigPatch build() { - final var o = new SessionAffinityConfigPatch(); - o.clientIP = clientIP; - return o; + final var _resultValue = new SessionAffinityConfigPatch(); + _resultValue.clientIP = clientIP; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepAction.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepAction.java index faa6aa4553..dea93dcb96 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepAction.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepAction.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(SleepAction defaults) { @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("SleepAction", "seconds"); + } + this.seconds = seconds; return this; } public SleepAction build() { - final var o = new SleepAction(); - o.seconds = seconds; - return o; + final var _resultValue = new SleepAction(); + _resultValue.seconds = seconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepActionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepActionPatch.java index f1503b13d5..a0091de1d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepActionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SleepActionPatch.java @@ -44,13 +44,14 @@ public Builder(SleepActionPatch defaults) { @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } public SleepActionPatch build() { - final var o = new SleepActionPatch(); - o.seconds = seconds; - return o; + final var _resultValue = new SleepActionPatch(); + _resultValue.seconds = seconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSource.java index 72d9794f1c..b78541d914 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSource.java @@ -102,37 +102,42 @@ public Builder(StorageOSPersistentVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable ObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeNamespace(@Nullable String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } public StorageOSPersistentVolumeSource build() { - final var o = new StorageOSPersistentVolumeSource(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeName = volumeName; - o.volumeNamespace = volumeNamespace; - return o; + final var _resultValue = new StorageOSPersistentVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeName = volumeName; + _resultValue.volumeNamespace = volumeNamespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSourcePatch.java index 0b608c5484..155f9ec304 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSPersistentVolumeSourcePatch.java @@ -102,37 +102,42 @@ public Builder(StorageOSPersistentVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable ObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeNamespace(@Nullable String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } public StorageOSPersistentVolumeSourcePatch build() { - final var o = new StorageOSPersistentVolumeSourcePatch(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeName = volumeName; - o.volumeNamespace = volumeNamespace; - return o; + final var _resultValue = new StorageOSPersistentVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeName = volumeName; + _resultValue.volumeNamespace = volumeNamespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSource.java index 23832f336e..ca95e19f82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSource.java @@ -102,37 +102,42 @@ public Builder(StorageOSVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeNamespace(@Nullable String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } public StorageOSVolumeSource build() { - final var o = new StorageOSVolumeSource(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeName = volumeName; - o.volumeNamespace = volumeNamespace; - return o; + final var _resultValue = new StorageOSVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeName = volumeName; + _resultValue.volumeNamespace = volumeNamespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSourcePatch.java index 88464d7b59..4c3b7af88e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/StorageOSVolumeSourcePatch.java @@ -102,37 +102,42 @@ public Builder(StorageOSVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder secretRef(@Nullable LocalObjectReferencePatch secretRef) { + this.secretRef = secretRef; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeNamespace(@Nullable String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } public StorageOSVolumeSourcePatch build() { - final var o = new StorageOSVolumeSourcePatch(); - o.fsType = fsType; - o.readOnly = readOnly; - o.secretRef = secretRef; - o.volumeName = volumeName; - o.volumeNamespace = volumeNamespace; - return o; + final var _resultValue = new StorageOSVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.readOnly = readOnly; + _resultValue.secretRef = secretRef; + _resultValue.volumeName = volumeName; + _resultValue.volumeNamespace = volumeNamespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Sysctl.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Sysctl.java index 905ede8cf9..907b20622d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Sysctl.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Sysctl.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(Sysctl defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Sysctl", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("Sysctl", "value"); + } + this.value = value; return this; } public Sysctl build() { - final var o = new Sysctl(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new Sysctl(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SysctlPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SysctlPatch.java index a5b9464d90..cda1fdf2ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SysctlPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/SysctlPatch.java @@ -58,19 +58,21 @@ public Builder(SysctlPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public SysctlPatch build() { - final var o = new SysctlPatch(); - o.name = name; - o.value = value; - return o; + final var _resultValue = new SysctlPatch(); + _resultValue.name = name; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketAction.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketAction.java index c22023d09f..6b4ec33446 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketAction.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketAction.java @@ -5,6 +5,7 @@ import com.pulumi.core.Either; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -60,19 +61,23 @@ public Builder(TCPSocketAction defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder port(Either port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("TCPSocketAction", "port"); + } + this.port = port; return this; } public TCPSocketAction build() { - final var o = new TCPSocketAction(); - o.host = host; - o.port = port; - return o; + final var _resultValue = new TCPSocketAction(); + _resultValue.host = host; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketActionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketActionPatch.java index 7eb6f89b3a..1f7c43721a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketActionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TCPSocketActionPatch.java @@ -60,19 +60,21 @@ public Builder(TCPSocketActionPatch defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } public TCPSocketActionPatch build() { - final var o = new TCPSocketActionPatch(); - o.host = host; - o.port = port; - return o; + final var _resultValue = new TCPSocketActionPatch(); + _resultValue.host = host; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Taint.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Taint.java index 188b0ac809..2d0361af27 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Taint.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Taint.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +87,39 @@ public Builder(Taint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("Taint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("Taint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(@Nullable String timeAdded) { + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public Taint build() { - final var o = new Taint(); - o.effect = effect; - o.key = key; - o.timeAdded = timeAdded; - o.value = value; - return o; + final var _resultValue = new Taint(); + _resultValue.effect = effect; + _resultValue.key = key; + _resultValue.timeAdded = timeAdded; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TaintPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TaintPatch.java index 922e9a5599..7cde873f95 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TaintPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TaintPatch.java @@ -86,31 +86,35 @@ public Builder(TaintPatch defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(@Nullable String timeAdded) { + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public TaintPatch build() { - final var o = new TaintPatch(); - o.effect = effect; - o.key = key; - o.timeAdded = timeAdded; - o.value = value; - return o; + final var _resultValue = new TaintPatch(); + _resultValue.effect = effect; + _resultValue.key = key; + _resultValue.timeAdded = timeAdded; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Toleration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Toleration.java index 73b4b98ce4..42d478bc95 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Toleration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Toleration.java @@ -101,37 +101,42 @@ public Builder(Toleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder tolerationSeconds(@Nullable Integer tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public Toleration build() { - final var o = new Toleration(); - o.effect = effect; - o.key = key; - o.operator = operator; - o.tolerationSeconds = tolerationSeconds; - o.value = value; - return o; + final var _resultValue = new Toleration(); + _resultValue.effect = effect; + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.tolerationSeconds = tolerationSeconds; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TolerationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TolerationPatch.java index f09409bdb8..cc017143ac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TolerationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TolerationPatch.java @@ -101,37 +101,42 @@ public Builder(TolerationPatch defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder tolerationSeconds(@Nullable Integer tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } public TolerationPatch build() { - final var o = new TolerationPatch(); - o.effect = effect; - o.key = key; - o.operator = operator; - o.tolerationSeconds = tolerationSeconds; - o.value = value; - return o; + final var _resultValue = new TolerationPatch(); + _resultValue.effect = effect; + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.tolerationSeconds = tolerationSeconds; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirement.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirement.java index 09f83339b8..d7ada9d462 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirement.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,22 +58,28 @@ public Builder(TopologySelectorLabelRequirement defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("TopologySelectorLabelRequirement", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("TopologySelectorLabelRequirement", "values"); + } + this.values = values; return this; } public Builder values(String... values) { return values(List.of(values)); } public TopologySelectorLabelRequirement build() { - final var o = new TopologySelectorLabelRequirement(); - o.key = key; - o.values = values; - return o; + final var _resultValue = new TopologySelectorLabelRequirement(); + _resultValue.key = key; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirementPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirementPatch.java index 8e96960c4a..f7de53c12c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirementPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorLabelRequirementPatch.java @@ -59,11 +59,13 @@ public Builder(TopologySelectorLabelRequirementPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -71,10 +73,10 @@ public Builder values(String... values) { return values(List.of(values)); } public TopologySelectorLabelRequirementPatch build() { - final var o = new TopologySelectorLabelRequirementPatch(); - o.key = key; - o.values = values; - return o; + final var _resultValue = new TopologySelectorLabelRequirementPatch(); + _resultValue.key = key; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTerm.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTerm.java index edec53e2bf..27fb76b469 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTerm.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTerm.java @@ -44,6 +44,7 @@ public Builder(TopologySelectorTerm defaults) { @CustomType.Setter public Builder matchLabelExpressions(@Nullable List matchLabelExpressions) { + this.matchLabelExpressions = matchLabelExpressions; return this; } @@ -51,9 +52,9 @@ public Builder matchLabelExpressions(TopologySelectorLabelRequirement... matchLa return matchLabelExpressions(List.of(matchLabelExpressions)); } public TopologySelectorTerm build() { - final var o = new TopologySelectorTerm(); - o.matchLabelExpressions = matchLabelExpressions; - return o; + final var _resultValue = new TopologySelectorTerm(); + _resultValue.matchLabelExpressions = matchLabelExpressions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTermPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTermPatch.java index 96cd519fe8..5502d078d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTermPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySelectorTermPatch.java @@ -44,6 +44,7 @@ public Builder(TopologySelectorTermPatch defaults) { @CustomType.Setter public Builder matchLabelExpressions(@Nullable List matchLabelExpressions) { + this.matchLabelExpressions = matchLabelExpressions; return this; } @@ -51,9 +52,9 @@ public Builder matchLabelExpressions(TopologySelectorLabelRequirementPatch... ma return matchLabelExpressions(List.of(matchLabelExpressions)); } public TopologySelectorTermPatch build() { - final var o = new TopologySelectorTermPatch(); - o.matchLabelExpressions = matchLabelExpressions; - return o; + final var _resultValue = new TopologySelectorTermPatch(); + _resultValue.matchLabelExpressions = matchLabelExpressions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraint.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraint.java index f06cf05b2d..27f21b9d9c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraint.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraint.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import java.lang.Integer; import java.lang.String; @@ -167,11 +168,13 @@ public Builder(TopologySpreadConstraint defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelector labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder matchLabelKeys(@Nullable List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; return this; } @@ -180,45 +183,57 @@ public Builder matchLabelKeys(String... matchLabelKeys) { } @CustomType.Setter public Builder maxSkew(Integer maxSkew) { - this.maxSkew = Objects.requireNonNull(maxSkew); + if (maxSkew == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraint", "maxSkew"); + } + this.maxSkew = maxSkew; return this; } @CustomType.Setter public Builder minDomains(@Nullable Integer minDomains) { + this.minDomains = minDomains; return this; } @CustomType.Setter public Builder nodeAffinityPolicy(@Nullable String nodeAffinityPolicy) { + this.nodeAffinityPolicy = nodeAffinityPolicy; return this; } @CustomType.Setter public Builder nodeTaintsPolicy(@Nullable String nodeTaintsPolicy) { + this.nodeTaintsPolicy = nodeTaintsPolicy; return this; } @CustomType.Setter public Builder topologyKey(String topologyKey) { - this.topologyKey = Objects.requireNonNull(topologyKey); + if (topologyKey == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraint", "topologyKey"); + } + this.topologyKey = topologyKey; return this; } @CustomType.Setter public Builder whenUnsatisfiable(String whenUnsatisfiable) { - this.whenUnsatisfiable = Objects.requireNonNull(whenUnsatisfiable); + if (whenUnsatisfiable == null) { + throw new MissingRequiredPropertyException("TopologySpreadConstraint", "whenUnsatisfiable"); + } + this.whenUnsatisfiable = whenUnsatisfiable; return this; } public TopologySpreadConstraint build() { - final var o = new TopologySpreadConstraint(); - o.labelSelector = labelSelector; - o.matchLabelKeys = matchLabelKeys; - o.maxSkew = maxSkew; - o.minDomains = minDomains; - o.nodeAffinityPolicy = nodeAffinityPolicy; - o.nodeTaintsPolicy = nodeTaintsPolicy; - o.topologyKey = topologyKey; - o.whenUnsatisfiable = whenUnsatisfiable; - return o; + final var _resultValue = new TopologySpreadConstraint(); + _resultValue.labelSelector = labelSelector; + _resultValue.matchLabelKeys = matchLabelKeys; + _resultValue.maxSkew = maxSkew; + _resultValue.minDomains = minDomains; + _resultValue.nodeAffinityPolicy = nodeAffinityPolicy; + _resultValue.nodeTaintsPolicy = nodeTaintsPolicy; + _resultValue.topologyKey = topologyKey; + _resultValue.whenUnsatisfiable = whenUnsatisfiable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraintPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraintPatch.java index 1e7720b865..338f2bf722 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraintPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TopologySpreadConstraintPatch.java @@ -167,11 +167,13 @@ public Builder(TopologySpreadConstraintPatch defaults) { @CustomType.Setter public Builder labelSelector(@Nullable LabelSelectorPatch labelSelector) { + this.labelSelector = labelSelector; return this; } @CustomType.Setter public Builder matchLabelKeys(@Nullable List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; return this; } @@ -180,45 +182,51 @@ public Builder matchLabelKeys(String... matchLabelKeys) { } @CustomType.Setter public Builder maxSkew(@Nullable Integer maxSkew) { + this.maxSkew = maxSkew; return this; } @CustomType.Setter public Builder minDomains(@Nullable Integer minDomains) { + this.minDomains = minDomains; return this; } @CustomType.Setter public Builder nodeAffinityPolicy(@Nullable String nodeAffinityPolicy) { + this.nodeAffinityPolicy = nodeAffinityPolicy; return this; } @CustomType.Setter public Builder nodeTaintsPolicy(@Nullable String nodeTaintsPolicy) { + this.nodeTaintsPolicy = nodeTaintsPolicy; return this; } @CustomType.Setter public Builder topologyKey(@Nullable String topologyKey) { + this.topologyKey = topologyKey; return this; } @CustomType.Setter public Builder whenUnsatisfiable(@Nullable String whenUnsatisfiable) { + this.whenUnsatisfiable = whenUnsatisfiable; return this; } public TopologySpreadConstraintPatch build() { - final var o = new TopologySpreadConstraintPatch(); - o.labelSelector = labelSelector; - o.matchLabelKeys = matchLabelKeys; - o.maxSkew = maxSkew; - o.minDomains = minDomains; - o.nodeAffinityPolicy = nodeAffinityPolicy; - o.nodeTaintsPolicy = nodeTaintsPolicy; - o.topologyKey = topologyKey; - o.whenUnsatisfiable = whenUnsatisfiable; - return o; + final var _resultValue = new TopologySpreadConstraintPatch(); + _resultValue.labelSelector = labelSelector; + _resultValue.matchLabelKeys = matchLabelKeys; + _resultValue.maxSkew = maxSkew; + _resultValue.minDomains = minDomains; + _resultValue.nodeAffinityPolicy = nodeAffinityPolicy; + _resultValue.nodeTaintsPolicy = nodeTaintsPolicy; + _resultValue.topologyKey = topologyKey; + _resultValue.whenUnsatisfiable = whenUnsatisfiable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReference.java index 82399c564d..27ccf239ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,25 +73,32 @@ public Builder(TypedLocalObjectReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("TypedLocalObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("TypedLocalObjectReference", "name"); + } + this.name = name; return this; } public TypedLocalObjectReference build() { - final var o = new TypedLocalObjectReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new TypedLocalObjectReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReferencePatch.java index dab7677693..27bcfbd9fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedLocalObjectReferencePatch.java @@ -72,25 +72,28 @@ public Builder(TypedLocalObjectReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public TypedLocalObjectReferencePatch build() { - final var o = new TypedLocalObjectReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new TypedLocalObjectReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReference.java index 1d535c1781..0f6799acae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +87,39 @@ public Builder(TypedObjectReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("TypedObjectReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("TypedObjectReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public TypedObjectReference build() { - final var o = new TypedObjectReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new TypedObjectReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReferencePatch.java index 72389d4d8b..39dedc6a4b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/TypedObjectReferencePatch.java @@ -86,31 +86,35 @@ public Builder(TypedObjectReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public TypedObjectReferencePatch build() { - final var o = new TypedObjectReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new TypedObjectReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Volume.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Volume.java index 6727532f0c..ac01c5bd57 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Volume.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Volume.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.AWSElasticBlockStoreVolumeSource; import com.pulumi.kubernetes.core.v1.outputs.AzureDiskVolumeSource; import com.pulumi.kubernetes.core.v1.outputs.AzureFileVolumeSource; @@ -505,187 +506,219 @@ public Builder(Volume defaults) { @CustomType.Setter public Builder awsElasticBlockStore(@Nullable AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } @CustomType.Setter public Builder azureDisk(@Nullable AzureDiskVolumeSource azureDisk) { + this.azureDisk = azureDisk; return this; } @CustomType.Setter public Builder azureFile(@Nullable AzureFileVolumeSource azureFile) { + this.azureFile = azureFile; return this; } @CustomType.Setter public Builder cephfs(@Nullable CephFSVolumeSource cephfs) { + this.cephfs = cephfs; return this; } @CustomType.Setter public Builder cinder(@Nullable CinderVolumeSource cinder) { + this.cinder = cinder; return this; } @CustomType.Setter public Builder configMap(@Nullable ConfigMapVolumeSource configMap) { + this.configMap = configMap; return this; } @CustomType.Setter public Builder csi(@Nullable CSIVolumeSource csi) { + this.csi = csi; return this; } @CustomType.Setter public Builder downwardAPI(@Nullable DownwardAPIVolumeSource downwardAPI) { + this.downwardAPI = downwardAPI; return this; } @CustomType.Setter public Builder emptyDir(@Nullable EmptyDirVolumeSource emptyDir) { + this.emptyDir = emptyDir; return this; } @CustomType.Setter public Builder ephemeral(@Nullable EphemeralVolumeSource ephemeral) { + this.ephemeral = ephemeral; return this; } @CustomType.Setter public Builder fc(@Nullable FCVolumeSource fc) { + this.fc = fc; return this; } @CustomType.Setter public Builder flexVolume(@Nullable FlexVolumeSource flexVolume) { + this.flexVolume = flexVolume; return this; } @CustomType.Setter public Builder flocker(@Nullable FlockerVolumeSource flocker) { + this.flocker = flocker; return this; } @CustomType.Setter public Builder gcePersistentDisk(@Nullable GCEPersistentDiskVolumeSource gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } @CustomType.Setter public Builder gitRepo(@Nullable GitRepoVolumeSource gitRepo) { + this.gitRepo = gitRepo; return this; } @CustomType.Setter public Builder glusterfs(@Nullable GlusterfsVolumeSource glusterfs) { + this.glusterfs = glusterfs; return this; } @CustomType.Setter public Builder hostPath(@Nullable HostPathVolumeSource hostPath) { + this.hostPath = hostPath; return this; } @CustomType.Setter public Builder iscsi(@Nullable ISCSIVolumeSource iscsi) { + this.iscsi = iscsi; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Volume", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nfs(@Nullable NFSVolumeSource nfs) { + this.nfs = nfs; return this; } @CustomType.Setter public Builder persistentVolumeClaim(@Nullable PersistentVolumeClaimVolumeSource persistentVolumeClaim) { + this.persistentVolumeClaim = persistentVolumeClaim; return this; } @CustomType.Setter public Builder photonPersistentDisk(@Nullable PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } @CustomType.Setter public Builder portworxVolume(@Nullable PortworxVolumeSource portworxVolume) { + this.portworxVolume = portworxVolume; return this; } @CustomType.Setter public Builder projected(@Nullable ProjectedVolumeSource projected) { + this.projected = projected; return this; } @CustomType.Setter public Builder quobyte(@Nullable QuobyteVolumeSource quobyte) { + this.quobyte = quobyte; return this; } @CustomType.Setter public Builder rbd(@Nullable RBDVolumeSource rbd) { + this.rbd = rbd; return this; } @CustomType.Setter public Builder scaleIO(@Nullable ScaleIOVolumeSource scaleIO) { + this.scaleIO = scaleIO; return this; } @CustomType.Setter public Builder secret(@Nullable SecretVolumeSource secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder storageos(@Nullable StorageOSVolumeSource storageos) { + this.storageos = storageos; return this; } @CustomType.Setter public Builder vsphereVolume(@Nullable VsphereVirtualDiskVolumeSource vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } public Volume build() { - final var o = new Volume(); - o.awsElasticBlockStore = awsElasticBlockStore; - o.azureDisk = azureDisk; - o.azureFile = azureFile; - o.cephfs = cephfs; - o.cinder = cinder; - o.configMap = configMap; - o.csi = csi; - o.downwardAPI = downwardAPI; - o.emptyDir = emptyDir; - o.ephemeral = ephemeral; - o.fc = fc; - o.flexVolume = flexVolume; - o.flocker = flocker; - o.gcePersistentDisk = gcePersistentDisk; - o.gitRepo = gitRepo; - o.glusterfs = glusterfs; - o.hostPath = hostPath; - o.iscsi = iscsi; - o.name = name; - o.nfs = nfs; - o.persistentVolumeClaim = persistentVolumeClaim; - o.photonPersistentDisk = photonPersistentDisk; - o.portworxVolume = portworxVolume; - o.projected = projected; - o.quobyte = quobyte; - o.rbd = rbd; - o.scaleIO = scaleIO; - o.secret = secret; - o.storageos = storageos; - o.vsphereVolume = vsphereVolume; - return o; + final var _resultValue = new Volume(); + _resultValue.awsElasticBlockStore = awsElasticBlockStore; + _resultValue.azureDisk = azureDisk; + _resultValue.azureFile = azureFile; + _resultValue.cephfs = cephfs; + _resultValue.cinder = cinder; + _resultValue.configMap = configMap; + _resultValue.csi = csi; + _resultValue.downwardAPI = downwardAPI; + _resultValue.emptyDir = emptyDir; + _resultValue.ephemeral = ephemeral; + _resultValue.fc = fc; + _resultValue.flexVolume = flexVolume; + _resultValue.flocker = flocker; + _resultValue.gcePersistentDisk = gcePersistentDisk; + _resultValue.gitRepo = gitRepo; + _resultValue.glusterfs = glusterfs; + _resultValue.hostPath = hostPath; + _resultValue.iscsi = iscsi; + _resultValue.name = name; + _resultValue.nfs = nfs; + _resultValue.persistentVolumeClaim = persistentVolumeClaim; + _resultValue.photonPersistentDisk = photonPersistentDisk; + _resultValue.portworxVolume = portworxVolume; + _resultValue.projected = projected; + _resultValue.quobyte = quobyte; + _resultValue.rbd = rbd; + _resultValue.scaleIO = scaleIO; + _resultValue.secret = secret; + _resultValue.storageos = storageos; + _resultValue.vsphereVolume = vsphereVolume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevice.java index b80865de63..29bd294ae8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(VolumeDevice defaults) { @CustomType.Setter public Builder devicePath(String devicePath) { - this.devicePath = Objects.requireNonNull(devicePath); + if (devicePath == null) { + throw new MissingRequiredPropertyException("VolumeDevice", "devicePath"); + } + this.devicePath = devicePath; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("VolumeDevice", "name"); + } + this.name = name; return this; } public VolumeDevice build() { - final var o = new VolumeDevice(); - o.devicePath = devicePath; - o.name = name; - return o; + final var _resultValue = new VolumeDevice(); + _resultValue.devicePath = devicePath; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevicePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevicePatch.java index acd8aa3244..687796817f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevicePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeDevicePatch.java @@ -58,19 +58,21 @@ public Builder(VolumeDevicePatch defaults) { @CustomType.Setter public Builder devicePath(@Nullable String devicePath) { + this.devicePath = devicePath; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public VolumeDevicePatch build() { - final var o = new VolumeDevicePatch(); - o.devicePath = devicePath; - o.name = name; - return o; + final var _resultValue = new VolumeDevicePatch(); + _resultValue.devicePath = devicePath; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMount.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMount.java index eaaeafc6b7..babde671a0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMount.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMount.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -145,49 +146,60 @@ public Builder(VolumeMount defaults) { @CustomType.Setter public Builder mountPath(String mountPath) { - this.mountPath = Objects.requireNonNull(mountPath); + if (mountPath == null) { + throw new MissingRequiredPropertyException("VolumeMount", "mountPath"); + } + this.mountPath = mountPath; return this; } @CustomType.Setter public Builder mountPropagation(@Nullable String mountPropagation) { + this.mountPropagation = mountPropagation; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("VolumeMount", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder recursiveReadOnly(@Nullable String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; return this; } @CustomType.Setter public Builder subPath(@Nullable String subPath) { + this.subPath = subPath; return this; } @CustomType.Setter public Builder subPathExpr(@Nullable String subPathExpr) { + this.subPathExpr = subPathExpr; return this; } public VolumeMount build() { - final var o = new VolumeMount(); - o.mountPath = mountPath; - o.mountPropagation = mountPropagation; - o.name = name; - o.readOnly = readOnly; - o.recursiveReadOnly = recursiveReadOnly; - o.subPath = subPath; - o.subPathExpr = subPathExpr; - return o; + final var _resultValue = new VolumeMount(); + _resultValue.mountPath = mountPath; + _resultValue.mountPropagation = mountPropagation; + _resultValue.name = name; + _resultValue.readOnly = readOnly; + _resultValue.recursiveReadOnly = recursiveReadOnly; + _resultValue.subPath = subPath; + _resultValue.subPathExpr = subPathExpr; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountPatch.java index 1d321b09c8..2cf6062575 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountPatch.java @@ -145,49 +145,56 @@ public Builder(VolumeMountPatch defaults) { @CustomType.Setter public Builder mountPath(@Nullable String mountPath) { + this.mountPath = mountPath; return this; } @CustomType.Setter public Builder mountPropagation(@Nullable String mountPropagation) { + this.mountPropagation = mountPropagation; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder recursiveReadOnly(@Nullable String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; return this; } @CustomType.Setter public Builder subPath(@Nullable String subPath) { + this.subPath = subPath; return this; } @CustomType.Setter public Builder subPathExpr(@Nullable String subPathExpr) { + this.subPathExpr = subPathExpr; return this; } public VolumeMountPatch build() { - final var o = new VolumeMountPatch(); - o.mountPath = mountPath; - o.mountPropagation = mountPropagation; - o.name = name; - o.readOnly = readOnly; - o.recursiveReadOnly = recursiveReadOnly; - o.subPath = subPath; - o.subPathExpr = subPathExpr; - return o; + final var _resultValue = new VolumeMountPatch(); + _resultValue.mountPath = mountPath; + _resultValue.mountPropagation = mountPropagation; + _resultValue.name = name; + _resultValue.readOnly = readOnly; + _resultValue.recursiveReadOnly = recursiveReadOnly; + _resultValue.subPath = subPath; + _resultValue.subPathExpr = subPathExpr; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatus.java index dd39156035..0888b0895d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +88,39 @@ public Builder(VolumeMountStatus defaults) { @CustomType.Setter public Builder mountPath(String mountPath) { - this.mountPath = Objects.requireNonNull(mountPath); + if (mountPath == null) { + throw new MissingRequiredPropertyException("VolumeMountStatus", "mountPath"); + } + this.mountPath = mountPath; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("VolumeMountStatus", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder recursiveReadOnly(@Nullable String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; return this; } public VolumeMountStatus build() { - final var o = new VolumeMountStatus(); - o.mountPath = mountPath; - o.name = name; - o.readOnly = readOnly; - o.recursiveReadOnly = recursiveReadOnly; - return o; + final var _resultValue = new VolumeMountStatus(); + _resultValue.mountPath = mountPath; + _resultValue.name = name; + _resultValue.readOnly = readOnly; + _resultValue.recursiveReadOnly = recursiveReadOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatusPatch.java index 437d1971ad..a7a21f9640 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeMountStatusPatch.java @@ -87,31 +87,35 @@ public Builder(VolumeMountStatusPatch defaults) { @CustomType.Setter public Builder mountPath(@Nullable String mountPath) { + this.mountPath = mountPath; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } @CustomType.Setter public Builder recursiveReadOnly(@Nullable String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; return this; } public VolumeMountStatusPatch build() { - final var o = new VolumeMountStatusPatch(); - o.mountPath = mountPath; - o.name = name; - o.readOnly = readOnly; - o.recursiveReadOnly = recursiveReadOnly; - return o; + final var _resultValue = new VolumeMountStatusPatch(); + _resultValue.mountPath = mountPath; + _resultValue.name = name; + _resultValue.readOnly = readOnly; + _resultValue.recursiveReadOnly = recursiveReadOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinity.java index 64632c56ea..5063301604 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinity.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeAffinity defaults) { @CustomType.Setter public Builder required(@Nullable NodeSelector required) { + this.required = required; return this; } public VolumeNodeAffinity build() { - final var o = new VolumeNodeAffinity(); - o.required = required; - return o; + final var _resultValue = new VolumeNodeAffinity(); + _resultValue.required = required; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinityPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinityPatch.java index cba368790c..203f2e4f25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinityPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeNodeAffinityPatch.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeAffinityPatch defaults) { @CustomType.Setter public Builder required(@Nullable NodeSelectorPatch required) { + this.required = required; return this; } public VolumeNodeAffinityPatch build() { - final var o = new VolumeNodeAffinityPatch(); - o.required = required; - return o; + final var _resultValue = new VolumeNodeAffinityPatch(); + _resultValue.required = required; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumePatch.java index 3c29612629..5c33d0109d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumePatch.java @@ -505,187 +505,217 @@ public Builder(VolumePatch defaults) { @CustomType.Setter public Builder awsElasticBlockStore(@Nullable AWSElasticBlockStoreVolumeSourcePatch awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } @CustomType.Setter public Builder azureDisk(@Nullable AzureDiskVolumeSourcePatch azureDisk) { + this.azureDisk = azureDisk; return this; } @CustomType.Setter public Builder azureFile(@Nullable AzureFileVolumeSourcePatch azureFile) { + this.azureFile = azureFile; return this; } @CustomType.Setter public Builder cephfs(@Nullable CephFSVolumeSourcePatch cephfs) { + this.cephfs = cephfs; return this; } @CustomType.Setter public Builder cinder(@Nullable CinderVolumeSourcePatch cinder) { + this.cinder = cinder; return this; } @CustomType.Setter public Builder configMap(@Nullable ConfigMapVolumeSourcePatch configMap) { + this.configMap = configMap; return this; } @CustomType.Setter public Builder csi(@Nullable CSIVolumeSourcePatch csi) { + this.csi = csi; return this; } @CustomType.Setter public Builder downwardAPI(@Nullable DownwardAPIVolumeSourcePatch downwardAPI) { + this.downwardAPI = downwardAPI; return this; } @CustomType.Setter public Builder emptyDir(@Nullable EmptyDirVolumeSourcePatch emptyDir) { + this.emptyDir = emptyDir; return this; } @CustomType.Setter public Builder ephemeral(@Nullable EphemeralVolumeSourcePatch ephemeral) { + this.ephemeral = ephemeral; return this; } @CustomType.Setter public Builder fc(@Nullable FCVolumeSourcePatch fc) { + this.fc = fc; return this; } @CustomType.Setter public Builder flexVolume(@Nullable FlexVolumeSourcePatch flexVolume) { + this.flexVolume = flexVolume; return this; } @CustomType.Setter public Builder flocker(@Nullable FlockerVolumeSourcePatch flocker) { + this.flocker = flocker; return this; } @CustomType.Setter public Builder gcePersistentDisk(@Nullable GCEPersistentDiskVolumeSourcePatch gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } @CustomType.Setter public Builder gitRepo(@Nullable GitRepoVolumeSourcePatch gitRepo) { + this.gitRepo = gitRepo; return this; } @CustomType.Setter public Builder glusterfs(@Nullable GlusterfsVolumeSourcePatch glusterfs) { + this.glusterfs = glusterfs; return this; } @CustomType.Setter public Builder hostPath(@Nullable HostPathVolumeSourcePatch hostPath) { + this.hostPath = hostPath; return this; } @CustomType.Setter public Builder iscsi(@Nullable ISCSIVolumeSourcePatch iscsi) { + this.iscsi = iscsi; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nfs(@Nullable NFSVolumeSourcePatch nfs) { + this.nfs = nfs; return this; } @CustomType.Setter public Builder persistentVolumeClaim(@Nullable PersistentVolumeClaimVolumeSourcePatch persistentVolumeClaim) { + this.persistentVolumeClaim = persistentVolumeClaim; return this; } @CustomType.Setter public Builder photonPersistentDisk(@Nullable PhotonPersistentDiskVolumeSourcePatch photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } @CustomType.Setter public Builder portworxVolume(@Nullable PortworxVolumeSourcePatch portworxVolume) { + this.portworxVolume = portworxVolume; return this; } @CustomType.Setter public Builder projected(@Nullable ProjectedVolumeSourcePatch projected) { + this.projected = projected; return this; } @CustomType.Setter public Builder quobyte(@Nullable QuobyteVolumeSourcePatch quobyte) { + this.quobyte = quobyte; return this; } @CustomType.Setter public Builder rbd(@Nullable RBDVolumeSourcePatch rbd) { + this.rbd = rbd; return this; } @CustomType.Setter public Builder scaleIO(@Nullable ScaleIOVolumeSourcePatch scaleIO) { + this.scaleIO = scaleIO; return this; } @CustomType.Setter public Builder secret(@Nullable SecretVolumeSourcePatch secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder storageos(@Nullable StorageOSVolumeSourcePatch storageos) { + this.storageos = storageos; return this; } @CustomType.Setter public Builder vsphereVolume(@Nullable VsphereVirtualDiskVolumeSourcePatch vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } public VolumePatch build() { - final var o = new VolumePatch(); - o.awsElasticBlockStore = awsElasticBlockStore; - o.azureDisk = azureDisk; - o.azureFile = azureFile; - o.cephfs = cephfs; - o.cinder = cinder; - o.configMap = configMap; - o.csi = csi; - o.downwardAPI = downwardAPI; - o.emptyDir = emptyDir; - o.ephemeral = ephemeral; - o.fc = fc; - o.flexVolume = flexVolume; - o.flocker = flocker; - o.gcePersistentDisk = gcePersistentDisk; - o.gitRepo = gitRepo; - o.glusterfs = glusterfs; - o.hostPath = hostPath; - o.iscsi = iscsi; - o.name = name; - o.nfs = nfs; - o.persistentVolumeClaim = persistentVolumeClaim; - o.photonPersistentDisk = photonPersistentDisk; - o.portworxVolume = portworxVolume; - o.projected = projected; - o.quobyte = quobyte; - o.rbd = rbd; - o.scaleIO = scaleIO; - o.secret = secret; - o.storageos = storageos; - o.vsphereVolume = vsphereVolume; - return o; + final var _resultValue = new VolumePatch(); + _resultValue.awsElasticBlockStore = awsElasticBlockStore; + _resultValue.azureDisk = azureDisk; + _resultValue.azureFile = azureFile; + _resultValue.cephfs = cephfs; + _resultValue.cinder = cinder; + _resultValue.configMap = configMap; + _resultValue.csi = csi; + _resultValue.downwardAPI = downwardAPI; + _resultValue.emptyDir = emptyDir; + _resultValue.ephemeral = ephemeral; + _resultValue.fc = fc; + _resultValue.flexVolume = flexVolume; + _resultValue.flocker = flocker; + _resultValue.gcePersistentDisk = gcePersistentDisk; + _resultValue.gitRepo = gitRepo; + _resultValue.glusterfs = glusterfs; + _resultValue.hostPath = hostPath; + _resultValue.iscsi = iscsi; + _resultValue.name = name; + _resultValue.nfs = nfs; + _resultValue.persistentVolumeClaim = persistentVolumeClaim; + _resultValue.photonPersistentDisk = photonPersistentDisk; + _resultValue.portworxVolume = portworxVolume; + _resultValue.projected = projected; + _resultValue.quobyte = quobyte; + _resultValue.rbd = rbd; + _resultValue.scaleIO = scaleIO; + _resultValue.secret = secret; + _resultValue.storageos = storageos; + _resultValue.vsphereVolume = vsphereVolume; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjection.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjection.java index f3c1fa902e..312b65718a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjection.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjection.java @@ -116,37 +116,42 @@ public Builder(VolumeProjection defaults) { @CustomType.Setter public Builder clusterTrustBundle(@Nullable ClusterTrustBundleProjection clusterTrustBundle) { + this.clusterTrustBundle = clusterTrustBundle; return this; } @CustomType.Setter public Builder configMap(@Nullable ConfigMapProjection configMap) { + this.configMap = configMap; return this; } @CustomType.Setter public Builder downwardAPI(@Nullable DownwardAPIProjection downwardAPI) { + this.downwardAPI = downwardAPI; return this; } @CustomType.Setter public Builder secret(@Nullable SecretProjection secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder serviceAccountToken(@Nullable ServiceAccountTokenProjection serviceAccountToken) { + this.serviceAccountToken = serviceAccountToken; return this; } public VolumeProjection build() { - final var o = new VolumeProjection(); - o.clusterTrustBundle = clusterTrustBundle; - o.configMap = configMap; - o.downwardAPI = downwardAPI; - o.secret = secret; - o.serviceAccountToken = serviceAccountToken; - return o; + final var _resultValue = new VolumeProjection(); + _resultValue.clusterTrustBundle = clusterTrustBundle; + _resultValue.configMap = configMap; + _resultValue.downwardAPI = downwardAPI; + _resultValue.secret = secret; + _resultValue.serviceAccountToken = serviceAccountToken; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjectionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjectionPatch.java index f84e80a388..0ea05feb22 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjectionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeProjectionPatch.java @@ -116,37 +116,42 @@ public Builder(VolumeProjectionPatch defaults) { @CustomType.Setter public Builder clusterTrustBundle(@Nullable ClusterTrustBundleProjectionPatch clusterTrustBundle) { + this.clusterTrustBundle = clusterTrustBundle; return this; } @CustomType.Setter public Builder configMap(@Nullable ConfigMapProjectionPatch configMap) { + this.configMap = configMap; return this; } @CustomType.Setter public Builder downwardAPI(@Nullable DownwardAPIProjectionPatch downwardAPI) { + this.downwardAPI = downwardAPI; return this; } @CustomType.Setter public Builder secret(@Nullable SecretProjectionPatch secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder serviceAccountToken(@Nullable ServiceAccountTokenProjectionPatch serviceAccountToken) { + this.serviceAccountToken = serviceAccountToken; return this; } public VolumeProjectionPatch build() { - final var o = new VolumeProjectionPatch(); - o.clusterTrustBundle = clusterTrustBundle; - o.configMap = configMap; - o.downwardAPI = downwardAPI; - o.secret = secret; - o.serviceAccountToken = serviceAccountToken; - return o; + final var _resultValue = new VolumeProjectionPatch(); + _resultValue.clusterTrustBundle = clusterTrustBundle; + _resultValue.configMap = configMap; + _resultValue.downwardAPI = downwardAPI; + _resultValue.secret = secret; + _resultValue.serviceAccountToken = serviceAccountToken; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirements.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirements.java index 51a41c9b3c..353a0ac33f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirements.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirements.java @@ -58,19 +58,21 @@ public Builder(VolumeResourceRequirements defaults) { @CustomType.Setter public Builder limits(@Nullable Map limits) { + this.limits = limits; return this; } @CustomType.Setter public Builder requests(@Nullable Map requests) { + this.requests = requests; return this; } public VolumeResourceRequirements build() { - final var o = new VolumeResourceRequirements(); - o.limits = limits; - o.requests = requests; - return o; + final var _resultValue = new VolumeResourceRequirements(); + _resultValue.limits = limits; + _resultValue.requests = requests; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirementsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirementsPatch.java index 0c5e8002db..6f7f2280d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirementsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VolumeResourceRequirementsPatch.java @@ -58,19 +58,21 @@ public Builder(VolumeResourceRequirementsPatch defaults) { @CustomType.Setter public Builder limits(@Nullable Map limits) { + this.limits = limits; return this; } @CustomType.Setter public Builder requests(@Nullable Map requests) { + this.requests = requests; return this; } public VolumeResourceRequirementsPatch build() { - final var o = new VolumeResourceRequirementsPatch(); - o.limits = limits; - o.requests = requests; - return o; + final var _resultValue = new VolumeResourceRequirementsPatch(); + _resultValue.limits = limits; + _resultValue.requests = requests; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSource.java index 7d8f6860da..03fd1a52d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSource.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.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,31 +87,37 @@ public Builder(VsphereVirtualDiskVolumeSource defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder storagePolicyID(@Nullable String storagePolicyID) { + this.storagePolicyID = storagePolicyID; return this; } @CustomType.Setter public Builder storagePolicyName(@Nullable String storagePolicyName) { + this.storagePolicyName = storagePolicyName; return this; } @CustomType.Setter public Builder volumePath(String volumePath) { - this.volumePath = Objects.requireNonNull(volumePath); + if (volumePath == null) { + throw new MissingRequiredPropertyException("VsphereVirtualDiskVolumeSource", "volumePath"); + } + this.volumePath = volumePath; return this; } public VsphereVirtualDiskVolumeSource build() { - final var o = new VsphereVirtualDiskVolumeSource(); - o.fsType = fsType; - o.storagePolicyID = storagePolicyID; - o.storagePolicyName = storagePolicyName; - o.volumePath = volumePath; - return o; + final var _resultValue = new VsphereVirtualDiskVolumeSource(); + _resultValue.fsType = fsType; + _resultValue.storagePolicyID = storagePolicyID; + _resultValue.storagePolicyName = storagePolicyName; + _resultValue.volumePath = volumePath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSourcePatch.java index 482e611ef0..58a85314d8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/VsphereVirtualDiskVolumeSourcePatch.java @@ -86,31 +86,35 @@ public Builder(VsphereVirtualDiskVolumeSourcePatch defaults) { @CustomType.Setter public Builder fsType(@Nullable String fsType) { + this.fsType = fsType; return this; } @CustomType.Setter public Builder storagePolicyID(@Nullable String storagePolicyID) { + this.storagePolicyID = storagePolicyID; return this; } @CustomType.Setter public Builder storagePolicyName(@Nullable String storagePolicyName) { + this.storagePolicyName = storagePolicyName; return this; } @CustomType.Setter public Builder volumePath(@Nullable String volumePath) { + this.volumePath = volumePath; return this; } public VsphereVirtualDiskVolumeSourcePatch build() { - final var o = new VsphereVirtualDiskVolumeSourcePatch(); - o.fsType = fsType; - o.storagePolicyID = storagePolicyID; - o.storagePolicyName = storagePolicyName; - o.volumePath = volumePath; - return o; + final var _resultValue = new VsphereVirtualDiskVolumeSourcePatch(); + _resultValue.fsType = fsType; + _resultValue.storagePolicyID = storagePolicyID; + _resultValue.storagePolicyName = storagePolicyName; + _resultValue.volumePath = volumePath; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTerm.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTerm.java index 3eaed151c4..0de381e2c5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTerm.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTerm.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.core.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PodAffinityTerm; import java.lang.Integer; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(WeightedPodAffinityTerm defaults) { @CustomType.Setter public Builder podAffinityTerm(PodAffinityTerm podAffinityTerm) { - this.podAffinityTerm = Objects.requireNonNull(podAffinityTerm); + if (podAffinityTerm == null) { + throw new MissingRequiredPropertyException("WeightedPodAffinityTerm", "podAffinityTerm"); + } + this.podAffinityTerm = podAffinityTerm; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("WeightedPodAffinityTerm", "weight"); + } + this.weight = weight; return this; } public WeightedPodAffinityTerm build() { - final var o = new WeightedPodAffinityTerm(); - o.podAffinityTerm = podAffinityTerm; - o.weight = weight; - return o; + final var _resultValue = new WeightedPodAffinityTerm(); + _resultValue.podAffinityTerm = podAffinityTerm; + _resultValue.weight = weight; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTermPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTermPatch.java index c5082bc4ea..68974add2b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTermPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WeightedPodAffinityTermPatch.java @@ -59,19 +59,21 @@ public Builder(WeightedPodAffinityTermPatch defaults) { @CustomType.Setter public Builder podAffinityTerm(@Nullable PodAffinityTermPatch podAffinityTerm) { + this.podAffinityTerm = podAffinityTerm; return this; } @CustomType.Setter public Builder weight(@Nullable Integer weight) { + this.weight = weight; return this; } public WeightedPodAffinityTermPatch build() { - final var o = new WeightedPodAffinityTermPatch(); - o.podAffinityTerm = podAffinityTerm; - o.weight = weight; - return o; + final var _resultValue = new WeightedPodAffinityTermPatch(); + _resultValue.podAffinityTerm = podAffinityTerm; + _resultValue.weight = weight; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptions.java index 12fd95372d..116fa14a46 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptions.java @@ -87,31 +87,35 @@ public Builder(WindowsSecurityContextOptions defaults) { @CustomType.Setter public Builder gmsaCredentialSpec(@Nullable String gmsaCredentialSpec) { + this.gmsaCredentialSpec = gmsaCredentialSpec; return this; } @CustomType.Setter public Builder gmsaCredentialSpecName(@Nullable String gmsaCredentialSpecName) { + this.gmsaCredentialSpecName = gmsaCredentialSpecName; return this; } @CustomType.Setter public Builder hostProcess(@Nullable Boolean hostProcess) { + this.hostProcess = hostProcess; return this; } @CustomType.Setter public Builder runAsUserName(@Nullable String runAsUserName) { + this.runAsUserName = runAsUserName; return this; } public WindowsSecurityContextOptions build() { - final var o = new WindowsSecurityContextOptions(); - o.gmsaCredentialSpec = gmsaCredentialSpec; - o.gmsaCredentialSpecName = gmsaCredentialSpecName; - o.hostProcess = hostProcess; - o.runAsUserName = runAsUserName; - return o; + final var _resultValue = new WindowsSecurityContextOptions(); + _resultValue.gmsaCredentialSpec = gmsaCredentialSpec; + _resultValue.gmsaCredentialSpecName = gmsaCredentialSpecName; + _resultValue.hostProcess = hostProcess; + _resultValue.runAsUserName = runAsUserName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptionsPatch.java index 7ba2e7d7fe..a55f67e60c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/WindowsSecurityContextOptionsPatch.java @@ -87,31 +87,35 @@ public Builder(WindowsSecurityContextOptionsPatch defaults) { @CustomType.Setter public Builder gmsaCredentialSpec(@Nullable String gmsaCredentialSpec) { + this.gmsaCredentialSpec = gmsaCredentialSpec; return this; } @CustomType.Setter public Builder gmsaCredentialSpecName(@Nullable String gmsaCredentialSpecName) { + this.gmsaCredentialSpecName = gmsaCredentialSpecName; return this; } @CustomType.Setter public Builder hostProcess(@Nullable Boolean hostProcess) { + this.hostProcess = hostProcess; return this; } @CustomType.Setter public Builder runAsUserName(@Nullable String runAsUserName) { + this.runAsUserName = runAsUserName; return this; } public WindowsSecurityContextOptionsPatch build() { - final var o = new WindowsSecurityContextOptionsPatch(); - o.gmsaCredentialSpec = gmsaCredentialSpec; - o.gmsaCredentialSpecName = gmsaCredentialSpecName; - o.hostProcess = hostProcess; - o.runAsUserName = runAsUserName; - return o; + final var _resultValue = new WindowsSecurityContextOptionsPatch(); + _resultValue.gmsaCredentialSpec = gmsaCredentialSpec; + _resultValue.gmsaCredentialSpecName = gmsaCredentialSpecName; + _resultValue.hostProcess = hostProcess; + _resultValue.runAsUserName = runAsUserName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceArgs.java index f467a78ff8..2cf1ae8b31 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointArgs; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointPortArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -286,9 +287,13 @@ public Builder ports(EndpointPortArgs... ports) { } public EndpointSliceArgs build() { - $.addressType = Objects.requireNonNull($.addressType, "expected parameter 'addressType' to be non-null"); + if ($.addressType == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "addressType"); + } $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "endpoints"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceListArgs.java index 7e0488648a..54e7ab8fa5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/EndpointSliceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointSliceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EndpointSliceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EndpointSliceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointArgs.java index 9e34d56ab0..ab4df9a31f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointConditionsArgs; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointHintsArgs; @@ -354,7 +355,9 @@ public Builder zone(String zone) { } public EndpointArgs build() { - $.addresses = Objects.requireNonNull($.addresses, "expected parameter 'addresses' to be non-null"); + if ($.addresses == null) { + throw new MissingRequiredPropertyException("EndpointArgs", "addresses"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointSliceArgs.java index 0339170359..c6a2dfdc41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointArgs; import com.pulumi.kubernetes.discovery.v1.inputs.EndpointPortArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -290,9 +291,13 @@ public Builder ports(EndpointPortArgs... ports) { } public EndpointSliceArgs build() { - $.addressType = Objects.requireNonNull($.addressType, "expected parameter 'addressType' to be non-null"); + if ($.addressType == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "addressType"); + } $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "endpoints"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/ForZoneArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/ForZoneArgs.java index 519cc9322f..e69aaf8958 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/ForZoneArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/ForZoneArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public ForZoneArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ForZoneArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/Endpoint.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/Endpoint.java index 0f9f25e92b..294b8e68e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/Endpoint.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/Endpoint.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.discovery.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; import com.pulumi.kubernetes.discovery.v1.outputs.EndpointConditions; import com.pulumi.kubernetes.discovery.v1.outputs.EndpointHints; @@ -147,7 +148,10 @@ public Builder(Endpoint defaults) { @CustomType.Setter public Builder addresses(List addresses) { - this.addresses = Objects.requireNonNull(addresses); + if (addresses == null) { + throw new MissingRequiredPropertyException("Endpoint", "addresses"); + } + this.addresses = addresses; return this; } public Builder addresses(String... addresses) { @@ -155,50 +159,57 @@ public Builder addresses(String... addresses) { } @CustomType.Setter public Builder conditions(@Nullable EndpointConditions conditions) { + this.conditions = conditions; return this; } @CustomType.Setter public Builder deprecatedTopology(@Nullable Map deprecatedTopology) { + this.deprecatedTopology = deprecatedTopology; return this; } @CustomType.Setter public Builder hints(@Nullable EndpointHints hints) { + this.hints = hints; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReference targetRef) { + this.targetRef = targetRef; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } public Endpoint build() { - final var o = new Endpoint(); - o.addresses = addresses; - o.conditions = conditions; - o.deprecatedTopology = deprecatedTopology; - o.hints = hints; - o.hostname = hostname; - o.nodeName = nodeName; - o.targetRef = targetRef; - o.zone = zone; - return o; + final var _resultValue = new Endpoint(); + _resultValue.addresses = addresses; + _resultValue.conditions = conditions; + _resultValue.deprecatedTopology = deprecatedTopology; + _resultValue.hints = hints; + _resultValue.hostname = hostname; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + _resultValue.zone = zone; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditions.java index ec960ee571..a70063a002 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditions.java @@ -72,25 +72,28 @@ public Builder(EndpointConditions defaults) { @CustomType.Setter public Builder ready(@Nullable Boolean ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder serving(@Nullable Boolean serving) { + this.serving = serving; return this; } @CustomType.Setter public Builder terminating(@Nullable Boolean terminating) { + this.terminating = terminating; return this; } public EndpointConditions build() { - final var o = new EndpointConditions(); - o.ready = ready; - o.serving = serving; - o.terminating = terminating; - return o; + final var _resultValue = new EndpointConditions(); + _resultValue.ready = ready; + _resultValue.serving = serving; + _resultValue.terminating = terminating; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditionsPatch.java index 8e3b5a8713..a7b8dc8428 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointConditionsPatch.java @@ -72,25 +72,28 @@ public Builder(EndpointConditionsPatch defaults) { @CustomType.Setter public Builder ready(@Nullable Boolean ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder serving(@Nullable Boolean serving) { + this.serving = serving; return this; } @CustomType.Setter public Builder terminating(@Nullable Boolean terminating) { + this.terminating = terminating; return this; } public EndpointConditionsPatch build() { - final var o = new EndpointConditionsPatch(); - o.ready = ready; - o.serving = serving; - o.terminating = terminating; - return o; + final var _resultValue = new EndpointConditionsPatch(); + _resultValue.ready = ready; + _resultValue.serving = serving; + _resultValue.terminating = terminating; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHints.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHints.java index 0c66d7580d..f0edcc6050 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHints.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHints.java @@ -44,6 +44,7 @@ public Builder(EndpointHints defaults) { @CustomType.Setter public Builder forZones(@Nullable List forZones) { + this.forZones = forZones; return this; } @@ -51,9 +52,9 @@ public Builder forZones(ForZone... forZones) { return forZones(List.of(forZones)); } public EndpointHints build() { - final var o = new EndpointHints(); - o.forZones = forZones; - return o; + final var _resultValue = new EndpointHints(); + _resultValue.forZones = forZones; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHintsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHintsPatch.java index a972ddeb3a..7b9d915bd5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHintsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointHintsPatch.java @@ -44,6 +44,7 @@ public Builder(EndpointHintsPatch defaults) { @CustomType.Setter public Builder forZones(@Nullable List forZones) { + this.forZones = forZones; return this; } @@ -51,9 +52,9 @@ public Builder forZones(ForZonePatch... forZones) { return forZones(List.of(forZones)); } public EndpointHintsPatch build() { - final var o = new EndpointHintsPatch(); - o.forZones = forZones; - return o; + final var _resultValue = new EndpointHintsPatch(); + _resultValue.forZones = forZones; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPatch.java index 099c6a7750..b73a1fa9f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPatch.java @@ -147,6 +147,7 @@ public Builder(EndpointPatch defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -155,50 +156,57 @@ public Builder addresses(String... addresses) { } @CustomType.Setter public Builder conditions(@Nullable EndpointConditionsPatch conditions) { + this.conditions = conditions; return this; } @CustomType.Setter public Builder deprecatedTopology(@Nullable Map deprecatedTopology) { + this.deprecatedTopology = deprecatedTopology; return this; } @CustomType.Setter public Builder hints(@Nullable EndpointHintsPatch hints) { + this.hints = hints; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReferencePatch targetRef) { + this.targetRef = targetRef; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } public EndpointPatch build() { - final var o = new EndpointPatch(); - o.addresses = addresses; - o.conditions = conditions; - o.deprecatedTopology = deprecatedTopology; - o.hints = hints; - o.hostname = hostname; - o.nodeName = nodeName; - o.targetRef = targetRef; - o.zone = zone; - return o; + final var _resultValue = new EndpointPatch(); + _resultValue.addresses = addresses; + _resultValue.conditions = conditions; + _resultValue.deprecatedTopology = deprecatedTopology; + _resultValue.hints = hints; + _resultValue.hostname = hostname; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + _resultValue.zone = zone; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPort.java index f5a6a868f8..e56a7752a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPort.java @@ -105,31 +105,35 @@ public Builder(EndpointPort defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPort build() { - final var o = new EndpointPort(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPort(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPortPatch.java index 6c9b22f6a7..38b4a1b256 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointPortPatch.java @@ -105,31 +105,35 @@ public Builder(EndpointPortPatch defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPortPatch build() { - final var o = new EndpointPortPatch(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPortPatch(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointSlice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointSlice.java index 90da7c77bb..39169ef0f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointSlice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/EndpointSlice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.discovery.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1.outputs.Endpoint; import com.pulumi.kubernetes.discovery.v1.outputs.EndpointPort; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; @@ -118,17 +119,24 @@ public Builder(EndpointSlice defaults) { @CustomType.Setter public Builder addressType(String addressType) { - this.addressType = Objects.requireNonNull(addressType); + if (addressType == null) { + throw new MissingRequiredPropertyException("EndpointSlice", "addressType"); + } + this.addressType = addressType; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSlice", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(Endpoint... endpoints) { @@ -136,16 +144,19 @@ public Builder endpoints(Endpoint... endpoints) { } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -153,14 +164,14 @@ public Builder ports(EndpointPort... ports) { return ports(List.of(ports)); } public EndpointSlice build() { - final var o = new EndpointSlice(); - o.addressType = addressType; - o.apiVersion = apiVersion; - o.endpoints = endpoints; - o.kind = kind; - o.metadata = metadata; - o.ports = ports; - return o; + final var _resultValue = new EndpointSlice(); + _resultValue.addressType = addressType; + _resultValue.apiVersion = apiVersion; + _resultValue.endpoints = endpoints; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZone.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZone.java index c96e7ce792..9e2e8cbcca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZone.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZone.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.discovery.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(ForZone defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ForZone", "name"); + } + this.name = name; return this; } public ForZone build() { - final var o = new ForZone(); - o.name = name; - return o; + final var _resultValue = new ForZone(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZonePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZonePatch.java index c9ee82c122..934b4915c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZonePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/outputs/ForZonePatch.java @@ -44,13 +44,14 @@ public Builder(ForZonePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ForZonePatch build() { - final var o = new ForZonePatch(); - o.name = name; - return o; + final var _resultValue = new ForZonePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceArgs.java index 7caef106fe..41ea5d38c9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointArgs; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointPortArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -286,9 +287,13 @@ public Builder ports(EndpointPortArgs... ports) { } public EndpointSliceArgs build() { - $.addressType = Objects.requireNonNull($.addressType, "expected parameter 'addressType' to be non-null"); + if ($.addressType == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "addressType"); + } $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "endpoints"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceListArgs.java index ae0348be17..7f3295f2de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/EndpointSliceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointSliceArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EndpointSliceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EndpointSliceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointArgs.java index 803692cf24..483ad202ea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointConditionsArgs; import java.lang.String; @@ -303,7 +304,9 @@ public Builder topology(Map topology) { } public EndpointArgs build() { - $.addresses = Objects.requireNonNull($.addresses, "expected parameter 'addresses' to be non-null"); + if ($.addresses == null) { + throw new MissingRequiredPropertyException("EndpointArgs", "addresses"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointSliceArgs.java index a03cb172e8..56f4c44490 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointArgs; import com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointPortArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; @@ -290,9 +291,13 @@ public Builder ports(EndpointPortArgs... ports) { } public EndpointSliceArgs build() { - $.addressType = Objects.requireNonNull($.addressType, "expected parameter 'addressType' to be non-null"); + if ($.addressType == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "addressType"); + } $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.endpoints = Objects.requireNonNull($.endpoints, "expected parameter 'endpoints' to be non-null"); + if ($.endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSliceArgs", "endpoints"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/Endpoint.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/Endpoint.java index 4fc18d14b4..170150b63f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/Endpoint.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/Endpoint.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.discovery.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; import com.pulumi.kubernetes.discovery.v1beta1.outputs.EndpointConditions; import java.lang.String; @@ -130,7 +131,10 @@ public Builder(Endpoint defaults) { @CustomType.Setter public Builder addresses(List addresses) { - this.addresses = Objects.requireNonNull(addresses); + if (addresses == null) { + throw new MissingRequiredPropertyException("Endpoint", "addresses"); + } + this.addresses = addresses; return this; } public Builder addresses(String... addresses) { @@ -138,38 +142,43 @@ public Builder addresses(String... addresses) { } @CustomType.Setter public Builder conditions(@Nullable EndpointConditions conditions) { + this.conditions = conditions; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReference targetRef) { + this.targetRef = targetRef; return this; } @CustomType.Setter public Builder topology(@Nullable Map topology) { + this.topology = topology; return this; } public Endpoint build() { - final var o = new Endpoint(); - o.addresses = addresses; - o.conditions = conditions; - o.hostname = hostname; - o.nodeName = nodeName; - o.targetRef = targetRef; - o.topology = topology; - return o; + final var _resultValue = new Endpoint(); + _resultValue.addresses = addresses; + _resultValue.conditions = conditions; + _resultValue.hostname = hostname; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + _resultValue.topology = topology; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditions.java index 493f895139..679dd4fb96 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditions.java @@ -72,25 +72,28 @@ public Builder(EndpointConditions defaults) { @CustomType.Setter public Builder ready(@Nullable Boolean ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder serving(@Nullable Boolean serving) { + this.serving = serving; return this; } @CustomType.Setter public Builder terminating(@Nullable Boolean terminating) { + this.terminating = terminating; return this; } public EndpointConditions build() { - final var o = new EndpointConditions(); - o.ready = ready; - o.serving = serving; - o.terminating = terminating; - return o; + final var _resultValue = new EndpointConditions(); + _resultValue.ready = ready; + _resultValue.serving = serving; + _resultValue.terminating = terminating; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditionsPatch.java index 271a3f439e..f6559eebd8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointConditionsPatch.java @@ -72,25 +72,28 @@ public Builder(EndpointConditionsPatch defaults) { @CustomType.Setter public Builder ready(@Nullable Boolean ready) { + this.ready = ready; return this; } @CustomType.Setter public Builder serving(@Nullable Boolean serving) { + this.serving = serving; return this; } @CustomType.Setter public Builder terminating(@Nullable Boolean terminating) { + this.terminating = terminating; return this; } public EndpointConditionsPatch build() { - final var o = new EndpointConditionsPatch(); - o.ready = ready; - o.serving = serving; - o.terminating = terminating; - return o; + final var _resultValue = new EndpointConditionsPatch(); + _resultValue.ready = ready; + _resultValue.serving = serving; + _resultValue.terminating = terminating; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPatch.java index 41ad02bf26..bc5bf912b6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPatch.java @@ -130,6 +130,7 @@ public Builder(EndpointPatch defaults) { @CustomType.Setter public Builder addresses(@Nullable List addresses) { + this.addresses = addresses; return this; } @@ -138,38 +139,43 @@ public Builder addresses(String... addresses) { } @CustomType.Setter public Builder conditions(@Nullable EndpointConditionsPatch conditions) { + this.conditions = conditions; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder targetRef(@Nullable ObjectReferencePatch targetRef) { + this.targetRef = targetRef; return this; } @CustomType.Setter public Builder topology(@Nullable Map topology) { + this.topology = topology; return this; } public EndpointPatch build() { - final var o = new EndpointPatch(); - o.addresses = addresses; - o.conditions = conditions; - o.hostname = hostname; - o.nodeName = nodeName; - o.targetRef = targetRef; - o.topology = topology; - return o; + final var _resultValue = new EndpointPatch(); + _resultValue.addresses = addresses; + _resultValue.conditions = conditions; + _resultValue.hostname = hostname; + _resultValue.nodeName = nodeName; + _resultValue.targetRef = targetRef; + _resultValue.topology = topology; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPort.java index ffc7b618c4..03ec039d2a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPort.java @@ -87,31 +87,35 @@ public Builder(EndpointPort defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPort build() { - final var o = new EndpointPort(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPort(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPortPatch.java index 133a0a56e0..12eb8d6554 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPortPatch.java @@ -87,31 +87,35 @@ public Builder(EndpointPortPatch defaults) { @CustomType.Setter public Builder appProtocol(@Nullable String appProtocol) { + this.appProtocol = appProtocol; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public EndpointPortPatch build() { - final var o = new EndpointPortPatch(); - o.appProtocol = appProtocol; - o.name = name; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new EndpointPortPatch(); + _resultValue.appProtocol = appProtocol; + _resultValue.name = name; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointSlice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointSlice.java index 4ee2231c3d..cafb1efe2d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointSlice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointSlice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.discovery.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.discovery.v1beta1.outputs.Endpoint; import com.pulumi.kubernetes.discovery.v1beta1.outputs.EndpointPort; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; @@ -118,17 +119,24 @@ public Builder(EndpointSlice defaults) { @CustomType.Setter public Builder addressType(String addressType) { - this.addressType = Objects.requireNonNull(addressType); + if (addressType == null) { + throw new MissingRequiredPropertyException("EndpointSlice", "addressType"); + } + this.addressType = addressType; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder endpoints(List endpoints) { - this.endpoints = Objects.requireNonNull(endpoints); + if (endpoints == null) { + throw new MissingRequiredPropertyException("EndpointSlice", "endpoints"); + } + this.endpoints = endpoints; return this; } public Builder endpoints(Endpoint... endpoints) { @@ -136,16 +144,19 @@ public Builder endpoints(Endpoint... endpoints) { } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -153,14 +164,14 @@ public Builder ports(EndpointPort... ports) { return ports(List.of(ports)); } public EndpointSlice build() { - final var o = new EndpointSlice(); - o.addressType = addressType; - o.apiVersion = apiVersion; - o.endpoints = endpoints; - o.kind = kind; - o.metadata = metadata; - o.ports = ports; - return o; + final var _resultValue = new EndpointSlice(); + _resultValue.addressType = addressType; + _resultValue.apiVersion = apiVersion; + _resultValue.endpoints = endpoints; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventArgs.java index 4cfbaf1ac9..32f096e3ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.events.v1.inputs.EventSeriesArgs; @@ -675,7 +676,9 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.eventTime = Objects.requireNonNull($.eventTime, "expected parameter 'eventTime' to be non-null"); + if ($.eventTime == null) { + throw new MissingRequiredPropertyException("EventArgs", "eventTime"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventListArgs.java index c0fe55e34a..0edd7b2272 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/EventListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.events.v1.inputs.EventArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EventListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EventListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventArgs.java index 5c1921e35e..a15700f389 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.events.v1.inputs.EventSeriesArgs; @@ -679,7 +680,9 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.eventTime = Objects.requireNonNull($.eventTime, "expected parameter 'eventTime' to be non-null"); + if ($.eventTime == null) { + throw new MissingRequiredPropertyException("EventArgs", "eventTime"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventSeriesArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventSeriesArgs.java index 9f65e7c434..39bbfc786d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventSeriesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/inputs/EventSeriesArgs.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; @@ -116,8 +117,12 @@ public Builder lastObservedTime(String lastObservedTime) { } public EventSeriesArgs build() { - $.count = Objects.requireNonNull($.count, "expected parameter 'count' to be non-null"); - $.lastObservedTime = Objects.requireNonNull($.lastObservedTime, "expected parameter 'lastObservedTime' to be non-null"); + if ($.count == null) { + throw new MissingRequiredPropertyException("EventSeriesArgs", "count"); + } + if ($.lastObservedTime == null) { + throw new MissingRequiredPropertyException("EventSeriesArgs", "lastObservedTime"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/Event.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/Event.java index 43a8bbf116..44c933718e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/Event.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/Event.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.events.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.EventSource; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; import com.pulumi.kubernetes.events.v1.outputs.EventSeries; @@ -273,109 +274,128 @@ public Builder(Event defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder deprecatedCount(@Nullable Integer deprecatedCount) { + this.deprecatedCount = deprecatedCount; return this; } @CustomType.Setter public Builder deprecatedFirstTimestamp(@Nullable String deprecatedFirstTimestamp) { + this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; } @CustomType.Setter public Builder deprecatedLastTimestamp(@Nullable String deprecatedLastTimestamp) { + this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; } @CustomType.Setter public Builder deprecatedSource(@Nullable EventSource deprecatedSource) { + this.deprecatedSource = deprecatedSource; return this; } @CustomType.Setter public Builder eventTime(String eventTime) { - this.eventTime = Objects.requireNonNull(eventTime); + if (eventTime == null) { + throw new MissingRequiredPropertyException("Event", "eventTime"); + } + this.eventTime = eventTime; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder note(@Nullable String note) { + this.note = note; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder regarding(@Nullable ObjectReference regarding) { + this.regarding = regarding; return this; } @CustomType.Setter public Builder related(@Nullable ObjectReference related) { + this.related = related; return this; } @CustomType.Setter public Builder reportingController(@Nullable String reportingController) { + this.reportingController = reportingController; return this; } @CustomType.Setter public Builder reportingInstance(@Nullable String reportingInstance) { + this.reportingInstance = reportingInstance; return this; } @CustomType.Setter public Builder series(@Nullable EventSeries series) { + this.series = series; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public Event build() { - final var o = new Event(); - o.action = action; - o.apiVersion = apiVersion; - o.deprecatedCount = deprecatedCount; - o.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - o.deprecatedLastTimestamp = deprecatedLastTimestamp; - o.deprecatedSource = deprecatedSource; - o.eventTime = eventTime; - o.kind = kind; - o.metadata = metadata; - o.note = note; - o.reason = reason; - o.regarding = regarding; - o.related = related; - o.reportingController = reportingController; - o.reportingInstance = reportingInstance; - o.series = series; - o.type = type; - return o; + final var _resultValue = new Event(); + _resultValue.action = action; + _resultValue.apiVersion = apiVersion; + _resultValue.deprecatedCount = deprecatedCount; + _resultValue.deprecatedFirstTimestamp = deprecatedFirstTimestamp; + _resultValue.deprecatedLastTimestamp = deprecatedLastTimestamp; + _resultValue.deprecatedSource = deprecatedSource; + _resultValue.eventTime = eventTime; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.note = note; + _resultValue.reason = reason; + _resultValue.regarding = regarding; + _resultValue.related = related; + _resultValue.reportingController = reportingController; + _resultValue.reportingInstance = reportingInstance; + _resultValue.series = series; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeries.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeries.java index f564047f40..2519ee6aec 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeries.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeries.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.events.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -57,19 +58,25 @@ public Builder(EventSeries defaults) { @CustomType.Setter public Builder count(Integer count) { - this.count = Objects.requireNonNull(count); + if (count == null) { + throw new MissingRequiredPropertyException("EventSeries", "count"); + } + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(String lastObservedTime) { - this.lastObservedTime = Objects.requireNonNull(lastObservedTime); + if (lastObservedTime == null) { + throw new MissingRequiredPropertyException("EventSeries", "lastObservedTime"); + } + this.lastObservedTime = lastObservedTime; return this; } public EventSeries build() { - final var o = new EventSeries(); - o.count = count; - o.lastObservedTime = lastObservedTime; - return o; + final var _resultValue = new EventSeries(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeriesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeriesPatch.java index 194eaf9fb9..516526f1fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeriesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/EventSeriesPatch.java @@ -59,19 +59,21 @@ public Builder(EventSeriesPatch defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(@Nullable String lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } public EventSeriesPatch build() { - final var o = new EventSeriesPatch(); - o.count = count; - o.lastObservedTime = lastObservedTime; - return o; + final var _resultValue = new EventSeriesPatch(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventArgs.java index fbe0bbb007..f7d13e12f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesArgs; @@ -655,7 +656,9 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.eventTime = Objects.requireNonNull($.eventTime, "expected parameter 'eventTime' to be non-null"); + if ($.eventTime == null) { + throw new MissingRequiredPropertyException("EventArgs", "eventTime"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventListArgs.java index ee39c60d21..7007e2c3b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/EventListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.events.v1beta1.inputs.EventArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public EventListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("EventListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventArgs.java index 064be1f81c..f89987c265 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.EventSourceArgs; import com.pulumi.kubernetes.core.v1.inputs.ObjectReferenceArgs; import com.pulumi.kubernetes.events.v1beta1.inputs.EventSeriesArgs; @@ -659,7 +660,9 @@ public Builder type(String type) { public EventArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.eventTime = Objects.requireNonNull($.eventTime, "expected parameter 'eventTime' to be non-null"); + if ($.eventTime == null) { + throw new MissingRequiredPropertyException("EventArgs", "eventTime"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventSeriesArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventSeriesArgs.java index 59123dbc07..0057bf9b16 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventSeriesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/inputs/EventSeriesArgs.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; @@ -153,9 +154,15 @@ public Builder state(String state) { } public EventSeriesArgs build() { - $.count = Objects.requireNonNull($.count, "expected parameter 'count' to be non-null"); - $.lastObservedTime = Objects.requireNonNull($.lastObservedTime, "expected parameter 'lastObservedTime' to be non-null"); - $.state = Objects.requireNonNull($.state, "expected parameter 'state' to be non-null"); + if ($.count == null) { + throw new MissingRequiredPropertyException("EventSeriesArgs", "count"); + } + if ($.lastObservedTime == null) { + throw new MissingRequiredPropertyException("EventSeriesArgs", "lastObservedTime"); + } + if ($.state == null) { + throw new MissingRequiredPropertyException("EventSeriesArgs", "state"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/Event.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/Event.java index 3092f882f9..522d809135 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/Event.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/Event.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.events.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.EventSource; import com.pulumi.kubernetes.core.v1.outputs.ObjectReference; import com.pulumi.kubernetes.events.v1beta1.outputs.EventSeries; @@ -265,109 +266,128 @@ public Builder(Event defaults) { @CustomType.Setter public Builder action(@Nullable String action) { + this.action = action; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder deprecatedCount(@Nullable Integer deprecatedCount) { + this.deprecatedCount = deprecatedCount; return this; } @CustomType.Setter public Builder deprecatedFirstTimestamp(@Nullable String deprecatedFirstTimestamp) { + this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; } @CustomType.Setter public Builder deprecatedLastTimestamp(@Nullable String deprecatedLastTimestamp) { + this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; } @CustomType.Setter public Builder deprecatedSource(@Nullable EventSource deprecatedSource) { + this.deprecatedSource = deprecatedSource; return this; } @CustomType.Setter public Builder eventTime(String eventTime) { - this.eventTime = Objects.requireNonNull(eventTime); + if (eventTime == null) { + throw new MissingRequiredPropertyException("Event", "eventTime"); + } + this.eventTime = eventTime; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder note(@Nullable String note) { + this.note = note; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder regarding(@Nullable ObjectReference regarding) { + this.regarding = regarding; return this; } @CustomType.Setter public Builder related(@Nullable ObjectReference related) { + this.related = related; return this; } @CustomType.Setter public Builder reportingController(@Nullable String reportingController) { + this.reportingController = reportingController; return this; } @CustomType.Setter public Builder reportingInstance(@Nullable String reportingInstance) { + this.reportingInstance = reportingInstance; return this; } @CustomType.Setter public Builder series(@Nullable EventSeries series) { + this.series = series; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public Event build() { - final var o = new Event(); - o.action = action; - o.apiVersion = apiVersion; - o.deprecatedCount = deprecatedCount; - o.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - o.deprecatedLastTimestamp = deprecatedLastTimestamp; - o.deprecatedSource = deprecatedSource; - o.eventTime = eventTime; - o.kind = kind; - o.metadata = metadata; - o.note = note; - o.reason = reason; - o.regarding = regarding; - o.related = related; - o.reportingController = reportingController; - o.reportingInstance = reportingInstance; - o.series = series; - o.type = type; - return o; + final var _resultValue = new Event(); + _resultValue.action = action; + _resultValue.apiVersion = apiVersion; + _resultValue.deprecatedCount = deprecatedCount; + _resultValue.deprecatedFirstTimestamp = deprecatedFirstTimestamp; + _resultValue.deprecatedLastTimestamp = deprecatedLastTimestamp; + _resultValue.deprecatedSource = deprecatedSource; + _resultValue.eventTime = eventTime; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.note = note; + _resultValue.reason = reason; + _resultValue.regarding = regarding; + _resultValue.related = related; + _resultValue.reportingController = reportingController; + _resultValue.reportingInstance = reportingInstance; + _resultValue.series = series; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeries.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeries.java index 174ad7c951..39ded93676 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeries.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeries.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.events.v1beta1.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,25 +72,34 @@ public Builder(EventSeries defaults) { @CustomType.Setter public Builder count(Integer count) { - this.count = Objects.requireNonNull(count); + if (count == null) { + throw new MissingRequiredPropertyException("EventSeries", "count"); + } + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(String lastObservedTime) { - this.lastObservedTime = Objects.requireNonNull(lastObservedTime); + if (lastObservedTime == null) { + throw new MissingRequiredPropertyException("EventSeries", "lastObservedTime"); + } + this.lastObservedTime = lastObservedTime; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("EventSeries", "state"); + } + this.state = state; return this; } public EventSeries build() { - final var o = new EventSeries(); - o.count = count; - o.lastObservedTime = lastObservedTime; - o.state = state; - return o; + final var _resultValue = new EventSeries(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + _resultValue.state = state; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeriesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeriesPatch.java index a3d7ca7c7f..69acf0fb40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeriesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/events/v1beta1/outputs/EventSeriesPatch.java @@ -73,25 +73,28 @@ public Builder(EventSeriesPatch defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder lastObservedTime(@Nullable String lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } public EventSeriesPatch build() { - final var o = new EventSeriesPatch(); - o.count = count; - o.lastObservedTime = lastObservedTime; - o.state = state; - return o; + final var _resultValue = new EventSeriesPatch(); + _resultValue.count = count; + _resultValue.lastObservedTime = lastObservedTime; + _resultValue.state = state; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DaemonSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DaemonSetListArgs.java index bac1b355b4..88a886aa9e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DaemonSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DaemonSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.DaemonSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DaemonSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DaemonSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DeploymentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DeploymentListArgs.java index a8a2984fcb..fcade75047 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DeploymentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/DeploymentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public DeploymentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("DeploymentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/IngressListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/IngressListArgs.java index cac7839928..631fac3c25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/IngressListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/IngressListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.IngressArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IngressListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IngressListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/NetworkPolicyListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/NetworkPolicyListArgs.java index 671eeb6413..d254a4a1c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/NetworkPolicyListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/NetworkPolicyListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.NetworkPolicyArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public NetworkPolicyListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("NetworkPolicyListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/PodSecurityPolicyListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/PodSecurityPolicyListArgs.java index 56e9f0029b..d5884fffcb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/PodSecurityPolicyListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/PodSecurityPolicyListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.PodSecurityPolicyArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodSecurityPolicyListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/ReplicaSetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/ReplicaSetListArgs.java index b98d7a72a4..308391ed7c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/ReplicaSetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/ReplicaSetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.ReplicaSetArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ReplicaSetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ReplicaSetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedCSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedCSIDriverArgs.java index 9009edcfa8..18154e5d71 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedCSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedCSIDriverArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public AllowedCSIDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AllowedCSIDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedFlexVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedFlexVolumeArgs.java index 2e3532cba3..48bae40808 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedFlexVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/AllowedFlexVolumeArgs.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; @@ -78,7 +79,9 @@ public Builder driver(String driver) { } public AllowedFlexVolumeArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("AllowedFlexVolumeArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetConditionArgs.java index b32c94f2f9..c6dce00adf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public DaemonSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DaemonSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetSpecArgs.java index c2d5e89ae7..e5f3dacad0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.DaemonSetUpdateStrategyArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -268,7 +269,9 @@ public Builder updateStrategy(DaemonSetUpdateStrategyArgs updateStrategy) { } public DaemonSetSpecArgs build() { - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetStatusArgs.java index 4eb76d3137..568c8ac2aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DaemonSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.DaemonSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -425,10 +426,18 @@ public Builder updatedNumberScheduled(Integer updatedNumberScheduled) { } public DaemonSetStatusArgs build() { - $.currentNumberScheduled = Objects.requireNonNull($.currentNumberScheduled, "expected parameter 'currentNumberScheduled' to be non-null"); - $.desiredNumberScheduled = Objects.requireNonNull($.desiredNumberScheduled, "expected parameter 'desiredNumberScheduled' to be non-null"); - $.numberMisscheduled = Objects.requireNonNull($.numberMisscheduled, "expected parameter 'numberMisscheduled' to be non-null"); - $.numberReady = Objects.requireNonNull($.numberReady, "expected parameter 'numberReady' to be non-null"); + if ($.currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "currentNumberScheduled"); + } + if ($.desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "desiredNumberScheduled"); + } + if ($.numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberMisscheduled"); + } + if ($.numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatusArgs", "numberReady"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentConditionArgs.java index 1780f2a3e1..568a1cb1c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentConditionArgs.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; @@ -265,8 +266,12 @@ public Builder type(String type) { } public DeploymentConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DeploymentConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentSpecArgs.java index a2b606eab6..5d56c94e6f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/DeploymentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.PodTemplateSpecArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.DeploymentStrategyArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.RollbackConfigArgs; @@ -381,7 +382,9 @@ public Builder template(PodTemplateSpecArgs template) { } public DeploymentSpecArgs build() { - $.template = Objects.requireNonNull($.template, "expected parameter 'template' to be non-null"); + if ($.template == null) { + throw new MissingRequiredPropertyException("DeploymentSpecArgs", "template"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressPathArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressPathArgs.java index 435fe6238f..526de65e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressPathArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.IngressBackendArgs; import java.lang.String; import java.util.Objects; @@ -195,7 +196,9 @@ public Builder pathType(String pathType) { } public HTTPIngressPathArgs build() { - $.backend = Objects.requireNonNull($.backend, "expected parameter 'backend' to be non-null"); + if ($.backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPathArgs", "backend"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressRuleValueArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressRuleValueArgs.java index 5e60c9b67f..1663dd533d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressRuleValueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HTTPIngressRuleValueArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressPathArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder paths(HTTPIngressPathArgs... paths) { } public HTTPIngressRuleValueArgs build() { - $.paths = Objects.requireNonNull($.paths, "expected parameter 'paths' to be non-null"); + if ($.paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValueArgs", "paths"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HostPortRangeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HostPortRangeArgs.java index 47ff057ded..181be044ac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HostPortRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/HostPortRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder min(Integer min) { } public HostPortRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("HostPortRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("HostPortRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IDRangeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IDRangeArgs.java index 18577bc0e2..7788571e2e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IDRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IDRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder min(Integer min) { } public IDRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("IDRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("IDRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IPBlockArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IPBlockArgs.java index ceee177543..e1d7f93601 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IPBlockArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IPBlockArgs.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; @@ -128,7 +129,9 @@ public Builder except(String... except) { } public IPBlockArgs build() { - $.cidr = Objects.requireNonNull($.cidr, "expected parameter 'cidr' to be non-null"); + if ($.cidr == null) { + throw new MissingRequiredPropertyException("IPBlockArgs", "cidr"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IngressBackendArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IngressBackendArgs.java index 11a5c9a05e..b54f913d38 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IngressBackendArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/IngressBackendArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TypedLocalObjectReferenceArgs; import java.lang.Integer; import java.lang.String; @@ -177,8 +178,12 @@ public Builder servicePort(String servicePort) { } public IngressBackendArgs build() { - $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null"); - $.servicePort = Objects.requireNonNull($.servicePort, "expected parameter 'servicePort' to be non-null"); + if ($.serviceName == null) { + throw new MissingRequiredPropertyException("IngressBackendArgs", "serviceName"); + } + if ($.servicePort == null) { + throw new MissingRequiredPropertyException("IngressBackendArgs", "servicePort"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/NetworkPolicySpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/NetworkPolicySpecArgs.java index 383a4521d5..89db1579ed 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/NetworkPolicySpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/NetworkPolicySpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.NetworkPolicyEgressRuleArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.NetworkPolicyIngressRuleArgs; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; @@ -225,7 +226,9 @@ public Builder policyTypes(String... policyTypes) { } public NetworkPolicySpecArgs build() { - $.podSelector = Objects.requireNonNull($.podSelector, "expected parameter 'podSelector' to be non-null"); + if ($.podSelector == null) { + throw new MissingRequiredPropertyException("NetworkPolicySpecArgs", "podSelector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/PodSecurityPolicySpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/PodSecurityPolicySpecArgs.java index 0335ed7f3b..060b5c9816 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/PodSecurityPolicySpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/PodSecurityPolicySpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.AllowedCSIDriverArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.AllowedFlexVolumeArgs; import com.pulumi.kubernetes.extensions.v1beta1.inputs.AllowedHostPathArgs; @@ -1073,10 +1074,18 @@ public Builder volumes(String... volumes) { } public PodSecurityPolicySpecArgs build() { - $.fsGroup = Objects.requireNonNull($.fsGroup, "expected parameter 'fsGroup' to be non-null"); - $.runAsUser = Objects.requireNonNull($.runAsUser, "expected parameter 'runAsUser' to be non-null"); - $.seLinux = Objects.requireNonNull($.seLinux, "expected parameter 'seLinux' to be non-null"); - $.supplementalGroups = Objects.requireNonNull($.supplementalGroups, "expected parameter 'supplementalGroups' to be non-null"); + if ($.fsGroup == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "fsGroup"); + } + if ($.runAsUser == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "runAsUser"); + } + if ($.seLinux == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "seLinux"); + } + if ($.supplementalGroups == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "supplementalGroups"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetConditionArgs.java index 6ace7c6a17..3b92fd6881 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public ReplicaSetConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ReplicaSetConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetStatusArgs.java index e2a5d87ab0..90938dca15 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/ReplicaSetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.ReplicaSetConditionArgs; import java.lang.Integer; import java.util.List; @@ -277,7 +278,9 @@ public Builder replicas(Integer replicas) { } public ReplicaSetStatusArgs build() { - $.replicas = Objects.requireNonNull($.replicas, "expected parameter 'replicas' to be non-null"); + if ($.replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatusArgs", "replicas"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java index 29daad5608..4edf08397d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.IDRangeArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder rule(String rule) { } public RunAsGroupStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("RunAsGroupStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java index 0305e38e02..835132ac48 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.inputs.IDRangeArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder rule(String rule) { } public RunAsUserStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("RunAsUserStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java index 21d92f5c72..1efc5b5990 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.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; @@ -128,7 +129,9 @@ public Builder defaultRuntimeClassName(String defaultRuntimeClassName) { } public RuntimeClassStrategyOptionsArgs build() { - $.allowedRuntimeClassNames = Objects.requireNonNull($.allowedRuntimeClassNames, "expected parameter 'allowedRuntimeClassNames' to be non-null"); + if ($.allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("RuntimeClassStrategyOptionsArgs", "allowedRuntimeClassNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/SELinuxStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/SELinuxStrategyOptionsArgs.java index 9c8d684846..9d3292bcd4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/SELinuxStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/inputs/SELinuxStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SELinuxOptionsArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder seLinuxOptions(SELinuxOptionsArgs seLinuxOptions) { } public SELinuxStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("SELinuxStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriver.java index 083c4f6984..0ae7f1e957 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(AllowedCSIDriver defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AllowedCSIDriver", "name"); + } + this.name = name; return this; } public AllowedCSIDriver build() { - final var o = new AllowedCSIDriver(); - o.name = name; - return o; + final var _resultValue = new AllowedCSIDriver(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriverPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriverPatch.java index eba4805282..ba22db9395 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriverPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedCSIDriverPatch.java @@ -44,13 +44,14 @@ public Builder(AllowedCSIDriverPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public AllowedCSIDriverPatch build() { - final var o = new AllowedCSIDriverPatch(); - o.name = name; - return o; + final var _resultValue = new AllowedCSIDriverPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolume.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolume.java index 18fcf6e379..3227132af2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolume.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolume.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(AllowedFlexVolume defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("AllowedFlexVolume", "driver"); + } + this.driver = driver; return this; } public AllowedFlexVolume build() { - final var o = new AllowedFlexVolume(); - o.driver = driver; - return o; + final var _resultValue = new AllowedFlexVolume(); + _resultValue.driver = driver; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolumePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolumePatch.java index aec0ab16a2..1894466bb3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolumePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedFlexVolumePatch.java @@ -44,13 +44,14 @@ public Builder(AllowedFlexVolumePatch defaults) { @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } public AllowedFlexVolumePatch build() { - final var o = new AllowedFlexVolumePatch(); - o.driver = driver; - return o; + final var _resultValue = new AllowedFlexVolumePatch(); + _resultValue.driver = driver; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPath.java index 2f70daf85e..cbf8706514 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPath.java @@ -63,19 +63,21 @@ public Builder(AllowedHostPath defaults) { @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AllowedHostPath build() { - final var o = new AllowedHostPath(); - o.pathPrefix = pathPrefix; - o.readOnly = readOnly; - return o; + final var _resultValue = new AllowedHostPath(); + _resultValue.pathPrefix = pathPrefix; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPathPatch.java index 1b4daba8fc..5b939ce55e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/AllowedHostPathPatch.java @@ -63,19 +63,21 @@ public Builder(AllowedHostPathPatch defaults) { @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AllowedHostPathPatch build() { - final var o = new AllowedHostPathPatch(); - o.pathPrefix = pathPrefix; - o.readOnly = readOnly; - return o; + final var _resultValue = new AllowedHostPathPatch(); + _resultValue.pathPrefix = pathPrefix; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSet.java index a5e3efcb6d..6a3f4951f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSet.java @@ -103,37 +103,42 @@ public Builder(DaemonSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DaemonSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DaemonSetStatus status) { + this.status = status; return this; } public DaemonSet build() { - final var o = new DaemonSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new DaemonSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetCondition.java index 4201ad9af2..53b59d132e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(DaemonSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DaemonSetCondition", "type"); + } + this.type = type; return this; } public DaemonSetCondition build() { - final var o = new DaemonSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetConditionPatch.java index fce9d3c6af..65eecb2255 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(DaemonSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetConditionPatch build() { - final var o = new DaemonSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DaemonSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpec.java index 33a4b2fada..777e1d5988 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.extensions.v1beta1.outputs.DaemonSetUpdateStrategy; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -117,43 +118,51 @@ public Builder(DaemonSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DaemonSetSpec", "template"); + } + this.template = template; return this; } @CustomType.Setter public Builder templateGeneration(@Nullable Integer templateGeneration) { + this.templateGeneration = templateGeneration; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpec build() { - final var o = new DaemonSetSpec(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.templateGeneration = templateGeneration; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.templateGeneration = templateGeneration; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpecPatch.java index 2709bc16a7..7e5cf564b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetSpecPatch.java @@ -117,43 +117,49 @@ public Builder(DaemonSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } @CustomType.Setter public Builder templateGeneration(@Nullable Integer templateGeneration) { + this.templateGeneration = templateGeneration; return this; } @CustomType.Setter public Builder updateStrategy(@Nullable DaemonSetUpdateStrategyPatch updateStrategy) { + this.updateStrategy = updateStrategy; return this; } public DaemonSetSpecPatch build() { - final var o = new DaemonSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.revisionHistoryLimit = revisionHistoryLimit; - o.selector = selector; - o.template = template; - o.templateGeneration = templateGeneration; - o.updateStrategy = updateStrategy; - return o; + final var _resultValue = new DaemonSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.selector = selector; + _resultValue.template = template; + _resultValue.templateGeneration = templateGeneration; + _resultValue.updateStrategy = updateStrategy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatus.java index f83c90cba9..63472de158 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.DaemonSetCondition; import java.lang.Integer; import java.util.List; @@ -172,11 +173,13 @@ public Builder(DaemonSetStatus defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +188,73 @@ public Builder conditions(DaemonSetCondition... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(Integer currentNumberScheduled) { - this.currentNumberScheduled = Objects.requireNonNull(currentNumberScheduled); + if (currentNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "currentNumberScheduled"); + } + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(Integer desiredNumberScheduled) { - this.desiredNumberScheduled = Objects.requireNonNull(desiredNumberScheduled); + if (desiredNumberScheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "desiredNumberScheduled"); + } + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(Integer numberMisscheduled) { - this.numberMisscheduled = Objects.requireNonNull(numberMisscheduled); + if (numberMisscheduled == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberMisscheduled"); + } + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(Integer numberReady) { - this.numberReady = Objects.requireNonNull(numberReady); + if (numberReady == null) { + throw new MissingRequiredPropertyException("DaemonSetStatus", "numberReady"); + } + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatus build() { - final var o = new DaemonSetStatus(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatus(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatusPatch.java index c235a7668b..fe1bd76cbe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetStatusPatch.java @@ -172,11 +172,13 @@ public Builder(DaemonSetStatusPatch defaults) { @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -185,57 +187,65 @@ public Builder conditions(DaemonSetConditionPatch... conditions) { } @CustomType.Setter public Builder currentNumberScheduled(@Nullable Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @CustomType.Setter public Builder desiredNumberScheduled(@Nullable Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @CustomType.Setter public Builder numberAvailable(@Nullable Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @CustomType.Setter public Builder numberMisscheduled(@Nullable Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @CustomType.Setter public Builder numberReady(@Nullable Integer numberReady) { + this.numberReady = numberReady; return this; } @CustomType.Setter public Builder numberUnavailable(@Nullable Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder updatedNumberScheduled(@Nullable Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } public DaemonSetStatusPatch build() { - final var o = new DaemonSetStatusPatch(); - o.collisionCount = collisionCount; - o.conditions = conditions; - o.currentNumberScheduled = currentNumberScheduled; - o.desiredNumberScheduled = desiredNumberScheduled; - o.numberAvailable = numberAvailable; - o.numberMisscheduled = numberMisscheduled; - o.numberReady = numberReady; - o.numberUnavailable = numberUnavailable; - o.observedGeneration = observedGeneration; - o.updatedNumberScheduled = updatedNumberScheduled; - return o; + final var _resultValue = new DaemonSetStatusPatch(); + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.currentNumberScheduled = currentNumberScheduled; + _resultValue.desiredNumberScheduled = desiredNumberScheduled; + _resultValue.numberAvailable = numberAvailable; + _resultValue.numberMisscheduled = numberMisscheduled; + _resultValue.numberReady = numberReady; + _resultValue.numberUnavailable = numberUnavailable; + _resultValue.observedGeneration = observedGeneration; + _resultValue.updatedNumberScheduled = updatedNumberScheduled; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategy.java index faba3ecc68..c651e15fda 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategy.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategy build() { - final var o = new DaemonSetUpdateStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategyPatch.java index 16f83e2cd7..2ccb2023a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DaemonSetUpdateStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DaemonSetUpdateStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDaemonSetPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DaemonSetUpdateStrategyPatch build() { - final var o = new DaemonSetUpdateStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DaemonSetUpdateStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Deployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Deployment.java index a1f1d9302d..6e3ceab567 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Deployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Deployment.java @@ -103,37 +103,42 @@ public Builder(Deployment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable DeploymentSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable DeploymentStatus status) { + this.status = status; return this; } public Deployment build() { - final var o = new Deployment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Deployment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentCondition.java index efc4409182..cdade49dd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.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,43 +115,53 @@ public Builder(DeploymentCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DeploymentCondition", "type"); + } + this.type = type; return this; } public DeploymentCondition build() { - final var o = new DeploymentCondition(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentConditionPatch.java index 907f8cb1ac..865e3792d0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentConditionPatch.java @@ -114,43 +114,49 @@ public Builder(DeploymentConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentConditionPatch build() { - final var o = new DeploymentConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new DeploymentConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpec.java index 644ea356e3..b8017df799 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.PodTemplateSpec; import com.pulumi.kubernetes.extensions.v1beta1.outputs.DeploymentStrategy; import com.pulumi.kubernetes.extensions.v1beta1.outputs.RollbackConfig; @@ -161,61 +162,72 @@ public Builder(DeploymentSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder rollbackTo(@Nullable RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategy strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(PodTemplateSpec template) { - this.template = Objects.requireNonNull(template); + if (template == null) { + throw new MissingRequiredPropertyException("DeploymentSpec", "template"); + } + this.template = template; return this; } public DeploymentSpec build() { - final var o = new DeploymentSpec(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.rollbackTo = rollbackTo; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.rollbackTo = rollbackTo; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpecPatch.java index abbd4abd0f..114377e966 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentSpecPatch.java @@ -161,61 +161,70 @@ public Builder(DeploymentSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder progressDeadlineSeconds(@Nullable Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder revisionHistoryLimit(@Nullable Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder rollbackTo(@Nullable RollbackConfigPatch rollbackTo) { + this.rollbackTo = rollbackTo; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder strategy(@Nullable DeploymentStrategyPatch strategy) { + this.strategy = strategy; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public DeploymentSpecPatch build() { - final var o = new DeploymentSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.paused = paused; - o.progressDeadlineSeconds = progressDeadlineSeconds; - o.replicas = replicas; - o.revisionHistoryLimit = revisionHistoryLimit; - o.rollbackTo = rollbackTo; - o.selector = selector; - o.strategy = strategy; - o.template = template; - return o; + final var _resultValue = new DeploymentSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.paused = paused; + _resultValue.progressDeadlineSeconds = progressDeadlineSeconds; + _resultValue.replicas = replicas; + _resultValue.revisionHistoryLimit = revisionHistoryLimit; + _resultValue.rollbackTo = rollbackTo; + _resultValue.selector = selector; + _resultValue.strategy = strategy; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatus.java index 4ba29efe59..db056fb746 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatus.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentCondition... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatus build() { - final var o = new DeploymentStatus(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatusPatch.java index 65e9bf19e4..21c99a64f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStatusPatch.java @@ -144,16 +144,19 @@ public Builder(DeploymentStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder collisionCount(@Nullable Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -162,40 +165,45 @@ public Builder conditions(DeploymentConditionPatch... conditions) { } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder unavailableReplicas(@Nullable Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @CustomType.Setter public Builder updatedReplicas(@Nullable Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } public DeploymentStatusPatch build() { - final var o = new DeploymentStatusPatch(); - o.availableReplicas = availableReplicas; - o.collisionCount = collisionCount; - o.conditions = conditions; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - o.unavailableReplicas = unavailableReplicas; - o.updatedReplicas = updatedReplicas; - return o; + final var _resultValue = new DeploymentStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.collisionCount = collisionCount; + _resultValue.conditions = conditions; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + _resultValue.unavailableReplicas = unavailableReplicas; + _resultValue.updatedReplicas = updatedReplicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategy.java index 404d8c43b1..107db71476 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategy.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategy build() { - final var o = new DeploymentStrategy(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategy(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategyPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategyPatch.java index 146b203990..b057fb7f69 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategyPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/DeploymentStrategyPatch.java @@ -59,19 +59,21 @@ public Builder(DeploymentStrategyPatch defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable RollingUpdateDeploymentPatch rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public DeploymentStrategyPatch build() { - final var o = new DeploymentStrategyPatch(); - o.rollingUpdate = rollingUpdate; - o.type = type; - return o; + final var _resultValue = new DeploymentStrategyPatch(); + _resultValue.rollingUpdate = rollingUpdate; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptions.java index 17a1c8c06c..50e71f0f6d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptions.java @@ -60,6 +60,7 @@ public Builder(FSGroupStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public FSGroupStrategyOptions build() { - final var o = new FSGroupStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new FSGroupStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptionsPatch.java index 800ef22ae8..b9f007bb5a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/FSGroupStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(FSGroupStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public FSGroupStrategyOptionsPatch build() { - final var o = new FSGroupStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new FSGroupStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPath.java index 7976d7f643..2078d9dc80 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPath.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.IngressBackend; import java.lang.String; import java.util.Objects; @@ -93,25 +94,30 @@ public Builder(HTTPIngressPath defaults) { @CustomType.Setter public Builder backend(IngressBackend backend) { - this.backend = Objects.requireNonNull(backend); + if (backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPath", "backend"); + } + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(@Nullable String pathType) { + this.pathType = pathType; return this; } public HTTPIngressPath build() { - final var o = new HTTPIngressPath(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPath(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPathPatch.java index 83caeb5c3d..d95f3c8511 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressPathPatch.java @@ -93,25 +93,28 @@ public Builder(HTTPIngressPathPatch defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackendPatch backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(@Nullable String pathType) { + this.pathType = pathType; return this; } public HTTPIngressPathPatch build() { - final var o = new HTTPIngressPathPatch(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPathPatch(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValue.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValue.java index f47f1c4b36..7dc340e2cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValue.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValue.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.HTTPIngressPath; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(HTTPIngressRuleValue defaults) { @CustomType.Setter public Builder paths(List paths) { - this.paths = Objects.requireNonNull(paths); + if (paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValue", "paths"); + } + this.paths = paths; return this; } public Builder paths(HTTPIngressPath... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValue build() { - final var o = new HTTPIngressRuleValue(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValue(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValuePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValuePatch.java index 6bc395ba79..b0f81e4786 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValuePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HTTPIngressRuleValuePatch.java @@ -44,6 +44,7 @@ public Builder(HTTPIngressRuleValuePatch defaults) { @CustomType.Setter public Builder paths(@Nullable List paths) { + this.paths = paths; return this; } @@ -51,9 +52,9 @@ public Builder paths(HTTPIngressPathPatch... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValuePatch build() { - final var o = new HTTPIngressRuleValuePatch(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValuePatch(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRange.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRange.java index c63247881b..6dbf4ea184 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRange.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRange.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(HostPortRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("HostPortRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("HostPortRange", "min"); + } + this.min = min; return this; } public HostPortRange build() { - final var o = new HostPortRange(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new HostPortRange(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRangePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRangePatch.java index 61c3305ac5..146841b4b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRangePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/HostPortRangePatch.java @@ -58,19 +58,21 @@ public Builder(HostPortRangePatch defaults) { @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } public HostPortRangePatch build() { - final var o = new HostPortRangePatch(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new HostPortRangePatch(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRange.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRange.java index d318d617e8..a44d514055 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRange.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRange.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(IDRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("IDRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("IDRange", "min"); + } + this.min = min; return this; } public IDRange build() { - final var o = new IDRange(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new IDRange(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRangePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRangePatch.java index c976ee17e1..35b7acc6d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRangePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IDRangePatch.java @@ -58,19 +58,21 @@ public Builder(IDRangePatch defaults) { @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } public IDRangePatch build() { - final var o = new IDRangePatch(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new IDRangePatch(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlock.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlock.java index c9308ce8aa..894be5eecd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlock.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlock.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -58,11 +59,15 @@ public Builder(IPBlock defaults) { @CustomType.Setter public Builder cidr(String cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("IPBlock", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder except(@Nullable List except) { + this.except = except; return this; } @@ -70,10 +75,10 @@ public Builder except(String... except) { return except(List.of(except)); } public IPBlock build() { - final var o = new IPBlock(); - o.cidr = cidr; - o.except = except; - return o; + final var _resultValue = new IPBlock(); + _resultValue.cidr = cidr; + _resultValue.except = except; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlockPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlockPatch.java index 272cd0bab3..ac8bc998e2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlockPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IPBlockPatch.java @@ -59,11 +59,13 @@ public Builder(IPBlockPatch defaults) { @CustomType.Setter public Builder cidr(@Nullable String cidr) { + this.cidr = cidr; return this; } @CustomType.Setter public Builder except(@Nullable List except) { + this.except = except; return this; } @@ -71,10 +73,10 @@ public Builder except(String... except) { return except(List.of(except)); } public IPBlockPatch build() { - final var o = new IPBlockPatch(); - o.cidr = cidr; - o.except = except; - return o; + final var _resultValue = new IPBlockPatch(); + _resultValue.cidr = cidr; + _resultValue.except = except; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Ingress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Ingress.java index 4e564d9be6..3f0983cc2a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Ingress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/Ingress.java @@ -103,37 +103,42 @@ public Builder(Ingress defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IngressSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable IngressStatus status) { + this.status = status; return this; } public Ingress build() { - final var o = new Ingress(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Ingress(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackend.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackend.java index a7489235bb..0cd0f1e0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackend.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackend.java @@ -5,6 +5,7 @@ import com.pulumi.core.Either; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.TypedLocalObjectReference; import java.lang.Integer; import java.lang.String; @@ -75,25 +76,32 @@ public Builder(IngressBackend defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReference resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder serviceName(String serviceName) { - this.serviceName = Objects.requireNonNull(serviceName); + if (serviceName == null) { + throw new MissingRequiredPropertyException("IngressBackend", "serviceName"); + } + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder servicePort(Either servicePort) { - this.servicePort = Objects.requireNonNull(servicePort); + if (servicePort == null) { + throw new MissingRequiredPropertyException("IngressBackend", "servicePort"); + } + this.servicePort = servicePort; return this; } public IngressBackend build() { - final var o = new IngressBackend(); - o.resource = resource; - o.serviceName = serviceName; - o.servicePort = servicePort; - return o; + final var _resultValue = new IngressBackend(); + _resultValue.resource = resource; + _resultValue.serviceName = serviceName; + _resultValue.servicePort = servicePort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackendPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackendPatch.java index 34d08e8cbe..f790b4f410 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackendPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressBackendPatch.java @@ -75,25 +75,28 @@ public Builder(IngressBackendPatch defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReferencePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder servicePort(@Nullable Either servicePort) { + this.servicePort = servicePort; return this; } public IngressBackendPatch build() { - final var o = new IngressBackendPatch(); - o.resource = resource; - o.serviceName = serviceName; - o.servicePort = servicePort; - return o; + final var _resultValue = new IngressBackendPatch(); + _resultValue.resource = resource; + _resultValue.serviceName = serviceName; + _resultValue.servicePort = servicePort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRule.java index 8944e5aea1..7520eea055 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRule.java @@ -61,19 +61,21 @@ public Builder(IngressRule defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValue http) { + this.http = http; return this; } public IngressRule build() { - final var o = new IngressRule(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRule(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRulePatch.java index 6a4916f886..1c0d8324bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressRulePatch.java @@ -61,19 +61,21 @@ public Builder(IngressRulePatch defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValuePatch http) { + this.http = http; return this; } public IngressRulePatch build() { - final var o = new IngressRulePatch(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRulePatch(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpec.java index ed96a9e95b..a4f8256349 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpec.java @@ -90,16 +90,19 @@ public Builder(IngressSpec defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackend backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRule... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLS... tls) { return tls(List.of(tls)); } public IngressSpec build() { - final var o = new IngressSpec(); - o.backend = backend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpec(); + _resultValue.backend = backend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpecPatch.java index 4555192a18..6c8c84b653 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpecPatch.java @@ -90,16 +90,19 @@ public Builder(IngressSpecPatch defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackendPatch backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRulePatch... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLSPatch... tls) { return tls(List.of(tls)); } public IngressSpecPatch build() { - final var o = new IngressSpecPatch(); - o.backend = backend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpecPatch(); + _resultValue.backend = backend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatus.java index 732c5efff3..d67b139602 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatus.java @@ -44,13 +44,14 @@ public Builder(IngressStatus defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatus build() { - final var o = new IngressStatus(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatus(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatusPatch.java index 8e21a4e8bd..b95219e2cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressStatusPatch.java @@ -44,13 +44,14 @@ public Builder(IngressStatusPatch defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatusPatch loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatusPatch build() { - final var o = new IngressStatusPatch(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatusPatch(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLS.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLS.java index 16a5ad2bf5..37ad4a3022 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLS.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLS.java @@ -59,6 +59,7 @@ public Builder(IngressTLS defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLS build() { - final var o = new IngressTLS(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLS(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLSPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLSPatch.java index 719ef87567..59e5182d1e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLSPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressTLSPatch.java @@ -59,6 +59,7 @@ public Builder(IngressTLSPatch defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLSPatch build() { - final var o = new IngressTLSPatch(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLSPatch(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicy.java index a9d93185e4..c6b4e1d453 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicy.java @@ -88,31 +88,35 @@ public Builder(NetworkPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable NetworkPolicySpec spec) { + this.spec = spec; return this; } public NetworkPolicy build() { - final var o = new NetworkPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new NetworkPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRule.java index 4b7f08bb21..8ff583dc63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRule.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyEgressRule defaults) { @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -67,6 +68,7 @@ public Builder ports(NetworkPolicyPort... ports) { } @CustomType.Setter public Builder to(@Nullable List to) { + this.to = to; return this; } @@ -74,10 +76,10 @@ public Builder to(NetworkPolicyPeer... to) { return to(List.of(to)); } public NetworkPolicyEgressRule build() { - final var o = new NetworkPolicyEgressRule(); - o.ports = ports; - o.to = to; - return o; + final var _resultValue = new NetworkPolicyEgressRule(); + _resultValue.ports = ports; + _resultValue.to = to; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRulePatch.java index 128baa6460..78fb6508f6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyEgressRulePatch.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyEgressRulePatch defaults) { @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -67,6 +68,7 @@ public Builder ports(NetworkPolicyPortPatch... ports) { } @CustomType.Setter public Builder to(@Nullable List to) { + this.to = to; return this; } @@ -74,10 +76,10 @@ public Builder to(NetworkPolicyPeerPatch... to) { return to(List.of(to)); } public NetworkPolicyEgressRulePatch build() { - final var o = new NetworkPolicyEgressRulePatch(); - o.ports = ports; - o.to = to; - return o; + final var _resultValue = new NetworkPolicyEgressRulePatch(); + _resultValue.ports = ports; + _resultValue.to = to; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRule.java index 03a3b68ac5..0f9578e7ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRule.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyIngressRule defaults) { @CustomType.Setter public Builder from(@Nullable List from) { + this.from = from; return this; } @@ -67,6 +68,7 @@ public Builder from(NetworkPolicyPeer... from) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -74,10 +76,10 @@ public Builder ports(NetworkPolicyPort... ports) { return ports(List.of(ports)); } public NetworkPolicyIngressRule build() { - final var o = new NetworkPolicyIngressRule(); - o.from = from; - o.ports = ports; - return o; + final var _resultValue = new NetworkPolicyIngressRule(); + _resultValue.from = from; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRulePatch.java index e2ae0ce616..8ceabf4c62 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyIngressRulePatch.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyIngressRulePatch defaults) { @CustomType.Setter public Builder from(@Nullable List from) { + this.from = from; return this; } @@ -67,6 +68,7 @@ public Builder from(NetworkPolicyPeerPatch... from) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -74,10 +76,10 @@ public Builder ports(NetworkPolicyPortPatch... ports) { return ports(List.of(ports)); } public NetworkPolicyIngressRulePatch build() { - final var o = new NetworkPolicyIngressRulePatch(); - o.from = from; - o.ports = ports; - return o; + final var _resultValue = new NetworkPolicyIngressRulePatch(); + _resultValue.from = from; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeer.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeer.java index 7d8957d5da..14adb6bcac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeer.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeer.java @@ -81,25 +81,28 @@ public Builder(NetworkPolicyPeer defaults) { @CustomType.Setter public Builder ipBlock(@Nullable IPBlock ipBlock) { + this.ipBlock = ipBlock; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder podSelector(@Nullable LabelSelector podSelector) { + this.podSelector = podSelector; return this; } public NetworkPolicyPeer build() { - final var o = new NetworkPolicyPeer(); - o.ipBlock = ipBlock; - o.namespaceSelector = namespaceSelector; - o.podSelector = podSelector; - return o; + final var _resultValue = new NetworkPolicyPeer(); + _resultValue.ipBlock = ipBlock; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.podSelector = podSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeerPatch.java index d0d09462d3..3cc87592f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPeerPatch.java @@ -81,25 +81,28 @@ public Builder(NetworkPolicyPeerPatch defaults) { @CustomType.Setter public Builder ipBlock(@Nullable IPBlockPatch ipBlock) { + this.ipBlock = ipBlock; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder podSelector(@Nullable LabelSelectorPatch podSelector) { + this.podSelector = podSelector; return this; } public NetworkPolicyPeerPatch build() { - final var o = new NetworkPolicyPeerPatch(); - o.ipBlock = ipBlock; - o.namespaceSelector = namespaceSelector; - o.podSelector = podSelector; - return o; + final var _resultValue = new NetworkPolicyPeerPatch(); + _resultValue.ipBlock = ipBlock; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.podSelector = podSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPort.java index 696b1ea79b..ae6f88a284 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPort.java @@ -60,19 +60,21 @@ public Builder(NetworkPolicyPort defaults) { @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public NetworkPolicyPort build() { - final var o = new NetworkPolicyPort(); - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new NetworkPolicyPort(); + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPortPatch.java index 9c2c2b99e4..1a1b6434b4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicyPortPatch.java @@ -60,19 +60,21 @@ public Builder(NetworkPolicyPortPatch defaults) { @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public NetworkPolicyPortPatch build() { - final var o = new NetworkPolicyPortPatch(); - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new NetworkPolicyPortPatch(); + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpec.java index 79fbb53892..85673870d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.NetworkPolicyEgressRule; import com.pulumi.kubernetes.extensions.v1beta1.outputs.NetworkPolicyIngressRule; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; @@ -89,6 +90,7 @@ public Builder(NetworkPolicySpec defaults) { @CustomType.Setter public Builder egress(@Nullable List egress) { + this.egress = egress; return this; } @@ -97,6 +99,7 @@ public Builder egress(NetworkPolicyEgressRule... egress) { } @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -105,11 +108,15 @@ public Builder ingress(NetworkPolicyIngressRule... ingress) { } @CustomType.Setter public Builder podSelector(LabelSelector podSelector) { - this.podSelector = Objects.requireNonNull(podSelector); + if (podSelector == null) { + throw new MissingRequiredPropertyException("NetworkPolicySpec", "podSelector"); + } + this.podSelector = podSelector; return this; } @CustomType.Setter public Builder policyTypes(@Nullable List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -117,12 +124,12 @@ public Builder policyTypes(String... policyTypes) { return policyTypes(List.of(policyTypes)); } public NetworkPolicySpec build() { - final var o = new NetworkPolicySpec(); - o.egress = egress; - o.ingress = ingress; - o.podSelector = podSelector; - o.policyTypes = policyTypes; - return o; + final var _resultValue = new NetworkPolicySpec(); + _resultValue.egress = egress; + _resultValue.ingress = ingress; + _resultValue.podSelector = podSelector; + _resultValue.policyTypes = policyTypes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpecPatch.java index dc0ce7325c..f34a14819d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicySpecPatch.java @@ -90,6 +90,7 @@ public Builder(NetworkPolicySpecPatch defaults) { @CustomType.Setter public Builder egress(@Nullable List egress) { + this.egress = egress; return this; } @@ -98,6 +99,7 @@ public Builder egress(NetworkPolicyEgressRulePatch... egress) { } @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -106,11 +108,13 @@ public Builder ingress(NetworkPolicyIngressRulePatch... ingress) { } @CustomType.Setter public Builder podSelector(@Nullable LabelSelectorPatch podSelector) { + this.podSelector = podSelector; return this; } @CustomType.Setter public Builder policyTypes(@Nullable List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -118,12 +122,12 @@ public Builder policyTypes(String... policyTypes) { return policyTypes(List.of(policyTypes)); } public NetworkPolicySpecPatch build() { - final var o = new NetworkPolicySpecPatch(); - o.egress = egress; - o.ingress = ingress; - o.podSelector = podSelector; - o.policyTypes = policyTypes; - return o; + final var _resultValue = new NetworkPolicySpecPatch(); + _resultValue.egress = egress; + _resultValue.ingress = ingress; + _resultValue.podSelector = podSelector; + _resultValue.policyTypes = policyTypes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicy.java index 0ba492d32c..22c72cec95 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicy.java @@ -88,31 +88,35 @@ public Builder(PodSecurityPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodSecurityPolicySpec spec) { + this.spec = spec; return this; } public PodSecurityPolicy build() { - final var o = new PodSecurityPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PodSecurityPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpec.java index 1661369b61..a53acb230a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.AllowedCSIDriver; import com.pulumi.kubernetes.extensions.v1beta1.outputs.AllowedFlexVolume; import com.pulumi.kubernetes.extensions.v1beta1.outputs.AllowedHostPath; @@ -386,11 +387,13 @@ public Builder(PodSecurityPolicySpec defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder allowedCSIDrivers(@Nullable List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -399,6 +402,7 @@ public Builder allowedCSIDrivers(AllowedCSIDriver... allowedCSIDrivers) { } @CustomType.Setter public Builder allowedCapabilities(@Nullable List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -407,6 +411,7 @@ public Builder allowedCapabilities(String... allowedCapabilities) { } @CustomType.Setter public Builder allowedFlexVolumes(@Nullable List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -415,6 +420,7 @@ public Builder allowedFlexVolumes(AllowedFlexVolume... allowedFlexVolumes) { } @CustomType.Setter public Builder allowedHostPaths(@Nullable List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -423,6 +429,7 @@ public Builder allowedHostPaths(AllowedHostPath... allowedHostPaths) { } @CustomType.Setter public Builder allowedProcMountTypes(@Nullable List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -431,6 +438,7 @@ public Builder allowedProcMountTypes(String... allowedProcMountTypes) { } @CustomType.Setter public Builder allowedUnsafeSysctls(@Nullable List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -439,6 +447,7 @@ public Builder allowedUnsafeSysctls(String... allowedUnsafeSysctls) { } @CustomType.Setter public Builder defaultAddCapabilities(@Nullable List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -447,11 +456,13 @@ public Builder defaultAddCapabilities(String... defaultAddCapabilities) { } @CustomType.Setter public Builder defaultAllowPrivilegeEscalation(@Nullable Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @CustomType.Setter public Builder forbiddenSysctls(@Nullable List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -460,26 +471,33 @@ public Builder forbiddenSysctls(String... forbiddenSysctls) { } @CustomType.Setter public Builder fsGroup(FSGroupStrategyOptions fsGroup) { - this.fsGroup = Objects.requireNonNull(fsGroup); + if (fsGroup == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "fsGroup"); + } + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostPorts(@Nullable List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -488,16 +506,19 @@ public Builder hostPorts(HostPortRange... hostPorts) { } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder requiredDropCapabilities(@Nullable List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -506,31 +527,43 @@ public Builder requiredDropCapabilities(String... requiredDropCapabilities) { } @CustomType.Setter public Builder runAsGroup(@Nullable RunAsGroupStrategyOptions runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsUser(RunAsUserStrategyOptions runAsUser) { - this.runAsUser = Objects.requireNonNull(runAsUser); + if (runAsUser == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "runAsUser"); + } + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder runtimeClass(@Nullable RuntimeClassStrategyOptions runtimeClass) { + this.runtimeClass = runtimeClass; return this; } @CustomType.Setter public Builder seLinux(SELinuxStrategyOptions seLinux) { - this.seLinux = Objects.requireNonNull(seLinux); + if (seLinux == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "seLinux"); + } + this.seLinux = seLinux; return this; } @CustomType.Setter public Builder supplementalGroups(SupplementalGroupsStrategyOptions supplementalGroups) { - this.supplementalGroups = Objects.requireNonNull(supplementalGroups); + if (supplementalGroups == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "supplementalGroups"); + } + this.supplementalGroups = supplementalGroups; return this; } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -538,32 +571,32 @@ public Builder volumes(String... volumes) { return volumes(List.of(volumes)); } public PodSecurityPolicySpec build() { - final var o = new PodSecurityPolicySpec(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.allowedCSIDrivers = allowedCSIDrivers; - o.allowedCapabilities = allowedCapabilities; - o.allowedFlexVolumes = allowedFlexVolumes; - o.allowedHostPaths = allowedHostPaths; - o.allowedProcMountTypes = allowedProcMountTypes; - o.allowedUnsafeSysctls = allowedUnsafeSysctls; - o.defaultAddCapabilities = defaultAddCapabilities; - o.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - o.forbiddenSysctls = forbiddenSysctls; - o.fsGroup = fsGroup; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostPorts = hostPorts; - o.privileged = privileged; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.requiredDropCapabilities = requiredDropCapabilities; - o.runAsGroup = runAsGroup; - o.runAsUser = runAsUser; - o.runtimeClass = runtimeClass; - o.seLinux = seLinux; - o.supplementalGroups = supplementalGroups; - o.volumes = volumes; - return o; + final var _resultValue = new PodSecurityPolicySpec(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.allowedCSIDrivers = allowedCSIDrivers; + _resultValue.allowedCapabilities = allowedCapabilities; + _resultValue.allowedFlexVolumes = allowedFlexVolumes; + _resultValue.allowedHostPaths = allowedHostPaths; + _resultValue.allowedProcMountTypes = allowedProcMountTypes; + _resultValue.allowedUnsafeSysctls = allowedUnsafeSysctls; + _resultValue.defaultAddCapabilities = defaultAddCapabilities; + _resultValue.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; + _resultValue.forbiddenSysctls = forbiddenSysctls; + _resultValue.fsGroup = fsGroup; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostPorts = hostPorts; + _resultValue.privileged = privileged; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.requiredDropCapabilities = requiredDropCapabilities; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsUser = runAsUser; + _resultValue.runtimeClass = runtimeClass; + _resultValue.seLinux = seLinux; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpecPatch.java index 3b21e18649..c2696f859c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/PodSecurityPolicySpecPatch.java @@ -386,11 +386,13 @@ public Builder(PodSecurityPolicySpecPatch defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder allowedCSIDrivers(@Nullable List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -399,6 +401,7 @@ public Builder allowedCSIDrivers(AllowedCSIDriverPatch... allowedCSIDrivers) { } @CustomType.Setter public Builder allowedCapabilities(@Nullable List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -407,6 +410,7 @@ public Builder allowedCapabilities(String... allowedCapabilities) { } @CustomType.Setter public Builder allowedFlexVolumes(@Nullable List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -415,6 +419,7 @@ public Builder allowedFlexVolumes(AllowedFlexVolumePatch... allowedFlexVolumes) } @CustomType.Setter public Builder allowedHostPaths(@Nullable List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -423,6 +428,7 @@ public Builder allowedHostPaths(AllowedHostPathPatch... allowedHostPaths) { } @CustomType.Setter public Builder allowedProcMountTypes(@Nullable List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -431,6 +437,7 @@ public Builder allowedProcMountTypes(String... allowedProcMountTypes) { } @CustomType.Setter public Builder allowedUnsafeSysctls(@Nullable List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -439,6 +446,7 @@ public Builder allowedUnsafeSysctls(String... allowedUnsafeSysctls) { } @CustomType.Setter public Builder defaultAddCapabilities(@Nullable List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -447,11 +455,13 @@ public Builder defaultAddCapabilities(String... defaultAddCapabilities) { } @CustomType.Setter public Builder defaultAllowPrivilegeEscalation(@Nullable Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @CustomType.Setter public Builder forbiddenSysctls(@Nullable List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -460,26 +470,31 @@ public Builder forbiddenSysctls(String... forbiddenSysctls) { } @CustomType.Setter public Builder fsGroup(@Nullable FSGroupStrategyOptionsPatch fsGroup) { + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostPorts(@Nullable List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -488,16 +503,19 @@ public Builder hostPorts(HostPortRangePatch... hostPorts) { } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder requiredDropCapabilities(@Nullable List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -506,31 +524,37 @@ public Builder requiredDropCapabilities(String... requiredDropCapabilities) { } @CustomType.Setter public Builder runAsGroup(@Nullable RunAsGroupStrategyOptionsPatch runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsUser(@Nullable RunAsUserStrategyOptionsPatch runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder runtimeClass(@Nullable RuntimeClassStrategyOptionsPatch runtimeClass) { + this.runtimeClass = runtimeClass; return this; } @CustomType.Setter public Builder seLinux(@Nullable SELinuxStrategyOptionsPatch seLinux) { + this.seLinux = seLinux; return this; } @CustomType.Setter public Builder supplementalGroups(@Nullable SupplementalGroupsStrategyOptionsPatch supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -538,32 +562,32 @@ public Builder volumes(String... volumes) { return volumes(List.of(volumes)); } public PodSecurityPolicySpecPatch build() { - final var o = new PodSecurityPolicySpecPatch(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.allowedCSIDrivers = allowedCSIDrivers; - o.allowedCapabilities = allowedCapabilities; - o.allowedFlexVolumes = allowedFlexVolumes; - o.allowedHostPaths = allowedHostPaths; - o.allowedProcMountTypes = allowedProcMountTypes; - o.allowedUnsafeSysctls = allowedUnsafeSysctls; - o.defaultAddCapabilities = defaultAddCapabilities; - o.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - o.forbiddenSysctls = forbiddenSysctls; - o.fsGroup = fsGroup; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostPorts = hostPorts; - o.privileged = privileged; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.requiredDropCapabilities = requiredDropCapabilities; - o.runAsGroup = runAsGroup; - o.runAsUser = runAsUser; - o.runtimeClass = runtimeClass; - o.seLinux = seLinux; - o.supplementalGroups = supplementalGroups; - o.volumes = volumes; - return o; + final var _resultValue = new PodSecurityPolicySpecPatch(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.allowedCSIDrivers = allowedCSIDrivers; + _resultValue.allowedCapabilities = allowedCapabilities; + _resultValue.allowedFlexVolumes = allowedFlexVolumes; + _resultValue.allowedHostPaths = allowedHostPaths; + _resultValue.allowedProcMountTypes = allowedProcMountTypes; + _resultValue.allowedUnsafeSysctls = allowedUnsafeSysctls; + _resultValue.defaultAddCapabilities = defaultAddCapabilities; + _resultValue.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; + _resultValue.forbiddenSysctls = forbiddenSysctls; + _resultValue.fsGroup = fsGroup; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostPorts = hostPorts; + _resultValue.privileged = privileged; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.requiredDropCapabilities = requiredDropCapabilities; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsUser = runAsUser; + _resultValue.runtimeClass = runtimeClass; + _resultValue.seLinux = seLinux; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSet.java index a42e63e67b..a09a39e23d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSet.java @@ -103,37 +103,42 @@ public Builder(ReplicaSet defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ReplicaSetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ReplicaSetStatus status) { + this.status = status; return this; } public ReplicaSet build() { - final var o = new ReplicaSet(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ReplicaSet(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetCondition.java index b3150c4120..59656cfbc5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(ReplicaSetCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ReplicaSetCondition", "type"); + } + this.type = type; return this; } public ReplicaSetCondition build() { - final var o = new ReplicaSetCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetConditionPatch.java index 7bf8c7c551..f487884fa8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetConditionPatch.java @@ -100,37 +100,42 @@ public Builder(ReplicaSetConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ReplicaSetConditionPatch build() { - final var o = new ReplicaSetConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ReplicaSetConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpec.java index d630d9e837..ae358a09c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpec.java @@ -88,31 +88,35 @@ public Builder(ReplicaSetSpec defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpec template) { + this.template = template; return this; } public ReplicaSetSpec build() { - final var o = new ReplicaSetSpec(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpec(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpecPatch.java index b0872765d4..09c57c3481 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetSpecPatch.java @@ -88,31 +88,35 @@ public Builder(ReplicaSetSpecPatch defaults) { @CustomType.Setter public Builder minReadySeconds(@Nullable Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder template(@Nullable PodTemplateSpecPatch template) { + this.template = template; return this; } public ReplicaSetSpecPatch build() { - final var o = new ReplicaSetSpecPatch(); - o.minReadySeconds = minReadySeconds; - o.replicas = replicas; - o.selector = selector; - o.template = template; - return o; + final var _resultValue = new ReplicaSetSpecPatch(); + _resultValue.minReadySeconds = minReadySeconds; + _resultValue.replicas = replicas; + _resultValue.selector = selector; + _resultValue.template = template; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatus.java index 50ef16b810..00c2dde607 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.ReplicaSetCondition; import java.lang.Integer; import java.util.List; @@ -116,11 +117,13 @@ public Builder(ReplicaSetStatus defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +132,39 @@ public Builder conditions(ReplicaSetCondition... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("ReplicaSetStatus", "replicas"); + } + this.replicas = replicas; return this; } public ReplicaSetStatus build() { - final var o = new ReplicaSetStatus(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatus(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatusPatch.java index 43a8fd89ce..27d772c70d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/ReplicaSetStatusPatch.java @@ -116,11 +116,13 @@ public Builder(ReplicaSetStatusPatch defaults) { @CustomType.Setter public Builder availableReplicas(@Nullable Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -129,33 +131,37 @@ public Builder conditions(ReplicaSetConditionPatch... conditions) { } @CustomType.Setter public Builder fullyLabeledReplicas(@Nullable Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder readyReplicas(@Nullable Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } public ReplicaSetStatusPatch build() { - final var o = new ReplicaSetStatusPatch(); - o.availableReplicas = availableReplicas; - o.conditions = conditions; - o.fullyLabeledReplicas = fullyLabeledReplicas; - o.observedGeneration = observedGeneration; - o.readyReplicas = readyReplicas; - o.replicas = replicas; - return o; + final var _resultValue = new ReplicaSetStatusPatch(); + _resultValue.availableReplicas = availableReplicas; + _resultValue.conditions = conditions; + _resultValue.fullyLabeledReplicas = fullyLabeledReplicas; + _resultValue.observedGeneration = observedGeneration; + _resultValue.readyReplicas = readyReplicas; + _resultValue.replicas = replicas; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfig.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfig.java index e5b8a2eb43..88a93fcfa7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfig.java @@ -44,13 +44,14 @@ public Builder(RollbackConfig defaults) { @CustomType.Setter public Builder revision(@Nullable Integer revision) { + this.revision = revision; return this; } public RollbackConfig build() { - final var o = new RollbackConfig(); - o.revision = revision; - return o; + final var _resultValue = new RollbackConfig(); + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfigPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfigPatch.java index e178d1e32d..5a3cfbbf66 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfigPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollbackConfigPatch.java @@ -44,13 +44,14 @@ public Builder(RollbackConfigPatch defaults) { @CustomType.Setter public Builder revision(@Nullable Integer revision) { + this.revision = revision; return this; } public RollbackConfigPatch build() { - final var o = new RollbackConfigPatch(); - o.revision = revision; - return o; + final var _resultValue = new RollbackConfigPatch(); + _resultValue.revision = revision; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSet.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSet.java index 56593d79ce..ab6475f4f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSet.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSet.java @@ -46,13 +46,14 @@ public Builder(RollingUpdateDaemonSet defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSet build() { - final var o = new RollingUpdateDaemonSet(); - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSet(); + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSetPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSetPatch.java index 51d254e8c8..f4c2c0fb75 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSetPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDaemonSetPatch.java @@ -46,13 +46,14 @@ public Builder(RollingUpdateDaemonSetPatch defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDaemonSetPatch build() { - final var o = new RollingUpdateDaemonSetPatch(); - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDaemonSetPatch(); + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeployment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeployment.java index fc387d30f6..f0d3861790 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeployment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeployment.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeployment defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeployment build() { - final var o = new RollingUpdateDeployment(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeployment(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeploymentPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeploymentPatch.java index abe410e60d..ac21b89a94 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeploymentPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RollingUpdateDeploymentPatch.java @@ -60,19 +60,21 @@ public Builder(RollingUpdateDeploymentPatch defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Either maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } public RollingUpdateDeploymentPatch build() { - final var o = new RollingUpdateDeploymentPatch(); - o.maxSurge = maxSurge; - o.maxUnavailable = maxUnavailable; - return o; + final var _resultValue = new RollingUpdateDeploymentPatch(); + _resultValue.maxSurge = maxSurge; + _resultValue.maxUnavailable = maxUnavailable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptions.java index e6a018b59b..2b3bf38ea6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.IDRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(RunAsGroupStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,14 +69,17 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("RunAsGroupStrategyOptions", "rule"); + } + this.rule = rule; return this; } public RunAsGroupStrategyOptions build() { - final var o = new RunAsGroupStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsGroupStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java index dbcae9e2f3..09ca8db8bd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(RunAsGroupStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public RunAsGroupStrategyOptionsPatch build() { - final var o = new RunAsGroupStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsGroupStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptions.java index 3db65becb1..48d8db7765 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.extensions.v1beta1.outputs.IDRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(RunAsUserStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,14 +69,17 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("RunAsUserStrategyOptions", "rule"); + } + this.rule = rule; return this; } public RunAsUserStrategyOptions build() { - final var o = new RunAsUserStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsUserStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java index 30cededff3..587c8ff5b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(RunAsUserStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public RunAsUserStrategyOptionsPatch build() { - final var o = new RunAsUserStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsUserStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptions.java index 224b962304..fa93902e03 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -59,7 +60,10 @@ public Builder(RuntimeClassStrategyOptions defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(List allowedRuntimeClassNames) { - this.allowedRuntimeClassNames = Objects.requireNonNull(allowedRuntimeClassNames); + if (allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("RuntimeClassStrategyOptions", "allowedRuntimeClassNames"); + } + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { @@ -67,14 +71,15 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } public RuntimeClassStrategyOptions build() { - final var o = new RuntimeClassStrategyOptions(); - o.allowedRuntimeClassNames = allowedRuntimeClassNames; - o.defaultRuntimeClassName = defaultRuntimeClassName; - return o; + final var _resultValue = new RuntimeClassStrategyOptions(); + _resultValue.allowedRuntimeClassNames = allowedRuntimeClassNames; + _resultValue.defaultRuntimeClassName = defaultRuntimeClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java index ebe0c81905..2ffd03a45f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java @@ -59,6 +59,7 @@ public Builder(RuntimeClassStrategyOptionsPatch defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(@Nullable List allowedRuntimeClassNames) { + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } @@ -67,14 +68,15 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } public RuntimeClassStrategyOptionsPatch build() { - final var o = new RuntimeClassStrategyOptionsPatch(); - o.allowedRuntimeClassNames = allowedRuntimeClassNames; - o.defaultRuntimeClassName = defaultRuntimeClassName; - return o; + final var _resultValue = new RuntimeClassStrategyOptionsPatch(); + _resultValue.allowedRuntimeClassNames = allowedRuntimeClassNames; + _resultValue.defaultRuntimeClassName = defaultRuntimeClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptions.java index 5e3722bac5..f7084ed6ef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.extensions.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SELinuxOptions; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(SELinuxStrategyOptions defaults) { @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("SELinuxStrategyOptions", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } public SELinuxStrategyOptions build() { - final var o = new SELinuxStrategyOptions(); - o.rule = rule; - o.seLinuxOptions = seLinuxOptions; - return o; + final var _resultValue = new SELinuxStrategyOptions(); + _resultValue.rule = rule; + _resultValue.seLinuxOptions = seLinuxOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptionsPatch.java index ef643ebd29..81c45c9119 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SELinuxStrategyOptionsPatch.java @@ -59,19 +59,21 @@ public Builder(SELinuxStrategyOptionsPatch defaults) { @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptionsPatch seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } public SELinuxStrategyOptionsPatch build() { - final var o = new SELinuxStrategyOptionsPatch(); - o.rule = rule; - o.seLinuxOptions = seLinuxOptions; - return o; + final var _resultValue = new SELinuxStrategyOptionsPatch(); + _resultValue.rule = rule; + _resultValue.seLinuxOptions = seLinuxOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptions.java index ffb1622078..2842bf178c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptions.java @@ -60,6 +60,7 @@ public Builder(SupplementalGroupsStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public SupplementalGroupsStrategyOptions build() { - final var o = new SupplementalGroupsStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new SupplementalGroupsStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java index 04163e8134..01090a6ed2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(SupplementalGroupsStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public SupplementalGroupsStrategyOptionsPatch build() { - final var o = new SupplementalGroupsStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new SupplementalGroupsStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/FlowSchemaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/FlowSchemaListArgs.java index 11bccd3872..9d825bb724 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/FlowSchemaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/FlowSchemaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.FlowSchemaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public FlowSchemaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("FlowSchemaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/PriorityLevelConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/PriorityLevelConfigurationListArgs.java index f1f02e1001..5598ea3fae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/PriorityLevelConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/PriorityLevelConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.PriorityLevelConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityLevelConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowDistinguisherMethodArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowDistinguisherMethodArgs.java index 0067efeb67..65c29b4622 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowDistinguisherMethodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowDistinguisherMethodArgs.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; @@ -78,7 +79,9 @@ public Builder type(String type) { } public FlowDistinguisherMethodArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethodArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowSchemaSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowSchemaSpecArgs.java index 4478fe1eba..428440b2a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowSchemaSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/FlowSchemaSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.FlowDistinguisherMethodArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.PolicyRulesWithSubjectsArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.PriorityLevelConfigurationReferenceArgs; @@ -205,7 +206,9 @@ public Builder rules(PolicyRulesWithSubjectsArgs... rules) { } public FlowSchemaSpecArgs build() { - $.priorityLevelConfiguration = Objects.requireNonNull($.priorityLevelConfiguration, "expected parameter 'priorityLevelConfiguration' to be non-null"); + if ($.priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpecArgs", "priorityLevelConfiguration"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/GroupSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/GroupSubjectArgs.java index f4a8031462..1112bd49b1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/GroupSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/GroupSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GroupSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GroupSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/LimitResponseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/LimitResponseArgs.java index 52aaa4a89d..e6fa2bf103 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/LimitResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/LimitResponseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.QueuingConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public LimitResponseArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitResponseArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/NonResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/NonResourcePolicyRuleArgs.java index 1bae3e59b7..74a0947dee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/NonResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/NonResourcePolicyRuleArgs.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; @@ -166,8 +167,12 @@ public Builder verbs(String... verbs) { } public NonResourcePolicyRuleArgs build() { - $.nonResourceURLs = Objects.requireNonNull($.nonResourceURLs, "expected parameter 'nonResourceURLs' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "nonResourceURLs"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PolicyRulesWithSubjectsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PolicyRulesWithSubjectsArgs.java index 5262e7e615..046e22da1d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PolicyRulesWithSubjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PolicyRulesWithSubjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.NonResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.ResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.SubjectArgs; @@ -187,7 +188,9 @@ public Builder subjects(SubjectArgs... subjects) { } public PolicyRulesWithSubjectsArgs build() { - $.subjects = Objects.requireNonNull($.subjects, "expected parameter 'subjects' to be non-null"); + if ($.subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjectsArgs", "subjects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationReferenceArgs.java index fb9b2597e9..875d476167 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationReferenceArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PriorityLevelConfigurationReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationSpecArgs.java index f668dd63a7..63484a6d6f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/PriorityLevelConfigurationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.ExemptPriorityLevelConfigurationArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.LimitedPriorityLevelConfigurationArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder type(String type) { } public PriorityLevelConfigurationSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ResourcePolicyRuleArgs.java index 9342bbd270..2670bfc9a6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ResourcePolicyRuleArgs.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; @@ -270,9 +271,15 @@ public Builder verbs(String... verbs) { } public ResourcePolicyRuleArgs build() { - $.apiGroups = Objects.requireNonNull($.apiGroups, "expected parameter 'apiGroups' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "apiGroups"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "resources"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ServiceAccountSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ServiceAccountSubjectArgs.java index f9402506c1..8da2d55c7a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ServiceAccountSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/ServiceAccountSubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder namespace(String namespace) { } public ServiceAccountSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/SubjectArgs.java index 2c6b5b788e..4712a3a006 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/SubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.inputs.GroupSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.ServiceAccountSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1.inputs.UserSubjectArgs; @@ -194,7 +195,9 @@ public Builder user(UserSubjectArgs user) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/UserSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/UserSubjectArgs.java index f986d3bf60..6c50e5d733 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/UserSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/inputs/UserSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public UserSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("UserSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfiguration.java index 0de688c6b2..ba0a3d71cf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfiguration.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfiguration build() { - final var o = new ExemptPriorityLevelConfiguration(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfiguration(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfigurationPatch.java index c4213311fa..290c519499 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ExemptPriorityLevelConfigurationPatch.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfigurationPatch build() { - final var o = new ExemptPriorityLevelConfigurationPatch(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfigurationPatch(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethod.java index dda98531fa..9b4da4ae45 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethod.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(FlowDistinguisherMethod defaults) { @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethod", "type"); + } + this.type = type; return this; } public FlowDistinguisherMethod build() { - final var o = new FlowDistinguisherMethod(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethod(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethodPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethodPatch.java index a6286bbad5..43121cbe79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethodPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowDistinguisherMethodPatch.java @@ -44,13 +44,14 @@ public Builder(FlowDistinguisherMethodPatch defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowDistinguisherMethodPatch build() { - final var o = new FlowDistinguisherMethodPatch(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethodPatch(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchema.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchema.java index 1c04b828f2..cb2ed67093 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchema.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchema.java @@ -103,37 +103,42 @@ public Builder(FlowSchema defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable FlowSchemaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable FlowSchemaStatus status) { + this.status = status; return this; } public FlowSchema build() { - final var o = new FlowSchema(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new FlowSchema(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaCondition.java index 1558758fbd..fbbf2e9ac6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaCondition.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaCondition build() { - final var o = new FlowSchemaCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaConditionPatch.java index 3a7275197f..7e02588f56 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaConditionPatch.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaConditionPatch build() { - final var o = new FlowSchemaConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpec.java index 3615e4098e..e092e9dfdf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.outputs.FlowDistinguisherMethod; import com.pulumi.kubernetes.flowcontrol.v1.outputs.PolicyRulesWithSubjects; import com.pulumi.kubernetes.flowcontrol.v1.outputs.PriorityLevelConfigurationReference; @@ -90,21 +91,27 @@ public Builder(FlowSchemaSpec defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(PriorityLevelConfigurationReference priorityLevelConfiguration) { - this.priorityLevelConfiguration = Objects.requireNonNull(priorityLevelConfiguration); + if (priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpec", "priorityLevelConfiguration"); + } + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +119,12 @@ public Builder rules(PolicyRulesWithSubjects... rules) { return rules(List.of(rules)); } public FlowSchemaSpec build() { - final var o = new FlowSchemaSpec(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpec(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpecPatch.java index 85e6911f40..42a8e36f8c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaSpecPatch.java @@ -90,21 +90,25 @@ public Builder(FlowSchemaSpecPatch defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethodPatch distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(@Nullable PriorityLevelConfigurationReferencePatch priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +116,12 @@ public Builder rules(PolicyRulesWithSubjectsPatch... rules) { return rules(List.of(rules)); } public FlowSchemaSpecPatch build() { - final var o = new FlowSchemaSpecPatch(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpecPatch(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatus.java index fc38e8f79d..7cf823cdaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatus.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaCondition... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatus build() { - final var o = new FlowSchemaStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatusPatch.java index a14bd0608d..d0d93e4a61 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/FlowSchemaStatusPatch.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaConditionPatch... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatusPatch build() { - final var o = new FlowSchemaStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubject.java index fd48ec3e9e..24b8737f6b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(GroupSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GroupSubject", "name"); + } + this.name = name; return this; } public GroupSubject build() { - final var o = new GroupSubject(); - o.name = name; - return o; + final var _resultValue = new GroupSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubjectPatch.java index 052a4fd8eb..9744e8717c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/GroupSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(GroupSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public GroupSubjectPatch build() { - final var o = new GroupSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new GroupSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponse.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponse.java index ab08911fb1..af10cf828d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponse.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponse.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.outputs.QueuingConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(LimitResponse defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfiguration queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitResponse", "type"); + } + this.type = type; return this; } public LimitResponse build() { - final var o = new LimitResponse(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponse(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponsePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponsePatch.java index a0c2e32d7b..8e34d0e2ec 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponsePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitResponsePatch.java @@ -59,19 +59,21 @@ public Builder(LimitResponsePatch defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfigurationPatch queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitResponsePatch build() { - final var o = new LimitResponsePatch(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponsePatch(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfiguration.java index 68fa3ce5a6..3c243817e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfiguration.java @@ -115,31 +115,35 @@ public Builder(LimitedPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponse limitResponse) { + this.limitResponse = limitResponse; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public LimitedPriorityLevelConfiguration build() { - final var o = new LimitedPriorityLevelConfiguration(); - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new LimitedPriorityLevelConfiguration(); + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfigurationPatch.java index a648104265..b156900973 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/LimitedPriorityLevelConfigurationPatch.java @@ -115,31 +115,35 @@ public Builder(LimitedPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponsePatch limitResponse) { + this.limitResponse = limitResponse; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public LimitedPriorityLevelConfigurationPatch build() { - final var o = new LimitedPriorityLevelConfigurationPatch(); - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new LimitedPriorityLevelConfigurationPatch(); + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRule.java index aa1acc2ea9..58e2d4aaa5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,10 @@ public Builder(NonResourcePolicyRule defaults) { @CustomType.Setter public Builder nonResourceURLs(List nonResourceURLs) { - this.nonResourceURLs = Objects.requireNonNull(nonResourceURLs); + if (nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs"); + } + this.nonResourceURLs = nonResourceURLs; return this; } public Builder nonResourceURLs(String... nonResourceURLs) { @@ -77,17 +81,20 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRule build() { - final var o = new NonResourcePolicyRule(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRule(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRulePatch.java index fc1fc8da56..955e083ab4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/NonResourcePolicyRulePatch.java @@ -70,6 +70,7 @@ public Builder(NonResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -78,6 +79,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -85,10 +87,10 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRulePatch build() { - final var o = new NonResourcePolicyRulePatch(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRulePatch(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjects.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjects.java index 4a25332c6d..f702096b40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjects.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjects.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.outputs.NonResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1.outputs.ResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1.outputs.Subject; @@ -74,6 +75,7 @@ public Builder(PolicyRulesWithSubjects defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +84,7 @@ public Builder nonResourceRules(NonResourcePolicyRule... nonResourceRules) { } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,18 +93,21 @@ public Builder resourceRules(ResourcePolicyRule... resourceRules) { } @CustomType.Setter public Builder subjects(List subjects) { - this.subjects = Objects.requireNonNull(subjects); + if (subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjects", "subjects"); + } + this.subjects = subjects; return this; } public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjects build() { - final var o = new PolicyRulesWithSubjects(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjects(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjectsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjectsPatch.java index b07da12100..a91a045555 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjectsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PolicyRulesWithSubjectsPatch.java @@ -74,6 +74,7 @@ public Builder(PolicyRulesWithSubjectsPatch defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +83,7 @@ public Builder nonResourceRules(NonResourcePolicyRulePatch... nonResourceRules) } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,6 +92,7 @@ public Builder resourceRules(ResourcePolicyRulePatch... resourceRules) { } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -97,11 +100,11 @@ public Builder subjects(SubjectPatch... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjectsPatch build() { - final var o = new PolicyRulesWithSubjectsPatch(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjectsPatch(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfiguration.java index 33bfe8be33..b65b6ae98d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfiguration.java @@ -103,37 +103,42 @@ public Builder(PriorityLevelConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PriorityLevelConfigurationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PriorityLevelConfigurationStatus status) { + this.status = status; return this; } public PriorityLevelConfiguration build() { - final var o = new PriorityLevelConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PriorityLevelConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationCondition.java index 3914c8b5ef..06eaf55cf3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationCondition.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationCondition build() { - final var o = new PriorityLevelConfigurationCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationConditionPatch.java index 56442e1a0d..13c22c95dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationConditionPatch build() { - final var o = new PriorityLevelConfigurationConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReference.java index cadb05883c..31c052b52b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PriorityLevelConfigurationReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReference", "name"); + } + this.name = name; return this; } public PriorityLevelConfigurationReference build() { - final var o = new PriorityLevelConfigurationReference(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReferencePatch.java index d5b6ba3afa..b57a8aadc9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationReferencePatch.java @@ -44,13 +44,14 @@ public Builder(PriorityLevelConfigurationReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PriorityLevelConfigurationReferencePatch build() { - final var o = new PriorityLevelConfigurationReferencePatch(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpec.java index f5f0b3c871..23ec1e6594 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.outputs.ExemptPriorityLevelConfiguration; import com.pulumi.kubernetes.flowcontrol.v1.outputs.LimitedPriorityLevelConfiguration; import java.lang.String; @@ -74,25 +75,30 @@ public Builder(PriorityLevelConfigurationSpec defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfiguration limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpec", "type"); + } + this.type = type; return this; } public PriorityLevelConfigurationSpec build() { - final var o = new PriorityLevelConfigurationSpec(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpec(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpecPatch.java index bfe7dfc748..00ad622804 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationSpecPatch.java @@ -74,25 +74,28 @@ public Builder(PriorityLevelConfigurationSpecPatch defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfigurationPatch exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfigurationPatch limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationSpecPatch build() { - final var o = new PriorityLevelConfigurationSpecPatch(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpecPatch(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatus.java index a9dd312138..fc4d3636c0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatus.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationCondition... conditions) { return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatus build() { - final var o = new PriorityLevelConfigurationStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatusPatch.java index 2938f7ab62..2873fc1dfd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/PriorityLevelConfigurationStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationConditionPatch... conditions return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatusPatch build() { - final var o = new PriorityLevelConfigurationStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfiguration.java index c652e62abb..115315cfe1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfiguration.java @@ -72,25 +72,28 @@ public Builder(QueuingConfiguration defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfiguration build() { - final var o = new QueuingConfiguration(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfiguration(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfigurationPatch.java index 3af5988de2..348e01b43f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/QueuingConfigurationPatch.java @@ -72,25 +72,28 @@ public Builder(QueuingConfigurationPatch defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfigurationPatch build() { - final var o = new QueuingConfigurationPatch(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfigurationPatch(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRule.java index 30c156fc79..7d1d872a8c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -102,7 +103,10 @@ public Builder(ResourcePolicyRule defaults) { @CustomType.Setter public Builder apiGroups(List apiGroups) { - this.apiGroups = Objects.requireNonNull(apiGroups); + if (apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "apiGroups"); + } + this.apiGroups = apiGroups; return this; } public Builder apiGroups(String... apiGroups) { @@ -110,11 +114,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,7 +129,10 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -131,20 +140,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRule build() { - final var o = new ResourcePolicyRule(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRulePatch.java index 7d40c6ca01..d92952e61d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ResourcePolicyRulePatch.java @@ -102,6 +102,7 @@ public Builder(ResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -110,11 +111,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,6 +126,7 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -131,6 +135,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -138,13 +143,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRulePatch build() { - final var o = new ResourcePolicyRulePatch(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubject.java index f8e155d2ce..88e9439705 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ServiceAccountSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace"); + } + this.namespace = namespace; return this; } public ServiceAccountSubject build() { - final var o = new ServiceAccountSubject(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubject(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubjectPatch.java index e57180e2c1..18bf186419 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/ServiceAccountSubjectPatch.java @@ -58,19 +58,21 @@ public Builder(ServiceAccountSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ServiceAccountSubjectPatch build() { - final var o = new ServiceAccountSubjectPatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubjectPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/Subject.java index 4cfe6584b1..b2136f827f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1.outputs.GroupSubject; import com.pulumi.kubernetes.flowcontrol.v1.outputs.ServiceAccountSubject; import com.pulumi.kubernetes.flowcontrol.v1.outputs.UserSubject; @@ -89,31 +90,37 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubject group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubject user) { + this.user = user; return this; } public Subject build() { - final var o = new Subject(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new Subject(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/SubjectPatch.java index 3704026239..c645017e3c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/SubjectPatch.java @@ -89,31 +89,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubjectPatch group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubjectPatch serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubjectPatch user) { + this.user = user; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubject.java index 33e9995732..777e7175c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(UserSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("UserSubject", "name"); + } + this.name = name; return this; } public UserSubject build() { - final var o = new UserSubject(); - o.name = name; - return o; + final var _resultValue = new UserSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubjectPatch.java index 7cb6052114..00147e2ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1/outputs/UserSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(UserSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public UserSubjectPatch build() { - final var o = new UserSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new UserSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/FlowSchemaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/FlowSchemaListArgs.java index 519627f2fe..562ed18ea1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/FlowSchemaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/FlowSchemaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.FlowSchemaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public FlowSchemaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("FlowSchemaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationListArgs.java index f75e572b42..c5abb2c77b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.PriorityLevelConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityLevelConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowDistinguisherMethodArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowDistinguisherMethodArgs.java index bd1830c11e..3066fad136 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowDistinguisherMethodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowDistinguisherMethodArgs.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; @@ -78,7 +79,9 @@ public Builder type(String type) { } public FlowDistinguisherMethodArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethodArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowSchemaSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowSchemaSpecArgs.java index a961ffe384..7a48d7b627 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowSchemaSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/FlowSchemaSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.FlowDistinguisherMethodArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.PolicyRulesWithSubjectsArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.PriorityLevelConfigurationReferenceArgs; @@ -205,7 +206,9 @@ public Builder rules(PolicyRulesWithSubjectsArgs... rules) { } public FlowSchemaSpecArgs build() { - $.priorityLevelConfiguration = Objects.requireNonNull($.priorityLevelConfiguration, "expected parameter 'priorityLevelConfiguration' to be non-null"); + if ($.priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpecArgs", "priorityLevelConfiguration"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/GroupSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/GroupSubjectArgs.java index 63bf500917..2dc61712d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/GroupSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/GroupSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GroupSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GroupSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/LimitResponseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/LimitResponseArgs.java index 5e5f9bb348..2c3fd0628d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/LimitResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/LimitResponseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.QueuingConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public LimitResponseArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitResponseArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/NonResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/NonResourcePolicyRuleArgs.java index ac366dc6b3..c7cdf89828 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/NonResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/NonResourcePolicyRuleArgs.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; @@ -166,8 +167,12 @@ public Builder verbs(String... verbs) { } public NonResourcePolicyRuleArgs build() { - $.nonResourceURLs = Objects.requireNonNull($.nonResourceURLs, "expected parameter 'nonResourceURLs' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "nonResourceURLs"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PolicyRulesWithSubjectsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PolicyRulesWithSubjectsArgs.java index 61b0173ccf..471ea4e2f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PolicyRulesWithSubjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PolicyRulesWithSubjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.NonResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.ResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.SubjectArgs; @@ -187,7 +188,9 @@ public Builder subjects(SubjectArgs... subjects) { } public PolicyRulesWithSubjectsArgs build() { - $.subjects = Objects.requireNonNull($.subjects, "expected parameter 'subjects' to be non-null"); + if ($.subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjectsArgs", "subjects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationReferenceArgs.java index 94ed4b4fd3..95d42ec23a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationReferenceArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PriorityLevelConfigurationReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationSpecArgs.java index f7ef3ce33f..20c65878cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/PriorityLevelConfigurationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.LimitedPriorityLevelConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public PriorityLevelConfigurationSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ResourcePolicyRuleArgs.java index b751ec55db..f81cb30657 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ResourcePolicyRuleArgs.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; @@ -270,9 +271,15 @@ public Builder verbs(String... verbs) { } public ResourcePolicyRuleArgs build() { - $.apiGroups = Objects.requireNonNull($.apiGroups, "expected parameter 'apiGroups' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "apiGroups"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "resources"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ServiceAccountSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ServiceAccountSubjectArgs.java index 000b39361d..ff94c3bdf2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ServiceAccountSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/ServiceAccountSubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder namespace(String namespace) { } public ServiceAccountSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/SubjectArgs.java index 240e31ab36..9571572104 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/SubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.GroupSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.ServiceAccountSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.UserSubjectArgs; @@ -134,7 +135,9 @@ public Builder user(UserSubjectArgs user) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/UserSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/UserSubjectArgs.java index 5ba2c41344..4c618b068f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/UserSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/inputs/UserSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public UserSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("UserSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethod.java index 081cd996af..52ec6979d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethod.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(FlowDistinguisherMethod defaults) { @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethod", "type"); + } + this.type = type; return this; } public FlowDistinguisherMethod build() { - final var o = new FlowDistinguisherMethod(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethod(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethodPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethodPatch.java index 96fb3b540a..046291a9cc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethodPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowDistinguisherMethodPatch.java @@ -44,13 +44,14 @@ public Builder(FlowDistinguisherMethodPatch defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowDistinguisherMethodPatch build() { - final var o = new FlowDistinguisherMethodPatch(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethodPatch(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchema.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchema.java index 0c1dfb759a..000f135af4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchema.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchema.java @@ -103,37 +103,42 @@ public Builder(FlowSchema defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable FlowSchemaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable FlowSchemaStatus status) { + this.status = status; return this; } public FlowSchema build() { - final var o = new FlowSchema(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new FlowSchema(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaCondition.java index 79fa832759..05868808e6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaCondition.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaCondition build() { - final var o = new FlowSchemaCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaConditionPatch.java index 2216e51b1f..101b336076 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaConditionPatch.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaConditionPatch build() { - final var o = new FlowSchemaConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpec.java index a23125d6a5..84e6db31e2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.FlowDistinguisherMethod; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.PolicyRulesWithSubjects; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.PriorityLevelConfigurationReference; @@ -90,21 +91,27 @@ public Builder(FlowSchemaSpec defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(PriorityLevelConfigurationReference priorityLevelConfiguration) { - this.priorityLevelConfiguration = Objects.requireNonNull(priorityLevelConfiguration); + if (priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpec", "priorityLevelConfiguration"); + } + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +119,12 @@ public Builder rules(PolicyRulesWithSubjects... rules) { return rules(List.of(rules)); } public FlowSchemaSpec build() { - final var o = new FlowSchemaSpec(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpec(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpecPatch.java index ed81236211..4fc2af28ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaSpecPatch.java @@ -90,21 +90,25 @@ public Builder(FlowSchemaSpecPatch defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethodPatch distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(@Nullable PriorityLevelConfigurationReferencePatch priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +116,12 @@ public Builder rules(PolicyRulesWithSubjectsPatch... rules) { return rules(List.of(rules)); } public FlowSchemaSpecPatch build() { - final var o = new FlowSchemaSpecPatch(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpecPatch(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatus.java index a5c5888e52..639dbe7a94 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatus.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaCondition... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatus build() { - final var o = new FlowSchemaStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatusPatch.java index 0eb925f82e..0c2a46f8ca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/FlowSchemaStatusPatch.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaConditionPatch... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatusPatch build() { - final var o = new FlowSchemaStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubject.java index b53587f05e..d5eceefeb4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(GroupSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GroupSubject", "name"); + } + this.name = name; return this; } public GroupSubject build() { - final var o = new GroupSubject(); - o.name = name; - return o; + final var _resultValue = new GroupSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubjectPatch.java index 94fcfb0ca2..07f008e2f7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/GroupSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(GroupSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public GroupSubjectPatch build() { - final var o = new GroupSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new GroupSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponse.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponse.java index 5b075fba61..11745c708d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponse.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponse.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.QueuingConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(LimitResponse defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfiguration queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitResponse", "type"); + } + this.type = type; return this; } public LimitResponse build() { - final var o = new LimitResponse(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponse(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponsePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponsePatch.java index 18a3952429..4d599cbda2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponsePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitResponsePatch.java @@ -59,19 +59,21 @@ public Builder(LimitResponsePatch defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfigurationPatch queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitResponsePatch build() { - final var o = new LimitResponsePatch(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponsePatch(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfiguration.java index 5d4b06e0d3..7abedb072c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfiguration.java @@ -67,19 +67,21 @@ public Builder(LimitedPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponse limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfiguration build() { - final var o = new LimitedPriorityLevelConfiguration(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfiguration(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfigurationPatch.java index 06b75f73d4..3bb37a26ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/LimitedPriorityLevelConfigurationPatch.java @@ -67,19 +67,21 @@ public Builder(LimitedPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponsePatch limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfigurationPatch build() { - final var o = new LimitedPriorityLevelConfigurationPatch(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfigurationPatch(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRule.java index 370179e521..b930c78e63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,10 @@ public Builder(NonResourcePolicyRule defaults) { @CustomType.Setter public Builder nonResourceURLs(List nonResourceURLs) { - this.nonResourceURLs = Objects.requireNonNull(nonResourceURLs); + if (nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs"); + } + this.nonResourceURLs = nonResourceURLs; return this; } public Builder nonResourceURLs(String... nonResourceURLs) { @@ -77,17 +81,20 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRule build() { - final var o = new NonResourcePolicyRule(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRule(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRulePatch.java index 9a4fca72e0..6d0aeb05b5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/NonResourcePolicyRulePatch.java @@ -70,6 +70,7 @@ public Builder(NonResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -78,6 +79,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -85,10 +87,10 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRulePatch build() { - final var o = new NonResourcePolicyRulePatch(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRulePatch(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjects.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjects.java index bafcbfa4b4..f56d2479cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjects.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjects.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.NonResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.ResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.Subject; @@ -74,6 +75,7 @@ public Builder(PolicyRulesWithSubjects defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +84,7 @@ public Builder nonResourceRules(NonResourcePolicyRule... nonResourceRules) { } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,18 +93,21 @@ public Builder resourceRules(ResourcePolicyRule... resourceRules) { } @CustomType.Setter public Builder subjects(List subjects) { - this.subjects = Objects.requireNonNull(subjects); + if (subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjects", "subjects"); + } + this.subjects = subjects; return this; } public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjects build() { - final var o = new PolicyRulesWithSubjects(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjects(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjectsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjectsPatch.java index 5f20aff65d..dfffd508d5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjectsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PolicyRulesWithSubjectsPatch.java @@ -74,6 +74,7 @@ public Builder(PolicyRulesWithSubjectsPatch defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +83,7 @@ public Builder nonResourceRules(NonResourcePolicyRulePatch... nonResourceRules) } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,6 +92,7 @@ public Builder resourceRules(ResourcePolicyRulePatch... resourceRules) { } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -97,11 +100,11 @@ public Builder subjects(SubjectPatch... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjectsPatch build() { - final var o = new PolicyRulesWithSubjectsPatch(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjectsPatch(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfiguration.java index 9b1e552b67..82ae7cc4e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfiguration.java @@ -103,37 +103,42 @@ public Builder(PriorityLevelConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PriorityLevelConfigurationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PriorityLevelConfigurationStatus status) { + this.status = status; return this; } public PriorityLevelConfiguration build() { - final var o = new PriorityLevelConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PriorityLevelConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationCondition.java index 4474d379c8..08541567e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationCondition.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationCondition build() { - final var o = new PriorityLevelConfigurationCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationConditionPatch.java index 2c8df3a9e6..6bf39b7d42 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationConditionPatch build() { - final var o = new PriorityLevelConfigurationConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReference.java index 957b336b5b..d7940430c9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PriorityLevelConfigurationReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReference", "name"); + } + this.name = name; return this; } public PriorityLevelConfigurationReference build() { - final var o = new PriorityLevelConfigurationReference(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReferencePatch.java index 8e282d2185..6e020ffee0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationReferencePatch.java @@ -44,13 +44,14 @@ public Builder(PriorityLevelConfigurationReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PriorityLevelConfigurationReferencePatch build() { - final var o = new PriorityLevelConfigurationReferencePatch(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpec.java index 1e3cc6ae28..79a6eeed3c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.LimitedPriorityLevelConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(PriorityLevelConfigurationSpec defaults) { @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfiguration limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpec", "type"); + } + this.type = type; return this; } public PriorityLevelConfigurationSpec build() { - final var o = new PriorityLevelConfigurationSpec(); - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpec(); + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpecPatch.java index 1f66dfa5cd..91a6f435da 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationSpecPatch.java @@ -59,19 +59,21 @@ public Builder(PriorityLevelConfigurationSpecPatch defaults) { @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfigurationPatch limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationSpecPatch build() { - final var o = new PriorityLevelConfigurationSpecPatch(); - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpecPatch(); + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatus.java index ba60d41eae..3285e7e6c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatus.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationCondition... conditions) { return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatus build() { - final var o = new PriorityLevelConfigurationStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatusPatch.java index 3c499e7a80..d11c6c6499 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/PriorityLevelConfigurationStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationConditionPatch... conditions return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatusPatch build() { - final var o = new PriorityLevelConfigurationStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfiguration.java index 2859614ec9..353fc028df 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfiguration.java @@ -72,25 +72,28 @@ public Builder(QueuingConfiguration defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfiguration build() { - final var o = new QueuingConfiguration(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfiguration(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfigurationPatch.java index 2c19940021..660b91a37a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/QueuingConfigurationPatch.java @@ -72,25 +72,28 @@ public Builder(QueuingConfigurationPatch defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfigurationPatch build() { - final var o = new QueuingConfigurationPatch(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfigurationPatch(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRule.java index c03012bbac..7b3418eeb1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -102,7 +103,10 @@ public Builder(ResourcePolicyRule defaults) { @CustomType.Setter public Builder apiGroups(List apiGroups) { - this.apiGroups = Objects.requireNonNull(apiGroups); + if (apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "apiGroups"); + } + this.apiGroups = apiGroups; return this; } public Builder apiGroups(String... apiGroups) { @@ -110,11 +114,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,7 +129,10 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -131,20 +140,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRule build() { - final var o = new ResourcePolicyRule(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRulePatch.java index daffb8c272..5c1d4f1be2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ResourcePolicyRulePatch.java @@ -102,6 +102,7 @@ public Builder(ResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -110,11 +111,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,6 +126,7 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -131,6 +135,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -138,13 +143,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRulePatch build() { - final var o = new ResourcePolicyRulePatch(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubject.java index d6962da0cf..ea10ce7ce2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ServiceAccountSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace"); + } + this.namespace = namespace; return this; } public ServiceAccountSubject build() { - final var o = new ServiceAccountSubject(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubject(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubjectPatch.java index b4dc186fd6..129412b938 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/ServiceAccountSubjectPatch.java @@ -58,19 +58,21 @@ public Builder(ServiceAccountSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ServiceAccountSubjectPatch build() { - final var o = new ServiceAccountSubjectPatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubjectPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/Subject.java index 6a9c7b52c7..f3024efc3a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.GroupSubject; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.ServiceAccountSubject; import com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs.UserSubject; @@ -65,31 +66,37 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubject group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubject user) { + this.user = user; return this; } public Subject build() { - final var o = new Subject(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new Subject(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/SubjectPatch.java index ef17bdf194..d91bec2f3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/SubjectPatch.java @@ -65,31 +65,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubjectPatch group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubjectPatch serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubjectPatch user) { + this.user = user; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubject.java index bd30c633aa..d659f5b0d0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(UserSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("UserSubject", "name"); + } + this.name = name; return this; } public UserSubject build() { - final var o = new UserSubject(); - o.name = name; - return o; + final var _resultValue = new UserSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubjectPatch.java index d939ce54fc..32989541c2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1alpha1/outputs/UserSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(UserSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public UserSubjectPatch build() { - final var o = new UserSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new UserSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/FlowSchemaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/FlowSchemaListArgs.java index b2190ffe79..5e1ad174ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/FlowSchemaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/FlowSchemaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.FlowSchemaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public FlowSchemaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("FlowSchemaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationListArgs.java index 2898d13d7b..b74ae57210 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.PriorityLevelConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityLevelConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowDistinguisherMethodArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowDistinguisherMethodArgs.java index c41234298f..fa034fd84b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowDistinguisherMethodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowDistinguisherMethodArgs.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; @@ -78,7 +79,9 @@ public Builder type(String type) { } public FlowDistinguisherMethodArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethodArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowSchemaSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowSchemaSpecArgs.java index 358d0b541e..950672843b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowSchemaSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/FlowSchemaSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.FlowDistinguisherMethodArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.PolicyRulesWithSubjectsArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.PriorityLevelConfigurationReferenceArgs; @@ -205,7 +206,9 @@ public Builder rules(PolicyRulesWithSubjectsArgs... rules) { } public FlowSchemaSpecArgs build() { - $.priorityLevelConfiguration = Objects.requireNonNull($.priorityLevelConfiguration, "expected parameter 'priorityLevelConfiguration' to be non-null"); + if ($.priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpecArgs", "priorityLevelConfiguration"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/GroupSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/GroupSubjectArgs.java index fac4619ae8..13da5185b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/GroupSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/GroupSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GroupSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GroupSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/LimitResponseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/LimitResponseArgs.java index 9c77529670..20d1a794ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/LimitResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/LimitResponseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.QueuingConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public LimitResponseArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitResponseArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/NonResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/NonResourcePolicyRuleArgs.java index 29edb734d7..0e79d2bb19 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/NonResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/NonResourcePolicyRuleArgs.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; @@ -166,8 +167,12 @@ public Builder verbs(String... verbs) { } public NonResourcePolicyRuleArgs build() { - $.nonResourceURLs = Objects.requireNonNull($.nonResourceURLs, "expected parameter 'nonResourceURLs' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "nonResourceURLs"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PolicyRulesWithSubjectsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PolicyRulesWithSubjectsArgs.java index 52423eeae1..2e505f9733 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PolicyRulesWithSubjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PolicyRulesWithSubjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.NonResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.ResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.SubjectArgs; @@ -187,7 +188,9 @@ public Builder subjects(SubjectArgs... subjects) { } public PolicyRulesWithSubjectsArgs build() { - $.subjects = Objects.requireNonNull($.subjects, "expected parameter 'subjects' to be non-null"); + if ($.subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjectsArgs", "subjects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationReferenceArgs.java index 59b667e377..03af5df1b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationReferenceArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PriorityLevelConfigurationReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationSpecArgs.java index 9cc19dc7b2..e4c45b8a9d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/PriorityLevelConfigurationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.LimitedPriorityLevelConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public PriorityLevelConfigurationSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ResourcePolicyRuleArgs.java index b44273073a..32f58d332b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ResourcePolicyRuleArgs.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; @@ -270,9 +271,15 @@ public Builder verbs(String... verbs) { } public ResourcePolicyRuleArgs build() { - $.apiGroups = Objects.requireNonNull($.apiGroups, "expected parameter 'apiGroups' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "apiGroups"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "resources"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ServiceAccountSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ServiceAccountSubjectArgs.java index 4b7a15e1df..92cddc7f7c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ServiceAccountSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/ServiceAccountSubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder namespace(String namespace) { } public ServiceAccountSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/SubjectArgs.java index 97a8a79e46..60255d100b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/SubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.GroupSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.ServiceAccountSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.UserSubjectArgs; @@ -134,7 +135,9 @@ public Builder user(UserSubjectArgs user) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/UserSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/UserSubjectArgs.java index 365362a5ee..25108b5ae6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/UserSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/inputs/UserSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public UserSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("UserSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethod.java index 4e9ad1771b..5e897a0dd3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethod.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(FlowDistinguisherMethod defaults) { @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethod", "type"); + } + this.type = type; return this; } public FlowDistinguisherMethod build() { - final var o = new FlowDistinguisherMethod(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethod(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethodPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethodPatch.java index 4e09fc342a..5ed77d700b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethodPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowDistinguisherMethodPatch.java @@ -44,13 +44,14 @@ public Builder(FlowDistinguisherMethodPatch defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowDistinguisherMethodPatch build() { - final var o = new FlowDistinguisherMethodPatch(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethodPatch(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchema.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchema.java index 33f91222d2..cc35925f0e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchema.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchema.java @@ -103,37 +103,42 @@ public Builder(FlowSchema defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable FlowSchemaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable FlowSchemaStatus status) { + this.status = status; return this; } public FlowSchema build() { - final var o = new FlowSchema(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new FlowSchema(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaCondition.java index 788d980ba8..b8041781da 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaCondition.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaCondition build() { - final var o = new FlowSchemaCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaConditionPatch.java index b37e777977..6c23972895 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaConditionPatch.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaConditionPatch build() { - final var o = new FlowSchemaConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpec.java index a1814f7eaa..1e1bcc2655 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.FlowDistinguisherMethod; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.PolicyRulesWithSubjects; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.PriorityLevelConfigurationReference; @@ -90,21 +91,27 @@ public Builder(FlowSchemaSpec defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(PriorityLevelConfigurationReference priorityLevelConfiguration) { - this.priorityLevelConfiguration = Objects.requireNonNull(priorityLevelConfiguration); + if (priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpec", "priorityLevelConfiguration"); + } + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +119,12 @@ public Builder rules(PolicyRulesWithSubjects... rules) { return rules(List.of(rules)); } public FlowSchemaSpec build() { - final var o = new FlowSchemaSpec(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpec(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpecPatch.java index 3f098b2dc8..351efb21b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaSpecPatch.java @@ -90,21 +90,25 @@ public Builder(FlowSchemaSpecPatch defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethodPatch distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(@Nullable PriorityLevelConfigurationReferencePatch priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +116,12 @@ public Builder rules(PolicyRulesWithSubjectsPatch... rules) { return rules(List.of(rules)); } public FlowSchemaSpecPatch build() { - final var o = new FlowSchemaSpecPatch(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpecPatch(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatus.java index 7084429f1c..c9fd516232 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatus.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaCondition... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatus build() { - final var o = new FlowSchemaStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatusPatch.java index 222f734a43..b7e6de423f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/FlowSchemaStatusPatch.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaConditionPatch... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatusPatch build() { - final var o = new FlowSchemaStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubject.java index b79dc616a3..18b1b20d8e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(GroupSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GroupSubject", "name"); + } + this.name = name; return this; } public GroupSubject build() { - final var o = new GroupSubject(); - o.name = name; - return o; + final var _resultValue = new GroupSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubjectPatch.java index 13d95b5fed..c2333e0179 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/GroupSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(GroupSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public GroupSubjectPatch build() { - final var o = new GroupSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new GroupSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponse.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponse.java index 99201ae249..bab51c1700 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponse.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponse.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.QueuingConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(LimitResponse defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfiguration queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitResponse", "type"); + } + this.type = type; return this; } public LimitResponse build() { - final var o = new LimitResponse(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponse(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponsePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponsePatch.java index 6844883bcd..1e67e1f235 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponsePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitResponsePatch.java @@ -59,19 +59,21 @@ public Builder(LimitResponsePatch defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfigurationPatch queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitResponsePatch build() { - final var o = new LimitResponsePatch(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponsePatch(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfiguration.java index 80ac31c364..ca93a7d040 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfiguration.java @@ -67,19 +67,21 @@ public Builder(LimitedPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponse limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfiguration build() { - final var o = new LimitedPriorityLevelConfiguration(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfiguration(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfigurationPatch.java index 5a0b81ebca..1a9f879817 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/LimitedPriorityLevelConfigurationPatch.java @@ -67,19 +67,21 @@ public Builder(LimitedPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponsePatch limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfigurationPatch build() { - final var o = new LimitedPriorityLevelConfigurationPatch(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfigurationPatch(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRule.java index 7981d4e2c9..197129d56a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,10 @@ public Builder(NonResourcePolicyRule defaults) { @CustomType.Setter public Builder nonResourceURLs(List nonResourceURLs) { - this.nonResourceURLs = Objects.requireNonNull(nonResourceURLs); + if (nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs"); + } + this.nonResourceURLs = nonResourceURLs; return this; } public Builder nonResourceURLs(String... nonResourceURLs) { @@ -77,17 +81,20 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRule build() { - final var o = new NonResourcePolicyRule(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRule(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRulePatch.java index 1e2ae8167c..ea892b15ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/NonResourcePolicyRulePatch.java @@ -70,6 +70,7 @@ public Builder(NonResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -78,6 +79,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -85,10 +87,10 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRulePatch build() { - final var o = new NonResourcePolicyRulePatch(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRulePatch(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjects.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjects.java index c6d9ac9133..6a6178a059 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjects.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjects.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.NonResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.ResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.Subject; @@ -74,6 +75,7 @@ public Builder(PolicyRulesWithSubjects defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +84,7 @@ public Builder nonResourceRules(NonResourcePolicyRule... nonResourceRules) { } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,18 +93,21 @@ public Builder resourceRules(ResourcePolicyRule... resourceRules) { } @CustomType.Setter public Builder subjects(List subjects) { - this.subjects = Objects.requireNonNull(subjects); + if (subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjects", "subjects"); + } + this.subjects = subjects; return this; } public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjects build() { - final var o = new PolicyRulesWithSubjects(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjects(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjectsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjectsPatch.java index 0e55631d2a..d011afeb34 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjectsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PolicyRulesWithSubjectsPatch.java @@ -74,6 +74,7 @@ public Builder(PolicyRulesWithSubjectsPatch defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +83,7 @@ public Builder nonResourceRules(NonResourcePolicyRulePatch... nonResourceRules) } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,6 +92,7 @@ public Builder resourceRules(ResourcePolicyRulePatch... resourceRules) { } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -97,11 +100,11 @@ public Builder subjects(SubjectPatch... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjectsPatch build() { - final var o = new PolicyRulesWithSubjectsPatch(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjectsPatch(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfiguration.java index d14032d6e4..a0b4d0aa41 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfiguration.java @@ -103,37 +103,42 @@ public Builder(PriorityLevelConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PriorityLevelConfigurationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PriorityLevelConfigurationStatus status) { + this.status = status; return this; } public PriorityLevelConfiguration build() { - final var o = new PriorityLevelConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PriorityLevelConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationCondition.java index a6bdcc43db..f8762cdfb2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationCondition.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationCondition build() { - final var o = new PriorityLevelConfigurationCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationConditionPatch.java index f983788d03..6093b5e031 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationConditionPatch build() { - final var o = new PriorityLevelConfigurationConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReference.java index 80cee01315..81d3968288 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PriorityLevelConfigurationReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReference", "name"); + } + this.name = name; return this; } public PriorityLevelConfigurationReference build() { - final var o = new PriorityLevelConfigurationReference(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReferencePatch.java index 393e6f1229..f90fc1139e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationReferencePatch.java @@ -44,13 +44,14 @@ public Builder(PriorityLevelConfigurationReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PriorityLevelConfigurationReferencePatch build() { - final var o = new PriorityLevelConfigurationReferencePatch(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpec.java index e38d146d49..80974515e6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.LimitedPriorityLevelConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(PriorityLevelConfigurationSpec defaults) { @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfiguration limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpec", "type"); + } + this.type = type; return this; } public PriorityLevelConfigurationSpec build() { - final var o = new PriorityLevelConfigurationSpec(); - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpec(); + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpecPatch.java index a820fa2f5a..c524d3d4e0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationSpecPatch.java @@ -59,19 +59,21 @@ public Builder(PriorityLevelConfigurationSpecPatch defaults) { @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfigurationPatch limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationSpecPatch build() { - final var o = new PriorityLevelConfigurationSpecPatch(); - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpecPatch(); + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatus.java index 0975ea795b..392a83a4be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatus.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationCondition... conditions) { return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatus build() { - final var o = new PriorityLevelConfigurationStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatusPatch.java index a47c1bd1dd..373c45fc2d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/PriorityLevelConfigurationStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationConditionPatch... conditions return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatusPatch build() { - final var o = new PriorityLevelConfigurationStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfiguration.java index 98a2a53d75..6b3b07e003 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfiguration.java @@ -72,25 +72,28 @@ public Builder(QueuingConfiguration defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfiguration build() { - final var o = new QueuingConfiguration(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfiguration(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfigurationPatch.java index b70cb28d05..9849475d8d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/QueuingConfigurationPatch.java @@ -72,25 +72,28 @@ public Builder(QueuingConfigurationPatch defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfigurationPatch build() { - final var o = new QueuingConfigurationPatch(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfigurationPatch(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRule.java index 23cf512183..0dc15fd6b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -102,7 +103,10 @@ public Builder(ResourcePolicyRule defaults) { @CustomType.Setter public Builder apiGroups(List apiGroups) { - this.apiGroups = Objects.requireNonNull(apiGroups); + if (apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "apiGroups"); + } + this.apiGroups = apiGroups; return this; } public Builder apiGroups(String... apiGroups) { @@ -110,11 +114,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,7 +129,10 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -131,20 +140,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRule build() { - final var o = new ResourcePolicyRule(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRulePatch.java index 758567a01a..349b7acacb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ResourcePolicyRulePatch.java @@ -102,6 +102,7 @@ public Builder(ResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -110,11 +111,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,6 +126,7 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -131,6 +135,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -138,13 +143,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRulePatch build() { - final var o = new ResourcePolicyRulePatch(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubject.java index e5354076e0..5cd654aa58 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ServiceAccountSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace"); + } + this.namespace = namespace; return this; } public ServiceAccountSubject build() { - final var o = new ServiceAccountSubject(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubject(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubjectPatch.java index c0dcdd8cad..afaf3a715e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/ServiceAccountSubjectPatch.java @@ -58,19 +58,21 @@ public Builder(ServiceAccountSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ServiceAccountSubjectPatch build() { - final var o = new ServiceAccountSubjectPatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubjectPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/Subject.java index 1180e403c5..2f7453a64e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.GroupSubject; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.ServiceAccountSubject; import com.pulumi.kubernetes.flowcontrol.v1beta1.outputs.UserSubject; @@ -65,31 +66,37 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubject group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubject user) { + this.user = user; return this; } public Subject build() { - final var o = new Subject(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new Subject(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/SubjectPatch.java index 007d822112..6011770e2d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/SubjectPatch.java @@ -65,31 +65,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubjectPatch group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubjectPatch serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubjectPatch user) { + this.user = user; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubject.java index e06df7a29b..59ed3ed691 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(UserSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("UserSubject", "name"); + } + this.name = name; return this; } public UserSubject build() { - final var o = new UserSubject(); - o.name = name; - return o; + final var _resultValue = new UserSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubjectPatch.java index b423069c53..8fdde30c60 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta1/outputs/UserSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(UserSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public UserSubjectPatch build() { - final var o = new UserSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new UserSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/FlowSchemaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/FlowSchemaListArgs.java index 556091d7c9..79001311be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/FlowSchemaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/FlowSchemaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.FlowSchemaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public FlowSchemaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("FlowSchemaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationListArgs.java index c29379522c..fa81b44a71 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.PriorityLevelConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityLevelConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowDistinguisherMethodArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowDistinguisherMethodArgs.java index 0d0089298b..356a266b81 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowDistinguisherMethodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowDistinguisherMethodArgs.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; @@ -78,7 +79,9 @@ public Builder type(String type) { } public FlowDistinguisherMethodArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethodArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowSchemaSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowSchemaSpecArgs.java index a400a6b659..9df190d675 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowSchemaSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/FlowSchemaSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.FlowDistinguisherMethodArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.PolicyRulesWithSubjectsArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.PriorityLevelConfigurationReferenceArgs; @@ -205,7 +206,9 @@ public Builder rules(PolicyRulesWithSubjectsArgs... rules) { } public FlowSchemaSpecArgs build() { - $.priorityLevelConfiguration = Objects.requireNonNull($.priorityLevelConfiguration, "expected parameter 'priorityLevelConfiguration' to be non-null"); + if ($.priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpecArgs", "priorityLevelConfiguration"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/GroupSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/GroupSubjectArgs.java index 959c90e827..5888a1cffc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/GroupSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/GroupSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GroupSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GroupSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/LimitResponseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/LimitResponseArgs.java index 8c250f0ab4..efd1e7f466 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/LimitResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/LimitResponseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.QueuingConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public LimitResponseArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitResponseArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/NonResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/NonResourcePolicyRuleArgs.java index b75cc6eb38..406423ec3b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/NonResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/NonResourcePolicyRuleArgs.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; @@ -166,8 +167,12 @@ public Builder verbs(String... verbs) { } public NonResourcePolicyRuleArgs build() { - $.nonResourceURLs = Objects.requireNonNull($.nonResourceURLs, "expected parameter 'nonResourceURLs' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "nonResourceURLs"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PolicyRulesWithSubjectsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PolicyRulesWithSubjectsArgs.java index 26b535ca3f..dcd44b3b6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PolicyRulesWithSubjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PolicyRulesWithSubjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.NonResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.ResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.SubjectArgs; @@ -187,7 +188,9 @@ public Builder subjects(SubjectArgs... subjects) { } public PolicyRulesWithSubjectsArgs build() { - $.subjects = Objects.requireNonNull($.subjects, "expected parameter 'subjects' to be non-null"); + if ($.subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjectsArgs", "subjects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationReferenceArgs.java index 857c5b6c30..00247975d9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationReferenceArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PriorityLevelConfigurationReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationSpecArgs.java index 65010ac235..241080514b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/PriorityLevelConfigurationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.ExemptPriorityLevelConfigurationArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.LimitedPriorityLevelConfigurationArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder type(String type) { } public PriorityLevelConfigurationSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ResourcePolicyRuleArgs.java index 51f1dd9a58..3511380960 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ResourcePolicyRuleArgs.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; @@ -270,9 +271,15 @@ public Builder verbs(String... verbs) { } public ResourcePolicyRuleArgs build() { - $.apiGroups = Objects.requireNonNull($.apiGroups, "expected parameter 'apiGroups' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "apiGroups"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "resources"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ServiceAccountSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ServiceAccountSubjectArgs.java index cf091cb2a5..dbe991584d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ServiceAccountSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/ServiceAccountSubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder namespace(String namespace) { } public ServiceAccountSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/SubjectArgs.java index 9d38cbb68d..d73613250a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/SubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.GroupSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.ServiceAccountSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta2.inputs.UserSubjectArgs; @@ -194,7 +195,9 @@ public Builder user(UserSubjectArgs user) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/UserSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/UserSubjectArgs.java index dfb91adf20..9c39ce1116 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/UserSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/inputs/UserSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public UserSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("UserSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfiguration.java index 4a3fe025c8..97a98d6049 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfiguration.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfiguration build() { - final var o = new ExemptPriorityLevelConfiguration(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfiguration(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfigurationPatch.java index 34648f6cc8..418254aa38 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ExemptPriorityLevelConfigurationPatch.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfigurationPatch build() { - final var o = new ExemptPriorityLevelConfigurationPatch(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfigurationPatch(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethod.java index 5be74dbd76..aa10cac253 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethod.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(FlowDistinguisherMethod defaults) { @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethod", "type"); + } + this.type = type; return this; } public FlowDistinguisherMethod build() { - final var o = new FlowDistinguisherMethod(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethod(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethodPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethodPatch.java index edc18462c2..393e68220e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethodPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowDistinguisherMethodPatch.java @@ -44,13 +44,14 @@ public Builder(FlowDistinguisherMethodPatch defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowDistinguisherMethodPatch build() { - final var o = new FlowDistinguisherMethodPatch(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethodPatch(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchema.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchema.java index e1c9080119..770ce6cc17 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchema.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchema.java @@ -103,37 +103,42 @@ public Builder(FlowSchema defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable FlowSchemaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable FlowSchemaStatus status) { + this.status = status; return this; } public FlowSchema build() { - final var o = new FlowSchema(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new FlowSchema(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaCondition.java index e811a4f942..3fd31e2f4e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaCondition.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaCondition build() { - final var o = new FlowSchemaCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaConditionPatch.java index df317ddafe..8cbe76dc69 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaConditionPatch.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaConditionPatch build() { - final var o = new FlowSchemaConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpec.java index 52e6e5c176..7e0a93d27a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.FlowDistinguisherMethod; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.PolicyRulesWithSubjects; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.PriorityLevelConfigurationReference; @@ -90,21 +91,27 @@ public Builder(FlowSchemaSpec defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(PriorityLevelConfigurationReference priorityLevelConfiguration) { - this.priorityLevelConfiguration = Objects.requireNonNull(priorityLevelConfiguration); + if (priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpec", "priorityLevelConfiguration"); + } + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +119,12 @@ public Builder rules(PolicyRulesWithSubjects... rules) { return rules(List.of(rules)); } public FlowSchemaSpec build() { - final var o = new FlowSchemaSpec(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpec(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpecPatch.java index 885dd8da65..f10c07fb12 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaSpecPatch.java @@ -90,21 +90,25 @@ public Builder(FlowSchemaSpecPatch defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethodPatch distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(@Nullable PriorityLevelConfigurationReferencePatch priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +116,12 @@ public Builder rules(PolicyRulesWithSubjectsPatch... rules) { return rules(List.of(rules)); } public FlowSchemaSpecPatch build() { - final var o = new FlowSchemaSpecPatch(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpecPatch(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatus.java index 1908aadeb1..d38363fbff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatus.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaCondition... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatus build() { - final var o = new FlowSchemaStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatusPatch.java index 9ca23984d6..3a022b9782 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/FlowSchemaStatusPatch.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaConditionPatch... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatusPatch build() { - final var o = new FlowSchemaStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubject.java index a21e525045..ff8b962c75 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(GroupSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GroupSubject", "name"); + } + this.name = name; return this; } public GroupSubject build() { - final var o = new GroupSubject(); - o.name = name; - return o; + final var _resultValue = new GroupSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubjectPatch.java index 7515f783e1..37b9016a44 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/GroupSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(GroupSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public GroupSubjectPatch build() { - final var o = new GroupSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new GroupSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponse.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponse.java index 7e866046f6..1d4c4a2d1c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponse.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponse.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.QueuingConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(LimitResponse defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfiguration queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitResponse", "type"); + } + this.type = type; return this; } public LimitResponse build() { - final var o = new LimitResponse(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponse(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponsePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponsePatch.java index f95df8650d..40a40bfbe8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponsePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitResponsePatch.java @@ -59,19 +59,21 @@ public Builder(LimitResponsePatch defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfigurationPatch queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitResponsePatch build() { - final var o = new LimitResponsePatch(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponsePatch(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfiguration.java index 35c4a4b75c..b9941deb25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfiguration.java @@ -107,31 +107,35 @@ public Builder(LimitedPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponse limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfiguration build() { - final var o = new LimitedPriorityLevelConfiguration(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfiguration(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfigurationPatch.java index 76b1e4e9ab..f55a57c320 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/LimitedPriorityLevelConfigurationPatch.java @@ -107,31 +107,35 @@ public Builder(LimitedPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder assuredConcurrencyShares(@Nullable Integer assuredConcurrencyShares) { + this.assuredConcurrencyShares = assuredConcurrencyShares; return this; } @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponsePatch limitResponse) { + this.limitResponse = limitResponse; return this; } public LimitedPriorityLevelConfigurationPatch build() { - final var o = new LimitedPriorityLevelConfigurationPatch(); - o.assuredConcurrencyShares = assuredConcurrencyShares; - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - return o; + final var _resultValue = new LimitedPriorityLevelConfigurationPatch(); + _resultValue.assuredConcurrencyShares = assuredConcurrencyShares; + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRule.java index fb5a33d314..ff819b9e06 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,10 @@ public Builder(NonResourcePolicyRule defaults) { @CustomType.Setter public Builder nonResourceURLs(List nonResourceURLs) { - this.nonResourceURLs = Objects.requireNonNull(nonResourceURLs); + if (nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs"); + } + this.nonResourceURLs = nonResourceURLs; return this; } public Builder nonResourceURLs(String... nonResourceURLs) { @@ -77,17 +81,20 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRule build() { - final var o = new NonResourcePolicyRule(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRule(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRulePatch.java index d1be073634..90ce96e2f2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/NonResourcePolicyRulePatch.java @@ -70,6 +70,7 @@ public Builder(NonResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -78,6 +79,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -85,10 +87,10 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRulePatch build() { - final var o = new NonResourcePolicyRulePatch(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRulePatch(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjects.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjects.java index 379dc82b3b..f5394a7563 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjects.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjects.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.NonResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.ResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.Subject; @@ -74,6 +75,7 @@ public Builder(PolicyRulesWithSubjects defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +84,7 @@ public Builder nonResourceRules(NonResourcePolicyRule... nonResourceRules) { } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,18 +93,21 @@ public Builder resourceRules(ResourcePolicyRule... resourceRules) { } @CustomType.Setter public Builder subjects(List subjects) { - this.subjects = Objects.requireNonNull(subjects); + if (subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjects", "subjects"); + } + this.subjects = subjects; return this; } public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjects build() { - final var o = new PolicyRulesWithSubjects(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjects(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjectsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjectsPatch.java index c96f0242e2..3d440c452d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjectsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PolicyRulesWithSubjectsPatch.java @@ -74,6 +74,7 @@ public Builder(PolicyRulesWithSubjectsPatch defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +83,7 @@ public Builder nonResourceRules(NonResourcePolicyRulePatch... nonResourceRules) } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,6 +92,7 @@ public Builder resourceRules(ResourcePolicyRulePatch... resourceRules) { } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -97,11 +100,11 @@ public Builder subjects(SubjectPatch... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjectsPatch build() { - final var o = new PolicyRulesWithSubjectsPatch(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjectsPatch(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfiguration.java index 3c46656529..7e2cfc2ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfiguration.java @@ -103,37 +103,42 @@ public Builder(PriorityLevelConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PriorityLevelConfigurationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PriorityLevelConfigurationStatus status) { + this.status = status; return this; } public PriorityLevelConfiguration build() { - final var o = new PriorityLevelConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PriorityLevelConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationCondition.java index 63295003b8..b8a08638be 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationCondition.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationCondition build() { - final var o = new PriorityLevelConfigurationCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationConditionPatch.java index 523c54331e..fcf7f1b248 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationConditionPatch build() { - final var o = new PriorityLevelConfigurationConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReference.java index 38c511f543..17265e1183 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PriorityLevelConfigurationReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReference", "name"); + } + this.name = name; return this; } public PriorityLevelConfigurationReference build() { - final var o = new PriorityLevelConfigurationReference(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReferencePatch.java index 1ef8654f8e..f98e9f90c2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationReferencePatch.java @@ -44,13 +44,14 @@ public Builder(PriorityLevelConfigurationReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PriorityLevelConfigurationReferencePatch build() { - final var o = new PriorityLevelConfigurationReferencePatch(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpec.java index ba2350ba96..b02bd2751b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.ExemptPriorityLevelConfiguration; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.LimitedPriorityLevelConfiguration; import java.lang.String; @@ -74,25 +75,30 @@ public Builder(PriorityLevelConfigurationSpec defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfiguration limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpec", "type"); + } + this.type = type; return this; } public PriorityLevelConfigurationSpec build() { - final var o = new PriorityLevelConfigurationSpec(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpec(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpecPatch.java index ae8bc02314..5e38f5d00a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationSpecPatch.java @@ -74,25 +74,28 @@ public Builder(PriorityLevelConfigurationSpecPatch defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfigurationPatch exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfigurationPatch limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationSpecPatch build() { - final var o = new PriorityLevelConfigurationSpecPatch(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpecPatch(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatus.java index c7ce8631e4..d225ae02dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatus.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationCondition... conditions) { return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatus build() { - final var o = new PriorityLevelConfigurationStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatusPatch.java index dbcbbaeca8..3c06d370d2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/PriorityLevelConfigurationStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationConditionPatch... conditions return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatusPatch build() { - final var o = new PriorityLevelConfigurationStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfiguration.java index 6d196e1e79..2f0fbb0f15 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfiguration.java @@ -72,25 +72,28 @@ public Builder(QueuingConfiguration defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfiguration build() { - final var o = new QueuingConfiguration(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfiguration(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfigurationPatch.java index 4ec20c3023..6836e95e17 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/QueuingConfigurationPatch.java @@ -72,25 +72,28 @@ public Builder(QueuingConfigurationPatch defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfigurationPatch build() { - final var o = new QueuingConfigurationPatch(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfigurationPatch(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRule.java index 6ae4982f7f..a5ef6450b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -102,7 +103,10 @@ public Builder(ResourcePolicyRule defaults) { @CustomType.Setter public Builder apiGroups(List apiGroups) { - this.apiGroups = Objects.requireNonNull(apiGroups); + if (apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "apiGroups"); + } + this.apiGroups = apiGroups; return this; } public Builder apiGroups(String... apiGroups) { @@ -110,11 +114,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,7 +129,10 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -131,20 +140,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRule build() { - final var o = new ResourcePolicyRule(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRulePatch.java index 725896dd43..1907ac82ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ResourcePolicyRulePatch.java @@ -102,6 +102,7 @@ public Builder(ResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -110,11 +111,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,6 +126,7 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -131,6 +135,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -138,13 +143,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRulePatch build() { - final var o = new ResourcePolicyRulePatch(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubject.java index b7ff81f25d..d38ffc2cb1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ServiceAccountSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace"); + } + this.namespace = namespace; return this; } public ServiceAccountSubject build() { - final var o = new ServiceAccountSubject(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubject(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubjectPatch.java index 62771a8219..93672e12db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/ServiceAccountSubjectPatch.java @@ -58,19 +58,21 @@ public Builder(ServiceAccountSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ServiceAccountSubjectPatch build() { - final var o = new ServiceAccountSubjectPatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubjectPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/Subject.java index b78439d271..f5eed15a42 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.GroupSubject; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.ServiceAccountSubject; import com.pulumi.kubernetes.flowcontrol.v1beta2.outputs.UserSubject; @@ -89,31 +90,37 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubject group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubject user) { + this.user = user; return this; } public Subject build() { - final var o = new Subject(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new Subject(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/SubjectPatch.java index fc591325f3..6c67562d19 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/SubjectPatch.java @@ -89,31 +89,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubjectPatch group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubjectPatch serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubjectPatch user) { + this.user = user; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubject.java index 149774ee87..026b8d56b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(UserSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("UserSubject", "name"); + } + this.name = name; return this; } public UserSubject build() { - final var o = new UserSubject(); - o.name = name; - return o; + final var _resultValue = new UserSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubjectPatch.java index 2fa470676f..7909be3fcd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta2/outputs/UserSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(UserSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public UserSubjectPatch build() { - final var o = new UserSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new UserSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/FlowSchemaListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/FlowSchemaListArgs.java index d2748dc3c6..d29eb00d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/FlowSchemaListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/FlowSchemaListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.FlowSchemaArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public FlowSchemaListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("FlowSchemaListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationListArgs.java index 03d0782825..a81dd52fd5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.PriorityLevelConfigurationArgs; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityLevelConfigurationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowDistinguisherMethodArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowDistinguisherMethodArgs.java index 74568f3590..136a102145 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowDistinguisherMethodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowDistinguisherMethodArgs.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; @@ -78,7 +79,9 @@ public Builder type(String type) { } public FlowDistinguisherMethodArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethodArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowSchemaSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowSchemaSpecArgs.java index 845142071c..e8a61a0d11 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowSchemaSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/FlowSchemaSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.FlowDistinguisherMethodArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.PolicyRulesWithSubjectsArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.PriorityLevelConfigurationReferenceArgs; @@ -205,7 +206,9 @@ public Builder rules(PolicyRulesWithSubjectsArgs... rules) { } public FlowSchemaSpecArgs build() { - $.priorityLevelConfiguration = Objects.requireNonNull($.priorityLevelConfiguration, "expected parameter 'priorityLevelConfiguration' to be non-null"); + if ($.priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpecArgs", "priorityLevelConfiguration"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/GroupSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/GroupSubjectArgs.java index c2b0c81816..4b885ab3a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/GroupSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/GroupSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GroupSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GroupSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/LimitResponseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/LimitResponseArgs.java index 845eb0a6f6..a008f3dda3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/LimitResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/LimitResponseArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.QueuingConfigurationArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder type(String type) { } public LimitResponseArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("LimitResponseArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/NonResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/NonResourcePolicyRuleArgs.java index 466c68be90..c1c747eb79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/NonResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/NonResourcePolicyRuleArgs.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; @@ -166,8 +167,12 @@ public Builder verbs(String... verbs) { } public NonResourcePolicyRuleArgs build() { - $.nonResourceURLs = Objects.requireNonNull($.nonResourceURLs, "expected parameter 'nonResourceURLs' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "nonResourceURLs"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PolicyRulesWithSubjectsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PolicyRulesWithSubjectsArgs.java index 1bd32ad878..2307064134 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PolicyRulesWithSubjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PolicyRulesWithSubjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.NonResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ResourcePolicyRuleArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.SubjectArgs; @@ -187,7 +188,9 @@ public Builder subjects(SubjectArgs... subjects) { } public PolicyRulesWithSubjectsArgs build() { - $.subjects = Objects.requireNonNull($.subjects, "expected parameter 'subjects' to be non-null"); + if ($.subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjectsArgs", "subjects"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationReferenceArgs.java index f3330e8851..79fd48d1de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationReferenceArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public PriorityLevelConfigurationReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationSpecArgs.java index 10e2a9ca8a..bdab2adcf6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/PriorityLevelConfigurationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ExemptPriorityLevelConfigurationArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.LimitedPriorityLevelConfigurationArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder type(String type) { } public PriorityLevelConfigurationSpecArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpecArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ResourcePolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ResourcePolicyRuleArgs.java index 4fd565100a..ffbac31dee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ResourcePolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ResourcePolicyRuleArgs.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; @@ -270,9 +271,15 @@ public Builder verbs(String... verbs) { } public ResourcePolicyRuleArgs build() { - $.apiGroups = Objects.requireNonNull($.apiGroups, "expected parameter 'apiGroups' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "apiGroups"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "resources"); + } + if ($.verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ServiceAccountSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ServiceAccountSubjectArgs.java index 70e0efa393..bec11e8dd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ServiceAccountSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/ServiceAccountSubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder namespace(String namespace) { } public ServiceAccountSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/SubjectArgs.java index 31755afb8b..4b1a14e8fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/SubjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.GroupSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ServiceAccountSubjectArgs; import com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.UserSubjectArgs; @@ -194,7 +195,9 @@ public Builder user(UserSubjectArgs user) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/UserSubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/UserSubjectArgs.java index c8185885a1..2e81d96714 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/UserSubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/inputs/UserSubjectArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public UserSubjectArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("UserSubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfiguration.java index 527ffe7c11..2c70f5b7f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfiguration.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfiguration build() { - final var o = new ExemptPriorityLevelConfiguration(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfiguration(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfigurationPatch.java index b9dab783e7..ad3b49d0da 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ExemptPriorityLevelConfigurationPatch.java @@ -70,19 +70,21 @@ public Builder(ExemptPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public ExemptPriorityLevelConfigurationPatch build() { - final var o = new ExemptPriorityLevelConfigurationPatch(); - o.lendablePercent = lendablePercent; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new ExemptPriorityLevelConfigurationPatch(); + _resultValue.lendablePercent = lendablePercent; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethod.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethod.java index 4a33c13094..2effc4b7a6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethod.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethod.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(FlowDistinguisherMethod defaults) { @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("FlowDistinguisherMethod", "type"); + } + this.type = type; return this; } public FlowDistinguisherMethod build() { - final var o = new FlowDistinguisherMethod(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethod(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethodPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethodPatch.java index 5b9397cfa7..74d92d4f78 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethodPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowDistinguisherMethodPatch.java @@ -44,13 +44,14 @@ public Builder(FlowDistinguisherMethodPatch defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowDistinguisherMethodPatch build() { - final var o = new FlowDistinguisherMethodPatch(); - o.type = type; - return o; + final var _resultValue = new FlowDistinguisherMethodPatch(); + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchema.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchema.java index 4f5066b8ae..39fb18988c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchema.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchema.java @@ -103,37 +103,42 @@ public Builder(FlowSchema defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable FlowSchemaSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable FlowSchemaStatus status) { + this.status = status; return this; } public FlowSchema build() { - final var o = new FlowSchema(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new FlowSchema(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaCondition.java index 7f1d2045b6..526eb5e3b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaCondition.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaCondition build() { - final var o = new FlowSchemaCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaConditionPatch.java index d3e663dad2..1846d68463 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaConditionPatch.java @@ -100,37 +100,42 @@ public Builder(FlowSchemaConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public FlowSchemaConditionPatch build() { - final var o = new FlowSchemaConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new FlowSchemaConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpec.java index 05bfc694ea..bb82477c57 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.FlowDistinguisherMethod; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.PolicyRulesWithSubjects; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.PriorityLevelConfigurationReference; @@ -90,21 +91,27 @@ public Builder(FlowSchemaSpec defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethod distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(PriorityLevelConfigurationReference priorityLevelConfiguration) { - this.priorityLevelConfiguration = Objects.requireNonNull(priorityLevelConfiguration); + if (priorityLevelConfiguration == null) { + throw new MissingRequiredPropertyException("FlowSchemaSpec", "priorityLevelConfiguration"); + } + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +119,12 @@ public Builder rules(PolicyRulesWithSubjects... rules) { return rules(List.of(rules)); } public FlowSchemaSpec build() { - final var o = new FlowSchemaSpec(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpec(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpecPatch.java index 8be64ddfb1..9f8908999f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaSpecPatch.java @@ -90,21 +90,25 @@ public Builder(FlowSchemaSpecPatch defaults) { @CustomType.Setter public Builder distinguisherMethod(@Nullable FlowDistinguisherMethodPatch distinguisherMethod) { + this.distinguisherMethod = distinguisherMethod; return this; } @CustomType.Setter public Builder matchingPrecedence(@Nullable Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; return this; } @CustomType.Setter public Builder priorityLevelConfiguration(@Nullable PriorityLevelConfigurationReferencePatch priorityLevelConfiguration) { + this.priorityLevelConfiguration = priorityLevelConfiguration; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -112,12 +116,12 @@ public Builder rules(PolicyRulesWithSubjectsPatch... rules) { return rules(List.of(rules)); } public FlowSchemaSpecPatch build() { - final var o = new FlowSchemaSpecPatch(); - o.distinguisherMethod = distinguisherMethod; - o.matchingPrecedence = matchingPrecedence; - o.priorityLevelConfiguration = priorityLevelConfiguration; - o.rules = rules; - return o; + final var _resultValue = new FlowSchemaSpecPatch(); + _resultValue.distinguisherMethod = distinguisherMethod; + _resultValue.matchingPrecedence = matchingPrecedence; + _resultValue.priorityLevelConfiguration = priorityLevelConfiguration; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatus.java index 89172e82d1..4c228225ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatus.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaCondition... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatus build() { - final var o = new FlowSchemaStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatusPatch.java index 31b9dd44f8..9e04d62e04 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/FlowSchemaStatusPatch.java @@ -44,6 +44,7 @@ public Builder(FlowSchemaStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(FlowSchemaConditionPatch... conditions) { return conditions(List.of(conditions)); } public FlowSchemaStatusPatch build() { - final var o = new FlowSchemaStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new FlowSchemaStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubject.java index 51e2fab04a..9492ec56e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(GroupSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GroupSubject", "name"); + } + this.name = name; return this; } public GroupSubject build() { - final var o = new GroupSubject(); - o.name = name; - return o; + final var _resultValue = new GroupSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubjectPatch.java index 752b310520..a9d5347e4f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/GroupSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(GroupSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public GroupSubjectPatch build() { - final var o = new GroupSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new GroupSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponse.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponse.java index a12f052b70..559442c093 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponse.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponse.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.QueuingConfiguration; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(LimitResponse defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfiguration queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("LimitResponse", "type"); + } + this.type = type; return this; } public LimitResponse build() { - final var o = new LimitResponse(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponse(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponsePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponsePatch.java index bf1331c826..c8937f2970 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponsePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitResponsePatch.java @@ -59,19 +59,21 @@ public Builder(LimitResponsePatch defaults) { @CustomType.Setter public Builder queuing(@Nullable QueuingConfigurationPatch queuing) { + this.queuing = queuing; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public LimitResponsePatch build() { - final var o = new LimitResponsePatch(); - o.queuing = queuing; - o.type = type; - return o; + final var _resultValue = new LimitResponsePatch(); + _resultValue.queuing = queuing; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfiguration.java index 1be01bb025..c6bf522567 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfiguration.java @@ -107,31 +107,35 @@ public Builder(LimitedPriorityLevelConfiguration defaults) { @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponse limitResponse) { + this.limitResponse = limitResponse; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public LimitedPriorityLevelConfiguration build() { - final var o = new LimitedPriorityLevelConfiguration(); - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new LimitedPriorityLevelConfiguration(); + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfigurationPatch.java index a31cb49b5d..841d065e82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/LimitedPriorityLevelConfigurationPatch.java @@ -107,31 +107,35 @@ public Builder(LimitedPriorityLevelConfigurationPatch defaults) { @CustomType.Setter public Builder borrowingLimitPercent(@Nullable Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; return this; } @CustomType.Setter public Builder lendablePercent(@Nullable Integer lendablePercent) { + this.lendablePercent = lendablePercent; return this; } @CustomType.Setter public Builder limitResponse(@Nullable LimitResponsePatch limitResponse) { + this.limitResponse = limitResponse; return this; } @CustomType.Setter public Builder nominalConcurrencyShares(@Nullable Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; return this; } public LimitedPriorityLevelConfigurationPatch build() { - final var o = new LimitedPriorityLevelConfigurationPatch(); - o.borrowingLimitPercent = borrowingLimitPercent; - o.lendablePercent = lendablePercent; - o.limitResponse = limitResponse; - o.nominalConcurrencyShares = nominalConcurrencyShares; - return o; + final var _resultValue = new LimitedPriorityLevelConfigurationPatch(); + _resultValue.borrowingLimitPercent = borrowingLimitPercent; + _resultValue.lendablePercent = lendablePercent; + _resultValue.limitResponse = limitResponse; + _resultValue.nominalConcurrencyShares = nominalConcurrencyShares; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRule.java index ba072dd7ff..a46948dc69 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,10 @@ public Builder(NonResourcePolicyRule defaults) { @CustomType.Setter public Builder nonResourceURLs(List nonResourceURLs) { - this.nonResourceURLs = Objects.requireNonNull(nonResourceURLs); + if (nonResourceURLs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "nonResourceURLs"); + } + this.nonResourceURLs = nonResourceURLs; return this; } public Builder nonResourceURLs(String... nonResourceURLs) { @@ -77,17 +81,20 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("NonResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRule build() { - final var o = new NonResourcePolicyRule(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRule(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRulePatch.java index aa5d6d864b..4e94e30f82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/NonResourcePolicyRulePatch.java @@ -70,6 +70,7 @@ public Builder(NonResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -78,6 +79,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -85,10 +87,10 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public NonResourcePolicyRulePatch build() { - final var o = new NonResourcePolicyRulePatch(); - o.nonResourceURLs = nonResourceURLs; - o.verbs = verbs; - return o; + final var _resultValue = new NonResourcePolicyRulePatch(); + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjects.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjects.java index cfca234178..43f20683c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjects.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjects.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.NonResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.ResourcePolicyRule; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.Subject; @@ -74,6 +75,7 @@ public Builder(PolicyRulesWithSubjects defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +84,7 @@ public Builder nonResourceRules(NonResourcePolicyRule... nonResourceRules) { } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,18 +93,21 @@ public Builder resourceRules(ResourcePolicyRule... resourceRules) { } @CustomType.Setter public Builder subjects(List subjects) { - this.subjects = Objects.requireNonNull(subjects); + if (subjects == null) { + throw new MissingRequiredPropertyException("PolicyRulesWithSubjects", "subjects"); + } + this.subjects = subjects; return this; } public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjects build() { - final var o = new PolicyRulesWithSubjects(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjects(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjectsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjectsPatch.java index 2c6888441f..4685dbc1ed 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjectsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PolicyRulesWithSubjectsPatch.java @@ -74,6 +74,7 @@ public Builder(PolicyRulesWithSubjectsPatch defaults) { @CustomType.Setter public Builder nonResourceRules(@Nullable List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -82,6 +83,7 @@ public Builder nonResourceRules(NonResourcePolicyRulePatch... nonResourceRules) } @CustomType.Setter public Builder resourceRules(@Nullable List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -90,6 +92,7 @@ public Builder resourceRules(ResourcePolicyRulePatch... resourceRules) { } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -97,11 +100,11 @@ public Builder subjects(SubjectPatch... subjects) { return subjects(List.of(subjects)); } public PolicyRulesWithSubjectsPatch build() { - final var o = new PolicyRulesWithSubjectsPatch(); - o.nonResourceRules = nonResourceRules; - o.resourceRules = resourceRules; - o.subjects = subjects; - return o; + final var _resultValue = new PolicyRulesWithSubjectsPatch(); + _resultValue.nonResourceRules = nonResourceRules; + _resultValue.resourceRules = resourceRules; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfiguration.java index 2f4ecd8844..57785ff17c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfiguration.java @@ -103,37 +103,42 @@ public Builder(PriorityLevelConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PriorityLevelConfigurationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PriorityLevelConfigurationStatus status) { + this.status = status; return this; } public PriorityLevelConfiguration build() { - final var o = new PriorityLevelConfiguration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PriorityLevelConfiguration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationCondition.java index 025f811167..4d5e63b9d0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationCondition.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationCondition defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationCondition build() { - final var o = new PriorityLevelConfigurationCondition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationCondition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationConditionPatch.java index 0cedfa71c8..59393b6b49 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(PriorityLevelConfigurationConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationConditionPatch build() { - final var o = new PriorityLevelConfigurationConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReference.java index 202d5040c9..b8dad43ff8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(PriorityLevelConfigurationReference defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationReference", "name"); + } + this.name = name; return this; } public PriorityLevelConfigurationReference build() { - final var o = new PriorityLevelConfigurationReference(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReference(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReferencePatch.java index 258d891198..0c5e0776f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationReferencePatch.java @@ -44,13 +44,14 @@ public Builder(PriorityLevelConfigurationReferencePatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public PriorityLevelConfigurationReferencePatch build() { - final var o = new PriorityLevelConfigurationReferencePatch(); - o.name = name; - return o; + final var _resultValue = new PriorityLevelConfigurationReferencePatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpec.java index c7b85b6cee..a29be742fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.ExemptPriorityLevelConfiguration; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.LimitedPriorityLevelConfiguration; import java.lang.String; @@ -74,25 +75,30 @@ public Builder(PriorityLevelConfigurationSpec defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfiguration exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfiguration limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("PriorityLevelConfigurationSpec", "type"); + } + this.type = type; return this; } public PriorityLevelConfigurationSpec build() { - final var o = new PriorityLevelConfigurationSpec(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpec(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpecPatch.java index 1c838b73b4..195da9a27e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationSpecPatch.java @@ -74,25 +74,28 @@ public Builder(PriorityLevelConfigurationSpecPatch defaults) { @CustomType.Setter public Builder exempt(@Nullable ExemptPriorityLevelConfigurationPatch exempt) { + this.exempt = exempt; return this; } @CustomType.Setter public Builder limited(@Nullable LimitedPriorityLevelConfigurationPatch limited) { + this.limited = limited; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public PriorityLevelConfigurationSpecPatch build() { - final var o = new PriorityLevelConfigurationSpecPatch(); - o.exempt = exempt; - o.limited = limited; - o.type = type; - return o; + final var _resultValue = new PriorityLevelConfigurationSpecPatch(); + _resultValue.exempt = exempt; + _resultValue.limited = limited; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatus.java index 248216c684..943aa7baf7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatus.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationCondition... conditions) { return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatus build() { - final var o = new PriorityLevelConfigurationStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatusPatch.java index 76763bfedd..a2b837d889 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/PriorityLevelConfigurationStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PriorityLevelConfigurationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(PriorityLevelConfigurationConditionPatch... conditions return conditions(List.of(conditions)); } public PriorityLevelConfigurationStatusPatch build() { - final var o = new PriorityLevelConfigurationStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new PriorityLevelConfigurationStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfiguration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfiguration.java index fca32d481d..f5c16f71bd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfiguration.java @@ -72,25 +72,28 @@ public Builder(QueuingConfiguration defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfiguration build() { - final var o = new QueuingConfiguration(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfiguration(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfigurationPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfigurationPatch.java index 046929c0a1..7257fb3c2b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfigurationPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/QueuingConfigurationPatch.java @@ -72,25 +72,28 @@ public Builder(QueuingConfigurationPatch defaults) { @CustomType.Setter public Builder handSize(@Nullable Integer handSize) { + this.handSize = handSize; return this; } @CustomType.Setter public Builder queueLengthLimit(@Nullable Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; return this; } @CustomType.Setter public Builder queues(@Nullable Integer queues) { + this.queues = queues; return this; } public QueuingConfigurationPatch build() { - final var o = new QueuingConfigurationPatch(); - o.handSize = handSize; - o.queueLengthLimit = queueLengthLimit; - o.queues = queues; - return o; + final var _resultValue = new QueuingConfigurationPatch(); + _resultValue.handSize = handSize; + _resultValue.queueLengthLimit = queueLengthLimit; + _resultValue.queues = queues; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRule.java index 6fd03a3a8d..9467b89f76 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -102,7 +103,10 @@ public Builder(ResourcePolicyRule defaults) { @CustomType.Setter public Builder apiGroups(List apiGroups) { - this.apiGroups = Objects.requireNonNull(apiGroups); + if (apiGroups == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "apiGroups"); + } + this.apiGroups = apiGroups; return this; } public Builder apiGroups(String... apiGroups) { @@ -110,11 +114,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,7 +129,10 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -131,20 +140,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("ResourcePolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRule build() { - final var o = new ResourcePolicyRule(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRulePatch.java index 076afb522f..39c9f2f6b7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ResourcePolicyRulePatch.java @@ -102,6 +102,7 @@ public Builder(ResourcePolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -110,11 +111,13 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder clusterScope(@Nullable Boolean clusterScope) { + this.clusterScope = clusterScope; return this; } @CustomType.Setter public Builder namespaces(@Nullable List namespaces) { + this.namespaces = namespaces; return this; } @@ -123,6 +126,7 @@ public Builder namespaces(String... namespaces) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -131,6 +135,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -138,13 +143,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public ResourcePolicyRulePatch build() { - final var o = new ResourcePolicyRulePatch(); - o.apiGroups = apiGroups; - o.clusterScope = clusterScope; - o.namespaces = namespaces; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new ResourcePolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.clusterScope = clusterScope; + _resultValue.namespaces = namespaces; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubject.java index 4146c6a595..551371e2ea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(ServiceAccountSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(String namespace) { - this.namespace = Objects.requireNonNull(namespace); + if (namespace == null) { + throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace"); + } + this.namespace = namespace; return this; } public ServiceAccountSubject build() { - final var o = new ServiceAccountSubject(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubject(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubjectPatch.java index 78344e16fa..dde06dad3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/ServiceAccountSubjectPatch.java @@ -58,19 +58,21 @@ public Builder(ServiceAccountSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ServiceAccountSubjectPatch build() { - final var o = new ServiceAccountSubjectPatch(); - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ServiceAccountSubjectPatch(); + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/Subject.java index 1d7d22c394..96172bd680 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.GroupSubject; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.ServiceAccountSubject; import com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.UserSubject; @@ -89,31 +90,37 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubject group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubject serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubject user) { + this.user = user; return this; } public Subject build() { - final var o = new Subject(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new Subject(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/SubjectPatch.java index 96cf1e7731..aec5572475 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/SubjectPatch.java @@ -89,31 +89,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder group(@Nullable GroupSubjectPatch group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder serviceAccount(@Nullable ServiceAccountSubjectPatch serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder user(@Nullable UserSubjectPatch user) { + this.user = user; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.group = group; - o.kind = kind; - o.serviceAccount = serviceAccount; - o.user = user; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.serviceAccount = serviceAccount; + _resultValue.user = user; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubject.java index d506894db5..5ff1ea753d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.flowcontrol.v1beta3.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(UserSubject defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("UserSubject", "name"); + } + this.name = name; return this; } public UserSubject build() { - final var o = new UserSubject(); - o.name = name; - return o; + final var _resultValue = new UserSubject(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubjectPatch.java index 27b2bc1a33..7f3ee6b80b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/flowcontrol/v1beta3/outputs/UserSubjectPatch.java @@ -44,13 +44,14 @@ public Builder(UserSubjectPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public UserSubjectPatch build() { - final var o = new UserSubjectPatch(); - o.name = name; - return o; + final var _resultValue = new UserSubjectPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/ReleaseArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/ReleaseArgs.java index 36674301b0..921fc99eeb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/ReleaseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/ReleaseArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.helm.v3.inputs.RepositoryOptsArgs; import java.lang.Boolean; import java.lang.Integer; @@ -1332,7 +1333,9 @@ public Builder waitForJobs(Boolean waitForJobs) { } public ReleaseArgs build() { - $.chart = Objects.requireNonNull($.chart, "expected parameter 'chart' to be non-null"); + if ($.chart == null) { + throw new MissingRequiredPropertyException("ReleaseArgs", "chart"); + } $.compat = Codegen.stringProp("compat").output().arg($.compat).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/ReleaseStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/ReleaseStatus.java index 44ef460959..6713c6edf2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/ReleaseStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/ReleaseStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.helm.v3.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,49 +130,58 @@ public Builder(ReleaseStatus defaults) { @CustomType.Setter public Builder appVersion(@Nullable String appVersion) { + this.appVersion = appVersion; return this; } @CustomType.Setter public Builder chart(@Nullable String chart) { + this.chart = chart; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; 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("ReleaseStatus", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } public ReleaseStatus build() { - final var o = new ReleaseStatus(); - o.appVersion = appVersion; - o.chart = chart; - o.name = name; - o.namespace = namespace; - o.revision = revision; - o.status = status; - o.version = version; - return o; + final var _resultValue = new ReleaseStatus(); + _resultValue.appVersion = appVersion; + _resultValue.chart = chart; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.revision = revision; + _resultValue.status = status; + _resultValue.version = version; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/RepositoryOpts.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/RepositoryOpts.java index 73e9e05376..0939329826 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/RepositoryOpts.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v3/outputs/RepositoryOpts.java @@ -114,43 +114,49 @@ public Builder(RepositoryOpts defaults) { @CustomType.Setter public Builder caFile(@Nullable String caFile) { + this.caFile = caFile; return this; } @CustomType.Setter public Builder certFile(@Nullable String certFile) { + this.certFile = certFile; return this; } @CustomType.Setter public Builder keyFile(@Nullable String keyFile) { + this.keyFile = keyFile; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } public RepositoryOpts build() { - final var o = new RepositoryOpts(); - o.caFile = caFile; - o.certFile = certFile; - o.keyFile = keyFile; - o.password = password; - o.repo = repo; - o.username = username; - return o; + final var _resultValue = new RepositoryOpts(); + _resultValue.caFile = caFile; + _resultValue.certFile = certFile; + _resultValue.keyFile = keyFile; + _resultValue.password = password; + _resultValue.repo = repo; + _resultValue.username = username; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/Chart.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/Chart.java index 2dbefb8e9b..5680081f4c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/Chart.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/Chart.java @@ -103,7 +103,8 @@ * * ## Example Usage * ### Local Chart Directory - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Pulumi;
@@ -112,16 +113,18 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var nginx = new Chart("nginx", ChartArgs.builder()
- *                     .chart("./nginx")
+ *         Pulumi.run(ctx -> {
+ *             var nginx = new Chart("nginx", ChartArgs.builder()
+ *                     .chart("./nginx")
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### Repository Chart - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Pulumi;
@@ -131,19 +134,21 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var nginx = new Chart("nginx", ChartArgs.builder()
- *                     .chart("nginx")
+ *         Pulumi.run(ctx -> {
+ *             var nginx = new Chart("nginx", ChartArgs.builder()
+ *                     .chart("nginx")
  *                     .repositoryOpts(RepositoryOptsArgs.builder()
- *                             .repo("https://charts.bitnami.com/bitnami")
+ *                             .repo("https://charts.bitnami.com/bitnami")
  *                             .build())
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### OCI Chart - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Pulumi;
@@ -152,17 +157,19 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var nginx = new Chart("nginx", ChartArgs.builder()
- *                     .chart("oci://registry-1.docker.io/bitnamicharts/nginx")
- *                     .version("16.0.7")
+ *         Pulumi.run(ctx -> {
+ *             var nginx = new Chart("nginx", ChartArgs.builder()
+ *                     .chart("oci://registry-1.docker.io/bitnamicharts/nginx")
+ *                     .version("16.0.7")
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### Chart Values - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import java.util.Map;
@@ -175,24 +182,26 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var nginx = new Chart("nginx", ChartArgs.builder()
- *                     .chart("nginx")
+ *         Pulumi.run(ctx -> {
+ *             var nginx = new Chart("nginx", ChartArgs.builder()
+ *                     .chart("nginx")
  *                     .repositoryOpts(RepositoryOptsArgs.builder()
- *                             .repo("https://charts.bitnami.com/bitnami")
+ *                             .repo("https://charts.bitnami.com/bitnami")
  *                             .build())
- *                     .valueYamlFiles(new FileAsset("./values.yaml"))
+ *                     .valueYamlFiles(new FileAsset("./values.yaml"))
  *                     .values(Map.of(
- *                             "service", Map.of(
- *                                     "type", "ClusterIP"),
- *                             "notes", new FileAsset("./notes.txt")))
+ *                             "service", Map.of(
+ *                                     "type", "ClusterIP"),
+ *                             "notes", new FileAsset("./notes.txt")))
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### Chart Namespace - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Pulumi;
@@ -206,23 +215,24 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var ns = new Namespace("nginx", NamespaceArgs.builder()
+ *         Pulumi.run(ctx -> {
+ *             var ns = new Namespace("nginx", NamespaceArgs.builder()
  *                     .metadata(ObjectMetaArgs.builder()
- *                             .name("nginx")
+ *                             .name("nginx")
  *                             .build())
  *                     .build());
- *             var nginx = new Chart("nginx", ChartArgs.builder()
- *                     .namespace(ns.metadata().apply(m -> Output.of(m.name().get())))
- *                     .chart("nginx")
+ *             var nginx = new Chart("nginx", ChartArgs.builder()
+ *                     .namespace(ns.metadata().apply(m -> Output.of(m.name().get())))
+ *                     .chart("nginx")
  *                     .repositoryOpts(RepositoryOptsArgs.builder()
- *                             .repo("https://charts.bitnami.com/bitnami")
+ *                             .repo("https://charts.bitnami.com/bitnami")
  *                             .build())
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:helm.sh/v4:Chart") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/ChartArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/ChartArgs.java index ac960be123..87f848a0f5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/ChartArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/ChartArgs.java @@ -6,6 +6,7 @@ import com.pulumi.asset.AssetOrArchive; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.helm.v4.inputs.PostRendererArgs; import com.pulumi.kubernetes.helm.v4.inputs.RepositoryOptsArgs; import java.lang.Boolean; @@ -611,7 +612,9 @@ public Builder version(String version) { } public ChartArgs build() { - $.chart = Objects.requireNonNull($.chart, "expected parameter 'chart' to be non-null"); + if ($.chart == null) { + throw new MissingRequiredPropertyException("ChartArgs", "chart"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/inputs/PostRendererArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/inputs/PostRendererArgs.java index 47e0529415..2bab6fa792 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/inputs/PostRendererArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/helm/v4/inputs/PostRendererArgs.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; @@ -128,7 +129,9 @@ public Builder command(String command) { } public PostRendererArgs build() { - $.command = Objects.requireNonNull($.command, "expected parameter 'command' to be non-null"); + if ($.command == null) { + throw new MissingRequiredPropertyException("PostRendererArgs", "command"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/ConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/ConditionArgs.java index 56be44282e..a0fc800b1c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/ConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/ConditionArgs.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; @@ -266,11 +267,21 @@ public Builder type(String type) { } public ConditionArgs build() { - $.lastTransitionTime = Objects.requireNonNull($.lastTransitionTime, "expected parameter 'lastTransitionTime' to be non-null"); - $.message = Objects.requireNonNull($.message, "expected parameter 'message' to be non-null"); - $.reason = Objects.requireNonNull($.reason, "expected parameter 'reason' to be non-null"); - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.lastTransitionTime == null) { + throw new MissingRequiredPropertyException("ConditionArgs", "lastTransitionTime"); + } + if ($.message == null) { + throw new MissingRequiredPropertyException("ConditionArgs", "message"); + } + if ($.reason == null) { + throw new MissingRequiredPropertyException("ConditionArgs", "reason"); + } + if ($.status == null) { + throw new MissingRequiredPropertyException("ConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/LabelSelectorRequirementArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/LabelSelectorRequirementArgs.java index e9a40613c4..5fea1ecbef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/LabelSelectorRequirementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/LabelSelectorRequirementArgs.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; @@ -165,8 +166,12 @@ public Builder values(String... values) { } public LabelSelectorRequirementArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("LabelSelectorRequirementArgs", "key"); + } + if ($.operator == null) { + throw new MissingRequiredPropertyException("LabelSelectorRequirementArgs", "operator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/OwnerReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/OwnerReferenceArgs.java index c25762cc7b..c6142d9f2e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/OwnerReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/inputs/OwnerReferenceArgs.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; @@ -266,10 +267,18 @@ public Builder uid(String uid) { } public OwnerReferenceArgs build() { - $.apiVersion = Objects.requireNonNull($.apiVersion, "expected parameter 'apiVersion' to be non-null"); - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.uid = Objects.requireNonNull($.uid, "expected parameter 'uid' to be non-null"); + if ($.apiVersion == null) { + throw new MissingRequiredPropertyException("OwnerReferenceArgs", "apiVersion"); + } + if ($.kind == null) { + throw new MissingRequiredPropertyException("OwnerReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("OwnerReferenceArgs", "name"); + } + if ($.uid == null) { + throw new MissingRequiredPropertyException("OwnerReferenceArgs", "uid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/Condition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/Condition.java index ae56fc37e5..1e9d2638a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/Condition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/Condition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.meta.v1.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,43 +116,59 @@ public Builder(Condition defaults) { @CustomType.Setter public Builder lastTransitionTime(String lastTransitionTime) { - this.lastTransitionTime = Objects.requireNonNull(lastTransitionTime); + if (lastTransitionTime == null) { + throw new MissingRequiredPropertyException("Condition", "lastTransitionTime"); + } + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("Condition", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder reason(String reason) { - this.reason = Objects.requireNonNull(reason); + if (reason == null) { + throw new MissingRequiredPropertyException("Condition", "reason"); + } + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("Condition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("Condition", "type"); + } + this.type = type; return this; } public Condition build() { - final var o = new Condition(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.observedGeneration = observedGeneration; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new Condition(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.observedGeneration = observedGeneration; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ConditionPatch.java index 654d37979c..200cadcafe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ConditionPatch.java @@ -115,43 +115,49 @@ public Builder(ConditionPatch defaults) { @CustomType.Setter public Builder lastTransitionTime(@Nullable String lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public ConditionPatch build() { - final var o = new ConditionPatch(); - o.lastTransitionTime = lastTransitionTime; - o.message = message; - o.observedGeneration = observedGeneration; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new ConditionPatch(); + _resultValue.lastTransitionTime = lastTransitionTime; + _resultValue.message = message; + _resultValue.observedGeneration = observedGeneration; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelector.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelector.java index d5f4aea07b..f14d62368b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelector.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelector.java @@ -60,6 +60,7 @@ public Builder(LabelSelector defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -68,14 +69,15 @@ public Builder matchExpressions(LabelSelectorRequirement... matchExpressions) { } @CustomType.Setter public Builder matchLabels(@Nullable Map matchLabels) { + this.matchLabels = matchLabels; return this; } public LabelSelector build() { - final var o = new LabelSelector(); - o.matchExpressions = matchExpressions; - o.matchLabels = matchLabels; - return o; + final var _resultValue = new LabelSelector(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchLabels = matchLabels; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorPatch.java index 521388b461..8c1d97fd8c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorPatch.java @@ -60,6 +60,7 @@ public Builder(LabelSelectorPatch defaults) { @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -68,14 +69,15 @@ public Builder matchExpressions(LabelSelectorRequirementPatch... matchExpression } @CustomType.Setter public Builder matchLabels(@Nullable Map matchLabels) { + this.matchLabels = matchLabels; return this; } public LabelSelectorPatch build() { - final var o = new LabelSelectorPatch(); - o.matchExpressions = matchExpressions; - o.matchLabels = matchLabels; - return o; + final var _resultValue = new LabelSelectorPatch(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchLabels = matchLabels; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirement.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirement.java index 78d9c98f76..8de648947b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirement.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.meta.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -72,16 +73,23 @@ public Builder(LabelSelectorRequirement defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("LabelSelectorRequirement", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("LabelSelectorRequirement", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -89,11 +97,11 @@ public Builder values(String... values) { return values(List.of(values)); } public LabelSelectorRequirement build() { - final var o = new LabelSelectorRequirement(); - o.key = key; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new LabelSelectorRequirement(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirementPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirementPatch.java index 7346f1770d..f93fa5a9e0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirementPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/LabelSelectorRequirementPatch.java @@ -73,16 +73,19 @@ public Builder(LabelSelectorRequirementPatch defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } @@ -90,11 +93,11 @@ public Builder values(String... values) { return values(List.of(values)); } public LabelSelectorRequirementPatch build() { - final var o = new LabelSelectorRequirementPatch(); - o.key = key; - o.operator = operator; - o.values = values; - return o; + final var _resultValue = new LabelSelectorRequirementPatch(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMeta.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMeta.java index 6acc446072..ed0673b9e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMeta.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMeta.java @@ -87,31 +87,35 @@ public Builder(ListMeta defaults) { @CustomType.Setter("continue") public Builder continue_(@Nullable String continue_) { + this.continue_ = continue_; return this; } @CustomType.Setter public Builder remainingItemCount(@Nullable Integer remainingItemCount) { + this.remainingItemCount = remainingItemCount; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder selfLink(@Nullable String selfLink) { + this.selfLink = selfLink; return this; } public ListMeta build() { - final var o = new ListMeta(); - o.continue_ = continue_; - o.remainingItemCount = remainingItemCount; - o.resourceVersion = resourceVersion; - o.selfLink = selfLink; - return o; + final var _resultValue = new ListMeta(); + _resultValue.continue_ = continue_; + _resultValue.remainingItemCount = remainingItemCount; + _resultValue.resourceVersion = resourceVersion; + _resultValue.selfLink = selfLink; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMetaPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMetaPatch.java index a252c9d3a8..abfb0126d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMetaPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ListMetaPatch.java @@ -87,31 +87,35 @@ public Builder(ListMetaPatch defaults) { @CustomType.Setter("continue") public Builder continue_(@Nullable String continue_) { + this.continue_ = continue_; return this; } @CustomType.Setter public Builder remainingItemCount(@Nullable Integer remainingItemCount) { + this.remainingItemCount = remainingItemCount; return this; } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder selfLink(@Nullable String selfLink) { + this.selfLink = selfLink; return this; } public ListMetaPatch build() { - final var o = new ListMetaPatch(); - o.continue_ = continue_; - o.remainingItemCount = remainingItemCount; - o.resourceVersion = resourceVersion; - o.selfLink = selfLink; - return o; + final var _resultValue = new ListMetaPatch(); + _resultValue.continue_ = continue_; + _resultValue.remainingItemCount = remainingItemCount; + _resultValue.resourceVersion = resourceVersion; + _resultValue.selfLink = selfLink; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntry.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntry.java index 187e78a1d4..b98774bfbe 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntry.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntry.java @@ -129,49 +129,56 @@ public Builder(ManagedFieldsEntry defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldsType(@Nullable String fieldsType) { + this.fieldsType = fieldsType; return this; } @CustomType.Setter public Builder fieldsV1(@Nullable JsonElement fieldsV1) { + this.fieldsV1 = fieldsV1; return this; } @CustomType.Setter public Builder manager(@Nullable String manager) { + this.manager = manager; return this; } @CustomType.Setter public Builder operation(@Nullable String operation) { + this.operation = operation; return this; } @CustomType.Setter public Builder subresource(@Nullable String subresource) { + this.subresource = subresource; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public ManagedFieldsEntry build() { - final var o = new ManagedFieldsEntry(); - o.apiVersion = apiVersion; - o.fieldsType = fieldsType; - o.fieldsV1 = fieldsV1; - o.manager = manager; - o.operation = operation; - o.subresource = subresource; - o.time = time; - return o; + final var _resultValue = new ManagedFieldsEntry(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldsType = fieldsType; + _resultValue.fieldsV1 = fieldsV1; + _resultValue.manager = manager; + _resultValue.operation = operation; + _resultValue.subresource = subresource; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntryPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntryPatch.java index ae14652e0f..7502eb970f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntryPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ManagedFieldsEntryPatch.java @@ -129,49 +129,56 @@ public Builder(ManagedFieldsEntryPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder fieldsType(@Nullable String fieldsType) { + this.fieldsType = fieldsType; return this; } @CustomType.Setter public Builder fieldsV1(@Nullable JsonElement fieldsV1) { + this.fieldsV1 = fieldsV1; return this; } @CustomType.Setter public Builder manager(@Nullable String manager) { + this.manager = manager; return this; } @CustomType.Setter public Builder operation(@Nullable String operation) { + this.operation = operation; return this; } @CustomType.Setter public Builder subresource(@Nullable String subresource) { + this.subresource = subresource; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public ManagedFieldsEntryPatch build() { - final var o = new ManagedFieldsEntryPatch(); - o.apiVersion = apiVersion; - o.fieldsType = fieldsType; - o.fieldsV1 = fieldsV1; - o.manager = manager; - o.operation = operation; - o.subresource = subresource; - o.time = time; - return o; + final var _resultValue = new ManagedFieldsEntryPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.fieldsType = fieldsType; + _resultValue.fieldsV1 = fieldsV1; + _resultValue.manager = manager; + _resultValue.operation = operation; + _resultValue.subresource = subresource; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMeta.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMeta.java index 0474e82e49..da8b5d65bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMeta.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMeta.java @@ -287,31 +287,37 @@ public Builder(ObjectMeta defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder creationTimestamp(@Nullable String creationTimestamp) { + this.creationTimestamp = creationTimestamp; return this; } @CustomType.Setter public Builder deletionGracePeriodSeconds(@Nullable Integer deletionGracePeriodSeconds) { + this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; return this; } @CustomType.Setter public Builder deletionTimestamp(@Nullable String deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; return this; } @CustomType.Setter public Builder finalizers(@Nullable List finalizers) { + this.finalizers = finalizers; return this; } @@ -320,21 +326,25 @@ public Builder finalizers(String... finalizers) { } @CustomType.Setter public Builder generateName(@Nullable String generateName) { + this.generateName = generateName; return this; } @CustomType.Setter public Builder generation(@Nullable Integer generation) { + this.generation = generation; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder managedFields(@Nullable List managedFields) { + this.managedFields = managedFields; return this; } @@ -343,16 +353,19 @@ public Builder managedFields(ManagedFieldsEntry... managedFields) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder ownerReferences(@Nullable List ownerReferences) { + this.ownerReferences = ownerReferences; return this; } @@ -361,38 +374,41 @@ public Builder ownerReferences(OwnerReference... ownerReferences) { } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder selfLink(@Nullable String selfLink) { + this.selfLink = selfLink; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ObjectMeta build() { - final var o = new ObjectMeta(); - o.annotations = annotations; - o.clusterName = clusterName; - o.creationTimestamp = creationTimestamp; - o.deletionGracePeriodSeconds = deletionGracePeriodSeconds; - o.deletionTimestamp = deletionTimestamp; - o.finalizers = finalizers; - o.generateName = generateName; - o.generation = generation; - o.labels = labels; - o.managedFields = managedFields; - o.name = name; - o.namespace = namespace; - o.ownerReferences = ownerReferences; - o.resourceVersion = resourceVersion; - o.selfLink = selfLink; - o.uid = uid; - return o; + final var _resultValue = new ObjectMeta(); + _resultValue.annotations = annotations; + _resultValue.clusterName = clusterName; + _resultValue.creationTimestamp = creationTimestamp; + _resultValue.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + _resultValue.deletionTimestamp = deletionTimestamp; + _resultValue.finalizers = finalizers; + _resultValue.generateName = generateName; + _resultValue.generation = generation; + _resultValue.labels = labels; + _resultValue.managedFields = managedFields; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.ownerReferences = ownerReferences; + _resultValue.resourceVersion = resourceVersion; + _resultValue.selfLink = selfLink; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMetaPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMetaPatch.java index fe34851c38..da53b7b447 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMetaPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/ObjectMetaPatch.java @@ -287,31 +287,37 @@ public Builder(ObjectMetaPatch defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder creationTimestamp(@Nullable String creationTimestamp) { + this.creationTimestamp = creationTimestamp; return this; } @CustomType.Setter public Builder deletionGracePeriodSeconds(@Nullable Integer deletionGracePeriodSeconds) { + this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; return this; } @CustomType.Setter public Builder deletionTimestamp(@Nullable String deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; return this; } @CustomType.Setter public Builder finalizers(@Nullable List finalizers) { + this.finalizers = finalizers; return this; } @@ -320,21 +326,25 @@ public Builder finalizers(String... finalizers) { } @CustomType.Setter public Builder generateName(@Nullable String generateName) { + this.generateName = generateName; return this; } @CustomType.Setter public Builder generation(@Nullable Integer generation) { + this.generation = generation; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder managedFields(@Nullable List managedFields) { + this.managedFields = managedFields; return this; } @@ -343,16 +353,19 @@ public Builder managedFields(ManagedFieldsEntryPatch... managedFields) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder ownerReferences(@Nullable List ownerReferences) { + this.ownerReferences = ownerReferences; return this; } @@ -361,38 +374,41 @@ public Builder ownerReferences(OwnerReferencePatch... ownerReferences) { } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder selfLink(@Nullable String selfLink) { + this.selfLink = selfLink; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ObjectMetaPatch build() { - final var o = new ObjectMetaPatch(); - o.annotations = annotations; - o.clusterName = clusterName; - o.creationTimestamp = creationTimestamp; - o.deletionGracePeriodSeconds = deletionGracePeriodSeconds; - o.deletionTimestamp = deletionTimestamp; - o.finalizers = finalizers; - o.generateName = generateName; - o.generation = generation; - o.labels = labels; - o.managedFields = managedFields; - o.name = name; - o.namespace = namespace; - o.ownerReferences = ownerReferences; - o.resourceVersion = resourceVersion; - o.selfLink = selfLink; - o.uid = uid; - return o; + final var _resultValue = new ObjectMetaPatch(); + _resultValue.annotations = annotations; + _resultValue.clusterName = clusterName; + _resultValue.creationTimestamp = creationTimestamp; + _resultValue.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + _resultValue.deletionTimestamp = deletionTimestamp; + _resultValue.finalizers = finalizers; + _resultValue.generateName = generateName; + _resultValue.generation = generation; + _resultValue.labels = labels; + _resultValue.managedFields = managedFields; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.ownerReferences = ownerReferences; + _resultValue.resourceVersion = resourceVersion; + _resultValue.selfLink = selfLink; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReference.java index ab0a9084b0..c83960e67a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.meta.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -115,43 +116,57 @@ public Builder(OwnerReference defaults) { @CustomType.Setter public Builder apiVersion(String apiVersion) { - this.apiVersion = Objects.requireNonNull(apiVersion); + if (apiVersion == null) { + throw new MissingRequiredPropertyException("OwnerReference", "apiVersion"); + } + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder blockOwnerDeletion(@Nullable Boolean blockOwnerDeletion) { + this.blockOwnerDeletion = blockOwnerDeletion; return this; } @CustomType.Setter public Builder controller(@Nullable Boolean controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("OwnerReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("OwnerReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder uid(String uid) { - this.uid = Objects.requireNonNull(uid); + if (uid == null) { + throw new MissingRequiredPropertyException("OwnerReference", "uid"); + } + this.uid = uid; return this; } public OwnerReference build() { - final var o = new OwnerReference(); - o.apiVersion = apiVersion; - o.blockOwnerDeletion = blockOwnerDeletion; - o.controller = controller; - o.kind = kind; - o.name = name; - o.uid = uid; - return o; + final var _resultValue = new OwnerReference(); + _resultValue.apiVersion = apiVersion; + _resultValue.blockOwnerDeletion = blockOwnerDeletion; + _resultValue.controller = controller; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReferencePatch.java index f24eea5a88..01475051d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/OwnerReferencePatch.java @@ -115,43 +115,49 @@ public Builder(OwnerReferencePatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder blockOwnerDeletion(@Nullable Boolean blockOwnerDeletion) { + this.blockOwnerDeletion = blockOwnerDeletion; return this; } @CustomType.Setter public Builder controller(@Nullable Boolean controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public OwnerReferencePatch build() { - final var o = new OwnerReferencePatch(); - o.apiVersion = apiVersion; - o.blockOwnerDeletion = blockOwnerDeletion; - o.controller = controller; - o.kind = kind; - o.name = name; - o.uid = uid; - return o; + final var _resultValue = new OwnerReferencePatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.blockOwnerDeletion = blockOwnerDeletion; + _resultValue.controller = controller; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCause.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCause.java index aea6d91e4f..b24fb92b38 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCause.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCause.java @@ -80,25 +80,28 @@ public Builder(StatusCause defaults) { @CustomType.Setter public Builder field(@Nullable String field) { + this.field = field; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public StatusCause build() { - final var o = new StatusCause(); - o.field = field; - o.message = message; - o.reason = reason; - return o; + final var _resultValue = new StatusCause(); + _resultValue.field = field; + _resultValue.message = message; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCausePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCausePatch.java index 4984c1177b..ef75cc5c25 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCausePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusCausePatch.java @@ -80,25 +80,28 @@ public Builder(StatusCausePatch defaults) { @CustomType.Setter public Builder field(@Nullable String field) { + this.field = field; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } public StatusCausePatch build() { - final var o = new StatusCausePatch(); - o.field = field; - o.message = message; - o.reason = reason; - return o; + final var _resultValue = new StatusCausePatch(); + _resultValue.field = field; + _resultValue.message = message; + _resultValue.reason = reason; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetails.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetails.java index ca6a03b451..333c87404f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetails.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetails.java @@ -117,6 +117,7 @@ public Builder(StatusDetails defaults) { @CustomType.Setter public Builder causes(@Nullable List causes) { + this.causes = causes; return this; } @@ -125,38 +126,43 @@ public Builder causes(StatusCause... causes) { } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder retryAfterSeconds(@Nullable Integer retryAfterSeconds) { + this.retryAfterSeconds = retryAfterSeconds; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public StatusDetails build() { - final var o = new StatusDetails(); - o.causes = causes; - o.group = group; - o.kind = kind; - o.name = name; - o.retryAfterSeconds = retryAfterSeconds; - o.uid = uid; - return o; + final var _resultValue = new StatusDetails(); + _resultValue.causes = causes; + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.retryAfterSeconds = retryAfterSeconds; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetailsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetailsPatch.java index 04c944d4bc..87a6fa1b06 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetailsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/meta/v1/outputs/StatusDetailsPatch.java @@ -117,6 +117,7 @@ public Builder(StatusDetailsPatch defaults) { @CustomType.Setter public Builder causes(@Nullable List causes) { + this.causes = causes; return this; } @@ -125,38 +126,43 @@ public Builder causes(StatusCausePatch... causes) { } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder retryAfterSeconds(@Nullable Integer retryAfterSeconds) { + this.retryAfterSeconds = retryAfterSeconds; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public StatusDetailsPatch build() { - final var o = new StatusDetailsPatch(); - o.causes = causes; - o.group = group; - o.kind = kind; - o.name = name; - o.retryAfterSeconds = retryAfterSeconds; - o.uid = uid; - return o; + final var _resultValue = new StatusDetailsPatch(); + _resultValue.causes = causes; + _resultValue.group = group; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.retryAfterSeconds = retryAfterSeconds; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/Ingress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/Ingress.java index 187005c73b..61fca5e447 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/Ingress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/Ingress.java @@ -37,7 +37,8 @@ * * ## Example Usage * ### Create an Ingress with auto-naming - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -60,9 +61,9 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var ingress = new Ingress("ingress", IngressArgs.builder()        
+ *         var ingress = new Ingress("ingress", IngressArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .annotations(Map.of("nginx.ingress.kubernetes.io/rewrite-target", "/"))
+ *                 .annotations(Map.of("nginx.ingress.kubernetes.io/rewrite-target", "/"))
  *                 .build())
  *             .spec(IngressSpecArgs.builder()
  *                 .rules(IngressRuleArgs.builder()
@@ -70,14 +71,14 @@
  *                         .paths(HTTPIngressPathArgs.builder()
  *                             .backend(IngressBackendArgs.builder()
  *                                 .service(IngressServiceBackendArgs.builder()
- *                                     .name("test")
+ *                                     .name("test")
  *                                     .port(ServiceBackendPortArgs.builder()
  *                                         .number(80)
  *                                         .build())
  *                                     .build())
  *                                 .build())
- *                             .path("/testpath")
- *                             .pathType("Prefix")
+ *                             .path("/testpath")
+ *                             .pathType("Prefix")
  *                             .build())
  *                         .build())
  *                     .build())
@@ -86,9 +87,11 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* ### Create an Ingress with a user-specified name - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -111,10 +114,10 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var ingress = new Ingress("ingress", IngressArgs.builder()        
+ *         var ingress = new Ingress("ingress", IngressArgs.builder()        
  *             .metadata(ObjectMetaArgs.builder()
- *                 .annotations(Map.of("nginx.ingress.kubernetes.io/rewrite-target", "/"))
- *                 .name("minimal-ingress")
+ *                 .annotations(Map.of("nginx.ingress.kubernetes.io/rewrite-target", "/"))
+ *                 .name("minimal-ingress")
  *                 .build())
  *             .spec(IngressSpecArgs.builder()
  *                 .rules(IngressRuleArgs.builder()
@@ -122,14 +125,14 @@
  *                         .paths(HTTPIngressPathArgs.builder()
  *                             .backend(IngressBackendArgs.builder()
  *                                 .service(IngressServiceBackendArgs.builder()
- *                                     .name("test")
+ *                                     .name("test")
  *                                     .port(ServiceBackendPortArgs.builder()
  *                                         .number(80)
  *                                         .build())
  *                                     .build())
  *                                 .build())
- *                             .path("/testpath")
- *                             .pathType("Prefix")
+ *                             .path("/testpath")
+ *                             .pathType("Prefix")
  *                             .build())
  *                         .build())
  *                     .build())
@@ -138,7 +141,8 @@
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="kubernetes:networking.k8s.io/v1:Ingress") diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressClassListArgs.java index f6ed722af2..ecebb4d694 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1.inputs.IngressClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IngressClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IngressClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressListArgs.java index 69a494829c..6282284f61 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/IngressListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1.inputs.IngressArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IngressListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IngressListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/NetworkPolicyListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/NetworkPolicyListArgs.java index 8a6e13fa46..dff8acf385 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/NetworkPolicyListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/NetworkPolicyListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1.inputs.NetworkPolicyArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public NetworkPolicyListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("NetworkPolicyListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressPathArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressPathArgs.java index 880923ef1b..27786ff86f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressPathArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.inputs.IngressBackendArgs; import java.lang.String; import java.util.Objects; @@ -195,8 +196,12 @@ public Builder pathType(String pathType) { } public HTTPIngressPathArgs build() { - $.backend = Objects.requireNonNull($.backend, "expected parameter 'backend' to be non-null"); - $.pathType = Objects.requireNonNull($.pathType, "expected parameter 'pathType' to be non-null"); + if ($.backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPathArgs", "backend"); + } + if ($.pathType == null) { + throw new MissingRequiredPropertyException("HTTPIngressPathArgs", "pathType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressRuleValueArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressRuleValueArgs.java index ec4358b3d8..cf0579ab31 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressRuleValueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/HTTPIngressRuleValueArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.inputs.HTTPIngressPathArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder paths(HTTPIngressPathArgs... paths) { } public HTTPIngressRuleValueArgs build() { - $.paths = Objects.requireNonNull($.paths, "expected parameter 'paths' to be non-null"); + if ($.paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValueArgs", "paths"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IPBlockArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IPBlockArgs.java index 6fd7bb8fdf..3e8f7fb9a5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IPBlockArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IPBlockArgs.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; @@ -128,7 +129,9 @@ public Builder except(String... except) { } public IPBlockArgs build() { - $.cidr = Objects.requireNonNull($.cidr, "expected parameter 'cidr' to be non-null"); + if ($.cidr == null) { + throw new MissingRequiredPropertyException("IPBlockArgs", "cidr"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressClassParametersReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressClassParametersReferenceArgs.java index 556066f071..723a02c1fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressClassParametersReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressClassParametersReferenceArgs.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; @@ -228,8 +229,12 @@ public Builder scope(String scope) { } public IngressClassParametersReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("IngressClassParametersReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("IngressClassParametersReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressPortStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressPortStatusArgs.java index 4085dfdcdf..63e993cb2b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressPortStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressPortStatusArgs.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; @@ -167,8 +168,12 @@ public Builder protocol(String protocol) { } public IngressPortStatusArgs build() { - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.port == null) { + throw new MissingRequiredPropertyException("IngressPortStatusArgs", "port"); + } + if ($.protocol == null) { + throw new MissingRequiredPropertyException("IngressPortStatusArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressServiceBackendArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressServiceBackendArgs.java index 11061c87e7..16643df170 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressServiceBackendArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/IngressServiceBackendArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.inputs.ServiceBackendPortArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder port(ServiceBackendPortArgs port) { } public IngressServiceBackendArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("IngressServiceBackendArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/NetworkPolicySpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/NetworkPolicySpecArgs.java index 50883eeda0..bb1209730a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/NetworkPolicySpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/NetworkPolicySpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import com.pulumi.kubernetes.networking.v1.inputs.NetworkPolicyEgressRuleArgs; import com.pulumi.kubernetes.networking.v1.inputs.NetworkPolicyIngressRuleArgs; @@ -225,7 +226,9 @@ public Builder policyTypes(String... policyTypes) { } public NetworkPolicySpecArgs build() { - $.podSelector = Objects.requireNonNull($.podSelector, "expected parameter 'podSelector' to be non-null"); + if ($.podSelector == null) { + throw new MissingRequiredPropertyException("NetworkPolicySpecArgs", "podSelector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPath.java index 1f744e59d6..7b5ddabf81 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPath.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.outputs.IngressBackend; import java.lang.String; import java.util.Objects; @@ -93,25 +94,32 @@ public Builder(HTTPIngressPath defaults) { @CustomType.Setter public Builder backend(IngressBackend backend) { - this.backend = Objects.requireNonNull(backend); + if (backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPath", "backend"); + } + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(String pathType) { - this.pathType = Objects.requireNonNull(pathType); + if (pathType == null) { + throw new MissingRequiredPropertyException("HTTPIngressPath", "pathType"); + } + this.pathType = pathType; return this; } public HTTPIngressPath build() { - final var o = new HTTPIngressPath(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPath(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPathPatch.java index 0c93960ba3..62d6a2927c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressPathPatch.java @@ -93,25 +93,28 @@ public Builder(HTTPIngressPathPatch defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackendPatch backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(@Nullable String pathType) { + this.pathType = pathType; return this; } public HTTPIngressPathPatch build() { - final var o = new HTTPIngressPathPatch(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPathPatch(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValue.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValue.java index e9cb7c32cc..59a1b4f25d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValue.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValue.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.outputs.HTTPIngressPath; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(HTTPIngressRuleValue defaults) { @CustomType.Setter public Builder paths(List paths) { - this.paths = Objects.requireNonNull(paths); + if (paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValue", "paths"); + } + this.paths = paths; return this; } public Builder paths(HTTPIngressPath... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValue build() { - final var o = new HTTPIngressRuleValue(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValue(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValuePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValuePatch.java index 29d7bfa8fb..4f62846bfb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValuePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/HTTPIngressRuleValuePatch.java @@ -44,6 +44,7 @@ public Builder(HTTPIngressRuleValuePatch defaults) { @CustomType.Setter public Builder paths(@Nullable List paths) { + this.paths = paths; return this; } @@ -51,9 +52,9 @@ public Builder paths(HTTPIngressPathPatch... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValuePatch build() { - final var o = new HTTPIngressRuleValuePatch(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValuePatch(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlock.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlock.java index 72dc5a6f93..542e85eb17 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlock.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlock.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -58,11 +59,15 @@ public Builder(IPBlock defaults) { @CustomType.Setter public Builder cidr(String cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("IPBlock", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder except(@Nullable List except) { + this.except = except; return this; } @@ -70,10 +75,10 @@ public Builder except(String... except) { return except(List.of(except)); } public IPBlock build() { - final var o = new IPBlock(); - o.cidr = cidr; - o.except = except; - return o; + final var _resultValue = new IPBlock(); + _resultValue.cidr = cidr; + _resultValue.except = except; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlockPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlockPatch.java index 261953beb1..78d784cec5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlockPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IPBlockPatch.java @@ -59,11 +59,13 @@ public Builder(IPBlockPatch defaults) { @CustomType.Setter public Builder cidr(@Nullable String cidr) { + this.cidr = cidr; return this; } @CustomType.Setter public Builder except(@Nullable List except) { + this.except = except; return this; } @@ -71,10 +73,10 @@ public Builder except(String... except) { return except(List.of(except)); } public IPBlockPatch build() { - final var o = new IPBlockPatch(); - o.cidr = cidr; - o.except = except; - return o; + final var _resultValue = new IPBlockPatch(); + _resultValue.cidr = cidr; + _resultValue.except = except; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/Ingress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/Ingress.java index 92f133f063..5c45551108 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/Ingress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/Ingress.java @@ -103,37 +103,42 @@ public Builder(Ingress defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IngressSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable IngressStatus status) { + this.status = status; return this; } public Ingress build() { - final var o = new Ingress(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Ingress(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackend.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackend.java index af90c236fc..dc089851cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackend.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackend.java @@ -59,19 +59,21 @@ public Builder(IngressBackend defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReference resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder service(@Nullable IngressServiceBackend service) { + this.service = service; return this; } public IngressBackend build() { - final var o = new IngressBackend(); - o.resource = resource; - o.service = service; - return o; + final var _resultValue = new IngressBackend(); + _resultValue.resource = resource; + _resultValue.service = service; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackendPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackendPatch.java index 263a4564c9..ebf158469a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackendPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressBackendPatch.java @@ -59,19 +59,21 @@ public Builder(IngressBackendPatch defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReferencePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder service(@Nullable IngressServiceBackendPatch service) { + this.service = service; return this; } public IngressBackendPatch build() { - final var o = new IngressBackendPatch(); - o.resource = resource; - o.service = service; - return o; + final var _resultValue = new IngressBackendPatch(); + _resultValue.resource = resource; + _resultValue.service = service; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClass.java index c4f85c559e..e78b657b22 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClass.java @@ -88,31 +88,35 @@ public Builder(IngressClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IngressClassSpec spec) { + this.spec = spec; return this; } public IngressClass build() { - final var o = new IngressClass(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new IngressClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReference.java index a302df5838..0c519b7d3e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(IngressClassParametersReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("IngressClassParametersReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("IngressClassParametersReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public IngressClassParametersReference build() { - final var o = new IngressClassParametersReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - o.scope = scope; - return o; + final var _resultValue = new IngressClassParametersReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReferencePatch.java index b71795c872..175ca431f0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassParametersReferencePatch.java @@ -100,37 +100,42 @@ public Builder(IngressClassParametersReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } public IngressClassParametersReferencePatch build() { - final var o = new IngressClassParametersReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - o.scope = scope; - return o; + final var _resultValue = new IngressClassParametersReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.scope = scope; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpec.java index c70489cc5b..d3df5c5163 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpec.java @@ -59,19 +59,21 @@ public Builder(IngressClassSpec defaults) { @CustomType.Setter public Builder controller(@Nullable String controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder parameters(@Nullable IngressClassParametersReference parameters) { + this.parameters = parameters; return this; } public IngressClassSpec build() { - final var o = new IngressClassSpec(); - o.controller = controller; - o.parameters = parameters; - return o; + final var _resultValue = new IngressClassSpec(); + _resultValue.controller = controller; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpecPatch.java index d47540fe65..5b942e77cf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressClassSpecPatch.java @@ -59,19 +59,21 @@ public Builder(IngressClassSpecPatch defaults) { @CustomType.Setter public Builder controller(@Nullable String controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder parameters(@Nullable IngressClassParametersReferencePatch parameters) { + this.parameters = parameters; return this; } public IngressClassSpecPatch build() { - final var o = new IngressClassSpecPatch(); - o.controller = controller; - o.parameters = parameters; - return o; + final var _resultValue = new IngressClassSpecPatch(); + _resultValue.controller = controller; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngress.java index 8edd157ecf..cd45dde20f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngress.java @@ -74,16 +74,19 @@ public Builder(IngressLoadBalancerIngress defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -91,11 +94,11 @@ public Builder ports(IngressPortStatus... ports) { return ports(List.of(ports)); } public IngressLoadBalancerIngress build() { - final var o = new IngressLoadBalancerIngress(); - o.hostname = hostname; - o.ip = ip; - o.ports = ports; - return o; + final var _resultValue = new IngressLoadBalancerIngress(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngressPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngressPatch.java index b8d64be9de..4772bb9432 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngressPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerIngressPatch.java @@ -74,16 +74,19 @@ public Builder(IngressLoadBalancerIngressPatch defaults) { @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ip(@Nullable String ip) { + this.ip = ip; return this; } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -91,11 +94,11 @@ public Builder ports(IngressPortStatusPatch... ports) { return ports(List.of(ports)); } public IngressLoadBalancerIngressPatch build() { - final var o = new IngressLoadBalancerIngressPatch(); - o.hostname = hostname; - o.ip = ip; - o.ports = ports; - return o; + final var _resultValue = new IngressLoadBalancerIngressPatch(); + _resultValue.hostname = hostname; + _resultValue.ip = ip; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatus.java index af14ebb4f3..6f694a1306 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatus.java @@ -44,6 +44,7 @@ public Builder(IngressLoadBalancerStatus defaults) { @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -51,9 +52,9 @@ public Builder ingress(IngressLoadBalancerIngress... ingress) { return ingress(List.of(ingress)); } public IngressLoadBalancerStatus build() { - final var o = new IngressLoadBalancerStatus(); - o.ingress = ingress; - return o; + final var _resultValue = new IngressLoadBalancerStatus(); + _resultValue.ingress = ingress; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatusPatch.java index 687bb594c8..551a7be827 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressLoadBalancerStatusPatch.java @@ -44,6 +44,7 @@ public Builder(IngressLoadBalancerStatusPatch defaults) { @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -51,9 +52,9 @@ public Builder ingress(IngressLoadBalancerIngressPatch... ingress) { return ingress(List.of(ingress)); } public IngressLoadBalancerStatusPatch build() { - final var o = new IngressLoadBalancerStatusPatch(); - o.ingress = ingress; - return o; + final var _resultValue = new IngressLoadBalancerStatusPatch(); + _resultValue.ingress = ingress; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatus.java index 95dc5cf1ad..24cd0532c6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -79,25 +80,32 @@ public Builder(IngressPortStatus defaults) { @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("IngressPortStatus", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("IngressPortStatus", "protocol"); + } + this.protocol = protocol; return this; } public IngressPortStatus build() { - final var o = new IngressPortStatus(); - o.error = error; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new IngressPortStatus(); + _resultValue.error = error; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatusPatch.java index 42b7037350..0c20e93e97 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressPortStatusPatch.java @@ -79,25 +79,28 @@ public Builder(IngressPortStatusPatch defaults) { @CustomType.Setter public Builder error(@Nullable String error) { + this.error = error; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public IngressPortStatusPatch build() { - final var o = new IngressPortStatusPatch(); - o.error = error; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new IngressPortStatusPatch(); + _resultValue.error = error; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRule.java index 2d7ce3ce07..889e7bca15 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRule.java @@ -65,19 +65,21 @@ public Builder(IngressRule defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValue http) { + this.http = http; return this; } public IngressRule build() { - final var o = new IngressRule(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRule(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRulePatch.java index bd42f1f8aa..be897eddb7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressRulePatch.java @@ -65,19 +65,21 @@ public Builder(IngressRulePatch defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValuePatch http) { + this.http = http; return this; } public IngressRulePatch build() { - final var o = new IngressRulePatch(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRulePatch(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackend.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackend.java index 707a2ffaa4..8f4a0544b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackend.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackend.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1.outputs.ServiceBackendPort; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(IngressServiceBackend defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("IngressServiceBackend", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable ServiceBackendPort port) { + this.port = port; return this; } public IngressServiceBackend build() { - final var o = new IngressServiceBackend(); - o.name = name; - o.port = port; - return o; + final var _resultValue = new IngressServiceBackend(); + _resultValue.name = name; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackendPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackendPatch.java index ae7cd6051e..75a91b19d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackendPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressServiceBackendPatch.java @@ -59,19 +59,21 @@ public Builder(IngressServiceBackendPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder port(@Nullable ServiceBackendPortPatch port) { + this.port = port; return this; } public IngressServiceBackendPatch build() { - final var o = new IngressServiceBackendPatch(); - o.name = name; - o.port = port; - return o; + final var _resultValue = new IngressServiceBackendPatch(); + _resultValue.name = name; + _resultValue.port = port; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpec.java index a220e321cf..f0b237fd60 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpec.java @@ -90,16 +90,19 @@ public Builder(IngressSpec defaults) { @CustomType.Setter public Builder defaultBackend(@Nullable IngressBackend defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRule... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLS... tls) { return tls(List.of(tls)); } public IngressSpec build() { - final var o = new IngressSpec(); - o.defaultBackend = defaultBackend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpec(); + _resultValue.defaultBackend = defaultBackend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpecPatch.java index d785b6362f..44ba1f8d6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressSpecPatch.java @@ -90,16 +90,19 @@ public Builder(IngressSpecPatch defaults) { @CustomType.Setter public Builder defaultBackend(@Nullable IngressBackendPatch defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRulePatch... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLSPatch... tls) { return tls(List.of(tls)); } public IngressSpecPatch build() { - final var o = new IngressSpecPatch(); - o.defaultBackend = defaultBackend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpecPatch(); + _resultValue.defaultBackend = defaultBackend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatus.java index 87aa5f661e..32dabb0a35 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatus.java @@ -44,13 +44,14 @@ public Builder(IngressStatus defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable IngressLoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatus build() { - final var o = new IngressStatus(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatus(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatusPatch.java index 2d69d52876..1a0d89f9ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressStatusPatch.java @@ -44,13 +44,14 @@ public Builder(IngressStatusPatch defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable IngressLoadBalancerStatusPatch loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatusPatch build() { - final var o = new IngressStatusPatch(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatusPatch(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLS.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLS.java index 075e703e34..1283253818 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLS.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLS.java @@ -59,6 +59,7 @@ public Builder(IngressTLS defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLS build() { - final var o = new IngressTLS(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLS(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLSPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLSPatch.java index fd295c3f37..78aed3d7b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLSPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/IngressTLSPatch.java @@ -59,6 +59,7 @@ public Builder(IngressTLSPatch defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLSPatch build() { - final var o = new IngressTLSPatch(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLSPatch(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicy.java index 712e528cd7..075c245ba6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicy.java @@ -103,37 +103,42 @@ public Builder(NetworkPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable NetworkPolicySpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable NetworkPolicyStatus status) { + this.status = status; return this; } public NetworkPolicy build() { - final var o = new NetworkPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new NetworkPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRule.java index 0a4829ba60..95cf38fed5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRule.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyEgressRule defaults) { @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -67,6 +68,7 @@ public Builder ports(NetworkPolicyPort... ports) { } @CustomType.Setter public Builder to(@Nullable List to) { + this.to = to; return this; } @@ -74,10 +76,10 @@ public Builder to(NetworkPolicyPeer... to) { return to(List.of(to)); } public NetworkPolicyEgressRule build() { - final var o = new NetworkPolicyEgressRule(); - o.ports = ports; - o.to = to; - return o; + final var _resultValue = new NetworkPolicyEgressRule(); + _resultValue.ports = ports; + _resultValue.to = to; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRulePatch.java index eddc38d105..644c1a8412 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyEgressRulePatch.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyEgressRulePatch defaults) { @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -67,6 +68,7 @@ public Builder ports(NetworkPolicyPortPatch... ports) { } @CustomType.Setter public Builder to(@Nullable List to) { + this.to = to; return this; } @@ -74,10 +76,10 @@ public Builder to(NetworkPolicyPeerPatch... to) { return to(List.of(to)); } public NetworkPolicyEgressRulePatch build() { - final var o = new NetworkPolicyEgressRulePatch(); - o.ports = ports; - o.to = to; - return o; + final var _resultValue = new NetworkPolicyEgressRulePatch(); + _resultValue.ports = ports; + _resultValue.to = to; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRule.java index 6080df1e80..334971b973 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRule.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyIngressRule defaults) { @CustomType.Setter public Builder from(@Nullable List from) { + this.from = from; return this; } @@ -67,6 +68,7 @@ public Builder from(NetworkPolicyPeer... from) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -74,10 +76,10 @@ public Builder ports(NetworkPolicyPort... ports) { return ports(List.of(ports)); } public NetworkPolicyIngressRule build() { - final var o = new NetworkPolicyIngressRule(); - o.from = from; - o.ports = ports; - return o; + final var _resultValue = new NetworkPolicyIngressRule(); + _resultValue.from = from; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRulePatch.java index fbf361114d..86ae3e1bd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyIngressRulePatch.java @@ -59,6 +59,7 @@ public Builder(NetworkPolicyIngressRulePatch defaults) { @CustomType.Setter public Builder from(@Nullable List from) { + this.from = from; return this; } @@ -67,6 +68,7 @@ public Builder from(NetworkPolicyPeerPatch... from) { } @CustomType.Setter public Builder ports(@Nullable List ports) { + this.ports = ports; return this; } @@ -74,10 +76,10 @@ public Builder ports(NetworkPolicyPortPatch... ports) { return ports(List.of(ports)); } public NetworkPolicyIngressRulePatch build() { - final var o = new NetworkPolicyIngressRulePatch(); - o.from = from; - o.ports = ports; - return o; + final var _resultValue = new NetworkPolicyIngressRulePatch(); + _resultValue.from = from; + _resultValue.ports = ports; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeer.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeer.java index 980b8e7a41..87a7f3b8dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeer.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeer.java @@ -81,25 +81,28 @@ public Builder(NetworkPolicyPeer defaults) { @CustomType.Setter public Builder ipBlock(@Nullable IPBlock ipBlock) { + this.ipBlock = ipBlock; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder podSelector(@Nullable LabelSelector podSelector) { + this.podSelector = podSelector; return this; } public NetworkPolicyPeer build() { - final var o = new NetworkPolicyPeer(); - o.ipBlock = ipBlock; - o.namespaceSelector = namespaceSelector; - o.podSelector = podSelector; - return o; + final var _resultValue = new NetworkPolicyPeer(); + _resultValue.ipBlock = ipBlock; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.podSelector = podSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeerPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeerPatch.java index 987b31b6e9..1eb981f88b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeerPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeerPatch.java @@ -81,25 +81,28 @@ public Builder(NetworkPolicyPeerPatch defaults) { @CustomType.Setter public Builder ipBlock(@Nullable IPBlockPatch ipBlock) { + this.ipBlock = ipBlock; return this; } @CustomType.Setter public Builder namespaceSelector(@Nullable LabelSelectorPatch namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } @CustomType.Setter public Builder podSelector(@Nullable LabelSelectorPatch podSelector) { + this.podSelector = podSelector; return this; } public NetworkPolicyPeerPatch build() { - final var o = new NetworkPolicyPeerPatch(); - o.ipBlock = ipBlock; - o.namespaceSelector = namespaceSelector; - o.podSelector = podSelector; - return o; + final var _resultValue = new NetworkPolicyPeerPatch(); + _resultValue.ipBlock = ipBlock; + _resultValue.namespaceSelector = namespaceSelector; + _resultValue.podSelector = podSelector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPort.java index b7cbabe7bf..ccbc17c3ef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPort.java @@ -74,25 +74,28 @@ public Builder(NetworkPolicyPort defaults) { @CustomType.Setter public Builder endPort(@Nullable Integer endPort) { + this.endPort = endPort; return this; } @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public NetworkPolicyPort build() { - final var o = new NetworkPolicyPort(); - o.endPort = endPort; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new NetworkPolicyPort(); + _resultValue.endPort = endPort; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPortPatch.java index 66429969cc..23fa4ca2cc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPortPatch.java @@ -74,25 +74,28 @@ public Builder(NetworkPolicyPortPatch defaults) { @CustomType.Setter public Builder endPort(@Nullable Integer endPort) { + this.endPort = endPort; return this; } @CustomType.Setter public Builder port(@Nullable Either port) { + this.port = port; return this; } @CustomType.Setter public Builder protocol(@Nullable String protocol) { + this.protocol = protocol; return this; } public NetworkPolicyPortPatch build() { - final var o = new NetworkPolicyPortPatch(); - o.endPort = endPort; - o.port = port; - o.protocol = protocol; - return o; + final var _resultValue = new NetworkPolicyPortPatch(); + _resultValue.endPort = endPort; + _resultValue.port = port; + _resultValue.protocol = protocol; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpec.java index 9b9586e0f6..4392b2c17a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import com.pulumi.kubernetes.networking.v1.outputs.NetworkPolicyEgressRule; import com.pulumi.kubernetes.networking.v1.outputs.NetworkPolicyIngressRule; @@ -89,6 +90,7 @@ public Builder(NetworkPolicySpec defaults) { @CustomType.Setter public Builder egress(@Nullable List egress) { + this.egress = egress; return this; } @@ -97,6 +99,7 @@ public Builder egress(NetworkPolicyEgressRule... egress) { } @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -105,11 +108,15 @@ public Builder ingress(NetworkPolicyIngressRule... ingress) { } @CustomType.Setter public Builder podSelector(LabelSelector podSelector) { - this.podSelector = Objects.requireNonNull(podSelector); + if (podSelector == null) { + throw new MissingRequiredPropertyException("NetworkPolicySpec", "podSelector"); + } + this.podSelector = podSelector; return this; } @CustomType.Setter public Builder policyTypes(@Nullable List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -117,12 +124,12 @@ public Builder policyTypes(String... policyTypes) { return policyTypes(List.of(policyTypes)); } public NetworkPolicySpec build() { - final var o = new NetworkPolicySpec(); - o.egress = egress; - o.ingress = ingress; - o.podSelector = podSelector; - o.policyTypes = policyTypes; - return o; + final var _resultValue = new NetworkPolicySpec(); + _resultValue.egress = egress; + _resultValue.ingress = ingress; + _resultValue.podSelector = podSelector; + _resultValue.policyTypes = policyTypes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpecPatch.java index 9040d04119..099da4155a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicySpecPatch.java @@ -90,6 +90,7 @@ public Builder(NetworkPolicySpecPatch defaults) { @CustomType.Setter public Builder egress(@Nullable List egress) { + this.egress = egress; return this; } @@ -98,6 +99,7 @@ public Builder egress(NetworkPolicyEgressRulePatch... egress) { } @CustomType.Setter public Builder ingress(@Nullable List ingress) { + this.ingress = ingress; return this; } @@ -106,11 +108,13 @@ public Builder ingress(NetworkPolicyIngressRulePatch... ingress) { } @CustomType.Setter public Builder podSelector(@Nullable LabelSelectorPatch podSelector) { + this.podSelector = podSelector; return this; } @CustomType.Setter public Builder policyTypes(@Nullable List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -118,12 +122,12 @@ public Builder policyTypes(String... policyTypes) { return policyTypes(List.of(policyTypes)); } public NetworkPolicySpecPatch build() { - final var o = new NetworkPolicySpecPatch(); - o.egress = egress; - o.ingress = ingress; - o.podSelector = podSelector; - o.policyTypes = policyTypes; - return o; + final var _resultValue = new NetworkPolicySpecPatch(); + _resultValue.egress = egress; + _resultValue.ingress = ingress; + _resultValue.podSelector = podSelector; + _resultValue.policyTypes = policyTypes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatus.java index 1fe6d9232d..cec5a46a45 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatus.java @@ -44,6 +44,7 @@ public Builder(NetworkPolicyStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(Condition... conditions) { return conditions(List.of(conditions)); } public NetworkPolicyStatus build() { - final var o = new NetworkPolicyStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new NetworkPolicyStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatusPatch.java index f0e86a12b2..7b93f7cdd1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyStatusPatch.java @@ -44,6 +44,7 @@ public Builder(NetworkPolicyStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(ConditionPatch... conditions) { return conditions(List.of(conditions)); } public NetworkPolicyStatusPatch build() { - final var o = new NetworkPolicyStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new NetworkPolicyStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPort.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPort.java index 60957fc549..5a8b898918 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPort.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPort.java @@ -59,19 +59,21 @@ public Builder(ServiceBackendPort defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder number(@Nullable Integer number) { + this.number = number; return this; } public ServiceBackendPort build() { - final var o = new ServiceBackendPort(); - o.name = name; - o.number = number; - return o; + final var _resultValue = new ServiceBackendPort(); + _resultValue.name = name; + _resultValue.number = number; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPortPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPortPatch.java index fe173f11c3..24eb547119 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPortPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/ServiceBackendPortPatch.java @@ -59,19 +59,21 @@ public Builder(ServiceBackendPortPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder number(@Nullable Integer number) { + this.number = number; return this; } public ServiceBackendPortPatch build() { - final var o = new ServiceBackendPortPatch(); - o.name = name; - o.number = number; - return o; + final var _resultValue = new ServiceBackendPortPatch(); + _resultValue.name = name; + _resultValue.number = number; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ClusterCIDRListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ClusterCIDRListArgs.java index c0ca3865a2..dfb29df664 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ClusterCIDRListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ClusterCIDRListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1alpha1.inputs.ClusterCIDRArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterCIDRListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterCIDRListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/IPAddressListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/IPAddressListArgs.java index cb12668f12..cd5b87bc9c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/IPAddressListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/IPAddressListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1alpha1.inputs.IPAddressArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IPAddressListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IPAddressListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ServiceCIDRListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ServiceCIDRListArgs.java index a29dbbfb2f..c2f41373b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ServiceCIDRListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/ServiceCIDRListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1alpha1.inputs.ServiceCIDRArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ServiceCIDRListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ServiceCIDRListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ClusterCIDRSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ClusterCIDRSpecArgs.java index 435f27ad39..41d5efdd4d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ClusterCIDRSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ClusterCIDRSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorArgs; import java.lang.Integer; import java.lang.String; @@ -193,7 +194,9 @@ public Builder perNodeHostBits(Integer perNodeHostBits) { } public ClusterCIDRSpecArgs build() { - $.perNodeHostBits = Objects.requireNonNull($.perNodeHostBits, "expected parameter 'perNodeHostBits' to be non-null"); + if ($.perNodeHostBits == null) { + throw new MissingRequiredPropertyException("ClusterCIDRSpecArgs", "perNodeHostBits"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/IPAddressSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/IPAddressSpecArgs.java index 67397d328c..ebd42bd8eb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/IPAddressSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/IPAddressSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1alpha1.inputs.ParentReferenceArgs; import java.util.Objects; @@ -78,7 +79,9 @@ public Builder parentRef(ParentReferenceArgs parentRef) { } public IPAddressSpecArgs build() { - $.parentRef = Objects.requireNonNull($.parentRef, "expected parameter 'parentRef' to be non-null"); + if ($.parentRef == null) { + throw new MissingRequiredPropertyException("IPAddressSpecArgs", "parentRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ParentReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ParentReferenceArgs.java index 1dbe4b455e..c5b8e1426f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ParentReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/inputs/ParentReferenceArgs.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; @@ -228,8 +229,12 @@ public Builder uid(String uid) { } public ParentReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.resource = Objects.requireNonNull($.resource, "expected parameter 'resource' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ParentReferenceArgs", "name"); + } + if ($.resource == null) { + throw new MissingRequiredPropertyException("ParentReferenceArgs", "resource"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDR.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDR.java index e54f23872a..a58c5c72b4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDR.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDR.java @@ -88,31 +88,35 @@ public Builder(ClusterCIDR defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ClusterCIDRSpec spec) { + this.spec = spec; return this; } public ClusterCIDR build() { - final var o = new ClusterCIDR(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ClusterCIDR(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpec.java index 562abcdbb9..3bb62cc7bd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.NodeSelector; import java.lang.Integer; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(ClusterCIDRSpec defaults) { @CustomType.Setter public Builder ipv4(@Nullable String ipv4) { + this.ipv4 = ipv4; return this; } @CustomType.Setter public Builder ipv6(@Nullable String ipv6) { + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder perNodeHostBits(Integer perNodeHostBits) { - this.perNodeHostBits = Objects.requireNonNull(perNodeHostBits); + if (perNodeHostBits == null) { + throw new MissingRequiredPropertyException("ClusterCIDRSpec", "perNodeHostBits"); + } + this.perNodeHostBits = perNodeHostBits; return this; } public ClusterCIDRSpec build() { - final var o = new ClusterCIDRSpec(); - o.ipv4 = ipv4; - o.ipv6 = ipv6; - o.nodeSelector = nodeSelector; - o.perNodeHostBits = perNodeHostBits; - return o; + final var _resultValue = new ClusterCIDRSpec(); + _resultValue.ipv4 = ipv4; + _resultValue.ipv6 = ipv6; + _resultValue.nodeSelector = nodeSelector; + _resultValue.perNodeHostBits = perNodeHostBits; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpecPatch.java index 6608c2a9f1..b2ffa15433 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ClusterCIDRSpecPatch.java @@ -88,31 +88,35 @@ public Builder(ClusterCIDRSpecPatch defaults) { @CustomType.Setter public Builder ipv4(@Nullable String ipv4) { + this.ipv4 = ipv4; return this; } @CustomType.Setter public Builder ipv6(@Nullable String ipv6) { + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable NodeSelectorPatch nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder perNodeHostBits(@Nullable Integer perNodeHostBits) { + this.perNodeHostBits = perNodeHostBits; return this; } public ClusterCIDRSpecPatch build() { - final var o = new ClusterCIDRSpecPatch(); - o.ipv4 = ipv4; - o.ipv6 = ipv6; - o.nodeSelector = nodeSelector; - o.perNodeHostBits = perNodeHostBits; - return o; + final var _resultValue = new ClusterCIDRSpecPatch(); + _resultValue.ipv4 = ipv4; + _resultValue.ipv6 = ipv6; + _resultValue.nodeSelector = nodeSelector; + _resultValue.perNodeHostBits = perNodeHostBits; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddress.java index 068c40b568..78ff1a0e43 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddress.java @@ -88,31 +88,35 @@ public Builder(IPAddress defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IPAddressSpec spec) { + this.spec = spec; return this; } public IPAddress build() { - final var o = new IPAddress(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new IPAddress(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpec.java index 15399999e2..dd4c09c348 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1alpha1.outputs.ParentReference; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(IPAddressSpec defaults) { @CustomType.Setter public Builder parentRef(ParentReference parentRef) { - this.parentRef = Objects.requireNonNull(parentRef); + if (parentRef == null) { + throw new MissingRequiredPropertyException("IPAddressSpec", "parentRef"); + } + this.parentRef = parentRef; return this; } public IPAddressSpec build() { - final var o = new IPAddressSpec(); - o.parentRef = parentRef; - return o; + final var _resultValue = new IPAddressSpec(); + _resultValue.parentRef = parentRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpecPatch.java index 25d7f78278..1ff732dcfa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/IPAddressSpecPatch.java @@ -44,13 +44,14 @@ public Builder(IPAddressSpecPatch defaults) { @CustomType.Setter public Builder parentRef(@Nullable ParentReferencePatch parentRef) { + this.parentRef = parentRef; return this; } public IPAddressSpecPatch build() { - final var o = new IPAddressSpecPatch(); - o.parentRef = parentRef; - return o; + final var _resultValue = new IPAddressSpecPatch(); + _resultValue.parentRef = parentRef; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReference.java index 349b7210be..428d773aa4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(ParentReference defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ParentReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resource(String resource) { - this.resource = Objects.requireNonNull(resource); + if (resource == null) { + throw new MissingRequiredPropertyException("ParentReference", "resource"); + } + this.resource = resource; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ParentReference build() { - final var o = new ParentReference(); - o.group = group; - o.name = name; - o.namespace = namespace; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ParentReference(); + _resultValue.group = group; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReferencePatch.java index ec4c5c3df9..d375b35d96 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ParentReferencePatch.java @@ -100,37 +100,42 @@ public Builder(ParentReferencePatch defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ParentReferencePatch build() { - final var o = new ParentReferencePatch(); - o.group = group; - o.name = name; - o.namespace = namespace; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ParentReferencePatch(); + _resultValue.group = group; + _resultValue.name = name; + _resultValue.namespace = namespace; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDR.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDR.java index 76f07a823e..d7c4fe3ccb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDR.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDR.java @@ -103,37 +103,42 @@ public Builder(ServiceCIDR defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ServiceCIDRSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ServiceCIDRStatus status) { + this.status = status; return this; } public ServiceCIDR build() { - final var o = new ServiceCIDR(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ServiceCIDR(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpec.java index 34b5cc67b1..7f9c1bb74c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpec.java @@ -44,6 +44,7 @@ public Builder(ServiceCIDRSpec defaults) { @CustomType.Setter public Builder cidrs(@Nullable List cidrs) { + this.cidrs = cidrs; return this; } @@ -51,9 +52,9 @@ public Builder cidrs(String... cidrs) { return cidrs(List.of(cidrs)); } public ServiceCIDRSpec build() { - final var o = new ServiceCIDRSpec(); - o.cidrs = cidrs; - return o; + final var _resultValue = new ServiceCIDRSpec(); + _resultValue.cidrs = cidrs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpecPatch.java index 3a84e65a6a..c61b645cb5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRSpecPatch.java @@ -44,6 +44,7 @@ public Builder(ServiceCIDRSpecPatch defaults) { @CustomType.Setter public Builder cidrs(@Nullable List cidrs) { + this.cidrs = cidrs; return this; } @@ -51,9 +52,9 @@ public Builder cidrs(String... cidrs) { return cidrs(List.of(cidrs)); } public ServiceCIDRSpecPatch build() { - final var o = new ServiceCIDRSpecPatch(); - o.cidrs = cidrs; - return o; + final var _resultValue = new ServiceCIDRSpecPatch(); + _resultValue.cidrs = cidrs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatus.java index 7a6c1c89de..d02fa166dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatus.java @@ -44,6 +44,7 @@ public Builder(ServiceCIDRStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(Condition... conditions) { return conditions(List.of(conditions)); } public ServiceCIDRStatus build() { - final var o = new ServiceCIDRStatus(); - o.conditions = conditions; - return o; + final var _resultValue = new ServiceCIDRStatus(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatusPatch.java index 967b896d96..900332cec0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1alpha1/outputs/ServiceCIDRStatusPatch.java @@ -44,6 +44,7 @@ public Builder(ServiceCIDRStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -51,9 +52,9 @@ public Builder conditions(ConditionPatch... conditions) { return conditions(List.of(conditions)); } public ServiceCIDRStatusPatch build() { - final var o = new ServiceCIDRStatusPatch(); - o.conditions = conditions; - return o; + final var _resultValue = new ServiceCIDRStatusPatch(); + _resultValue.conditions = conditions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressClassListArgs.java index 4229cdd327..4cc71e9de6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1beta1.inputs.IngressClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IngressClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IngressClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressListArgs.java index 26b5fd33dd..57b6bb89a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/IngressListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.networking.v1beta1.inputs.IngressArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public IngressListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("IngressListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressPathArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressPathArgs.java index f08db31cf1..e243974ade 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressPathArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1beta1.inputs.IngressBackendArgs; import java.lang.String; import java.util.Objects; @@ -195,7 +196,9 @@ public Builder pathType(String pathType) { } public HTTPIngressPathArgs build() { - $.backend = Objects.requireNonNull($.backend, "expected parameter 'backend' to be non-null"); + if ($.backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPathArgs", "backend"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressRuleValueArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressRuleValueArgs.java index 3cb3e0fe1b..402662bed1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressRuleValueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/HTTPIngressRuleValueArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1beta1.inputs.HTTPIngressPathArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder paths(HTTPIngressPathArgs... paths) { } public HTTPIngressRuleValueArgs build() { - $.paths = Objects.requireNonNull($.paths, "expected parameter 'paths' to be non-null"); + if ($.paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValueArgs", "paths"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/IngressBackendArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/IngressBackendArgs.java index aa4da9f17c..184cd6d215 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/IngressBackendArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/inputs/IngressBackendArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TypedLocalObjectReferenceArgs; import java.lang.Integer; import java.lang.String; @@ -177,8 +178,12 @@ public Builder servicePort(String servicePort) { } public IngressBackendArgs build() { - $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null"); - $.servicePort = Objects.requireNonNull($.servicePort, "expected parameter 'servicePort' to be non-null"); + if ($.serviceName == null) { + throw new MissingRequiredPropertyException("IngressBackendArgs", "serviceName"); + } + if ($.servicePort == null) { + throw new MissingRequiredPropertyException("IngressBackendArgs", "servicePort"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPath.java index 03191af43c..1ceee67a77 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPath.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1beta1.outputs.IngressBackend; import java.lang.String; import java.util.Objects; @@ -93,25 +94,30 @@ public Builder(HTTPIngressPath defaults) { @CustomType.Setter public Builder backend(IngressBackend backend) { - this.backend = Objects.requireNonNull(backend); + if (backend == null) { + throw new MissingRequiredPropertyException("HTTPIngressPath", "backend"); + } + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(@Nullable String pathType) { + this.pathType = pathType; return this; } public HTTPIngressPath build() { - final var o = new HTTPIngressPath(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPath(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPathPatch.java index e2dcb579c9..74f93cdac6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressPathPatch.java @@ -93,25 +93,28 @@ public Builder(HTTPIngressPathPatch defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackendPatch backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder pathType(@Nullable String pathType) { + this.pathType = pathType; return this; } public HTTPIngressPathPatch build() { - final var o = new HTTPIngressPathPatch(); - o.backend = backend; - o.path = path; - o.pathType = pathType; - return o; + final var _resultValue = new HTTPIngressPathPatch(); + _resultValue.backend = backend; + _resultValue.path = path; + _resultValue.pathType = pathType; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValue.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValue.java index a49dbf275b..9579d5ef88 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValue.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValue.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.networking.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.networking.v1beta1.outputs.HTTPIngressPath; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(HTTPIngressRuleValue defaults) { @CustomType.Setter public Builder paths(List paths) { - this.paths = Objects.requireNonNull(paths); + if (paths == null) { + throw new MissingRequiredPropertyException("HTTPIngressRuleValue", "paths"); + } + this.paths = paths; return this; } public Builder paths(HTTPIngressPath... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValue build() { - final var o = new HTTPIngressRuleValue(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValue(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValuePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValuePatch.java index 2fc19bb417..5a973a4e42 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValuePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/HTTPIngressRuleValuePatch.java @@ -44,6 +44,7 @@ public Builder(HTTPIngressRuleValuePatch defaults) { @CustomType.Setter public Builder paths(@Nullable List paths) { + this.paths = paths; return this; } @@ -51,9 +52,9 @@ public Builder paths(HTTPIngressPathPatch... paths) { return paths(List.of(paths)); } public HTTPIngressRuleValuePatch build() { - final var o = new HTTPIngressRuleValuePatch(); - o.paths = paths; - return o; + final var _resultValue = new HTTPIngressRuleValuePatch(); + _resultValue.paths = paths; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/Ingress.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/Ingress.java index b22fb620fb..5ac9f333cc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/Ingress.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/Ingress.java @@ -103,37 +103,42 @@ public Builder(Ingress defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IngressSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable IngressStatus status) { + this.status = status; return this; } public Ingress build() { - final var o = new Ingress(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new Ingress(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackend.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackend.java index 278d4a70d1..0ab16419bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackend.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackend.java @@ -5,6 +5,7 @@ import com.pulumi.core.Either; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.TypedLocalObjectReference; import java.lang.Integer; import java.lang.String; @@ -75,25 +76,32 @@ public Builder(IngressBackend defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReference resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder serviceName(String serviceName) { - this.serviceName = Objects.requireNonNull(serviceName); + if (serviceName == null) { + throw new MissingRequiredPropertyException("IngressBackend", "serviceName"); + } + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder servicePort(Either servicePort) { - this.servicePort = Objects.requireNonNull(servicePort); + if (servicePort == null) { + throw new MissingRequiredPropertyException("IngressBackend", "servicePort"); + } + this.servicePort = servicePort; return this; } public IngressBackend build() { - final var o = new IngressBackend(); - o.resource = resource; - o.serviceName = serviceName; - o.servicePort = servicePort; - return o; + final var _resultValue = new IngressBackend(); + _resultValue.resource = resource; + _resultValue.serviceName = serviceName; + _resultValue.servicePort = servicePort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackendPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackendPatch.java index e4ffc78ec2..37ee535ead 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackendPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressBackendPatch.java @@ -75,25 +75,28 @@ public Builder(IngressBackendPatch defaults) { @CustomType.Setter public Builder resource(@Nullable TypedLocalObjectReferencePatch resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder serviceName(@Nullable String serviceName) { + this.serviceName = serviceName; return this; } @CustomType.Setter public Builder servicePort(@Nullable Either servicePort) { + this.servicePort = servicePort; return this; } public IngressBackendPatch build() { - final var o = new IngressBackendPatch(); - o.resource = resource; - o.serviceName = serviceName; - o.servicePort = servicePort; - return o; + final var _resultValue = new IngressBackendPatch(); + _resultValue.resource = resource; + _resultValue.serviceName = serviceName; + _resultValue.servicePort = servicePort; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClass.java index fa0eb782ab..9c9b8bf9e6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClass.java @@ -88,31 +88,35 @@ public Builder(IngressClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable IngressClassSpec spec) { + this.spec = spec; return this; } public IngressClass build() { - final var o = new IngressClass(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new IngressClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpec.java index cc884b2cd2..1dd7689293 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpec.java @@ -59,19 +59,21 @@ public Builder(IngressClassSpec defaults) { @CustomType.Setter public Builder controller(@Nullable String controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder parameters(@Nullable TypedLocalObjectReference parameters) { + this.parameters = parameters; return this; } public IngressClassSpec build() { - final var o = new IngressClassSpec(); - o.controller = controller; - o.parameters = parameters; - return o; + final var _resultValue = new IngressClassSpec(); + _resultValue.controller = controller; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpecPatch.java index 85d9270088..e24945a789 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressClassSpecPatch.java @@ -59,19 +59,21 @@ public Builder(IngressClassSpecPatch defaults) { @CustomType.Setter public Builder controller(@Nullable String controller) { + this.controller = controller; return this; } @CustomType.Setter public Builder parameters(@Nullable TypedLocalObjectReferencePatch parameters) { + this.parameters = parameters; return this; } public IngressClassSpecPatch build() { - final var o = new IngressClassSpecPatch(); - o.controller = controller; - o.parameters = parameters; - return o; + final var _resultValue = new IngressClassSpecPatch(); + _resultValue.controller = controller; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRule.java index 095b5f044c..f50671a4cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRule.java @@ -61,19 +61,21 @@ public Builder(IngressRule defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValue http) { + this.http = http; return this; } public IngressRule build() { - final var o = new IngressRule(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRule(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRulePatch.java index 17b7f93611..4b4206c60a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressRulePatch.java @@ -61,19 +61,21 @@ public Builder(IngressRulePatch defaults) { @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder http(@Nullable HTTPIngressRuleValuePatch http) { + this.http = http; return this; } public IngressRulePatch build() { - final var o = new IngressRulePatch(); - o.host = host; - o.http = http; - return o; + final var _resultValue = new IngressRulePatch(); + _resultValue.host = host; + _resultValue.http = http; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpec.java index 9500dd53fd..7a8a9c7f70 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpec.java @@ -90,16 +90,19 @@ public Builder(IngressSpec defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackend backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRule... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLS... tls) { return tls(List.of(tls)); } public IngressSpec build() { - final var o = new IngressSpec(); - o.backend = backend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpec(); + _resultValue.backend = backend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpecPatch.java index 71d6bbdbfa..f6314943a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressSpecPatch.java @@ -90,16 +90,19 @@ public Builder(IngressSpecPatch defaults) { @CustomType.Setter public Builder backend(@Nullable IngressBackendPatch backend) { + this.backend = backend; return this; } @CustomType.Setter public Builder ingressClassName(@Nullable String ingressClassName) { + this.ingressClassName = ingressClassName; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -108,6 +111,7 @@ public Builder rules(IngressRulePatch... rules) { } @CustomType.Setter public Builder tls(@Nullable List tls) { + this.tls = tls; return this; } @@ -115,12 +119,12 @@ public Builder tls(IngressTLSPatch... tls) { return tls(List.of(tls)); } public IngressSpecPatch build() { - final var o = new IngressSpecPatch(); - o.backend = backend; - o.ingressClassName = ingressClassName; - o.rules = rules; - o.tls = tls; - return o; + final var _resultValue = new IngressSpecPatch(); + _resultValue.backend = backend; + _resultValue.ingressClassName = ingressClassName; + _resultValue.rules = rules; + _resultValue.tls = tls; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatus.java index d24c89fdec..260f74955e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatus.java @@ -44,13 +44,14 @@ public Builder(IngressStatus defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatus build() { - final var o = new IngressStatus(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatus(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatusPatch.java index 6210b20395..e74edb26d3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressStatusPatch.java @@ -44,13 +44,14 @@ public Builder(IngressStatusPatch defaults) { @CustomType.Setter public Builder loadBalancer(@Nullable LoadBalancerStatusPatch loadBalancer) { + this.loadBalancer = loadBalancer; return this; } public IngressStatusPatch build() { - final var o = new IngressStatusPatch(); - o.loadBalancer = loadBalancer; - return o; + final var _resultValue = new IngressStatusPatch(); + _resultValue.loadBalancer = loadBalancer; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLS.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLS.java index e4891b77be..d44fe21f83 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLS.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLS.java @@ -59,6 +59,7 @@ public Builder(IngressTLS defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLS build() { - final var o = new IngressTLS(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLS(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLSPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLSPatch.java index 668bd259af..ba7611bed3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLSPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1beta1/outputs/IngressTLSPatch.java @@ -59,6 +59,7 @@ public Builder(IngressTLSPatch defaults) { @CustomType.Setter public Builder hosts(@Nullable List hosts) { + this.hosts = hosts; return this; } @@ -67,14 +68,15 @@ public Builder hosts(String... hosts) { } @CustomType.Setter public Builder secretName(@Nullable String secretName) { + this.secretName = secretName; return this; } public IngressTLSPatch build() { - final var o = new IngressTLSPatch(); - o.hosts = hosts; - o.secretName = secretName; - return o; + final var _resultValue = new IngressTLSPatch(); + _resultValue.hosts = hosts; + _resultValue.secretName = secretName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassArgs.java index 6b132b3fc1..5e7a6672a0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1.inputs.OverheadArgs; import com.pulumi.kubernetes.node.v1.inputs.SchedulingArgs; @@ -270,7 +271,9 @@ public Builder scheduling(SchedulingArgs scheduling) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.handler = Objects.requireNonNull($.handler, "expected parameter 'handler' to be non-null"); + if ($.handler == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "handler"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassListArgs.java index 931b864765..102c1e4573 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/RuntimeClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.node.v1.inputs.RuntimeClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RuntimeClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RuntimeClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/inputs/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/inputs/RuntimeClassArgs.java index bd2309eccd..dfe099d260 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/inputs/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/inputs/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1.inputs.OverheadArgs; import com.pulumi.kubernetes.node.v1.inputs.SchedulingArgs; @@ -274,7 +275,9 @@ public Builder scheduling(SchedulingArgs scheduling) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.handler = Objects.requireNonNull($.handler, "expected parameter 'handler' to be non-null"); + if ($.handler == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "handler"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Overhead.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Overhead.java index 04de3ee023..6d467f026c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Overhead.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Overhead.java @@ -44,13 +44,14 @@ public Builder(Overhead defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public Overhead build() { - final var o = new Overhead(); - o.podFixed = podFixed; - return o; + final var _resultValue = new Overhead(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/OverheadPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/OverheadPatch.java index fcd20abf07..e523483cbf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/OverheadPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/OverheadPatch.java @@ -44,13 +44,14 @@ public Builder(OverheadPatch defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public OverheadPatch build() { - final var o = new OverheadPatch(); - o.podFixed = podFixed; - return o; + final var _resultValue = new OverheadPatch(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/RuntimeClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/RuntimeClass.java index 0f09ed4cb7..96b721c8f9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/RuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/RuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.node.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.node.v1.outputs.Overhead; import com.pulumi.kubernetes.node.v1.outputs.Scheduling; @@ -119,43 +120,51 @@ public Builder(RuntimeClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder handler(String handler) { - this.handler = Objects.requireNonNull(handler); + if (handler == null) { + throw new MissingRequiredPropertyException("RuntimeClass", "handler"); + } + this.handler = handler; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder overhead(@Nullable Overhead overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder scheduling(@Nullable Scheduling scheduling) { + this.scheduling = scheduling; return this; } public RuntimeClass build() { - final var o = new RuntimeClass(); - o.apiVersion = apiVersion; - o.handler = handler; - o.kind = kind; - o.metadata = metadata; - o.overhead = overhead; - o.scheduling = scheduling; - return o; + final var _resultValue = new RuntimeClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.handler = handler; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.overhead = overhead; + _resultValue.scheduling = scheduling; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Scheduling.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Scheduling.java index 6c4118aed3..2862d2b0fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Scheduling.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/Scheduling.java @@ -60,11 +60,13 @@ public Builder(Scheduling defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(Toleration... tolerations) { return tolerations(List.of(tolerations)); } public Scheduling build() { - final var o = new Scheduling(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new Scheduling(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/SchedulingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/SchedulingPatch.java index be475d1252..ac6bc5db03 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/SchedulingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1/outputs/SchedulingPatch.java @@ -60,11 +60,13 @@ public Builder(SchedulingPatch defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(TolerationPatch... tolerations) { return tolerations(List.of(tolerations)); } public SchedulingPatch build() { - final var o = new SchedulingPatch(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new SchedulingPatch(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassArgs.java index 2f9b1954b4..501643aa4c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1alpha1.inputs.RuntimeClassSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(RuntimeClassSpecArgs spec) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassListArgs.java index 0ab0b35f0b..6b2a484722 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/RuntimeClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.node.v1alpha1.inputs.RuntimeClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RuntimeClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RuntimeClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassArgs.java index 7ae4e3de83..02038c25b2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1alpha1.inputs.RuntimeClassSpecArgs; import java.lang.String; @@ -196,7 +197,9 @@ public Builder spec(RuntimeClassSpecArgs spec) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassSpecArgs.java index 47cac78b82..d21248a53e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/inputs/RuntimeClassSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.node.v1alpha1.inputs.OverheadArgs; import com.pulumi.kubernetes.node.v1alpha1.inputs.SchedulingArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder scheduling(SchedulingArgs scheduling) { } public RuntimeClassSpecArgs build() { - $.runtimeHandler = Objects.requireNonNull($.runtimeHandler, "expected parameter 'runtimeHandler' to be non-null"); + if ($.runtimeHandler == null) { + throw new MissingRequiredPropertyException("RuntimeClassSpecArgs", "runtimeHandler"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Overhead.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Overhead.java index c2dfbaa76b..a4aadbf4d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Overhead.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Overhead.java @@ -44,13 +44,14 @@ public Builder(Overhead defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public Overhead build() { - final var o = new Overhead(); - o.podFixed = podFixed; - return o; + final var _resultValue = new Overhead(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/OverheadPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/OverheadPatch.java index dfb6832b79..088d950bc1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/OverheadPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/OverheadPatch.java @@ -44,13 +44,14 @@ public Builder(OverheadPatch defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public OverheadPatch build() { - final var o = new OverheadPatch(); - o.podFixed = podFixed; - return o; + final var _resultValue = new OverheadPatch(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClass.java index bd749b3403..d58f4a295d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.node.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.node.v1alpha1.outputs.RuntimeClassSpec; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(RuntimeClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(RuntimeClassSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("RuntimeClass", "spec"); + } + this.spec = spec; return this; } public RuntimeClass build() { - final var o = new RuntimeClass(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new RuntimeClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpec.java index 982ef2f273..16ced15ef2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.node.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.node.v1alpha1.outputs.Overhead; import com.pulumi.kubernetes.node.v1alpha1.outputs.Scheduling; import java.lang.String; @@ -74,25 +75,30 @@ public Builder(RuntimeClassSpec defaults) { @CustomType.Setter public Builder overhead(@Nullable Overhead overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder runtimeHandler(String runtimeHandler) { - this.runtimeHandler = Objects.requireNonNull(runtimeHandler); + if (runtimeHandler == null) { + throw new MissingRequiredPropertyException("RuntimeClassSpec", "runtimeHandler"); + } + this.runtimeHandler = runtimeHandler; return this; } @CustomType.Setter public Builder scheduling(@Nullable Scheduling scheduling) { + this.scheduling = scheduling; return this; } public RuntimeClassSpec build() { - final var o = new RuntimeClassSpec(); - o.overhead = overhead; - o.runtimeHandler = runtimeHandler; - o.scheduling = scheduling; - return o; + final var _resultValue = new RuntimeClassSpec(); + _resultValue.overhead = overhead; + _resultValue.runtimeHandler = runtimeHandler; + _resultValue.scheduling = scheduling; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpecPatch.java index 51158b66ca..f3362decdc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/RuntimeClassSpecPatch.java @@ -74,25 +74,28 @@ public Builder(RuntimeClassSpecPatch defaults) { @CustomType.Setter public Builder overhead(@Nullable OverheadPatch overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder runtimeHandler(@Nullable String runtimeHandler) { + this.runtimeHandler = runtimeHandler; return this; } @CustomType.Setter public Builder scheduling(@Nullable SchedulingPatch scheduling) { + this.scheduling = scheduling; return this; } public RuntimeClassSpecPatch build() { - final var o = new RuntimeClassSpecPatch(); - o.overhead = overhead; - o.runtimeHandler = runtimeHandler; - o.scheduling = scheduling; - return o; + final var _resultValue = new RuntimeClassSpecPatch(); + _resultValue.overhead = overhead; + _resultValue.runtimeHandler = runtimeHandler; + _resultValue.scheduling = scheduling; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Scheduling.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Scheduling.java index 4c3d26e85e..1294d953e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Scheduling.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/Scheduling.java @@ -60,11 +60,13 @@ public Builder(Scheduling defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(Toleration... tolerations) { return tolerations(List.of(tolerations)); } public Scheduling build() { - final var o = new Scheduling(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new Scheduling(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/SchedulingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/SchedulingPatch.java index cc0046f5fb..5620a90d4d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/SchedulingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1alpha1/outputs/SchedulingPatch.java @@ -60,11 +60,13 @@ public Builder(SchedulingPatch defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(TolerationPatch... tolerations) { return tolerations(List.of(tolerations)); } public SchedulingPatch build() { - final var o = new SchedulingPatch(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new SchedulingPatch(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassArgs.java index 979a10085b..de417c926e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1beta1.inputs.OverheadArgs; import com.pulumi.kubernetes.node.v1beta1.inputs.SchedulingArgs; @@ -266,7 +267,9 @@ public Builder scheduling(SchedulingArgs scheduling) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.handler = Objects.requireNonNull($.handler, "expected parameter 'handler' to be non-null"); + if ($.handler == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "handler"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassListArgs.java index 6c3f9b361b..512330575f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/RuntimeClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.node.v1beta1.inputs.RuntimeClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RuntimeClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RuntimeClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/inputs/RuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/inputs/RuntimeClassArgs.java index 752340a275..c7b114b33e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/inputs/RuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/inputs/RuntimeClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.node.v1beta1.inputs.OverheadArgs; import com.pulumi.kubernetes.node.v1beta1.inputs.SchedulingArgs; @@ -270,7 +271,9 @@ public Builder scheduling(SchedulingArgs scheduling) { public RuntimeClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.handler = Objects.requireNonNull($.handler, "expected parameter 'handler' to be non-null"); + if ($.handler == null) { + throw new MissingRequiredPropertyException("RuntimeClassArgs", "handler"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Overhead.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Overhead.java index f0a7e3ef79..30196fb3ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Overhead.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Overhead.java @@ -44,13 +44,14 @@ public Builder(Overhead defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public Overhead build() { - final var o = new Overhead(); - o.podFixed = podFixed; - return o; + final var _resultValue = new Overhead(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/OverheadPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/OverheadPatch.java index 15657e4298..72467e26a4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/OverheadPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/OverheadPatch.java @@ -44,13 +44,14 @@ public Builder(OverheadPatch defaults) { @CustomType.Setter public Builder podFixed(@Nullable Map podFixed) { + this.podFixed = podFixed; return this; } public OverheadPatch build() { - final var o = new OverheadPatch(); - o.podFixed = podFixed; - return o; + final var _resultValue = new OverheadPatch(); + _resultValue.podFixed = podFixed; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/RuntimeClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/RuntimeClass.java index dcb696b533..8f8a8584ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/RuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/RuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.node.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.node.v1beta1.outputs.Overhead; import com.pulumi.kubernetes.node.v1beta1.outputs.Scheduling; @@ -117,43 +118,51 @@ public Builder(RuntimeClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder handler(String handler) { - this.handler = Objects.requireNonNull(handler); + if (handler == null) { + throw new MissingRequiredPropertyException("RuntimeClass", "handler"); + } + this.handler = handler; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder overhead(@Nullable Overhead overhead) { + this.overhead = overhead; return this; } @CustomType.Setter public Builder scheduling(@Nullable Scheduling scheduling) { + this.scheduling = scheduling; return this; } public RuntimeClass build() { - final var o = new RuntimeClass(); - o.apiVersion = apiVersion; - o.handler = handler; - o.kind = kind; - o.metadata = metadata; - o.overhead = overhead; - o.scheduling = scheduling; - return o; + final var _resultValue = new RuntimeClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.handler = handler; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.overhead = overhead; + _resultValue.scheduling = scheduling; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Scheduling.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Scheduling.java index f5c17280bc..a2fffd70cb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Scheduling.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/Scheduling.java @@ -60,11 +60,13 @@ public Builder(Scheduling defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(Toleration... tolerations) { return tolerations(List.of(tolerations)); } public Scheduling build() { - final var o = new Scheduling(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new Scheduling(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/SchedulingPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/SchedulingPatch.java index ad1b29bd62..71c031b2c9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/SchedulingPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/node/v1beta1/outputs/SchedulingPatch.java @@ -60,11 +60,13 @@ public Builder(SchedulingPatch defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -72,10 +74,10 @@ public Builder tolerations(TolerationPatch... tolerations) { return tolerations(List.of(tolerations)); } public SchedulingPatch build() { - final var o = new SchedulingPatch(); - o.nodeSelector = nodeSelector; - o.tolerations = tolerations; - return o; + final var _resultValue = new SchedulingPatch(); + _resultValue.nodeSelector = nodeSelector; + _resultValue.tolerations = tolerations; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/PodDisruptionBudgetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/PodDisruptionBudgetListArgs.java index 9fec081cee..27b9f74f29 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/PodDisruptionBudgetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/PodDisruptionBudgetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.policy.v1.inputs.PodDisruptionBudgetArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodDisruptionBudgetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/inputs/PodDisruptionBudgetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/inputs/PodDisruptionBudgetStatusArgs.java index 461f8a9048..75f5a06854 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/inputs/PodDisruptionBudgetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/inputs/PodDisruptionBudgetStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ConditionArgs; import java.lang.Integer; import java.lang.String; @@ -356,10 +357,18 @@ public Builder observedGeneration(Integer observedGeneration) { } public PodDisruptionBudgetStatusArgs build() { - $.currentHealthy = Objects.requireNonNull($.currentHealthy, "expected parameter 'currentHealthy' to be non-null"); - $.desiredHealthy = Objects.requireNonNull($.desiredHealthy, "expected parameter 'desiredHealthy' to be non-null"); - $.disruptionsAllowed = Objects.requireNonNull($.disruptionsAllowed, "expected parameter 'disruptionsAllowed' to be non-null"); - $.expectedPods = Objects.requireNonNull($.expectedPods, "expected parameter 'expectedPods' to be non-null"); + if ($.currentHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "currentHealthy"); + } + if ($.desiredHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "desiredHealthy"); + } + if ($.disruptionsAllowed == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "disruptionsAllowed"); + } + if ($.expectedPods == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "expectedPods"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudget.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudget.java index e27b2c4ac1..ff73493f82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudget.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudget.java @@ -103,37 +103,42 @@ public Builder(PodDisruptionBudget defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodDisruptionBudgetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PodDisruptionBudgetStatus status) { + this.status = status; return this; } public PodDisruptionBudget build() { - final var o = new PodDisruptionBudget(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PodDisruptionBudget(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpec.java index d933f4963c..ddfeb058dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpec.java @@ -109,31 +109,35 @@ public Builder(PodDisruptionBudgetSpec defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder minAvailable(@Nullable Either minAvailable) { + this.minAvailable = minAvailable; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder unhealthyPodEvictionPolicy(@Nullable String unhealthyPodEvictionPolicy) { + this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; return this; } public PodDisruptionBudgetSpec build() { - final var o = new PodDisruptionBudgetSpec(); - o.maxUnavailable = maxUnavailable; - o.minAvailable = minAvailable; - o.selector = selector; - o.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; - return o; + final var _resultValue = new PodDisruptionBudgetSpec(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.minAvailable = minAvailable; + _resultValue.selector = selector; + _resultValue.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpecPatch.java index 8a563c2820..2d66278ca1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetSpecPatch.java @@ -109,31 +109,35 @@ public Builder(PodDisruptionBudgetSpecPatch defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder minAvailable(@Nullable Either minAvailable) { + this.minAvailable = minAvailable; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder unhealthyPodEvictionPolicy(@Nullable String unhealthyPodEvictionPolicy) { + this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; return this; } public PodDisruptionBudgetSpecPatch build() { - final var o = new PodDisruptionBudgetSpecPatch(); - o.maxUnavailable = maxUnavailable; - o.minAvailable = minAvailable; - o.selector = selector; - o.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; - return o; + final var _resultValue = new PodDisruptionBudgetSpecPatch(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.minAvailable = minAvailable; + _resultValue.selector = selector; + _resultValue.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatus.java index efe30c66e6..4256a0dcee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.Condition; import java.lang.Integer; import java.lang.String; @@ -148,6 +149,7 @@ public Builder(PodDisruptionBudgetStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -156,44 +158,58 @@ public Builder conditions(Condition... conditions) { } @CustomType.Setter public Builder currentHealthy(Integer currentHealthy) { - this.currentHealthy = Objects.requireNonNull(currentHealthy); + if (currentHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "currentHealthy"); + } + this.currentHealthy = currentHealthy; return this; } @CustomType.Setter public Builder desiredHealthy(Integer desiredHealthy) { - this.desiredHealthy = Objects.requireNonNull(desiredHealthy); + if (desiredHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "desiredHealthy"); + } + this.desiredHealthy = desiredHealthy; return this; } @CustomType.Setter public Builder disruptedPods(@Nullable Map disruptedPods) { + this.disruptedPods = disruptedPods; return this; } @CustomType.Setter public Builder disruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = Objects.requireNonNull(disruptionsAllowed); + if (disruptionsAllowed == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "disruptionsAllowed"); + } + this.disruptionsAllowed = disruptionsAllowed; return this; } @CustomType.Setter public Builder expectedPods(Integer expectedPods) { - this.expectedPods = Objects.requireNonNull(expectedPods); + if (expectedPods == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "expectedPods"); + } + this.expectedPods = expectedPods; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public PodDisruptionBudgetStatus build() { - final var o = new PodDisruptionBudgetStatus(); - o.conditions = conditions; - o.currentHealthy = currentHealthy; - o.desiredHealthy = desiredHealthy; - o.disruptedPods = disruptedPods; - o.disruptionsAllowed = disruptionsAllowed; - o.expectedPods = expectedPods; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new PodDisruptionBudgetStatus(); + _resultValue.conditions = conditions; + _resultValue.currentHealthy = currentHealthy; + _resultValue.desiredHealthy = desiredHealthy; + _resultValue.disruptedPods = disruptedPods; + _resultValue.disruptionsAllowed = disruptionsAllowed; + _resultValue.expectedPods = expectedPods; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatusPatch.java index 3ec917e043..fb1f1868fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1/outputs/PodDisruptionBudgetStatusPatch.java @@ -148,6 +148,7 @@ public Builder(PodDisruptionBudgetStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -156,44 +157,50 @@ public Builder conditions(ConditionPatch... conditions) { } @CustomType.Setter public Builder currentHealthy(@Nullable Integer currentHealthy) { + this.currentHealthy = currentHealthy; return this; } @CustomType.Setter public Builder desiredHealthy(@Nullable Integer desiredHealthy) { + this.desiredHealthy = desiredHealthy; return this; } @CustomType.Setter public Builder disruptedPods(@Nullable Map disruptedPods) { + this.disruptedPods = disruptedPods; return this; } @CustomType.Setter public Builder disruptionsAllowed(@Nullable Integer disruptionsAllowed) { + this.disruptionsAllowed = disruptionsAllowed; return this; } @CustomType.Setter public Builder expectedPods(@Nullable Integer expectedPods) { + this.expectedPods = expectedPods; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public PodDisruptionBudgetStatusPatch build() { - final var o = new PodDisruptionBudgetStatusPatch(); - o.conditions = conditions; - o.currentHealthy = currentHealthy; - o.desiredHealthy = desiredHealthy; - o.disruptedPods = disruptedPods; - o.disruptionsAllowed = disruptionsAllowed; - o.expectedPods = expectedPods; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new PodDisruptionBudgetStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.currentHealthy = currentHealthy; + _resultValue.desiredHealthy = desiredHealthy; + _resultValue.disruptedPods = disruptedPods; + _resultValue.disruptionsAllowed = disruptionsAllowed; + _resultValue.expectedPods = expectedPods; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodDisruptionBudgetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodDisruptionBudgetListArgs.java index 8695358d57..99aeb5ab0c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodDisruptionBudgetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodDisruptionBudgetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.policy.v1beta1.inputs.PodDisruptionBudgetArgs; import java.lang.String; @@ -156,7 +157,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodDisruptionBudgetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodSecurityPolicyListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodSecurityPolicyListArgs.java index c11cb79a52..73bff54c51 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodSecurityPolicyListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/PodSecurityPolicyListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.policy.v1beta1.inputs.PodSecurityPolicyArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodSecurityPolicyListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedCSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedCSIDriverArgs.java index bc2d137491..ca352d5c60 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedCSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedCSIDriverArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public AllowedCSIDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AllowedCSIDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedFlexVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedFlexVolumeArgs.java index 87ec149a38..f6b55361e2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedFlexVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/AllowedFlexVolumeArgs.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; @@ -78,7 +79,9 @@ public Builder driver(String driver) { } public AllowedFlexVolumeArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("AllowedFlexVolumeArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/HostPortRangeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/HostPortRangeArgs.java index 85d44d0bdf..a448b46a23 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/HostPortRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/HostPortRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder min(Integer min) { } public HostPortRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("HostPortRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("HostPortRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/IDRangeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/IDRangeArgs.java index f47d0ea31c..35d75595a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/IDRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/IDRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -115,8 +116,12 @@ public Builder min(Integer min) { } public IDRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("IDRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("IDRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodDisruptionBudgetStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodDisruptionBudgetStatusArgs.java index 38677698f3..7f7df9d78e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodDisruptionBudgetStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodDisruptionBudgetStatusArgs.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.Map; @@ -267,10 +268,18 @@ public Builder observedGeneration(Integer observedGeneration) { } public PodDisruptionBudgetStatusArgs build() { - $.currentHealthy = Objects.requireNonNull($.currentHealthy, "expected parameter 'currentHealthy' to be non-null"); - $.desiredHealthy = Objects.requireNonNull($.desiredHealthy, "expected parameter 'desiredHealthy' to be non-null"); - $.disruptionsAllowed = Objects.requireNonNull($.disruptionsAllowed, "expected parameter 'disruptionsAllowed' to be non-null"); - $.expectedPods = Objects.requireNonNull($.expectedPods, "expected parameter 'expectedPods' to be non-null"); + if ($.currentHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "currentHealthy"); + } + if ($.desiredHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "desiredHealthy"); + } + if ($.disruptionsAllowed == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "disruptionsAllowed"); + } + if ($.expectedPods == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatusArgs", "expectedPods"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodSecurityPolicySpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodSecurityPolicySpecArgs.java index acaf5aa020..020921255e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodSecurityPolicySpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodSecurityPolicySpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedCSIDriverArgs; import com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedFlexVolumeArgs; import com.pulumi.kubernetes.policy.v1beta1.inputs.AllowedHostPathArgs; @@ -1073,10 +1074,18 @@ public Builder volumes(String... volumes) { } public PodSecurityPolicySpecArgs build() { - $.fsGroup = Objects.requireNonNull($.fsGroup, "expected parameter 'fsGroup' to be non-null"); - $.runAsUser = Objects.requireNonNull($.runAsUser, "expected parameter 'runAsUser' to be non-null"); - $.seLinux = Objects.requireNonNull($.seLinux, "expected parameter 'seLinux' to be non-null"); - $.supplementalGroups = Objects.requireNonNull($.supplementalGroups, "expected parameter 'supplementalGroups' to be non-null"); + if ($.fsGroup == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "fsGroup"); + } + if ($.runAsUser == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "runAsUser"); + } + if ($.seLinux == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "seLinux"); + } + if ($.supplementalGroups == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpecArgs", "supplementalGroups"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java index 349841692f..7b1bf88f07 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsGroupStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.inputs.IDRangeArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder rule(String rule) { } public RunAsGroupStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("RunAsGroupStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java index 30a31b2046..21d17f5e70 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RunAsUserStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.inputs.IDRangeArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder rule(String rule) { } public RunAsUserStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("RunAsUserStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java index b707c23964..7db6291639 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/RuntimeClassStrategyOptionsArgs.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; @@ -128,7 +129,9 @@ public Builder defaultRuntimeClassName(String defaultRuntimeClassName) { } public RuntimeClassStrategyOptionsArgs build() { - $.allowedRuntimeClassNames = Objects.requireNonNull($.allowedRuntimeClassNames, "expected parameter 'allowedRuntimeClassNames' to be non-null"); + if ($.allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("RuntimeClassStrategyOptionsArgs", "allowedRuntimeClassNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/SELinuxStrategyOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/SELinuxStrategyOptionsArgs.java index aa6a1767e2..ad351dfb2b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/SELinuxStrategyOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/SELinuxStrategyOptionsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.SELinuxOptionsArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder seLinuxOptions(SELinuxOptionsArgs seLinuxOptions) { } public SELinuxStrategyOptionsArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("SELinuxStrategyOptionsArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriver.java index 4efb3b3e73..d7db7abb0a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(AllowedCSIDriver defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AllowedCSIDriver", "name"); + } + this.name = name; return this; } public AllowedCSIDriver build() { - final var o = new AllowedCSIDriver(); - o.name = name; - return o; + final var _resultValue = new AllowedCSIDriver(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriverPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriverPatch.java index c44fd0ef17..c656059b06 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriverPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedCSIDriverPatch.java @@ -44,13 +44,14 @@ public Builder(AllowedCSIDriverPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public AllowedCSIDriverPatch build() { - final var o = new AllowedCSIDriverPatch(); - o.name = name; - return o; + final var _resultValue = new AllowedCSIDriverPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolume.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolume.java index 5b39d4f487..f5e92443ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolume.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolume.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(AllowedFlexVolume defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("AllowedFlexVolume", "driver"); + } + this.driver = driver; return this; } public AllowedFlexVolume build() { - final var o = new AllowedFlexVolume(); - o.driver = driver; - return o; + final var _resultValue = new AllowedFlexVolume(); + _resultValue.driver = driver; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolumePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolumePatch.java index 893b610c59..996873fa13 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolumePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedFlexVolumePatch.java @@ -44,13 +44,14 @@ public Builder(AllowedFlexVolumePatch defaults) { @CustomType.Setter public Builder driver(@Nullable String driver) { + this.driver = driver; return this; } public AllowedFlexVolumePatch build() { - final var o = new AllowedFlexVolumePatch(); - o.driver = driver; - return o; + final var _resultValue = new AllowedFlexVolumePatch(); + _resultValue.driver = driver; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPath.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPath.java index 308bdce3f0..f00bf96df9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPath.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPath.java @@ -63,19 +63,21 @@ public Builder(AllowedHostPath defaults) { @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AllowedHostPath build() { - final var o = new AllowedHostPath(); - o.pathPrefix = pathPrefix; - o.readOnly = readOnly; - return o; + final var _resultValue = new AllowedHostPath(); + _resultValue.pathPrefix = pathPrefix; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPathPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPathPatch.java index 4cf14083dd..993c80a8d4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPathPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/AllowedHostPathPatch.java @@ -63,19 +63,21 @@ public Builder(AllowedHostPathPatch defaults) { @CustomType.Setter public Builder pathPrefix(@Nullable String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } public AllowedHostPathPatch build() { - final var o = new AllowedHostPathPatch(); - o.pathPrefix = pathPrefix; - o.readOnly = readOnly; - return o; + final var _resultValue = new AllowedHostPathPatch(); + _resultValue.pathPrefix = pathPrefix; + _resultValue.readOnly = readOnly; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptions.java index 9f17e56185..610bafb131 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptions.java @@ -60,6 +60,7 @@ public Builder(FSGroupStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public FSGroupStrategyOptions build() { - final var o = new FSGroupStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new FSGroupStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptionsPatch.java index 46bc66dc7b..2aa44c16b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/FSGroupStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(FSGroupStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public FSGroupStrategyOptionsPatch build() { - final var o = new FSGroupStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new FSGroupStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRange.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRange.java index 826aa02130..88a934cd07 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRange.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRange.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(HostPortRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("HostPortRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("HostPortRange", "min"); + } + this.min = min; return this; } public HostPortRange build() { - final var o = new HostPortRange(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new HostPortRange(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRangePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRangePatch.java index 850f7f26de..a5e90ae0c1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRangePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/HostPortRangePatch.java @@ -58,19 +58,21 @@ public Builder(HostPortRangePatch defaults) { @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } public HostPortRangePatch build() { - final var o = new HostPortRangePatch(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new HostPortRangePatch(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRange.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRange.java index 1798da4a87..09d435f6f4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRange.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRange.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,19 +57,25 @@ public Builder(IDRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("IDRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("IDRange", "min"); + } + this.min = min; return this; } public IDRange build() { - final var o = new IDRange(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new IDRange(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRangePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRangePatch.java index c9290296c8..41dfb141a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRangePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/IDRangePatch.java @@ -58,19 +58,21 @@ public Builder(IDRangePatch defaults) { @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } public IDRangePatch build() { - final var o = new IDRangePatch(); - o.max = max; - o.min = min; - return o; + final var _resultValue = new IDRangePatch(); + _resultValue.max = max; + _resultValue.min = min; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudget.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudget.java index b1cee00db9..0ea0d9ca1f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudget.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudget.java @@ -95,37 +95,42 @@ public Builder(PodDisruptionBudget defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodDisruptionBudgetSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PodDisruptionBudgetStatus status) { + this.status = status; return this; } public PodDisruptionBudget build() { - final var o = new PodDisruptionBudget(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PodDisruptionBudget(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpec.java index d0c1c5758b..87f07737b0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpec.java @@ -75,25 +75,28 @@ public Builder(PodDisruptionBudgetSpec defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder minAvailable(@Nullable Either minAvailable) { + this.minAvailable = minAvailable; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } public PodDisruptionBudgetSpec build() { - final var o = new PodDisruptionBudgetSpec(); - o.maxUnavailable = maxUnavailable; - o.minAvailable = minAvailable; - o.selector = selector; - return o; + final var _resultValue = new PodDisruptionBudgetSpec(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.minAvailable = minAvailable; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpecPatch.java index 217016d93c..63c5092cb7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetSpecPatch.java @@ -75,25 +75,28 @@ public Builder(PodDisruptionBudgetSpecPatch defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Either maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } @CustomType.Setter public Builder minAvailable(@Nullable Either minAvailable) { + this.minAvailable = minAvailable; return this; } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } public PodDisruptionBudgetSpecPatch build() { - final var o = new PodDisruptionBudgetSpecPatch(); - o.maxUnavailable = maxUnavailable; - o.minAvailable = minAvailable; - o.selector = selector; - return o; + final var _resultValue = new PodDisruptionBudgetSpecPatch(); + _resultValue.maxUnavailable = maxUnavailable; + _resultValue.minAvailable = minAvailable; + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatus.java index ae23d45d80..2960f26891 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Map; @@ -116,43 +117,57 @@ public Builder(PodDisruptionBudgetStatus defaults) { @CustomType.Setter public Builder currentHealthy(Integer currentHealthy) { - this.currentHealthy = Objects.requireNonNull(currentHealthy); + if (currentHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "currentHealthy"); + } + this.currentHealthy = currentHealthy; return this; } @CustomType.Setter public Builder desiredHealthy(Integer desiredHealthy) { - this.desiredHealthy = Objects.requireNonNull(desiredHealthy); + if (desiredHealthy == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "desiredHealthy"); + } + this.desiredHealthy = desiredHealthy; return this; } @CustomType.Setter public Builder disruptedPods(@Nullable Map disruptedPods) { + this.disruptedPods = disruptedPods; return this; } @CustomType.Setter public Builder disruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = Objects.requireNonNull(disruptionsAllowed); + if (disruptionsAllowed == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "disruptionsAllowed"); + } + this.disruptionsAllowed = disruptionsAllowed; return this; } @CustomType.Setter public Builder expectedPods(Integer expectedPods) { - this.expectedPods = Objects.requireNonNull(expectedPods); + if (expectedPods == null) { + throw new MissingRequiredPropertyException("PodDisruptionBudgetStatus", "expectedPods"); + } + this.expectedPods = expectedPods; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public PodDisruptionBudgetStatus build() { - final var o = new PodDisruptionBudgetStatus(); - o.currentHealthy = currentHealthy; - o.desiredHealthy = desiredHealthy; - o.disruptedPods = disruptedPods; - o.disruptionsAllowed = disruptionsAllowed; - o.expectedPods = expectedPods; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new PodDisruptionBudgetStatus(); + _resultValue.currentHealthy = currentHealthy; + _resultValue.desiredHealthy = desiredHealthy; + _resultValue.disruptedPods = disruptedPods; + _resultValue.disruptionsAllowed = disruptionsAllowed; + _resultValue.expectedPods = expectedPods; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatusPatch.java index 3ce6c22466..6827b99c27 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodDisruptionBudgetStatusPatch.java @@ -116,43 +116,49 @@ public Builder(PodDisruptionBudgetStatusPatch defaults) { @CustomType.Setter public Builder currentHealthy(@Nullable Integer currentHealthy) { + this.currentHealthy = currentHealthy; return this; } @CustomType.Setter public Builder desiredHealthy(@Nullable Integer desiredHealthy) { + this.desiredHealthy = desiredHealthy; return this; } @CustomType.Setter public Builder disruptedPods(@Nullable Map disruptedPods) { + this.disruptedPods = disruptedPods; return this; } @CustomType.Setter public Builder disruptionsAllowed(@Nullable Integer disruptionsAllowed) { + this.disruptionsAllowed = disruptionsAllowed; return this; } @CustomType.Setter public Builder expectedPods(@Nullable Integer expectedPods) { + this.expectedPods = expectedPods; return this; } @CustomType.Setter public Builder observedGeneration(@Nullable Integer observedGeneration) { + this.observedGeneration = observedGeneration; return this; } public PodDisruptionBudgetStatusPatch build() { - final var o = new PodDisruptionBudgetStatusPatch(); - o.currentHealthy = currentHealthy; - o.desiredHealthy = desiredHealthy; - o.disruptedPods = disruptedPods; - o.disruptionsAllowed = disruptionsAllowed; - o.expectedPods = expectedPods; - o.observedGeneration = observedGeneration; - return o; + final var _resultValue = new PodDisruptionBudgetStatusPatch(); + _resultValue.currentHealthy = currentHealthy; + _resultValue.desiredHealthy = desiredHealthy; + _resultValue.disruptedPods = disruptedPods; + _resultValue.disruptionsAllowed = disruptionsAllowed; + _resultValue.expectedPods = expectedPods; + _resultValue.observedGeneration = observedGeneration; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicy.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicy.java index 93d6fa77cb..af6606ee5a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicy.java @@ -88,31 +88,35 @@ public Builder(PodSecurityPolicy defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodSecurityPolicySpec spec) { + this.spec = spec; return this; } public PodSecurityPolicy build() { - final var o = new PodSecurityPolicy(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PodSecurityPolicy(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpec.java index f37f71c30f..1ac1960a6a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.outputs.AllowedCSIDriver; import com.pulumi.kubernetes.policy.v1beta1.outputs.AllowedFlexVolume; import com.pulumi.kubernetes.policy.v1beta1.outputs.AllowedHostPath; @@ -386,11 +387,13 @@ public Builder(PodSecurityPolicySpec defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder allowedCSIDrivers(@Nullable List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -399,6 +402,7 @@ public Builder allowedCSIDrivers(AllowedCSIDriver... allowedCSIDrivers) { } @CustomType.Setter public Builder allowedCapabilities(@Nullable List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -407,6 +411,7 @@ public Builder allowedCapabilities(String... allowedCapabilities) { } @CustomType.Setter public Builder allowedFlexVolumes(@Nullable List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -415,6 +420,7 @@ public Builder allowedFlexVolumes(AllowedFlexVolume... allowedFlexVolumes) { } @CustomType.Setter public Builder allowedHostPaths(@Nullable List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -423,6 +429,7 @@ public Builder allowedHostPaths(AllowedHostPath... allowedHostPaths) { } @CustomType.Setter public Builder allowedProcMountTypes(@Nullable List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -431,6 +438,7 @@ public Builder allowedProcMountTypes(String... allowedProcMountTypes) { } @CustomType.Setter public Builder allowedUnsafeSysctls(@Nullable List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -439,6 +447,7 @@ public Builder allowedUnsafeSysctls(String... allowedUnsafeSysctls) { } @CustomType.Setter public Builder defaultAddCapabilities(@Nullable List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -447,11 +456,13 @@ public Builder defaultAddCapabilities(String... defaultAddCapabilities) { } @CustomType.Setter public Builder defaultAllowPrivilegeEscalation(@Nullable Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @CustomType.Setter public Builder forbiddenSysctls(@Nullable List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -460,26 +471,33 @@ public Builder forbiddenSysctls(String... forbiddenSysctls) { } @CustomType.Setter public Builder fsGroup(FSGroupStrategyOptions fsGroup) { - this.fsGroup = Objects.requireNonNull(fsGroup); + if (fsGroup == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "fsGroup"); + } + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostPorts(@Nullable List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -488,16 +506,19 @@ public Builder hostPorts(HostPortRange... hostPorts) { } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder requiredDropCapabilities(@Nullable List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -506,31 +527,43 @@ public Builder requiredDropCapabilities(String... requiredDropCapabilities) { } @CustomType.Setter public Builder runAsGroup(@Nullable RunAsGroupStrategyOptions runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsUser(RunAsUserStrategyOptions runAsUser) { - this.runAsUser = Objects.requireNonNull(runAsUser); + if (runAsUser == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "runAsUser"); + } + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder runtimeClass(@Nullable RuntimeClassStrategyOptions runtimeClass) { + this.runtimeClass = runtimeClass; return this; } @CustomType.Setter public Builder seLinux(SELinuxStrategyOptions seLinux) { - this.seLinux = Objects.requireNonNull(seLinux); + if (seLinux == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "seLinux"); + } + this.seLinux = seLinux; return this; } @CustomType.Setter public Builder supplementalGroups(SupplementalGroupsStrategyOptions supplementalGroups) { - this.supplementalGroups = Objects.requireNonNull(supplementalGroups); + if (supplementalGroups == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicySpec", "supplementalGroups"); + } + this.supplementalGroups = supplementalGroups; return this; } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -538,32 +571,32 @@ public Builder volumes(String... volumes) { return volumes(List.of(volumes)); } public PodSecurityPolicySpec build() { - final var o = new PodSecurityPolicySpec(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.allowedCSIDrivers = allowedCSIDrivers; - o.allowedCapabilities = allowedCapabilities; - o.allowedFlexVolumes = allowedFlexVolumes; - o.allowedHostPaths = allowedHostPaths; - o.allowedProcMountTypes = allowedProcMountTypes; - o.allowedUnsafeSysctls = allowedUnsafeSysctls; - o.defaultAddCapabilities = defaultAddCapabilities; - o.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - o.forbiddenSysctls = forbiddenSysctls; - o.fsGroup = fsGroup; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostPorts = hostPorts; - o.privileged = privileged; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.requiredDropCapabilities = requiredDropCapabilities; - o.runAsGroup = runAsGroup; - o.runAsUser = runAsUser; - o.runtimeClass = runtimeClass; - o.seLinux = seLinux; - o.supplementalGroups = supplementalGroups; - o.volumes = volumes; - return o; + final var _resultValue = new PodSecurityPolicySpec(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.allowedCSIDrivers = allowedCSIDrivers; + _resultValue.allowedCapabilities = allowedCapabilities; + _resultValue.allowedFlexVolumes = allowedFlexVolumes; + _resultValue.allowedHostPaths = allowedHostPaths; + _resultValue.allowedProcMountTypes = allowedProcMountTypes; + _resultValue.allowedUnsafeSysctls = allowedUnsafeSysctls; + _resultValue.defaultAddCapabilities = defaultAddCapabilities; + _resultValue.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; + _resultValue.forbiddenSysctls = forbiddenSysctls; + _resultValue.fsGroup = fsGroup; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostPorts = hostPorts; + _resultValue.privileged = privileged; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.requiredDropCapabilities = requiredDropCapabilities; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsUser = runAsUser; + _resultValue.runtimeClass = runtimeClass; + _resultValue.seLinux = seLinux; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpecPatch.java index 0cf35e5f47..7100a4aa5d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicySpecPatch.java @@ -386,11 +386,13 @@ public Builder(PodSecurityPolicySpecPatch defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(@Nullable Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder allowedCSIDrivers(@Nullable List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -399,6 +401,7 @@ public Builder allowedCSIDrivers(AllowedCSIDriverPatch... allowedCSIDrivers) { } @CustomType.Setter public Builder allowedCapabilities(@Nullable List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -407,6 +410,7 @@ public Builder allowedCapabilities(String... allowedCapabilities) { } @CustomType.Setter public Builder allowedFlexVolumes(@Nullable List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -415,6 +419,7 @@ public Builder allowedFlexVolumes(AllowedFlexVolumePatch... allowedFlexVolumes) } @CustomType.Setter public Builder allowedHostPaths(@Nullable List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -423,6 +428,7 @@ public Builder allowedHostPaths(AllowedHostPathPatch... allowedHostPaths) { } @CustomType.Setter public Builder allowedProcMountTypes(@Nullable List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -431,6 +437,7 @@ public Builder allowedProcMountTypes(String... allowedProcMountTypes) { } @CustomType.Setter public Builder allowedUnsafeSysctls(@Nullable List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -439,6 +446,7 @@ public Builder allowedUnsafeSysctls(String... allowedUnsafeSysctls) { } @CustomType.Setter public Builder defaultAddCapabilities(@Nullable List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -447,11 +455,13 @@ public Builder defaultAddCapabilities(String... defaultAddCapabilities) { } @CustomType.Setter public Builder defaultAllowPrivilegeEscalation(@Nullable Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @CustomType.Setter public Builder forbiddenSysctls(@Nullable List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -460,26 +470,31 @@ public Builder forbiddenSysctls(String... forbiddenSysctls) { } @CustomType.Setter public Builder fsGroup(@Nullable FSGroupStrategyOptionsPatch fsGroup) { + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder hostIPC(@Nullable Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @CustomType.Setter public Builder hostNetwork(@Nullable Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPID(@Nullable Boolean hostPID) { + this.hostPID = hostPID; return this; } @CustomType.Setter public Builder hostPorts(@Nullable List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -488,16 +503,19 @@ public Builder hostPorts(HostPortRangePatch... hostPorts) { } @CustomType.Setter public Builder privileged(@Nullable Boolean privileged) { + this.privileged = privileged; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(@Nullable Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder requiredDropCapabilities(@Nullable List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -506,31 +524,37 @@ public Builder requiredDropCapabilities(String... requiredDropCapabilities) { } @CustomType.Setter public Builder runAsGroup(@Nullable RunAsGroupStrategyOptionsPatch runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsUser(@Nullable RunAsUserStrategyOptionsPatch runAsUser) { + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder runtimeClass(@Nullable RuntimeClassStrategyOptionsPatch runtimeClass) { + this.runtimeClass = runtimeClass; return this; } @CustomType.Setter public Builder seLinux(@Nullable SELinuxStrategyOptionsPatch seLinux) { + this.seLinux = seLinux; return this; } @CustomType.Setter public Builder supplementalGroups(@Nullable SupplementalGroupsStrategyOptionsPatch supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -538,32 +562,32 @@ public Builder volumes(String... volumes) { return volumes(List.of(volumes)); } public PodSecurityPolicySpecPatch build() { - final var o = new PodSecurityPolicySpecPatch(); - o.allowPrivilegeEscalation = allowPrivilegeEscalation; - o.allowedCSIDrivers = allowedCSIDrivers; - o.allowedCapabilities = allowedCapabilities; - o.allowedFlexVolumes = allowedFlexVolumes; - o.allowedHostPaths = allowedHostPaths; - o.allowedProcMountTypes = allowedProcMountTypes; - o.allowedUnsafeSysctls = allowedUnsafeSysctls; - o.defaultAddCapabilities = defaultAddCapabilities; - o.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - o.forbiddenSysctls = forbiddenSysctls; - o.fsGroup = fsGroup; - o.hostIPC = hostIPC; - o.hostNetwork = hostNetwork; - o.hostPID = hostPID; - o.hostPorts = hostPorts; - o.privileged = privileged; - o.readOnlyRootFilesystem = readOnlyRootFilesystem; - o.requiredDropCapabilities = requiredDropCapabilities; - o.runAsGroup = runAsGroup; - o.runAsUser = runAsUser; - o.runtimeClass = runtimeClass; - o.seLinux = seLinux; - o.supplementalGroups = supplementalGroups; - o.volumes = volumes; - return o; + final var _resultValue = new PodSecurityPolicySpecPatch(); + _resultValue.allowPrivilegeEscalation = allowPrivilegeEscalation; + _resultValue.allowedCSIDrivers = allowedCSIDrivers; + _resultValue.allowedCapabilities = allowedCapabilities; + _resultValue.allowedFlexVolumes = allowedFlexVolumes; + _resultValue.allowedHostPaths = allowedHostPaths; + _resultValue.allowedProcMountTypes = allowedProcMountTypes; + _resultValue.allowedUnsafeSysctls = allowedUnsafeSysctls; + _resultValue.defaultAddCapabilities = defaultAddCapabilities; + _resultValue.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; + _resultValue.forbiddenSysctls = forbiddenSysctls; + _resultValue.fsGroup = fsGroup; + _resultValue.hostIPC = hostIPC; + _resultValue.hostNetwork = hostNetwork; + _resultValue.hostPID = hostPID; + _resultValue.hostPorts = hostPorts; + _resultValue.privileged = privileged; + _resultValue.readOnlyRootFilesystem = readOnlyRootFilesystem; + _resultValue.requiredDropCapabilities = requiredDropCapabilities; + _resultValue.runAsGroup = runAsGroup; + _resultValue.runAsUser = runAsUser; + _resultValue.runtimeClass = runtimeClass; + _resultValue.seLinux = seLinux; + _resultValue.supplementalGroups = supplementalGroups; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptions.java index ffeb41b270..c6ab99234c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.outputs.IDRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(RunAsGroupStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,14 +69,17 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("RunAsGroupStrategyOptions", "rule"); + } + this.rule = rule; return this; } public RunAsGroupStrategyOptions build() { - final var o = new RunAsGroupStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsGroupStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java index c5df518104..36cf5ee3cf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsGroupStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(RunAsGroupStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public RunAsGroupStrategyOptionsPatch build() { - final var o = new RunAsGroupStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsGroupStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptions.java index 1a5f605b4a..82a2814c4e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.policy.v1beta1.outputs.IDRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(RunAsUserStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,14 +69,17 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("RunAsUserStrategyOptions", "rule"); + } + this.rule = rule; return this; } public RunAsUserStrategyOptions build() { - final var o = new RunAsUserStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsUserStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java index 3eab440048..8de1f69f61 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RunAsUserStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(RunAsUserStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public RunAsUserStrategyOptionsPatch build() { - final var o = new RunAsUserStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new RunAsUserStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptions.java index cec8981464..0677ff1360 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -59,7 +60,10 @@ public Builder(RuntimeClassStrategyOptions defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(List allowedRuntimeClassNames) { - this.allowedRuntimeClassNames = Objects.requireNonNull(allowedRuntimeClassNames); + if (allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("RuntimeClassStrategyOptions", "allowedRuntimeClassNames"); + } + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { @@ -67,14 +71,15 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } public RuntimeClassStrategyOptions build() { - final var o = new RuntimeClassStrategyOptions(); - o.allowedRuntimeClassNames = allowedRuntimeClassNames; - o.defaultRuntimeClassName = defaultRuntimeClassName; - return o; + final var _resultValue = new RuntimeClassStrategyOptions(); + _resultValue.allowedRuntimeClassNames = allowedRuntimeClassNames; + _resultValue.defaultRuntimeClassName = defaultRuntimeClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java index 495765bc41..962313aa87 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/RuntimeClassStrategyOptionsPatch.java @@ -59,6 +59,7 @@ public Builder(RuntimeClassStrategyOptionsPatch defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(@Nullable List allowedRuntimeClassNames) { + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } @@ -67,14 +68,15 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } public RuntimeClassStrategyOptionsPatch build() { - final var o = new RuntimeClassStrategyOptionsPatch(); - o.allowedRuntimeClassNames = allowedRuntimeClassNames; - o.defaultRuntimeClassName = defaultRuntimeClassName; - return o; + final var _resultValue = new RuntimeClassStrategyOptionsPatch(); + _resultValue.allowedRuntimeClassNames = allowedRuntimeClassNames; + _resultValue.defaultRuntimeClassName = defaultRuntimeClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptions.java index cdf3e1dca4..d9bd771126 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptions.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.policy.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.SELinuxOptions; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(SELinuxStrategyOptions defaults) { @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("SELinuxStrategyOptions", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } public SELinuxStrategyOptions build() { - final var o = new SELinuxStrategyOptions(); - o.rule = rule; - o.seLinuxOptions = seLinuxOptions; - return o; + final var _resultValue = new SELinuxStrategyOptions(); + _resultValue.rule = rule; + _resultValue.seLinuxOptions = seLinuxOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptionsPatch.java index 5669d4acee..355c1f41bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SELinuxStrategyOptionsPatch.java @@ -59,19 +59,21 @@ public Builder(SELinuxStrategyOptionsPatch defaults) { @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOptions(@Nullable SELinuxOptionsPatch seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } public SELinuxStrategyOptionsPatch build() { - final var o = new SELinuxStrategyOptionsPatch(); - o.rule = rule; - o.seLinuxOptions = seLinuxOptions; - return o; + final var _resultValue = new SELinuxStrategyOptionsPatch(); + _resultValue.rule = rule; + _resultValue.seLinuxOptions = seLinuxOptions; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptions.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptions.java index 6e49934396..ac690e2e67 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptions.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptions.java @@ -60,6 +60,7 @@ public Builder(SupplementalGroupsStrategyOptions defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public SupplementalGroupsStrategyOptions build() { - final var o = new SupplementalGroupsStrategyOptions(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new SupplementalGroupsStrategyOptions(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java index 84d166d064..95816ad9b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/SupplementalGroupsStrategyOptionsPatch.java @@ -60,6 +60,7 @@ public Builder(SupplementalGroupsStrategyOptionsPatch defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,14 +69,15 @@ public Builder ranges(IDRangePatch... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } public SupplementalGroupsStrategyOptionsPatch build() { - final var o = new SupplementalGroupsStrategyOptionsPatch(); - o.ranges = ranges; - o.rule = rule; - return o; + final var _resultValue = new SupplementalGroupsStrategyOptionsPatch(); + _resultValue.ranges = ranges; + _resultValue.rule = rule; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingArgs.java index 5f07196d49..7db6791623 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingListArgs.java index a67e4d0bcc..f212969ea7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.ClusterRoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleListArgs.java index 4f5fe6c31e..da3828ccab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/ClusterRoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.ClusterRoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingArgs.java index bf9eaac99a..a6b7fc0c19 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingListArgs.java index e7c48d8aff..eb979682fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleListArgs.java index 0b887f6653..480c4ac485 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/RoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/ClusterRoleBindingArgs.java index 60e4c38f19..5f422d65d1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/PolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/PolicyRuleArgs.java index c651c5dcfb..c909c5b27f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/PolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/PolicyRuleArgs.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; @@ -279,7 +280,9 @@ public Builder verbs(String... verbs) { } public PolicyRuleArgs build() { - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.verbs == null) { + throw new MissingRequiredPropertyException("PolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleBindingArgs.java index eb1ebf7308..8849e3fcd3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleRefArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleRefArgs.java index e3625b4f61..14a0783572 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleRefArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/RoleRefArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -152,9 +153,15 @@ public Builder name(String name) { } public RoleRefArgs build() { - $.apiGroup = Objects.requireNonNull($.apiGroup, "expected parameter 'apiGroup' to be non-null"); - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "apiGroup"); + } + if ($.kind == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/SubjectArgs.java index 8baf6b5f84..1cbb41b6f9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/inputs/SubjectArgs.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; @@ -191,8 +192,12 @@ public Builder namespace(String namespace) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRule.java index c58dd8d0ae..d9cd0a2873 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRule.java @@ -44,6 +44,7 @@ public Builder(AggregationRule defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelector... clusterRoleSelectors) { return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRule build() { - final var o = new AggregationRule(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRule(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRulePatch.java index a8c7a7aaaa..7ca5f48c82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/AggregationRulePatch.java @@ -44,6 +44,7 @@ public Builder(AggregationRulePatch defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelectorPatch... clusterRoleSelectors) return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRulePatch build() { - final var o = new AggregationRulePatch(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRulePatch(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRole.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRole.java index 18156f8b7e..5598ff0246 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRole.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRole.java @@ -104,26 +104,31 @@ public Builder(ClusterRole defaults) { @CustomType.Setter public Builder aggregationRule(@Nullable AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -131,13 +136,13 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public ClusterRole build() { - final var o = new ClusterRole(); - o.aggregationRule = aggregationRule; - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new ClusterRole(); + _resultValue.aggregationRule = aggregationRule; + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRoleBinding.java index 03ee12a3ca..50ae4b0178 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/ClusterRoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(ClusterRoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public ClusterRoleBinding build() { - final var o = new ClusterRoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new ClusterRoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRule.java index d368b18999..ad7d899bd8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -100,6 +101,7 @@ public Builder(PolicyRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +110,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +119,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +128,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,20 +137,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("PolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRule build() { - final var o = new PolicyRule(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRulePatch.java index e9086cbe76..bbcf648105 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/PolicyRulePatch.java @@ -100,6 +100,7 @@ public Builder(PolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -139,13 +144,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRulePatch build() { - final var o = new PolicyRulePatch(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Role.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Role.java index ba6b550c5b..9a9682de78 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Role.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Role.java @@ -89,21 +89,25 @@ public Builder(Role defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -111,12 +115,12 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public Role build() { - final var o = new Role(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new Role(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleBinding.java index 9af9617fcd..177c237abd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(RoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("RoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public RoleBinding build() { - final var o = new RoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new RoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRef.java index 40c85a664a..49bd6b67a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRef.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,25 +71,34 @@ public Builder(RoleRef defaults) { @CustomType.Setter public Builder apiGroup(String apiGroup) { - this.apiGroup = Objects.requireNonNull(apiGroup); + if (apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRef", "apiGroup"); + } + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("RoleRef", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("RoleRef", "name"); + } + this.name = name; return this; } public RoleRef build() { - final var o = new RoleRef(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRef(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRefPatch.java index 5d15fb6dbd..9d8c851ff4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/RoleRefPatch.java @@ -72,25 +72,28 @@ public Builder(RoleRefPatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public RoleRefPatch build() { - final var o = new RoleRefPatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRefPatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Subject.java index 8d9a80c17e..e3dc00b5bd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1.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,31 +87,39 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Subject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public Subject build() { - final var o = new Subject(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new Subject(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/SubjectPatch.java index d8722a55f8..585c04d677 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1/outputs/SubjectPatch.java @@ -86,31 +86,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingArgs.java index a2a6b1db27..139a32b672 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingListArgs.java index 3f6543d531..02fdc418b9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.ClusterRoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleListArgs.java index e3ba2b5189..14fc1ed935 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/ClusterRoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.ClusterRoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingArgs.java index 708753a570..d6302726aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingListArgs.java index b1655db3db..8280e0557e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleListArgs.java index d5f0761b10..7d3236fc9b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/RoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/ClusterRoleBindingArgs.java index 574c8d184c..3021724331 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/PolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/PolicyRuleArgs.java index 7c77ea77ed..3e02a60c51 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/PolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/PolicyRuleArgs.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; @@ -279,7 +280,9 @@ public Builder verbs(String... verbs) { } public PolicyRuleArgs build() { - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.verbs == null) { + throw new MissingRequiredPropertyException("PolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleBindingArgs.java index 26e1b1f7d6..a7ad4b85dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1alpha1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleRefArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleRefArgs.java index 09aff10b64..d46219d8a7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleRefArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/RoleRefArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -152,9 +153,15 @@ public Builder name(String name) { } public RoleRefArgs build() { - $.apiGroup = Objects.requireNonNull($.apiGroup, "expected parameter 'apiGroup' to be non-null"); - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "apiGroup"); + } + if ($.kind == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/SubjectArgs.java index 0fa464282e..0098d2acec 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/inputs/SubjectArgs.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; @@ -191,8 +192,12 @@ public Builder namespace(String namespace) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRule.java index c4148f8c2b..5ca7a510ea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRule.java @@ -44,6 +44,7 @@ public Builder(AggregationRule defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelector... clusterRoleSelectors) { return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRule build() { - final var o = new AggregationRule(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRule(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRulePatch.java index 7d04afb8d1..511995e41f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/AggregationRulePatch.java @@ -44,6 +44,7 @@ public Builder(AggregationRulePatch defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelectorPatch... clusterRoleSelectors) return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRulePatch build() { - final var o = new AggregationRulePatch(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRulePatch(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRole.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRole.java index 0ad0d5860b..5d42737cac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRole.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRole.java @@ -104,26 +104,31 @@ public Builder(ClusterRole defaults) { @CustomType.Setter public Builder aggregationRule(@Nullable AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -131,13 +136,13 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public ClusterRole build() { - final var o = new ClusterRole(); - o.aggregationRule = aggregationRule; - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new ClusterRole(); + _resultValue.aggregationRule = aggregationRule; + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRoleBinding.java index bbe7dfa672..dd1a93fade 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/ClusterRoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1alpha1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1alpha1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(ClusterRoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public ClusterRoleBinding build() { - final var o = new ClusterRoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new ClusterRoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRule.java index 5b71b1bdb4..0d6cffe823 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -100,6 +101,7 @@ public Builder(PolicyRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +110,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +119,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +128,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,20 +137,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("PolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRule build() { - final var o = new PolicyRule(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRulePatch.java index f8ea92d01d..4d35025a33 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/PolicyRulePatch.java @@ -100,6 +100,7 @@ public Builder(PolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -139,13 +144,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRulePatch build() { - final var o = new PolicyRulePatch(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Role.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Role.java index dcbc56ab7b..3c7903e399 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Role.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Role.java @@ -89,21 +89,25 @@ public Builder(Role defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -111,12 +115,12 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public Role build() { - final var o = new Role(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new Role(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleBinding.java index ba5020a292..bde8c00020 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1alpha1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1alpha1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(RoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("RoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public RoleBinding build() { - final var o = new RoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new RoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRef.java index 44e86ea400..24b2dff1bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRef.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,25 +71,34 @@ public Builder(RoleRef defaults) { @CustomType.Setter public Builder apiGroup(String apiGroup) { - this.apiGroup = Objects.requireNonNull(apiGroup); + if (apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRef", "apiGroup"); + } + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("RoleRef", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("RoleRef", "name"); + } + this.name = name; return this; } public RoleRef build() { - final var o = new RoleRef(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRef(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRefPatch.java index 3a69a1d115..36690d0210 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/RoleRefPatch.java @@ -72,25 +72,28 @@ public Builder(RoleRefPatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public RoleRefPatch build() { - final var o = new RoleRefPatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRefPatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Subject.java index c1e6afa34e..e188560aca 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1alpha1.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,31 +87,39 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Subject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public Subject build() { - final var o = new Subject(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new Subject(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/SubjectPatch.java index cb3e5a04a3..660e0ea150 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1alpha1/outputs/SubjectPatch.java @@ -86,31 +86,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.apiVersion = apiVersion; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingArgs.java index e079215ea2..91fee87842 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingListArgs.java index 7469c46d9c..d307681e32 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.ClusterRoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleListArgs.java index c36ca08b1f..503e0bc808 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/ClusterRoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.ClusterRoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ClusterRoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ClusterRoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingArgs.java index fe8b932945..00f088ce94 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.SubjectArgs; @@ -241,7 +242,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingListArgs.java index 70303310a1..b00756c186 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleBindingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleBindingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleBindingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleBindingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleListArgs.java index d97e1a3b48..a5c3ae4252 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/RoleListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public RoleListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("RoleListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/ClusterRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/ClusterRoleBindingArgs.java index 5c619d8912..7b60ff0385 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/ClusterRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/ClusterRoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public ClusterRoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/PolicyRuleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/PolicyRuleArgs.java index 9cbc370acd..9565a7fc82 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/PolicyRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/PolicyRuleArgs.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; @@ -279,7 +280,9 @@ public Builder verbs(String... verbs) { } public PolicyRuleArgs build() { - $.verbs = Objects.requireNonNull($.verbs, "expected parameter 'verbs' to be non-null"); + if ($.verbs == null) { + throw new MissingRequiredPropertyException("PolicyRuleArgs", "verbs"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleBindingArgs.java index 4dfc9d5c87..c06eb08d53 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleBindingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.RoleRefArgs; import com.pulumi.kubernetes.rbac.v1beta1.inputs.SubjectArgs; @@ -245,7 +246,9 @@ public Builder subjects(SubjectArgs... subjects) { public RoleBindingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.roleRef = Objects.requireNonNull($.roleRef, "expected parameter 'roleRef' to be non-null"); + if ($.roleRef == null) { + throw new MissingRequiredPropertyException("RoleBindingArgs", "roleRef"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleRefArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleRefArgs.java index 95299a75ce..387e486784 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleRefArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/RoleRefArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -152,9 +153,15 @@ public Builder name(String name) { } public RoleRefArgs build() { - $.apiGroup = Objects.requireNonNull($.apiGroup, "expected parameter 'apiGroup' to be non-null"); - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "apiGroup"); + } + if ($.kind == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("RoleRefArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/SubjectArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/SubjectArgs.java index 61f0b02525..3dc27b30e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/SubjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/inputs/SubjectArgs.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; @@ -191,8 +192,12 @@ public Builder namespace(String namespace) { } public SubjectArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("SubjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRule.java index cd66c659d5..7d8638d8e1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRule.java @@ -44,6 +44,7 @@ public Builder(AggregationRule defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelector... clusterRoleSelectors) { return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRule build() { - final var o = new AggregationRule(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRule(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRulePatch.java index 1bb3572631..69f980036a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/AggregationRulePatch.java @@ -44,6 +44,7 @@ public Builder(AggregationRulePatch defaults) { @CustomType.Setter public Builder clusterRoleSelectors(@Nullable List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -51,9 +52,9 @@ public Builder clusterRoleSelectors(LabelSelectorPatch... clusterRoleSelectors) return clusterRoleSelectors(List.of(clusterRoleSelectors)); } public AggregationRulePatch build() { - final var o = new AggregationRulePatch(); - o.clusterRoleSelectors = clusterRoleSelectors; - return o; + final var _resultValue = new AggregationRulePatch(); + _resultValue.clusterRoleSelectors = clusterRoleSelectors; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRole.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRole.java index 5dc17712f3..97819f34dd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRole.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRole.java @@ -104,26 +104,31 @@ public Builder(ClusterRole defaults) { @CustomType.Setter public Builder aggregationRule(@Nullable AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -131,13 +136,13 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public ClusterRole build() { - final var o = new ClusterRole(); - o.aggregationRule = aggregationRule; - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new ClusterRole(); + _resultValue.aggregationRule = aggregationRule; + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRoleBinding.java index 5ef00fa3a9..28f72fbb4a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/ClusterRoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1beta1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1beta1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(ClusterRoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("ClusterRoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public ClusterRoleBinding build() { - final var o = new ClusterRoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new ClusterRoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRule.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRule.java index d4924dc684..7597aabb2b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRule.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRule.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -100,6 +101,7 @@ public Builder(PolicyRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +110,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +119,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +128,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,20 +137,23 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(List verbs) { - this.verbs = Objects.requireNonNull(verbs); + if (verbs == null) { + throw new MissingRequiredPropertyException("PolicyRule", "verbs"); + } + this.verbs = verbs; return this; } public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRule build() { - final var o = new PolicyRule(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRule(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRulePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRulePatch.java index a7e4b665dd..16552ed466 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRulePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/PolicyRulePatch.java @@ -100,6 +100,7 @@ public Builder(PolicyRulePatch defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceURLs(@Nullable List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceURLs(String... nonResourceURLs) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } @@ -139,13 +144,13 @@ public Builder verbs(String... verbs) { return verbs(List.of(verbs)); } public PolicyRulePatch build() { - final var o = new PolicyRulePatch(); - o.apiGroups = apiGroups; - o.nonResourceURLs = nonResourceURLs; - o.resourceNames = resourceNames; - o.resources = resources; - o.verbs = verbs; - return o; + final var _resultValue = new PolicyRulePatch(); + _resultValue.apiGroups = apiGroups; + _resultValue.nonResourceURLs = nonResourceURLs; + _resultValue.resourceNames = resourceNames; + _resultValue.resources = resources; + _resultValue.verbs = verbs; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Role.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Role.java index 80fbb2da65..ff3bf38bb6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Role.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Role.java @@ -89,21 +89,25 @@ public Builder(Role defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } @@ -111,12 +115,12 @@ public Builder rules(PolicyRule... rules) { return rules(List.of(rules)); } public Role build() { - final var o = new Role(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.rules = rules; - return o; + final var _resultValue = new Role(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.rules = rules; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleBinding.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleBinding.java index f52e4c466f..c1071575bb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleBinding.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleBinding.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.rbac.v1beta1.outputs.RoleRef; import com.pulumi.kubernetes.rbac.v1beta1.outputs.Subject; @@ -104,26 +105,33 @@ public Builder(RoleBinding defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder roleRef(RoleRef roleRef) { - this.roleRef = Objects.requireNonNull(roleRef); + if (roleRef == null) { + throw new MissingRequiredPropertyException("RoleBinding", "roleRef"); + } + this.roleRef = roleRef; return this; } @CustomType.Setter public Builder subjects(@Nullable List subjects) { + this.subjects = subjects; return this; } @@ -131,13 +139,13 @@ public Builder subjects(Subject... subjects) { return subjects(List.of(subjects)); } public RoleBinding build() { - final var o = new RoleBinding(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.roleRef = roleRef; - o.subjects = subjects; - return o; + final var _resultValue = new RoleBinding(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.roleRef = roleRef; + _resultValue.subjects = subjects; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRef.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRef.java index 40b2ebc74e..0ffecc803a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRef.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRef.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,25 +71,34 @@ public Builder(RoleRef defaults) { @CustomType.Setter public Builder apiGroup(String apiGroup) { - this.apiGroup = Objects.requireNonNull(apiGroup); + if (apiGroup == null) { + throw new MissingRequiredPropertyException("RoleRef", "apiGroup"); + } + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("RoleRef", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("RoleRef", "name"); + } + this.name = name; return this; } public RoleRef build() { - final var o = new RoleRef(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRef(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRefPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRefPatch.java index cbebb31da7..e8030f469d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRefPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/RoleRefPatch.java @@ -72,25 +72,28 @@ public Builder(RoleRefPatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public RoleRefPatch build() { - final var o = new RoleRefPatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new RoleRefPatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Subject.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Subject.java index f81a5870c4..03d97708c2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Subject.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/Subject.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.rbac.v1beta1.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,31 +87,39 @@ public Builder(Subject defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("Subject", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("Subject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public Subject build() { - final var o = new Subject(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new Subject(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/SubjectPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/SubjectPatch.java index 260a81bd6d..8f5ee370cd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/SubjectPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/rbac/v1beta1/outputs/SubjectPatch.java @@ -86,31 +86,35 @@ public Builder(SubjectPatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public SubjectPatch build() { - final var o = new SubjectPatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new SubjectPatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingArgs.java index 5d71959bbb..fa91c74303 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(PodSchedulingSpecArgs spec) { public PodSchedulingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("PodSchedulingArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingListArgs.java index d0217accc7..40f57b0bd9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/PodSchedulingListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodSchedulingListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodSchedulingListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimArgs.java index c7ef0270bc..a93c53f4dc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(ResourceClaimSpecArgs spec) { public ResourceClaimArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimListArgs.java index 591d94fe87..23d3fcdc3f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClaimListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClaimListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateArgs.java index 5e4ea75d29..894444609b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecArgs; import java.lang.String; @@ -200,7 +201,9 @@ public Builder spec(ResourceClaimTemplateSpecArgs spec) { public ResourceClaimTemplateArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateListArgs.java index 41de3f0370..ea2848c004 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClaimTemplateListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClaimTemplateListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassArgs.java index 512da99cee..c6c9c6fcc6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClassParametersReferenceArgs; @@ -282,7 +283,9 @@ public Builder suitableNodes(NodeSelectorArgs suitableNodes) { public ResourceClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassListArgs.java index 772b5fb3fc..0bfdb1d995 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/ResourceClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/PodSchedulingArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/PodSchedulingArgs.java index 33a3cdba2a..644edf340c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/PodSchedulingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/PodSchedulingArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingSpecArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.PodSchedulingStatusArgs; @@ -236,7 +237,9 @@ public Builder status(PodSchedulingStatusArgs status) { public PodSchedulingArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("PodSchedulingArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimArgs.java index ded9363273..1f7ff3cc69 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSpecArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimStatusArgs; @@ -236,7 +237,9 @@ public Builder status(ResourceClaimStatusArgs status) { public ResourceClaimArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimConsumerReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimConsumerReferenceArgs.java index 1f07b15964..175b2e0c6f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimConsumerReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimConsumerReferenceArgs.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; @@ -191,9 +192,15 @@ public Builder uid(String uid) { } public ResourceClaimConsumerReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.resource = Objects.requireNonNull($.resource, "expected parameter 'resource' to be non-null"); - $.uid = Objects.requireNonNull($.uid, "expected parameter 'uid' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "name"); + } + if ($.resource == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "resource"); + } + if ($.uid == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "uid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimParametersReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimParametersReferenceArgs.java index 9e4b17c902..5598f1bf8f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimParametersReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimParametersReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public ResourceClaimParametersReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimSpecArgs.java index ec1f7a8136..815f769868 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimParametersReferenceArgs; import java.lang.String; import java.util.Objects; @@ -163,7 +164,9 @@ public Builder resourceClassName(String resourceClassName) { } public ResourceClaimSpecArgs build() { - $.resourceClassName = Objects.requireNonNull($.resourceClassName, "expected parameter 'resourceClassName' to be non-null"); + if ($.resourceClassName == null) { + throw new MissingRequiredPropertyException("ResourceClaimSpecArgs", "resourceClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateArgs.java index a270e8f10b..85f8454928 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecArgs; import java.lang.String; @@ -204,7 +205,9 @@ public Builder spec(ResourceClaimTemplateSpecArgs spec) { public ResourceClaimTemplateArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateSpecArgs.java index 334f1e8498..a8d5eba783 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClaimTemplateSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimSpecArgs; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder spec(ResourceClaimSpecArgs spec) { } public ResourceClaimTemplateSpecArgs build() { - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateSpecArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassArgs.java index 5a7e4f917e..f99fc5f8e4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClassParametersReferenceArgs; @@ -288,7 +289,9 @@ public Builder suitableNodes(NodeSelectorArgs suitableNodes) { public ResourceClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassParametersReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassParametersReferenceArgs.java index ee4a11ccce..4c40757809 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassParametersReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/inputs/ResourceClassParametersReferenceArgs.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; @@ -191,8 +192,12 @@ public Builder namespace(String namespace) { } public ResourceClassParametersReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResult.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResult.java index c9cb1fc7d4..ca50e73c13 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResult.java @@ -82,25 +82,28 @@ public Builder(AllocationResult defaults) { @CustomType.Setter public Builder availableOnNodes(@Nullable NodeSelector availableOnNodes) { + this.availableOnNodes = availableOnNodes; return this; } @CustomType.Setter public Builder resourceHandle(@Nullable String resourceHandle) { + this.resourceHandle = resourceHandle; return this; } @CustomType.Setter public Builder shareable(@Nullable Boolean shareable) { + this.shareable = shareable; return this; } public AllocationResult build() { - final var o = new AllocationResult(); - o.availableOnNodes = availableOnNodes; - o.resourceHandle = resourceHandle; - o.shareable = shareable; - return o; + final var _resultValue = new AllocationResult(); + _resultValue.availableOnNodes = availableOnNodes; + _resultValue.resourceHandle = resourceHandle; + _resultValue.shareable = shareable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResultPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResultPatch.java index 58c839dde0..7f43090cfc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResultPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/AllocationResultPatch.java @@ -82,25 +82,28 @@ public Builder(AllocationResultPatch defaults) { @CustomType.Setter public Builder availableOnNodes(@Nullable NodeSelectorPatch availableOnNodes) { + this.availableOnNodes = availableOnNodes; return this; } @CustomType.Setter public Builder resourceHandle(@Nullable String resourceHandle) { + this.resourceHandle = resourceHandle; return this; } @CustomType.Setter public Builder shareable(@Nullable Boolean shareable) { + this.shareable = shareable; return this; } public AllocationResultPatch build() { - final var o = new AllocationResultPatch(); - o.availableOnNodes = availableOnNodes; - o.resourceHandle = resourceHandle; - o.shareable = shareable; - return o; + final var _resultValue = new AllocationResultPatch(); + _resultValue.availableOnNodes = availableOnNodes; + _resultValue.resourceHandle = resourceHandle; + _resultValue.shareable = shareable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodScheduling.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodScheduling.java index d57cb124b4..92af6b52d0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodScheduling.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodScheduling.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha1.outputs.PodSchedulingSpec; import com.pulumi.kubernetes.resource.v1alpha1.outputs.PodSchedulingStatus; @@ -103,37 +104,44 @@ public Builder(PodScheduling defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(PodSchedulingSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("PodScheduling", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PodSchedulingStatus status) { + this.status = status; return this; } public PodScheduling build() { - final var o = new PodScheduling(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PodScheduling(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpec.java index a7f2d64d98..5fbca68691 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpec.java @@ -63,6 +63,7 @@ public Builder(PodSchedulingSpec defaults) { @CustomType.Setter public Builder potentialNodes(@Nullable List potentialNodes) { + this.potentialNodes = potentialNodes; return this; } @@ -71,14 +72,15 @@ public Builder potentialNodes(String... potentialNodes) { } @CustomType.Setter public Builder selectedNode(@Nullable String selectedNode) { + this.selectedNode = selectedNode; return this; } public PodSchedulingSpec build() { - final var o = new PodSchedulingSpec(); - o.potentialNodes = potentialNodes; - o.selectedNode = selectedNode; - return o; + final var _resultValue = new PodSchedulingSpec(); + _resultValue.potentialNodes = potentialNodes; + _resultValue.selectedNode = selectedNode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpecPatch.java index 38a9794d96..7c636b054f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingSpecPatch.java @@ -63,6 +63,7 @@ public Builder(PodSchedulingSpecPatch defaults) { @CustomType.Setter public Builder potentialNodes(@Nullable List potentialNodes) { + this.potentialNodes = potentialNodes; return this; } @@ -71,14 +72,15 @@ public Builder potentialNodes(String... potentialNodes) { } @CustomType.Setter public Builder selectedNode(@Nullable String selectedNode) { + this.selectedNode = selectedNode; return this; } public PodSchedulingSpecPatch build() { - final var o = new PodSchedulingSpecPatch(); - o.potentialNodes = potentialNodes; - o.selectedNode = selectedNode; - return o; + final var _resultValue = new PodSchedulingSpecPatch(); + _resultValue.potentialNodes = potentialNodes; + _resultValue.selectedNode = selectedNode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatus.java index aadbbf00ea..2888e57dad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatus.java @@ -44,6 +44,7 @@ public Builder(PodSchedulingStatus defaults) { @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -51,9 +52,9 @@ public Builder resourceClaims(ResourceClaimSchedulingStatus... resourceClaims) { return resourceClaims(List.of(resourceClaims)); } public PodSchedulingStatus build() { - final var o = new PodSchedulingStatus(); - o.resourceClaims = resourceClaims; - return o; + final var _resultValue = new PodSchedulingStatus(); + _resultValue.resourceClaims = resourceClaims; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatusPatch.java index 8d6f9e6957..8b3380d3d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/PodSchedulingStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PodSchedulingStatusPatch defaults) { @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -51,9 +52,9 @@ public Builder resourceClaims(ResourceClaimSchedulingStatusPatch... resourceClai return resourceClaims(List.of(resourceClaims)); } public PodSchedulingStatusPatch build() { - final var o = new PodSchedulingStatusPatch(); - o.resourceClaims = resourceClaims; - return o; + final var _resultValue = new PodSchedulingStatusPatch(); + _resultValue.resourceClaims = resourceClaims; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaim.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaim.java index b1c0069dd1..4f93a8e32b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaim.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaim.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimSpec; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimStatus; @@ -103,37 +104,44 @@ public Builder(ResourceClaim defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaim", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ResourceClaimStatus status) { + this.status = status; return this; } public ResourceClaim build() { - final var o = new ResourceClaim(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ResourceClaim(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReference.java index 6a463769e5..354c86a175 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.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,31 +87,41 @@ public Builder(ResourceClaimConsumerReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resource(String resource) { - this.resource = Objects.requireNonNull(resource); + if (resource == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "resource"); + } + this.resource = resource; return this; } @CustomType.Setter public Builder uid(String uid) { - this.uid = Objects.requireNonNull(uid); + if (uid == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "uid"); + } + this.uid = uid; return this; } public ResourceClaimConsumerReference build() { - final var o = new ResourceClaimConsumerReference(); - o.apiGroup = apiGroup; - o.name = name; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ResourceClaimConsumerReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.name = name; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReferencePatch.java index 1223254435..56398ba954 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimConsumerReferencePatch.java @@ -86,31 +86,35 @@ public Builder(ResourceClaimConsumerReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ResourceClaimConsumerReferencePatch build() { - final var o = new ResourceClaimConsumerReferencePatch(); - o.apiGroup = apiGroup; - o.name = name; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ResourceClaimConsumerReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.name = name; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReference.java index 19cbf71518..6829c655ac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.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,25 +73,32 @@ public Builder(ResourceClaimParametersReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReference", "name"); + } + this.name = name; return this; } public ResourceClaimParametersReference build() { - final var o = new ResourceClaimParametersReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new ResourceClaimParametersReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReferencePatch.java index c92c7a2453..a158b15382 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimParametersReferencePatch.java @@ -72,25 +72,28 @@ public Builder(ResourceClaimParametersReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceClaimParametersReferencePatch build() { - final var o = new ResourceClaimParametersReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new ResourceClaimParametersReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatus.java index d699e7efb7..2c5293b704 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatus.java @@ -63,11 +63,13 @@ public Builder(ResourceClaimSchedulingStatus defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder unsuitableNodes(@Nullable List unsuitableNodes) { + this.unsuitableNodes = unsuitableNodes; return this; } @@ -75,10 +77,10 @@ public Builder unsuitableNodes(String... unsuitableNodes) { return unsuitableNodes(List.of(unsuitableNodes)); } public ResourceClaimSchedulingStatus build() { - final var o = new ResourceClaimSchedulingStatus(); - o.name = name; - o.unsuitableNodes = unsuitableNodes; - return o; + final var _resultValue = new ResourceClaimSchedulingStatus(); + _resultValue.name = name; + _resultValue.unsuitableNodes = unsuitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatusPatch.java index ccf69ae5c3..6eedf65412 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSchedulingStatusPatch.java @@ -63,11 +63,13 @@ public Builder(ResourceClaimSchedulingStatusPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder unsuitableNodes(@Nullable List unsuitableNodes) { + this.unsuitableNodes = unsuitableNodes; return this; } @@ -75,10 +77,10 @@ public Builder unsuitableNodes(String... unsuitableNodes) { return unsuitableNodes(List.of(unsuitableNodes)); } public ResourceClaimSchedulingStatusPatch build() { - final var o = new ResourceClaimSchedulingStatusPatch(); - o.name = name; - o.unsuitableNodes = unsuitableNodes; - return o; + final var _resultValue = new ResourceClaimSchedulingStatusPatch(); + _resultValue.name = name; + _resultValue.unsuitableNodes = unsuitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpec.java index fe7d68b622..4cad1808bc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimParametersReference; import java.lang.String; import java.util.Objects; @@ -77,25 +78,30 @@ public Builder(ResourceClaimSpec defaults) { @CustomType.Setter public Builder allocationMode(@Nullable String allocationMode) { + this.allocationMode = allocationMode; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClaimParametersReference parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder resourceClassName(String resourceClassName) { - this.resourceClassName = Objects.requireNonNull(resourceClassName); + if (resourceClassName == null) { + throw new MissingRequiredPropertyException("ResourceClaimSpec", "resourceClassName"); + } + this.resourceClassName = resourceClassName; return this; } public ResourceClaimSpec build() { - final var o = new ResourceClaimSpec(); - o.allocationMode = allocationMode; - o.parametersRef = parametersRef; - o.resourceClassName = resourceClassName; - return o; + final var _resultValue = new ResourceClaimSpec(); + _resultValue.allocationMode = allocationMode; + _resultValue.parametersRef = parametersRef; + _resultValue.resourceClassName = resourceClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpecPatch.java index 01b4700723..3dcc3d9a08 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimSpecPatch.java @@ -77,25 +77,28 @@ public Builder(ResourceClaimSpecPatch defaults) { @CustomType.Setter public Builder allocationMode(@Nullable String allocationMode) { + this.allocationMode = allocationMode; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClaimParametersReferencePatch parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder resourceClassName(@Nullable String resourceClassName) { + this.resourceClassName = resourceClassName; return this; } public ResourceClaimSpecPatch build() { - final var o = new ResourceClaimSpecPatch(); - o.allocationMode = allocationMode; - o.parametersRef = parametersRef; - o.resourceClassName = resourceClassName; - return o; + final var _resultValue = new ResourceClaimSpecPatch(); + _resultValue.allocationMode = allocationMode; + _resultValue.parametersRef = parametersRef; + _resultValue.resourceClassName = resourceClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatus.java index 460249ca3a..6ff6fecb34 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatus.java @@ -102,21 +102,25 @@ public Builder(ResourceClaimStatus defaults) { @CustomType.Setter public Builder allocation(@Nullable AllocationResult allocation) { + this.allocation = allocation; return this; } @CustomType.Setter public Builder deallocationRequested(@Nullable Boolean deallocationRequested) { + this.deallocationRequested = deallocationRequested; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder reservedFor(@Nullable List reservedFor) { + this.reservedFor = reservedFor; return this; } @@ -124,12 +128,12 @@ public Builder reservedFor(ResourceClaimConsumerReference... reservedFor) { return reservedFor(List.of(reservedFor)); } public ResourceClaimStatus build() { - final var o = new ResourceClaimStatus(); - o.allocation = allocation; - o.deallocationRequested = deallocationRequested; - o.driverName = driverName; - o.reservedFor = reservedFor; - return o; + final var _resultValue = new ResourceClaimStatus(); + _resultValue.allocation = allocation; + _resultValue.deallocationRequested = deallocationRequested; + _resultValue.driverName = driverName; + _resultValue.reservedFor = reservedFor; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatusPatch.java index 1c1f0d0831..f44a910b40 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimStatusPatch.java @@ -102,21 +102,25 @@ public Builder(ResourceClaimStatusPatch defaults) { @CustomType.Setter public Builder allocation(@Nullable AllocationResultPatch allocation) { + this.allocation = allocation; return this; } @CustomType.Setter public Builder deallocationRequested(@Nullable Boolean deallocationRequested) { + this.deallocationRequested = deallocationRequested; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder reservedFor(@Nullable List reservedFor) { + this.reservedFor = reservedFor; return this; } @@ -124,12 +128,12 @@ public Builder reservedFor(ResourceClaimConsumerReferencePatch... reservedFor) { return reservedFor(List.of(reservedFor)); } public ResourceClaimStatusPatch build() { - final var o = new ResourceClaimStatusPatch(); - o.allocation = allocation; - o.deallocationRequested = deallocationRequested; - o.driverName = driverName; - o.reservedFor = reservedFor; - return o; + final var _resultValue = new ResourceClaimStatusPatch(); + _resultValue.allocation = allocation; + _resultValue.deallocationRequested = deallocationRequested; + _resultValue.driverName = driverName; + _resultValue.reservedFor = reservedFor; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplate.java index 3915a4975d..5737768c66 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplate.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimTemplateSpec; import java.lang.String; @@ -92,31 +93,37 @@ public Builder(ResourceClaimTemplate defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimTemplateSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplate", "spec"); + } + this.spec = spec; return this; } public ResourceClaimTemplate build() { - final var o = new ResourceClaimTemplate(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplate(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpec.java index 546e254790..95a43f16aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClaimSpec; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(ResourceClaimTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateSpec", "spec"); + } + this.spec = spec; return this; } public ResourceClaimTemplateSpec build() { - final var o = new ResourceClaimTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpecPatch.java index dc70ba25db..ddbfaf994c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClaimTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceClaimTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ResourceClaimSpecPatch spec) { + this.spec = spec; return this; } public ResourceClaimTemplateSpecPatch build() { - final var o = new ResourceClaimTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClass.java index 83d15d1057..dd85a6dae4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.NodeSelector; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha1.outputs.ResourceClassParametersReference; @@ -125,43 +126,51 @@ public Builder(ResourceClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder driverName(String driverName) { - this.driverName = Objects.requireNonNull(driverName); + if (driverName == null) { + throw new MissingRequiredPropertyException("ResourceClass", "driverName"); + } + this.driverName = driverName; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClassParametersReference parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder suitableNodes(@Nullable NodeSelector suitableNodes) { + this.suitableNodes = suitableNodes; return this; } public ResourceClass build() { - final var o = new ResourceClass(); - o.apiVersion = apiVersion; - o.driverName = driverName; - o.kind = kind; - o.metadata = metadata; - o.parametersRef = parametersRef; - o.suitableNodes = suitableNodes; - return o; + final var _resultValue = new ResourceClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.driverName = driverName; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.parametersRef = parametersRef; + _resultValue.suitableNodes = suitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReference.java index 7e60d5ebdd..0b720781f7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha1.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,31 +87,39 @@ public Builder(ResourceClassParametersReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ResourceClassParametersReference build() { - final var o = new ResourceClassParametersReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ResourceClassParametersReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReferencePatch.java index 0603b25b83..d92322949f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha1/outputs/ResourceClassParametersReferencePatch.java @@ -86,31 +86,35 @@ public Builder(ResourceClassParametersReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ResourceClassParametersReferencePatch build() { - final var o = new ResourceClassParametersReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ResourceClassParametersReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextArgs.java index 30ed4ea842..2b06ea38b6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(PodSchedulingContextSpecArgs spec) { public PodSchedulingContextArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("PodSchedulingContextArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextListArgs.java index 5e9954d1b2..96fc033b70 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/PodSchedulingContextListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodSchedulingContextListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodSchedulingContextListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimArgs.java index 3976a037a6..1307369e3e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(ResourceClaimSpecArgs spec) { public ResourceClaimArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimListArgs.java index 7185f87bc5..a394e81781 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClaimListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClaimListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimParametersListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimParametersListArgs.java index 43a19450a5..f020959dac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimParametersListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimParametersListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimParametersArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClaimParametersListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateArgs.java index fd0b40f8b5..57f8218cff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimTemplateSpecArgs; import java.lang.String; @@ -200,7 +201,9 @@ public Builder spec(ResourceClaimTemplateSpecArgs spec) { public ResourceClaimTemplateArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateListArgs.java index 38dd00bf67..86385e6e90 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClaimTemplateListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimTemplateArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClaimTemplateListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassArgs.java index c7970c4595..cee9e14126 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassParametersReferenceArgs; @@ -320,7 +321,9 @@ public Builder suitableNodes(NodeSelectorArgs suitableNodes) { public ResourceClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassListArgs.java index 0e452bb8a9..fb9310f14c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassParametersListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassParametersListArgs.java index 30df61940c..be026403e2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassParametersListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceClassParametersListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassParametersArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceClassParametersListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceArgs.java index e01749daca..c4448a0638 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesArgs; import java.lang.String; @@ -273,7 +274,9 @@ public Builder nodeName(String nodeName) { public ResourceSliceArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceSliceArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceListArgs.java index 82d2746083..3680285169 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/ResourceSliceListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceSliceArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public ResourceSliceListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("ResourceSliceListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAllocationResultArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAllocationResultArgs.java index b532b857ba..d66bf570e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAllocationResultArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAllocationResultArgs.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; @@ -78,7 +79,9 @@ public Builder name(String name) { } public NamedResourcesAllocationResultArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("NamedResourcesAllocationResultArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAttributeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAttributeArgs.java index 12458ed46b..7a6180f9ff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAttributeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesAttributeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesIntSliceArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesStringSliceArgs; import java.lang.Boolean; @@ -343,7 +344,9 @@ public Builder version(String version) { } public NamedResourcesAttributeArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("NamedResourcesAttributeArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesFilterArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesFilterArgs.java index 2de9638ab2..297dd9d786 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesFilterArgs.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; @@ -98,7 +99,9 @@ public Builder selector(String selector) { } public NamedResourcesFilterArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("NamedResourcesFilterArgs", "selector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesInstanceArgs.java index 4619d665f4..c15cc13bac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesInstanceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesAttributeArgs; import java.lang.String; import java.util.List; @@ -129,7 +130,9 @@ public Builder name(String name) { } public NamedResourcesInstanceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("NamedResourcesInstanceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesIntSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesIntSliceArgs.java index 5623e1dd09..4f94154322 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesIntSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesIntSliceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder ints(Integer... ints) { } public NamedResourcesIntSliceArgs build() { - $.ints = Objects.requireNonNull($.ints, "expected parameter 'ints' to be non-null"); + if ($.ints == null) { + throw new MissingRequiredPropertyException("NamedResourcesIntSliceArgs", "ints"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesRequestArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesRequestArgs.java index e84e628f8a..f51840bff6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesRequestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesRequestArgs.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; @@ -98,7 +99,9 @@ public Builder selector(String selector) { } public NamedResourcesRequestArgs build() { - $.selector = Objects.requireNonNull($.selector, "expected parameter 'selector' to be non-null"); + if ($.selector == null) { + throw new MissingRequiredPropertyException("NamedResourcesRequestArgs", "selector"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesResourcesArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesResourcesArgs.java index 454b75f80b..74319a1204 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesResourcesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesResourcesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesInstanceArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder instances(NamedResourcesInstanceArgs... instances) { } public NamedResourcesResourcesArgs build() { - $.instances = Objects.requireNonNull($.instances, "expected parameter 'instances' to be non-null"); + if ($.instances == null) { + throw new MissingRequiredPropertyException("NamedResourcesResourcesArgs", "instances"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesStringSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesStringSliceArgs.java index 80a21f8c7f..5e91fad183 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesStringSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/NamedResourcesStringSliceArgs.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; @@ -89,7 +90,9 @@ public Builder strings(String... strings) { } public NamedResourcesStringSliceArgs build() { - $.strings = Objects.requireNonNull($.strings, "expected parameter 'strings' to be non-null"); + if ($.strings == null) { + throw new MissingRequiredPropertyException("NamedResourcesStringSliceArgs", "strings"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/PodSchedulingContextArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/PodSchedulingContextArgs.java index 8835d9a834..70be52a721 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/PodSchedulingContextArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/PodSchedulingContextArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextSpecArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.PodSchedulingContextStatusArgs; @@ -236,7 +237,9 @@ public Builder status(PodSchedulingContextStatusArgs status) { public PodSchedulingContextArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("PodSchedulingContextArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimArgs.java index 2e32709588..00f1c882ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimSpecArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimStatusArgs; @@ -236,7 +237,9 @@ public Builder status(ResourceClaimStatusArgs status) { public ResourceClaimArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimConsumerReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimConsumerReferenceArgs.java index 05c9920552..84bdb9eeab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimConsumerReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimConsumerReferenceArgs.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; @@ -191,9 +192,15 @@ public Builder uid(String uid) { } public ResourceClaimConsumerReferenceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.resource = Objects.requireNonNull($.resource, "expected parameter 'resource' to be non-null"); - $.uid = Objects.requireNonNull($.uid, "expected parameter 'uid' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "name"); + } + if ($.resource == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "resource"); + } + if ($.uid == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReferenceArgs", "uid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimParametersReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimParametersReferenceArgs.java index 81d1080648..f2de99dc59 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimParametersReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimParametersReferenceArgs.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; @@ -154,8 +155,12 @@ public Builder name(String name) { } public ResourceClaimParametersReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimSpecArgs.java index a3a2558a99..1ccbd1b437 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimParametersReferenceArgs; import java.lang.String; import java.util.Objects; @@ -163,7 +164,9 @@ public Builder resourceClassName(String resourceClassName) { } public ResourceClaimSpecArgs build() { - $.resourceClassName = Objects.requireNonNull($.resourceClassName, "expected parameter 'resourceClassName' to be non-null"); + if ($.resourceClassName == null) { + throw new MissingRequiredPropertyException("ResourceClaimSpecArgs", "resourceClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateArgs.java index 6388a17320..255693564e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimTemplateSpecArgs; import java.lang.String; @@ -204,7 +205,9 @@ public Builder spec(ResourceClaimTemplateSpecArgs spec) { public ResourceClaimTemplateArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateSpecArgs.java index defe7316e4..5b3dd2dd15 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClaimTemplateSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClaimSpecArgs; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder spec(ResourceClaimSpecArgs spec) { } public ResourceClaimTemplateSpecArgs build() { - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateSpecArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassArgs.java index 8c9496cf9f..a2f35b0e6c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.NodeSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.ResourceClassParametersReferenceArgs; @@ -326,7 +327,9 @@ public Builder suitableNodes(NodeSelectorArgs suitableNodes) { public ResourceClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassParametersReferenceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassParametersReferenceArgs.java index 1ba14d5db1..0b34c2047b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassParametersReferenceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceClassParametersReferenceArgs.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; @@ -191,8 +192,12 @@ public Builder namespace(String namespace) { } public ResourceClassParametersReferenceArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReferenceArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReferenceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceSliceArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceSliceArgs.java index 664b16f7bd..64e7200ccf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceSliceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/ResourceSliceArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesResourcesArgs; import java.lang.String; @@ -277,7 +278,9 @@ public Builder nodeName(String nodeName) { public ResourceSliceArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("ResourceSliceArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/StructuredResourceHandleArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/StructuredResourceHandleArgs.java index 3d06f524a1..3ff7131ded 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/StructuredResourceHandleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/inputs/StructuredResourceHandleArgs.java @@ -6,6 +6,7 @@ import com.google.gson.JsonElement; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.inputs.DriverAllocationResultArgs; import java.lang.String; import java.util.List; @@ -204,7 +205,9 @@ public Builder vendorClassParameters(JsonElement vendorClassParameters) { } public StructuredResourceHandleArgs build() { - $.results = Objects.requireNonNull($.results, "expected parameter 'results' to be non-null"); + if ($.results == null) { + throw new MissingRequiredPropertyException("StructuredResourceHandleArgs", "results"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResult.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResult.java index a04c8b8297..98af70196a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResult.java @@ -83,11 +83,13 @@ public Builder(AllocationResult defaults) { @CustomType.Setter public Builder availableOnNodes(@Nullable NodeSelector availableOnNodes) { + this.availableOnNodes = availableOnNodes; return this; } @CustomType.Setter public Builder resourceHandles(@Nullable List resourceHandles) { + this.resourceHandles = resourceHandles; return this; } @@ -96,15 +98,16 @@ public Builder resourceHandles(ResourceHandle... resourceHandles) { } @CustomType.Setter public Builder shareable(@Nullable Boolean shareable) { + this.shareable = shareable; return this; } public AllocationResult build() { - final var o = new AllocationResult(); - o.availableOnNodes = availableOnNodes; - o.resourceHandles = resourceHandles; - o.shareable = shareable; - return o; + final var _resultValue = new AllocationResult(); + _resultValue.availableOnNodes = availableOnNodes; + _resultValue.resourceHandles = resourceHandles; + _resultValue.shareable = shareable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResultPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResultPatch.java index 7b78681d4b..2b17546de8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResultPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/AllocationResultPatch.java @@ -83,11 +83,13 @@ public Builder(AllocationResultPatch defaults) { @CustomType.Setter public Builder availableOnNodes(@Nullable NodeSelectorPatch availableOnNodes) { + this.availableOnNodes = availableOnNodes; return this; } @CustomType.Setter public Builder resourceHandles(@Nullable List resourceHandles) { + this.resourceHandles = resourceHandles; return this; } @@ -96,15 +98,16 @@ public Builder resourceHandles(ResourceHandlePatch... resourceHandles) { } @CustomType.Setter public Builder shareable(@Nullable Boolean shareable) { + this.shareable = shareable; return this; } public AllocationResultPatch build() { - final var o = new AllocationResultPatch(); - o.availableOnNodes = availableOnNodes; - o.resourceHandles = resourceHandles; - o.shareable = shareable; - return o; + final var _resultValue = new AllocationResultPatch(); + _resultValue.availableOnNodes = availableOnNodes; + _resultValue.resourceHandles = resourceHandles; + _resultValue.shareable = shareable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResult.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResult.java index e7166847fe..21b4a89fae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResult.java @@ -59,19 +59,21 @@ public Builder(DriverAllocationResult defaults) { @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesAllocationResult namedResources) { + this.namedResources = namedResources; return this; } @CustomType.Setter public Builder vendorRequestParameters(@Nullable JsonElement vendorRequestParameters) { + this.vendorRequestParameters = vendorRequestParameters; return this; } public DriverAllocationResult build() { - final var o = new DriverAllocationResult(); - o.namedResources = namedResources; - o.vendorRequestParameters = vendorRequestParameters; - return o; + final var _resultValue = new DriverAllocationResult(); + _resultValue.namedResources = namedResources; + _resultValue.vendorRequestParameters = vendorRequestParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResultPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResultPatch.java index 7c5428a37f..fd29cef599 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResultPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverAllocationResultPatch.java @@ -59,19 +59,21 @@ public Builder(DriverAllocationResultPatch defaults) { @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesAllocationResultPatch namedResources) { + this.namedResources = namedResources; return this; } @CustomType.Setter public Builder vendorRequestParameters(@Nullable JsonElement vendorRequestParameters) { + this.vendorRequestParameters = vendorRequestParameters; return this; } public DriverAllocationResultPatch build() { - final var o = new DriverAllocationResultPatch(); - o.namedResources = namedResources; - o.vendorRequestParameters = vendorRequestParameters; - return o; + final var _resultValue = new DriverAllocationResultPatch(); + _resultValue.namedResources = namedResources; + _resultValue.vendorRequestParameters = vendorRequestParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequests.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequests.java index fa90f2003c..817bca12db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequests.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequests.java @@ -75,11 +75,13 @@ public Builder(DriverRequests defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder requests(@Nullable List requests) { + this.requests = requests; return this; } @@ -88,15 +90,16 @@ public Builder requests(ResourceRequest... requests) { } @CustomType.Setter public Builder vendorParameters(@Nullable JsonElement vendorParameters) { + this.vendorParameters = vendorParameters; return this; } public DriverRequests build() { - final var o = new DriverRequests(); - o.driverName = driverName; - o.requests = requests; - o.vendorParameters = vendorParameters; - return o; + final var _resultValue = new DriverRequests(); + _resultValue.driverName = driverName; + _resultValue.requests = requests; + _resultValue.vendorParameters = vendorParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequestsPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequestsPatch.java index 4a5ba9302e..1604034e4f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequestsPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/DriverRequestsPatch.java @@ -75,11 +75,13 @@ public Builder(DriverRequestsPatch defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder requests(@Nullable List requests) { + this.requests = requests; return this; } @@ -88,15 +90,16 @@ public Builder requests(ResourceRequestPatch... requests) { } @CustomType.Setter public Builder vendorParameters(@Nullable JsonElement vendorParameters) { + this.vendorParameters = vendorParameters; return this; } public DriverRequestsPatch build() { - final var o = new DriverRequestsPatch(); - o.driverName = driverName; - o.requests = requests; - o.vendorParameters = vendorParameters; - return o; + final var _resultValue = new DriverRequestsPatch(); + _resultValue.driverName = driverName; + _resultValue.requests = requests; + _resultValue.vendorParameters = vendorParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResult.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResult.java index 6d641cc230..88abcba2d8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResult.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResult.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,13 +43,16 @@ public Builder(NamedResourcesAllocationResult defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("NamedResourcesAllocationResult", "name"); + } + this.name = name; return this; } public NamedResourcesAllocationResult build() { - final var o = new NamedResourcesAllocationResult(); - o.name = name; - return o; + final var _resultValue = new NamedResourcesAllocationResult(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResultPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResultPatch.java index d88386645b..4f238663bf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResultPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAllocationResultPatch.java @@ -44,13 +44,14 @@ public Builder(NamedResourcesAllocationResultPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public NamedResourcesAllocationResultPatch build() { - final var o = new NamedResourcesAllocationResultPatch(); - o.name = name; - return o; + final var _resultValue = new NamedResourcesAllocationResultPatch(); + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttribute.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttribute.java index 7f5ffe474a..fbe2cffda9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttribute.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttribute.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesIntSlice; import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesStringSlice; import java.lang.Boolean; @@ -146,55 +147,65 @@ public Builder(NamedResourcesAttribute defaults) { @CustomType.Setter public Builder bool(@Nullable Boolean bool) { + this.bool = bool; return this; } @CustomType.Setter("int") public Builder int_(@Nullable Integer int_) { + this.int_ = int_; return this; } @CustomType.Setter public Builder intSlice(@Nullable NamedResourcesIntSlice intSlice) { + this.intSlice = intSlice; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("NamedResourcesAttribute", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder quantity(@Nullable String quantity) { + this.quantity = quantity; return this; } @CustomType.Setter public Builder string(@Nullable String string) { + this.string = string; return this; } @CustomType.Setter public Builder stringSlice(@Nullable NamedResourcesStringSlice stringSlice) { + this.stringSlice = stringSlice; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } public NamedResourcesAttribute build() { - final var o = new NamedResourcesAttribute(); - o.bool = bool; - o.int_ = int_; - o.intSlice = intSlice; - o.name = name; - o.quantity = quantity; - o.string = string; - o.stringSlice = stringSlice; - o.version = version; - return o; + final var _resultValue = new NamedResourcesAttribute(); + _resultValue.bool = bool; + _resultValue.int_ = int_; + _resultValue.intSlice = intSlice; + _resultValue.name = name; + _resultValue.quantity = quantity; + _resultValue.string = string; + _resultValue.stringSlice = stringSlice; + _resultValue.version = version; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttributePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttributePatch.java index 0ddb3aba45..f2f880037c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttributePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesAttributePatch.java @@ -146,55 +146,63 @@ public Builder(NamedResourcesAttributePatch defaults) { @CustomType.Setter public Builder bool(@Nullable Boolean bool) { + this.bool = bool; return this; } @CustomType.Setter("int") public Builder int_(@Nullable Integer int_) { + this.int_ = int_; return this; } @CustomType.Setter public Builder intSlice(@Nullable NamedResourcesIntSlicePatch intSlice) { + this.intSlice = intSlice; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder quantity(@Nullable String quantity) { + this.quantity = quantity; return this; } @CustomType.Setter public Builder string(@Nullable String string) { + this.string = string; return this; } @CustomType.Setter public Builder stringSlice(@Nullable NamedResourcesStringSlicePatch stringSlice) { + this.stringSlice = stringSlice; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } public NamedResourcesAttributePatch build() { - final var o = new NamedResourcesAttributePatch(); - o.bool = bool; - o.int_ = int_; - o.intSlice = intSlice; - o.name = name; - o.quantity = quantity; - o.string = string; - o.stringSlice = stringSlice; - o.version = version; - return o; + final var _resultValue = new NamedResourcesAttributePatch(); + _resultValue.bool = bool; + _resultValue.int_ = int_; + _resultValue.intSlice = intSlice; + _resultValue.name = name; + _resultValue.quantity = quantity; + _resultValue.string = string; + _resultValue.stringSlice = stringSlice; + _resultValue.version = version; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilter.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilter.java index 936a92c3d3..3351b3c709 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilter.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -52,13 +53,16 @@ public Builder(NamedResourcesFilter defaults) { @CustomType.Setter public Builder selector(String selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("NamedResourcesFilter", "selector"); + } + this.selector = selector; return this; } public NamedResourcesFilter build() { - final var o = new NamedResourcesFilter(); - o.selector = selector; - return o; + final var _resultValue = new NamedResourcesFilter(); + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilterPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilterPatch.java index e1e5e4ae0d..98fa7e50d6 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilterPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesFilterPatch.java @@ -54,13 +54,14 @@ public Builder(NamedResourcesFilterPatch defaults) { @CustomType.Setter public Builder selector(@Nullable String selector) { + this.selector = selector; return this; } public NamedResourcesFilterPatch build() { - final var o = new NamedResourcesFilterPatch(); - o.selector = selector; - return o; + final var _resultValue = new NamedResourcesFilterPatch(); + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstance.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstance.java index c9fe13d01c..90f5a0a67f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstance.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstance.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesAttribute; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(NamedResourcesInstance defaults) { @CustomType.Setter public Builder attributes(@Nullable List attributes) { + this.attributes = attributes; return this; } @@ -67,14 +69,17 @@ public Builder attributes(NamedResourcesAttribute... attributes) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("NamedResourcesInstance", "name"); + } + this.name = name; return this; } public NamedResourcesInstance build() { - final var o = new NamedResourcesInstance(); - o.attributes = attributes; - o.name = name; - return o; + final var _resultValue = new NamedResourcesInstance(); + _resultValue.attributes = attributes; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstancePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstancePatch.java index 4839071c8e..c8501968a1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstancePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesInstancePatch.java @@ -60,6 +60,7 @@ public Builder(NamedResourcesInstancePatch defaults) { @CustomType.Setter public Builder attributes(@Nullable List attributes) { + this.attributes = attributes; return this; } @@ -68,14 +69,15 @@ public Builder attributes(NamedResourcesAttributePatch... attributes) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public NamedResourcesInstancePatch build() { - final var o = new NamedResourcesInstancePatch(); - o.attributes = attributes; - o.name = name; - return o; + final var _resultValue = new NamedResourcesInstancePatch(); + _resultValue.attributes = attributes; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlice.java index 02cf306a33..705ce0d61c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(NamedResourcesIntSlice defaults) { @CustomType.Setter public Builder ints(List ints) { - this.ints = Objects.requireNonNull(ints); + if (ints == null) { + throw new MissingRequiredPropertyException("NamedResourcesIntSlice", "ints"); + } + this.ints = ints; return this; } public Builder ints(Integer... ints) { return ints(List.of(ints)); } public NamedResourcesIntSlice build() { - final var o = new NamedResourcesIntSlice(); - o.ints = ints; - return o; + final var _resultValue = new NamedResourcesIntSlice(); + _resultValue.ints = ints; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlicePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlicePatch.java index 3921f56673..c238894ea7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlicePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesIntSlicePatch.java @@ -44,6 +44,7 @@ public Builder(NamedResourcesIntSlicePatch defaults) { @CustomType.Setter public Builder ints(@Nullable List ints) { + this.ints = ints; return this; } @@ -51,9 +52,9 @@ public Builder ints(Integer... ints) { return ints(List.of(ints)); } public NamedResourcesIntSlicePatch build() { - final var o = new NamedResourcesIntSlicePatch(); - o.ints = ints; - return o; + final var _resultValue = new NamedResourcesIntSlicePatch(); + _resultValue.ints = ints; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequest.java index fee3878c15..5ca03869b5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequest.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -52,13 +53,16 @@ public Builder(NamedResourcesRequest defaults) { @CustomType.Setter public Builder selector(String selector) { - this.selector = Objects.requireNonNull(selector); + if (selector == null) { + throw new MissingRequiredPropertyException("NamedResourcesRequest", "selector"); + } + this.selector = selector; return this; } public NamedResourcesRequest build() { - final var o = new NamedResourcesRequest(); - o.selector = selector; - return o; + final var _resultValue = new NamedResourcesRequest(); + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequestPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequestPatch.java index 9485123e81..c1c7abe14a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequestPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesRequestPatch.java @@ -54,13 +54,14 @@ public Builder(NamedResourcesRequestPatch defaults) { @CustomType.Setter public Builder selector(@Nullable String selector) { + this.selector = selector; return this; } public NamedResourcesRequestPatch build() { - final var o = new NamedResourcesRequestPatch(); - o.selector = selector; - return o; + final var _resultValue = new NamedResourcesRequestPatch(); + _resultValue.selector = selector; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResources.java index 0478d0676e..4d38d221fc 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResources.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesInstance; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(NamedResourcesResources defaults) { @CustomType.Setter public Builder instances(List instances) { - this.instances = Objects.requireNonNull(instances); + if (instances == null) { + throw new MissingRequiredPropertyException("NamedResourcesResources", "instances"); + } + this.instances = instances; return this; } public Builder instances(NamedResourcesInstance... instances) { return instances(List.of(instances)); } public NamedResourcesResources build() { - final var o = new NamedResourcesResources(); - o.instances = instances; - return o; + final var _resultValue = new NamedResourcesResources(); + _resultValue.instances = instances; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResourcesPatch.java index afbecd0d59..e19a98843a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesResourcesPatch.java @@ -44,6 +44,7 @@ public Builder(NamedResourcesResourcesPatch defaults) { @CustomType.Setter public Builder instances(@Nullable List instances) { + this.instances = instances; return this; } @@ -51,9 +52,9 @@ public Builder instances(NamedResourcesInstancePatch... instances) { return instances(List.of(instances)); } public NamedResourcesResourcesPatch build() { - final var o = new NamedResourcesResourcesPatch(); - o.instances = instances; - return o; + final var _resultValue = new NamedResourcesResourcesPatch(); + _resultValue.instances = instances; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlice.java index 6b1920c7ec..8cc49654aa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(NamedResourcesStringSlice defaults) { @CustomType.Setter public Builder strings(List strings) { - this.strings = Objects.requireNonNull(strings); + if (strings == null) { + throw new MissingRequiredPropertyException("NamedResourcesStringSlice", "strings"); + } + this.strings = strings; return this; } public Builder strings(String... strings) { return strings(List.of(strings)); } public NamedResourcesStringSlice build() { - final var o = new NamedResourcesStringSlice(); - o.strings = strings; - return o; + final var _resultValue = new NamedResourcesStringSlice(); + _resultValue.strings = strings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlicePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlicePatch.java index 1a5911f503..c99e094118 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlicePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/NamedResourcesStringSlicePatch.java @@ -44,6 +44,7 @@ public Builder(NamedResourcesStringSlicePatch defaults) { @CustomType.Setter public Builder strings(@Nullable List strings) { + this.strings = strings; return this; } @@ -51,9 +52,9 @@ public Builder strings(String... strings) { return strings(List.of(strings)); } public NamedResourcesStringSlicePatch build() { - final var o = new NamedResourcesStringSlicePatch(); - o.strings = strings; - return o; + final var _resultValue = new NamedResourcesStringSlicePatch(); + _resultValue.strings = strings; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContext.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContext.java index 4fbabf60ca..dbabab8fe8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContext.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContext.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.PodSchedulingContextSpec; import com.pulumi.kubernetes.resource.v1alpha2.outputs.PodSchedulingContextStatus; @@ -103,37 +104,44 @@ public Builder(PodSchedulingContext defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(PodSchedulingContextSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("PodSchedulingContext", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable PodSchedulingContextStatus status) { + this.status = status; return this; } public PodSchedulingContext build() { - final var o = new PodSchedulingContext(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new PodSchedulingContext(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpec.java index 7d45d48313..d44582f861 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpec.java @@ -63,6 +63,7 @@ public Builder(PodSchedulingContextSpec defaults) { @CustomType.Setter public Builder potentialNodes(@Nullable List potentialNodes) { + this.potentialNodes = potentialNodes; return this; } @@ -71,14 +72,15 @@ public Builder potentialNodes(String... potentialNodes) { } @CustomType.Setter public Builder selectedNode(@Nullable String selectedNode) { + this.selectedNode = selectedNode; return this; } public PodSchedulingContextSpec build() { - final var o = new PodSchedulingContextSpec(); - o.potentialNodes = potentialNodes; - o.selectedNode = selectedNode; - return o; + final var _resultValue = new PodSchedulingContextSpec(); + _resultValue.potentialNodes = potentialNodes; + _resultValue.selectedNode = selectedNode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpecPatch.java index f13a05a6e5..c99c7adeff 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextSpecPatch.java @@ -63,6 +63,7 @@ public Builder(PodSchedulingContextSpecPatch defaults) { @CustomType.Setter public Builder potentialNodes(@Nullable List potentialNodes) { + this.potentialNodes = potentialNodes; return this; } @@ -71,14 +72,15 @@ public Builder potentialNodes(String... potentialNodes) { } @CustomType.Setter public Builder selectedNode(@Nullable String selectedNode) { + this.selectedNode = selectedNode; return this; } public PodSchedulingContextSpecPatch build() { - final var o = new PodSchedulingContextSpecPatch(); - o.potentialNodes = potentialNodes; - o.selectedNode = selectedNode; - return o; + final var _resultValue = new PodSchedulingContextSpecPatch(); + _resultValue.potentialNodes = potentialNodes; + _resultValue.selectedNode = selectedNode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatus.java index 3716270028..3571e21f8f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatus.java @@ -44,6 +44,7 @@ public Builder(PodSchedulingContextStatus defaults) { @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -51,9 +52,9 @@ public Builder resourceClaims(ResourceClaimSchedulingStatus... resourceClaims) { return resourceClaims(List.of(resourceClaims)); } public PodSchedulingContextStatus build() { - final var o = new PodSchedulingContextStatus(); - o.resourceClaims = resourceClaims; - return o; + final var _resultValue = new PodSchedulingContextStatus(); + _resultValue.resourceClaims = resourceClaims; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatusPatch.java index 9f22fd1fe1..ff862b9210 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/PodSchedulingContextStatusPatch.java @@ -44,6 +44,7 @@ public Builder(PodSchedulingContextStatusPatch defaults) { @CustomType.Setter public Builder resourceClaims(@Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; return this; } @@ -51,9 +52,9 @@ public Builder resourceClaims(ResourceClaimSchedulingStatusPatch... resourceClai return resourceClaims(List.of(resourceClaims)); } public PodSchedulingContextStatusPatch build() { - final var o = new PodSchedulingContextStatusPatch(); - o.resourceClaims = resourceClaims; - return o; + final var _resultValue = new PodSchedulingContextStatusPatch(); + _resultValue.resourceClaims = resourceClaims; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaim.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaim.java index 4366421f13..aa6631007e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaim.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaim.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimSpec; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimStatus; @@ -103,37 +104,44 @@ public Builder(ResourceClaim defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaim", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable ResourceClaimStatus status) { + this.status = status; return this; } public ResourceClaim build() { - final var o = new ResourceClaim(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new ResourceClaim(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReference.java index 7373505496..9717814d30 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.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,31 +87,41 @@ public Builder(ResourceClaimConsumerReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resource(String resource) { - this.resource = Objects.requireNonNull(resource); + if (resource == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "resource"); + } + this.resource = resource; return this; } @CustomType.Setter public Builder uid(String uid) { - this.uid = Objects.requireNonNull(uid); + if (uid == null) { + throw new MissingRequiredPropertyException("ResourceClaimConsumerReference", "uid"); + } + this.uid = uid; return this; } public ResourceClaimConsumerReference build() { - final var o = new ResourceClaimConsumerReference(); - o.apiGroup = apiGroup; - o.name = name; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ResourceClaimConsumerReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.name = name; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReferencePatch.java index e358cc4b05..2f5b9782ba 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimConsumerReferencePatch.java @@ -86,31 +86,35 @@ public Builder(ResourceClaimConsumerReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder uid(@Nullable String uid) { + this.uid = uid; return this; } public ResourceClaimConsumerReferencePatch build() { - final var o = new ResourceClaimConsumerReferencePatch(); - o.apiGroup = apiGroup; - o.name = name; - o.resource = resource; - o.uid = uid; - return o; + final var _resultValue = new ResourceClaimConsumerReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.name = name; + _resultValue.resource = resource; + _resultValue.uid = uid; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParameters.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParameters.java index 50ce5723d0..cb9311764e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParameters.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParameters.java @@ -123,11 +123,13 @@ public Builder(ResourceClaimParameters defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder driverRequests(@Nullable List driverRequests) { + this.driverRequests = driverRequests; return this; } @@ -136,33 +138,37 @@ public Builder driverRequests(DriverRequests... driverRequests) { } @CustomType.Setter public Builder generatedFrom(@Nullable ResourceClaimParametersReference generatedFrom) { + this.generatedFrom = generatedFrom; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder shareable(@Nullable Boolean shareable) { + this.shareable = shareable; return this; } public ResourceClaimParameters build() { - final var o = new ResourceClaimParameters(); - o.apiVersion = apiVersion; - o.driverRequests = driverRequests; - o.generatedFrom = generatedFrom; - o.kind = kind; - o.metadata = metadata; - o.shareable = shareable; - return o; + final var _resultValue = new ResourceClaimParameters(); + _resultValue.apiVersion = apiVersion; + _resultValue.driverRequests = driverRequests; + _resultValue.generatedFrom = generatedFrom; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.shareable = shareable; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReference.java index 328e354a25..0a44efa8db 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.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,25 +73,32 @@ public Builder(ResourceClaimParametersReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClaimParametersReference", "name"); + } + this.name = name; return this; } public ResourceClaimParametersReference build() { - final var o = new ResourceClaimParametersReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new ResourceClaimParametersReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReferencePatch.java index 093dcdc802..e9be798fee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimParametersReferencePatch.java @@ -72,25 +72,28 @@ public Builder(ResourceClaimParametersReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } public ResourceClaimParametersReferencePatch build() { - final var o = new ResourceClaimParametersReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - return o; + final var _resultValue = new ResourceClaimParametersReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatus.java index d25c5959a9..da94f867ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatus.java @@ -63,11 +63,13 @@ public Builder(ResourceClaimSchedulingStatus defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder unsuitableNodes(@Nullable List unsuitableNodes) { + this.unsuitableNodes = unsuitableNodes; return this; } @@ -75,10 +77,10 @@ public Builder unsuitableNodes(String... unsuitableNodes) { return unsuitableNodes(List.of(unsuitableNodes)); } public ResourceClaimSchedulingStatus build() { - final var o = new ResourceClaimSchedulingStatus(); - o.name = name; - o.unsuitableNodes = unsuitableNodes; - return o; + final var _resultValue = new ResourceClaimSchedulingStatus(); + _resultValue.name = name; + _resultValue.unsuitableNodes = unsuitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatusPatch.java index 8e88a7e4f5..e1b24e274f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSchedulingStatusPatch.java @@ -63,11 +63,13 @@ public Builder(ResourceClaimSchedulingStatusPatch defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder unsuitableNodes(@Nullable List unsuitableNodes) { + this.unsuitableNodes = unsuitableNodes; return this; } @@ -75,10 +77,10 @@ public Builder unsuitableNodes(String... unsuitableNodes) { return unsuitableNodes(List.of(unsuitableNodes)); } public ResourceClaimSchedulingStatusPatch build() { - final var o = new ResourceClaimSchedulingStatusPatch(); - o.name = name; - o.unsuitableNodes = unsuitableNodes; - return o; + final var _resultValue = new ResourceClaimSchedulingStatusPatch(); + _resultValue.name = name; + _resultValue.unsuitableNodes = unsuitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpec.java index c328c2bae2..83782a5ae8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimParametersReference; import java.lang.String; import java.util.Objects; @@ -77,25 +78,30 @@ public Builder(ResourceClaimSpec defaults) { @CustomType.Setter public Builder allocationMode(@Nullable String allocationMode) { + this.allocationMode = allocationMode; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClaimParametersReference parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder resourceClassName(String resourceClassName) { - this.resourceClassName = Objects.requireNonNull(resourceClassName); + if (resourceClassName == null) { + throw new MissingRequiredPropertyException("ResourceClaimSpec", "resourceClassName"); + } + this.resourceClassName = resourceClassName; return this; } public ResourceClaimSpec build() { - final var o = new ResourceClaimSpec(); - o.allocationMode = allocationMode; - o.parametersRef = parametersRef; - o.resourceClassName = resourceClassName; - return o; + final var _resultValue = new ResourceClaimSpec(); + _resultValue.allocationMode = allocationMode; + _resultValue.parametersRef = parametersRef; + _resultValue.resourceClassName = resourceClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpecPatch.java index c81415e60d..5958997045 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimSpecPatch.java @@ -77,25 +77,28 @@ public Builder(ResourceClaimSpecPatch defaults) { @CustomType.Setter public Builder allocationMode(@Nullable String allocationMode) { + this.allocationMode = allocationMode; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClaimParametersReferencePatch parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder resourceClassName(@Nullable String resourceClassName) { + this.resourceClassName = resourceClassName; return this; } public ResourceClaimSpecPatch build() { - final var o = new ResourceClaimSpecPatch(); - o.allocationMode = allocationMode; - o.parametersRef = parametersRef; - o.resourceClassName = resourceClassName; - return o; + final var _resultValue = new ResourceClaimSpecPatch(); + _resultValue.allocationMode = allocationMode; + _resultValue.parametersRef = parametersRef; + _resultValue.resourceClassName = resourceClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatus.java index da6b62a7cb..61ea25c8e3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatus.java @@ -102,21 +102,25 @@ public Builder(ResourceClaimStatus defaults) { @CustomType.Setter public Builder allocation(@Nullable AllocationResult allocation) { + this.allocation = allocation; return this; } @CustomType.Setter public Builder deallocationRequested(@Nullable Boolean deallocationRequested) { + this.deallocationRequested = deallocationRequested; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder reservedFor(@Nullable List reservedFor) { + this.reservedFor = reservedFor; return this; } @@ -124,12 +128,12 @@ public Builder reservedFor(ResourceClaimConsumerReference... reservedFor) { return reservedFor(List.of(reservedFor)); } public ResourceClaimStatus build() { - final var o = new ResourceClaimStatus(); - o.allocation = allocation; - o.deallocationRequested = deallocationRequested; - o.driverName = driverName; - o.reservedFor = reservedFor; - return o; + final var _resultValue = new ResourceClaimStatus(); + _resultValue.allocation = allocation; + _resultValue.deallocationRequested = deallocationRequested; + _resultValue.driverName = driverName; + _resultValue.reservedFor = reservedFor; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatusPatch.java index a387e18559..1bbd0807ee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimStatusPatch.java @@ -102,21 +102,25 @@ public Builder(ResourceClaimStatusPatch defaults) { @CustomType.Setter public Builder allocation(@Nullable AllocationResultPatch allocation) { + this.allocation = allocation; return this; } @CustomType.Setter public Builder deallocationRequested(@Nullable Boolean deallocationRequested) { + this.deallocationRequested = deallocationRequested; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder reservedFor(@Nullable List reservedFor) { + this.reservedFor = reservedFor; return this; } @@ -124,12 +128,12 @@ public Builder reservedFor(ResourceClaimConsumerReferencePatch... reservedFor) { return reservedFor(List.of(reservedFor)); } public ResourceClaimStatusPatch build() { - final var o = new ResourceClaimStatusPatch(); - o.allocation = allocation; - o.deallocationRequested = deallocationRequested; - o.driverName = driverName; - o.reservedFor = reservedFor; - return o; + final var _resultValue = new ResourceClaimStatusPatch(); + _resultValue.allocation = allocation; + _resultValue.deallocationRequested = deallocationRequested; + _resultValue.driverName = driverName; + _resultValue.reservedFor = reservedFor; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplate.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplate.java index b757fab0df..dc34047076 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplate.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimTemplateSpec; import java.lang.String; @@ -92,31 +93,37 @@ public Builder(ResourceClaimTemplate defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimTemplateSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplate", "spec"); + } + this.spec = spec; return this; } public ResourceClaimTemplate build() { - final var o = new ResourceClaimTemplate(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplate(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpec.java index 8fe723c639..b8b0d22b36 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimSpec; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(ResourceClaimTemplateSpec defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(ResourceClaimSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("ResourceClaimTemplateSpec", "spec"); + } + this.spec = spec; return this; } public ResourceClaimTemplateSpec build() { - final var o = new ResourceClaimTemplateSpec(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplateSpec(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpecPatch.java index 3183c12303..d73f4ca9e7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClaimTemplateSpecPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceClaimTemplateSpecPatch defaults) { @CustomType.Setter public Builder metadata(@Nullable ObjectMetaPatch metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable ResourceClaimSpecPatch spec) { + this.spec = spec; return this; } public ResourceClaimTemplateSpecPatch build() { - final var o = new ResourceClaimTemplateSpecPatch(); - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new ResourceClaimTemplateSpecPatch(); + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClass.java index 1d81f1cb42..f6259294ee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.NodeSelector; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClassParametersReference; @@ -140,49 +141,58 @@ public Builder(ResourceClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder driverName(String driverName) { - this.driverName = Objects.requireNonNull(driverName); + if (driverName == null) { + throw new MissingRequiredPropertyException("ResourceClass", "driverName"); + } + this.driverName = driverName; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder parametersRef(@Nullable ResourceClassParametersReference parametersRef) { + this.parametersRef = parametersRef; return this; } @CustomType.Setter public Builder structuredParameters(@Nullable Boolean structuredParameters) { + this.structuredParameters = structuredParameters; return this; } @CustomType.Setter public Builder suitableNodes(@Nullable NodeSelector suitableNodes) { + this.suitableNodes = suitableNodes; return this; } public ResourceClass build() { - final var o = new ResourceClass(); - o.apiVersion = apiVersion; - o.driverName = driverName; - o.kind = kind; - o.metadata = metadata; - o.parametersRef = parametersRef; - o.structuredParameters = structuredParameters; - o.suitableNodes = suitableNodes; - return o; + final var _resultValue = new ResourceClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.driverName = driverName; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.parametersRef = parametersRef; + _resultValue.structuredParameters = structuredParameters; + _resultValue.suitableNodes = suitableNodes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParameters.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParameters.java index 59f9896543..34c8a9d29b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParameters.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParameters.java @@ -119,11 +119,13 @@ public Builder(ResourceClassParameters defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -132,21 +134,25 @@ public Builder filters(ResourceFilter... filters) { } @CustomType.Setter public Builder generatedFrom(@Nullable ResourceClassParametersReference generatedFrom) { + this.generatedFrom = generatedFrom; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder vendorParameters(@Nullable List vendorParameters) { + this.vendorParameters = vendorParameters; return this; } @@ -154,14 +160,14 @@ public Builder vendorParameters(VendorParameters... vendorParameters) { return vendorParameters(List.of(vendorParameters)); } public ResourceClassParameters build() { - final var o = new ResourceClassParameters(); - o.apiVersion = apiVersion; - o.filters = filters; - o.generatedFrom = generatedFrom; - o.kind = kind; - o.metadata = metadata; - o.vendorParameters = vendorParameters; - return o; + final var _resultValue = new ResourceClassParameters(); + _resultValue.apiVersion = apiVersion; + _resultValue.filters = filters; + _resultValue.generatedFrom = generatedFrom; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.vendorParameters = vendorParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReference.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReference.java index a4f944a715..b94e0ac0a9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReference.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReference.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.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,31 +87,39 @@ public Builder(ResourceClassParametersReference defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReference", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ResourceClassParametersReference", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ResourceClassParametersReference build() { - final var o = new ResourceClassParametersReference(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ResourceClassParametersReference(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReferencePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReferencePatch.java index 4d8c269611..f44b161976 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReferencePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceClassParametersReferencePatch.java @@ -86,31 +86,35 @@ public Builder(ResourceClassParametersReferencePatch defaults) { @CustomType.Setter public Builder apiGroup(@Nullable String apiGroup) { + this.apiGroup = apiGroup; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } public ResourceClassParametersReferencePatch build() { - final var o = new ResourceClassParametersReferencePatch(); - o.apiGroup = apiGroup; - o.kind = kind; - o.name = name; - o.namespace = namespace; - return o; + final var _resultValue = new ResourceClassParametersReferencePatch(); + _resultValue.apiGroup = apiGroup; + _resultValue.kind = kind; + _resultValue.name = name; + _resultValue.namespace = namespace; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilter.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilter.java index 7c525acccf..967e6e899c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilter.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilter.java @@ -59,19 +59,21 @@ public Builder(ResourceFilter defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesFilter namedResources) { + this.namedResources = namedResources; return this; } public ResourceFilter build() { - final var o = new ResourceFilter(); - o.driverName = driverName; - o.namedResources = namedResources; - return o; + final var _resultValue = new ResourceFilter(); + _resultValue.driverName = driverName; + _resultValue.namedResources = namedResources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilterPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilterPatch.java index 5a63f53247..b9d7755612 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilterPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceFilterPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceFilterPatch defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesFilterPatch namedResources) { + this.namedResources = namedResources; return this; } public ResourceFilterPatch build() { - final var o = new ResourceFilterPatch(); - o.driverName = driverName; - o.namedResources = namedResources; - return o; + final var _resultValue = new ResourceFilterPatch(); + _resultValue.driverName = driverName; + _resultValue.namedResources = namedResources; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandle.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandle.java index 23b3e77481..ed46786c80 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandle.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandle.java @@ -77,25 +77,28 @@ public Builder(ResourceHandle defaults) { @CustomType.Setter public Builder data(@Nullable String data) { + this.data = data; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder structuredData(@Nullable StructuredResourceHandle structuredData) { + this.structuredData = structuredData; return this; } public ResourceHandle build() { - final var o = new ResourceHandle(); - o.data = data; - o.driverName = driverName; - o.structuredData = structuredData; - return o; + final var _resultValue = new ResourceHandle(); + _resultValue.data = data; + _resultValue.driverName = driverName; + _resultValue.structuredData = structuredData; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandlePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandlePatch.java index 8e734538fb..500812a8ae 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandlePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceHandlePatch.java @@ -77,25 +77,28 @@ public Builder(ResourceHandlePatch defaults) { @CustomType.Setter public Builder data(@Nullable String data) { + this.data = data; return this; } @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder structuredData(@Nullable StructuredResourceHandlePatch structuredData) { + this.structuredData = structuredData; return this; } public ResourceHandlePatch build() { - final var o = new ResourceHandlePatch(); - o.data = data; - o.driverName = driverName; - o.structuredData = structuredData; - return o; + final var _resultValue = new ResourceHandlePatch(); + _resultValue.data = data; + _resultValue.driverName = driverName; + _resultValue.structuredData = structuredData; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequest.java index 13b782892b..12f1ddf0ce 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequest.java @@ -59,19 +59,21 @@ public Builder(ResourceRequest defaults) { @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesRequest namedResources) { + this.namedResources = namedResources; return this; } @CustomType.Setter public Builder vendorParameters(@Nullable JsonElement vendorParameters) { + this.vendorParameters = vendorParameters; return this; } public ResourceRequest build() { - final var o = new ResourceRequest(); - o.namedResources = namedResources; - o.vendorParameters = vendorParameters; - return o; + final var _resultValue = new ResourceRequest(); + _resultValue.namedResources = namedResources; + _resultValue.vendorParameters = vendorParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequestPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequestPatch.java index c7529ea143..35a5642617 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequestPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceRequestPatch.java @@ -59,19 +59,21 @@ public Builder(ResourceRequestPatch defaults) { @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesRequestPatch namedResources) { + this.namedResources = namedResources; return this; } @CustomType.Setter public Builder vendorParameters(@Nullable JsonElement vendorParameters) { + this.vendorParameters = vendorParameters; return this; } public ResourceRequestPatch build() { - final var o = new ResourceRequestPatch(); - o.namedResources = namedResources; - o.vendorParameters = vendorParameters; - return o; + final var _resultValue = new ResourceRequestPatch(); + _resultValue.namedResources = namedResources; + _resultValue.vendorParameters = vendorParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceSlice.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceSlice.java index fe8c1111b4..d6fe248483 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceSlice.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/ResourceSlice.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.resource.v1alpha2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesResources; import java.lang.String; @@ -120,43 +121,51 @@ public Builder(ResourceSlice defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder driverName(String driverName) { - this.driverName = Objects.requireNonNull(driverName); + if (driverName == null) { + throw new MissingRequiredPropertyException("ResourceSlice", "driverName"); + } + this.driverName = driverName; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder namedResources(@Nullable NamedResourcesResources namedResources) { + this.namedResources = namedResources; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } public ResourceSlice build() { - final var o = new ResourceSlice(); - o.apiVersion = apiVersion; - o.driverName = driverName; - o.kind = kind; - o.metadata = metadata; - o.namedResources = namedResources; - o.nodeName = nodeName; - return o; + final var _resultValue = new ResourceSlice(); + _resultValue.apiVersion = apiVersion; + _resultValue.driverName = driverName; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.namedResources = namedResources; + _resultValue.nodeName = nodeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandle.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandle.java index 0c606543c1..2f3775cb46 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandle.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandle.java @@ -5,6 +5,7 @@ import com.google.gson.JsonElement; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.resource.v1alpha2.outputs.DriverAllocationResult; import java.lang.String; import java.util.List; @@ -89,12 +90,16 @@ public Builder(StructuredResourceHandle defaults) { @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder results(List results) { - this.results = Objects.requireNonNull(results); + if (results == null) { + throw new MissingRequiredPropertyException("StructuredResourceHandle", "results"); + } + this.results = results; return this; } public Builder results(DriverAllocationResult... results) { @@ -102,21 +107,23 @@ public Builder results(DriverAllocationResult... results) { } @CustomType.Setter public Builder vendorClaimParameters(@Nullable JsonElement vendorClaimParameters) { + this.vendorClaimParameters = vendorClaimParameters; return this; } @CustomType.Setter public Builder vendorClassParameters(@Nullable JsonElement vendorClassParameters) { + this.vendorClassParameters = vendorClassParameters; return this; } public StructuredResourceHandle build() { - final var o = new StructuredResourceHandle(); - o.nodeName = nodeName; - o.results = results; - o.vendorClaimParameters = vendorClaimParameters; - o.vendorClassParameters = vendorClassParameters; - return o; + final var _resultValue = new StructuredResourceHandle(); + _resultValue.nodeName = nodeName; + _resultValue.results = results; + _resultValue.vendorClaimParameters = vendorClaimParameters; + _resultValue.vendorClassParameters = vendorClassParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandlePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandlePatch.java index 4cff2970aa..02b968c5de 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandlePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/StructuredResourceHandlePatch.java @@ -89,11 +89,13 @@ public Builder(StructuredResourceHandlePatch defaults) { @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder results(@Nullable List results) { + this.results = results; return this; } @@ -102,21 +104,23 @@ public Builder results(DriverAllocationResultPatch... results) { } @CustomType.Setter public Builder vendorClaimParameters(@Nullable JsonElement vendorClaimParameters) { + this.vendorClaimParameters = vendorClaimParameters; return this; } @CustomType.Setter public Builder vendorClassParameters(@Nullable JsonElement vendorClassParameters) { + this.vendorClassParameters = vendorClassParameters; return this; } public StructuredResourceHandlePatch build() { - final var o = new StructuredResourceHandlePatch(); - o.nodeName = nodeName; - o.results = results; - o.vendorClaimParameters = vendorClaimParameters; - o.vendorClassParameters = vendorClassParameters; - return o; + final var _resultValue = new StructuredResourceHandlePatch(); + _resultValue.nodeName = nodeName; + _resultValue.results = results; + _resultValue.vendorClaimParameters = vendorClaimParameters; + _resultValue.vendorClassParameters = vendorClassParameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParameters.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParameters.java index aa96105281..40be73324d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParameters.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParameters.java @@ -59,19 +59,21 @@ public Builder(VendorParameters defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder parameters(@Nullable JsonElement parameters) { + this.parameters = parameters; return this; } public VendorParameters build() { - final var o = new VendorParameters(); - o.driverName = driverName; - o.parameters = parameters; - return o; + final var _resultValue = new VendorParameters(); + _resultValue.driverName = driverName; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParametersPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParametersPatch.java index 67a5dad1e4..7936e3ac1f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParametersPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha2/outputs/VendorParametersPatch.java @@ -59,19 +59,21 @@ public Builder(VendorParametersPatch defaults) { @CustomType.Setter public Builder driverName(@Nullable String driverName) { + this.driverName = driverName; return this; } @CustomType.Setter public Builder parameters(@Nullable JsonElement parameters) { + this.parameters = parameters; return this; } public VendorParametersPatch build() { - final var o = new VendorParametersPatch(); - o.driverName = driverName; - o.parameters = parameters; - return o; + final var _resultValue = new VendorParametersPatch(); + _resultValue.driverName = driverName; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassArgs.java index 4617ffb438..a280eed17f 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -304,7 +305,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassListArgs.java index b5b6c187ca..ecdc0ee965 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/PriorityClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.scheduling.v1.inputs.PriorityClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/inputs/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/inputs/PriorityClassArgs.java index c4470f5f8a..575ece5fb5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/inputs/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/inputs/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -308,7 +309,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/outputs/PriorityClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/outputs/PriorityClass.java index b0fc290d38..972aca8262 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/outputs/PriorityClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1/outputs/PriorityClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.scheduling.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,58 @@ public Builder(PriorityClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder globalDefault(@Nullable Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder preemptionPolicy(@Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("PriorityClass", "value"); + } + this.value = value; return this; } public PriorityClass build() { - final var o = new PriorityClass(); - o.apiVersion = apiVersion; - o.description = description; - o.globalDefault = globalDefault; - o.kind = kind; - o.metadata = metadata; - o.preemptionPolicy = preemptionPolicy; - o.value = value; - return o; + final var _resultValue = new PriorityClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.description = description; + _resultValue.globalDefault = globalDefault; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.preemptionPolicy = preemptionPolicy; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassArgs.java index 9cda420b8c..f87175a54a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -304,7 +305,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassListArgs.java index 4c638d182c..3f788684b2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/PriorityClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.scheduling.v1alpha1.inputs.PriorityClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/inputs/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/inputs/PriorityClassArgs.java index 6e2eec60a4..7e46476ea4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/inputs/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/inputs/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -308,7 +309,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/outputs/PriorityClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/outputs/PriorityClass.java index a61533b662..74a8af4453 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/outputs/PriorityClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1alpha1/outputs/PriorityClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.scheduling.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,58 @@ public Builder(PriorityClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder globalDefault(@Nullable Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder preemptionPolicy(@Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("PriorityClass", "value"); + } + this.value = value; return this; } public PriorityClass build() { - final var o = new PriorityClass(); - o.apiVersion = apiVersion; - o.description = description; - o.globalDefault = globalDefault; - o.kind = kind; - o.metadata = metadata; - o.preemptionPolicy = preemptionPolicy; - o.value = value; - return o; + final var _resultValue = new PriorityClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.description = description; + _resultValue.globalDefault = globalDefault; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.preemptionPolicy = preemptionPolicy; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassArgs.java index 1aa413a4cf..382092b17e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -304,7 +305,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassListArgs.java index e37ba4b75d..160908e420 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/PriorityClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.scheduling.v1beta1.inputs.PriorityClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PriorityClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PriorityClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/inputs/PriorityClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/inputs/PriorityClassArgs.java index f55e37ee1d..c643e06507 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/inputs/PriorityClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/inputs/PriorityClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; import java.lang.Integer; @@ -308,7 +309,9 @@ public Builder value(Integer value) { public PriorityClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("PriorityClassArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/outputs/PriorityClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/outputs/PriorityClass.java index 8f005a9b0c..04f1c5eab9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/outputs/PriorityClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/scheduling/v1beta1/outputs/PriorityClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.scheduling.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Boolean; import java.lang.Integer; @@ -131,49 +132,58 @@ public Builder(PriorityClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder globalDefault(@Nullable Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder preemptionPolicy(@Nullable String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; return this; } @CustomType.Setter public Builder value(Integer value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("PriorityClass", "value"); + } + this.value = value; return this; } public PriorityClass build() { - final var o = new PriorityClass(); - o.apiVersion = apiVersion; - o.description = description; - o.globalDefault = globalDefault; - o.kind = kind; - o.metadata = metadata; - o.preemptionPolicy = preemptionPolicy; - o.value = value; - return o; + final var _resultValue = new PriorityClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.description = description; + _resultValue.globalDefault = globalDefault; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.preemptionPolicy = preemptionPolicy; + _resultValue.value = value; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/PodPresetListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/PodPresetListArgs.java index 7e9f98374a..71162e6cfa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/PodPresetListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/PodPresetListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public PodPresetListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("PodPresetListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPreset.java b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPreset.java index cdedfd045f..5ee52141fa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPreset.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPreset.java @@ -72,31 +72,35 @@ public Builder(PodPreset defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable PodPresetSpec spec) { + this.spec = spec; return this; } public PodPreset build() { - final var o = new PodPreset(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new PodPreset(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpec.java index 7b5bbeabe2..f382f562e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpec.java @@ -105,6 +105,7 @@ public Builder(PodPresetSpec defaults) { @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -113,6 +114,7 @@ public Builder env(EnvVar... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -121,11 +123,13 @@ public Builder envFrom(EnvFromSource... envFrom) { } @CustomType.Setter public Builder selector(@Nullable LabelSelector selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -134,6 +138,7 @@ public Builder volumeMounts(VolumeMount... volumeMounts) { } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -141,13 +146,13 @@ public Builder volumes(Volume... volumes) { return volumes(List.of(volumes)); } public PodPresetSpec build() { - final var o = new PodPresetSpec(); - o.env = env; - o.envFrom = envFrom; - o.selector = selector; - o.volumeMounts = volumeMounts; - o.volumes = volumes; - return o; + final var _resultValue = new PodPresetSpec(); + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.selector = selector; + _resultValue.volumeMounts = volumeMounts; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpecPatch.java index 214355b82e..e9637bab95 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/settings/v1alpha1/outputs/PodPresetSpecPatch.java @@ -105,6 +105,7 @@ public Builder(PodPresetSpecPatch defaults) { @CustomType.Setter public Builder env(@Nullable List env) { + this.env = env; return this; } @@ -113,6 +114,7 @@ public Builder env(EnvVarPatch... env) { } @CustomType.Setter public Builder envFrom(@Nullable List envFrom) { + this.envFrom = envFrom; return this; } @@ -121,11 +123,13 @@ public Builder envFrom(EnvFromSourcePatch... envFrom) { } @CustomType.Setter public Builder selector(@Nullable LabelSelectorPatch selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder volumeMounts(@Nullable List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -134,6 +138,7 @@ public Builder volumeMounts(VolumeMountPatch... volumeMounts) { } @CustomType.Setter public Builder volumes(@Nullable List volumes) { + this.volumes = volumes; return this; } @@ -141,13 +146,13 @@ public Builder volumes(VolumePatch... volumes) { return volumes(List.of(volumes)); } public PodPresetSpecPatch build() { - final var o = new PodPresetSpecPatch(); - o.env = env; - o.envFrom = envFrom; - o.selector = selector; - o.volumeMounts = volumeMounts; - o.volumes = volumes; - return o; + final var _resultValue = new PodPresetSpecPatch(); + _resultValue.env = env; + _resultValue.envFrom = envFrom; + _resultValue.selector = selector; + _resultValue.volumeMounts = volumeMounts; + _resultValue.volumes = volumes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverArgs.java index b794414594..19e8994c1b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSIDriverSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(CSIDriverSpecArgs spec) { public CSIDriverArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSIDriverArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverListArgs.java index 5195be65c4..99b2db30ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIDriverListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSIDriverArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSIDriverListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSIDriverListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeArgs.java index 00fb27b397..53fc35005c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSINodeSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(CSINodeSpecArgs spec) { public CSINodeArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSINodeArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeListArgs.java index 6dd354ac8b..4298009063 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSINodeListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSINodeArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSINodeListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSINodeListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityArgs.java index bd648ea29d..e3b76a5f2a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -335,7 +336,9 @@ public Builder storageClassName(String storageClassName) { public CSIStorageCapacityArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.storageClassName = Objects.requireNonNull($.storageClassName, "expected parameter 'storageClassName' to be non-null"); + if ($.storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityArgs", "storageClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityListArgs.java index d0e7840338..80a4e8e5ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/CSIStorageCapacityListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSIStorageCapacityArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSIStorageCapacityListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassArgs.java index e58a5480a2..ed56d2bef8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TopologySelectorTermArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; @@ -437,7 +438,9 @@ public Builder volumeBindingMode(String volumeBindingMode) { public StorageClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.provisioner = Objects.requireNonNull($.provisioner, "expected parameter 'provisioner' to be non-null"); + if ($.provisioner == null) { + throw new MissingRequiredPropertyException("StorageClassArgs", "provisioner"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassListArgs.java index cb4690c327..19f6a1ab9e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/StorageClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.StorageClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public StorageClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StorageClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentArgs.java index ad47c4f303..00f4a024af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.VolumeAttachmentSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(VolumeAttachmentSpecArgs spec) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentListArgs.java index ee3336910e..152b408539 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/VolumeAttachmentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.VolumeAttachmentArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public VolumeAttachmentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIDriverArgs.java index cb774e40e7..ee84ee810a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIDriverArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSIDriverSpecArgs; import java.lang.String; @@ -196,7 +197,9 @@ public Builder spec(CSIDriverSpecArgs spec) { public CSIDriverArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSIDriverArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeArgs.java index 30c94762b2..745a2bcdb2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.CSINodeSpecArgs; import java.lang.String; @@ -196,7 +197,9 @@ public Builder spec(CSINodeSpecArgs spec) { public CSINodeArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSINodeArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeDriverArgs.java index 51d8a7a73c..d1b6846a79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.inputs.VolumeNodeResourcesArgs; import java.lang.String; import java.util.List; @@ -203,8 +204,12 @@ public Builder topologyKeys(String... topologyKeys) { } public CSINodeDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.nodeID = Objects.requireNonNull($.nodeID, "expected parameter 'nodeID' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("CSINodeDriverArgs", "name"); + } + if ($.nodeID == null) { + throw new MissingRequiredPropertyException("CSINodeDriverArgs", "nodeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeSpecArgs.java index e142fcd806..f0583ba5a0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSINodeSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.inputs.CSINodeDriverArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder drivers(CSINodeDriverArgs... drivers) { } public CSINodeSpecArgs build() { - $.drivers = Objects.requireNonNull($.drivers, "expected parameter 'drivers' to be non-null"); + if ($.drivers == null) { + throw new MissingRequiredPropertyException("CSINodeSpecArgs", "drivers"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIStorageCapacityArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIStorageCapacityArgs.java index bcf53e933a..c86a4debcb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIStorageCapacityArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/CSIStorageCapacityArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -347,7 +348,9 @@ public Builder storageClassName(String storageClassName) { public CSIStorageCapacityArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.storageClassName = Objects.requireNonNull($.storageClassName, "expected parameter 'storageClassName' to be non-null"); + if ($.storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityArgs", "storageClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/StorageClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/StorageClassArgs.java index 722eea690f..eb16fa6ce8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/StorageClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/StorageClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TopologySelectorTermArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; @@ -443,7 +444,9 @@ public Builder volumeBindingMode(String volumeBindingMode) { public StorageClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.provisioner = Objects.requireNonNull($.provisioner, "expected parameter 'provisioner' to be non-null"); + if ($.provisioner == null) { + throw new MissingRequiredPropertyException("StorageClassArgs", "provisioner"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/TokenRequestArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/TokenRequestArgs.java index 53b4e2201a..2d70f5f300 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/TokenRequestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/TokenRequestArgs.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; @@ -118,7 +119,9 @@ public Builder expirationSeconds(Integer expirationSeconds) { } public TokenRequestArgs build() { - $.audience = Objects.requireNonNull($.audience, "expected parameter 'audience' to be non-null"); + if ($.audience == null) { + throw new MissingRequiredPropertyException("TokenRequestArgs", "audience"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentArgs.java index 4f9437b0ea..6d0aa9db29 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1.inputs.VolumeAttachmentSpecArgs; import com.pulumi.kubernetes.storage.v1.inputs.VolumeAttachmentStatusArgs; @@ -236,7 +237,9 @@ public Builder status(VolumeAttachmentStatusArgs status) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentSpecArgs.java index 780b2c1f24..98fbf0eece 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.inputs.VolumeAttachmentSourceArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder source(VolumeAttachmentSourceArgs source) { } public VolumeAttachmentSpecArgs build() { - $.attacher = Objects.requireNonNull($.attacher, "expected parameter 'attacher' to be non-null"); - $.nodeName = Objects.requireNonNull($.nodeName, "expected parameter 'nodeName' to be non-null"); - $.source = Objects.requireNonNull($.source, "expected parameter 'source' to be non-null"); + if ($.attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "attacher"); + } + if ($.nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "nodeName"); + } + if ($.source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "source"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentStatusArgs.java index 94c81558fb..04f8d182e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeAttachmentStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.inputs.VolumeErrorArgs; import java.lang.Boolean; import java.lang.String; @@ -194,7 +195,9 @@ public Builder detachError(VolumeErrorArgs detachError) { } public VolumeAttachmentStatusArgs build() { - $.attached = Objects.requireNonNull($.attached, "expected parameter 'attached' to be non-null"); + if ($.attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatusArgs", "attached"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriver.java index 6fc0314dc1..dc326e3fb2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1.outputs.CSIDriverSpec; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CSIDriver defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CSIDriverSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CSIDriver", "spec"); + } + this.spec = spec; return this; } public CSIDriver build() { - final var o = new CSIDriver(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new CSIDriver(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpec.java index fae4e8afe3..9a5b282bd7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpec.java @@ -231,36 +231,43 @@ public Builder(CSIDriverSpec defaults) { @CustomType.Setter public Builder attachRequired(@Nullable Boolean attachRequired) { + this.attachRequired = attachRequired; return this; } @CustomType.Setter public Builder fsGroupPolicy(@Nullable String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; return this; } @CustomType.Setter public Builder podInfoOnMount(@Nullable Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; return this; } @CustomType.Setter public Builder requiresRepublish(@Nullable Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; return this; } @CustomType.Setter public Builder seLinuxMount(@Nullable Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; return this; } @CustomType.Setter public Builder storageCapacity(@Nullable Boolean storageCapacity) { + this.storageCapacity = storageCapacity; return this; } @CustomType.Setter public Builder tokenRequests(@Nullable List tokenRequests) { + this.tokenRequests = tokenRequests; return this; } @@ -269,6 +276,7 @@ public Builder tokenRequests(TokenRequest... tokenRequests) { } @CustomType.Setter public Builder volumeLifecycleModes(@Nullable List volumeLifecycleModes) { + this.volumeLifecycleModes = volumeLifecycleModes; return this; } @@ -276,16 +284,16 @@ public Builder volumeLifecycleModes(String... volumeLifecycleModes) { return volumeLifecycleModes(List.of(volumeLifecycleModes)); } public CSIDriverSpec build() { - final var o = new CSIDriverSpec(); - o.attachRequired = attachRequired; - o.fsGroupPolicy = fsGroupPolicy; - o.podInfoOnMount = podInfoOnMount; - o.requiresRepublish = requiresRepublish; - o.seLinuxMount = seLinuxMount; - o.storageCapacity = storageCapacity; - o.tokenRequests = tokenRequests; - o.volumeLifecycleModes = volumeLifecycleModes; - return o; + final var _resultValue = new CSIDriverSpec(); + _resultValue.attachRequired = attachRequired; + _resultValue.fsGroupPolicy = fsGroupPolicy; + _resultValue.podInfoOnMount = podInfoOnMount; + _resultValue.requiresRepublish = requiresRepublish; + _resultValue.seLinuxMount = seLinuxMount; + _resultValue.storageCapacity = storageCapacity; + _resultValue.tokenRequests = tokenRequests; + _resultValue.volumeLifecycleModes = volumeLifecycleModes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpecPatch.java index aa8376300b..d42d0b23c4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIDriverSpecPatch.java @@ -231,36 +231,43 @@ public Builder(CSIDriverSpecPatch defaults) { @CustomType.Setter public Builder attachRequired(@Nullable Boolean attachRequired) { + this.attachRequired = attachRequired; return this; } @CustomType.Setter public Builder fsGroupPolicy(@Nullable String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; return this; } @CustomType.Setter public Builder podInfoOnMount(@Nullable Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; return this; } @CustomType.Setter public Builder requiresRepublish(@Nullable Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; return this; } @CustomType.Setter public Builder seLinuxMount(@Nullable Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; return this; } @CustomType.Setter public Builder storageCapacity(@Nullable Boolean storageCapacity) { + this.storageCapacity = storageCapacity; return this; } @CustomType.Setter public Builder tokenRequests(@Nullable List tokenRequests) { + this.tokenRequests = tokenRequests; return this; } @@ -269,6 +276,7 @@ public Builder tokenRequests(TokenRequestPatch... tokenRequests) { } @CustomType.Setter public Builder volumeLifecycleModes(@Nullable List volumeLifecycleModes) { + this.volumeLifecycleModes = volumeLifecycleModes; return this; } @@ -276,16 +284,16 @@ public Builder volumeLifecycleModes(String... volumeLifecycleModes) { return volumeLifecycleModes(List.of(volumeLifecycleModes)); } public CSIDriverSpecPatch build() { - final var o = new CSIDriverSpecPatch(); - o.attachRequired = attachRequired; - o.fsGroupPolicy = fsGroupPolicy; - o.podInfoOnMount = podInfoOnMount; - o.requiresRepublish = requiresRepublish; - o.seLinuxMount = seLinuxMount; - o.storageCapacity = storageCapacity; - o.tokenRequests = tokenRequests; - o.volumeLifecycleModes = volumeLifecycleModes; - return o; + final var _resultValue = new CSIDriverSpecPatch(); + _resultValue.attachRequired = attachRequired; + _resultValue.fsGroupPolicy = fsGroupPolicy; + _resultValue.podInfoOnMount = podInfoOnMount; + _resultValue.requiresRepublish = requiresRepublish; + _resultValue.seLinuxMount = seLinuxMount; + _resultValue.storageCapacity = storageCapacity; + _resultValue.tokenRequests = tokenRequests; + _resultValue.volumeLifecycleModes = volumeLifecycleModes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINode.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINode.java index 608176d394..3c7b8fed42 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINode.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINode.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1.outputs.CSINodeSpec; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CSINode defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CSINodeSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CSINode", "spec"); + } + this.spec = spec; return this; } public CSINode build() { - final var o = new CSINode(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new CSINode(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriver.java index 0ad3bc4699..d815b9f581 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.outputs.VolumeNodeResources; import java.lang.String; import java.util.List; @@ -88,21 +89,29 @@ public Builder(CSINodeDriver defaults) { @CustomType.Setter public Builder allocatable(@Nullable VolumeNodeResources allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CSINodeDriver", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeID(String nodeID) { - this.nodeID = Objects.requireNonNull(nodeID); + if (nodeID == null) { + throw new MissingRequiredPropertyException("CSINodeDriver", "nodeID"); + } + this.nodeID = nodeID; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -110,12 +119,12 @@ public Builder topologyKeys(String... topologyKeys) { return topologyKeys(List.of(topologyKeys)); } public CSINodeDriver build() { - final var o = new CSINodeDriver(); - o.allocatable = allocatable; - o.name = name; - o.nodeID = nodeID; - o.topologyKeys = topologyKeys; - return o; + final var _resultValue = new CSINodeDriver(); + _resultValue.allocatable = allocatable; + _resultValue.name = name; + _resultValue.nodeID = nodeID; + _resultValue.topologyKeys = topologyKeys; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriverPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriverPatch.java index c409df4f35..fdaa1e901a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriverPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeDriverPatch.java @@ -88,21 +88,25 @@ public Builder(CSINodeDriverPatch defaults) { @CustomType.Setter public Builder allocatable(@Nullable VolumeNodeResourcesPatch allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodeID(@Nullable String nodeID) { + this.nodeID = nodeID; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -110,12 +114,12 @@ public Builder topologyKeys(String... topologyKeys) { return topologyKeys(List.of(topologyKeys)); } public CSINodeDriverPatch build() { - final var o = new CSINodeDriverPatch(); - o.allocatable = allocatable; - o.name = name; - o.nodeID = nodeID; - o.topologyKeys = topologyKeys; - return o; + final var _resultValue = new CSINodeDriverPatch(); + _resultValue.allocatable = allocatable; + _resultValue.name = name; + _resultValue.nodeID = nodeID; + _resultValue.topologyKeys = topologyKeys; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpec.java index bb9f7fa4ff..3325dd0141 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.outputs.CSINodeDriver; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(CSINodeSpec defaults) { @CustomType.Setter public Builder drivers(List drivers) { - this.drivers = Objects.requireNonNull(drivers); + if (drivers == null) { + throw new MissingRequiredPropertyException("CSINodeSpec", "drivers"); + } + this.drivers = drivers; return this; } public Builder drivers(CSINodeDriver... drivers) { return drivers(List.of(drivers)); } public CSINodeSpec build() { - final var o = new CSINodeSpec(); - o.drivers = drivers; - return o; + final var _resultValue = new CSINodeSpec(); + _resultValue.drivers = drivers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpecPatch.java index 78e943fab7..e74829fcd2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSINodeSpecPatch.java @@ -44,6 +44,7 @@ public Builder(CSINodeSpecPatch defaults) { @CustomType.Setter public Builder drivers(@Nullable List drivers) { + this.drivers = drivers; return this; } @@ -51,9 +52,9 @@ public Builder drivers(CSINodeDriverPatch... drivers) { return drivers(List.of(drivers)); } public CSINodeSpecPatch build() { - final var o = new CSINodeSpecPatch(); - o.drivers = drivers; - return o; + final var _resultValue = new CSINodeSpecPatch(); + _resultValue.drivers = drivers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIStorageCapacity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIStorageCapacity.java index 3af39e5cf6..74d3f5c3ef 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIStorageCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/CSIStorageCapacity.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.String; @@ -146,49 +147,58 @@ public Builder(CSIStorageCapacity defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder capacity(@Nullable String capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder maximumVolumeSize(@Nullable String maximumVolumeSize) { + this.maximumVolumeSize = maximumVolumeSize; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder nodeTopology(@Nullable LabelSelector nodeTopology) { + this.nodeTopology = nodeTopology; return this; } @CustomType.Setter public Builder storageClassName(String storageClassName) { - this.storageClassName = Objects.requireNonNull(storageClassName); + if (storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacity", "storageClassName"); + } + this.storageClassName = storageClassName; return this; } public CSIStorageCapacity build() { - final var o = new CSIStorageCapacity(); - o.apiVersion = apiVersion; - o.capacity = capacity; - o.kind = kind; - o.maximumVolumeSize = maximumVolumeSize; - o.metadata = metadata; - o.nodeTopology = nodeTopology; - o.storageClassName = storageClassName; - return o; + final var _resultValue = new CSIStorageCapacity(); + _resultValue.apiVersion = apiVersion; + _resultValue.capacity = capacity; + _resultValue.kind = kind; + _resultValue.maximumVolumeSize = maximumVolumeSize; + _resultValue.metadata = metadata; + _resultValue.nodeTopology = nodeTopology; + _resultValue.storageClassName = storageClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/StorageClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/StorageClass.java index 9bb7fec318..9e1fd8f9c0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/StorageClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/StorageClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.TopologySelectorTerm; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Boolean; @@ -175,11 +176,13 @@ public Builder(StorageClass defaults) { @CustomType.Setter public Builder allowVolumeExpansion(@Nullable Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; return this; } @CustomType.Setter public Builder allowedTopologies(@Nullable List allowedTopologies) { + this.allowedTopologies = allowedTopologies; return this; } @@ -188,21 +191,25 @@ public Builder allowedTopologies(TopologySelectorTerm... allowedTopologies) { } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder mountOptions(@Nullable List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -211,37 +218,43 @@ public Builder mountOptions(String... mountOptions) { } @CustomType.Setter public Builder parameters(@Nullable Map parameters) { + this.parameters = parameters; return this; } @CustomType.Setter public Builder provisioner(String provisioner) { - this.provisioner = Objects.requireNonNull(provisioner); + if (provisioner == null) { + throw new MissingRequiredPropertyException("StorageClass", "provisioner"); + } + this.provisioner = provisioner; return this; } @CustomType.Setter public Builder reclaimPolicy(@Nullable String reclaimPolicy) { + this.reclaimPolicy = reclaimPolicy; return this; } @CustomType.Setter public Builder volumeBindingMode(@Nullable String volumeBindingMode) { + this.volumeBindingMode = volumeBindingMode; return this; } public StorageClass build() { - final var o = new StorageClass(); - o.allowVolumeExpansion = allowVolumeExpansion; - o.allowedTopologies = allowedTopologies; - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.mountOptions = mountOptions; - o.parameters = parameters; - o.provisioner = provisioner; - o.reclaimPolicy = reclaimPolicy; - o.volumeBindingMode = volumeBindingMode; - return o; + final var _resultValue = new StorageClass(); + _resultValue.allowVolumeExpansion = allowVolumeExpansion; + _resultValue.allowedTopologies = allowedTopologies; + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.mountOptions = mountOptions; + _resultValue.parameters = parameters; + _resultValue.provisioner = provisioner; + _resultValue.reclaimPolicy = reclaimPolicy; + _resultValue.volumeBindingMode = volumeBindingMode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequest.java index 49d3ee432b..25fd29146d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequest.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(TokenRequest defaults) { @CustomType.Setter public Builder audience(String audience) { - this.audience = Objects.requireNonNull(audience); + if (audience == null) { + throw new MissingRequiredPropertyException("TokenRequest", "audience"); + } + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } public TokenRequest build() { - final var o = new TokenRequest(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - return o; + final var _resultValue = new TokenRequest(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequestPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequestPatch.java index 555a94ee07..905fa64b0b 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequestPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/TokenRequestPatch.java @@ -59,19 +59,21 @@ public Builder(TokenRequestPatch defaults) { @CustomType.Setter public Builder audience(@Nullable String audience) { + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } public TokenRequestPatch build() { - final var o = new TokenRequestPatch(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - return o; + final var _resultValue = new TokenRequestPatch(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachment.java index 9acec947e7..c215a1944c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachment.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1.outputs.VolumeAttachmentSpec; import com.pulumi.kubernetes.storage.v1.outputs.VolumeAttachmentStatus; @@ -103,37 +104,44 @@ public Builder(VolumeAttachment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(VolumeAttachmentSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachment", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable VolumeAttachmentStatus status) { + this.status = status; return this; } public VolumeAttachment build() { - final var o = new VolumeAttachment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new VolumeAttachment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSource.java index 12aff64924..c5dfb93f66 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSource.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSource defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSource build() { - final var o = new VolumeAttachmentSource(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSource(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSourcePatch.java index 7477fa031a..f7e68ff13d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSourcePatch.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSourcePatch defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpecPatch inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSourcePatch build() { - final var o = new VolumeAttachmentSourcePatch(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSourcePatch(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpec.java index 15864763fc..9b2531f79e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.outputs.VolumeAttachmentSource; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(VolumeAttachmentSpec defaults) { @CustomType.Setter public Builder attacher(String attacher) { - this.attacher = Objects.requireNonNull(attacher); + if (attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "attacher"); + } + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(String nodeName) { - this.nodeName = Objects.requireNonNull(nodeName); + if (nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "nodeName"); + } + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(VolumeAttachmentSource source) { - this.source = Objects.requireNonNull(source); + if (source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "source"); + } + this.source = source; return this; } public VolumeAttachmentSpec build() { - final var o = new VolumeAttachmentSpec(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpec(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpecPatch.java index f945a4d602..d8e36d4bbf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentSpecPatch.java @@ -73,25 +73,28 @@ public Builder(VolumeAttachmentSpecPatch defaults) { @CustomType.Setter public Builder attacher(@Nullable String attacher) { + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(@Nullable VolumeAttachmentSourcePatch source) { + this.source = source; return this; } public VolumeAttachmentSpecPatch build() { - final var o = new VolumeAttachmentSpecPatch(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpecPatch(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatus.java index 90de25f649..9772aa9b3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1.outputs.VolumeError; import java.lang.Boolean; import java.lang.String; @@ -89,31 +90,37 @@ public Builder(VolumeAttachmentStatus defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeError attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(Boolean attached) { - this.attached = Objects.requireNonNull(attached); + if (attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatus", "attached"); + } + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeError detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatus build() { - final var o = new VolumeAttachmentStatus(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatus(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatusPatch.java index 7398b3bad4..76499d6cb1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeAttachmentStatusPatch.java @@ -89,31 +89,35 @@ public Builder(VolumeAttachmentStatusPatch defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeErrorPatch attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(@Nullable Boolean attached) { + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeErrorPatch detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatusPatch build() { - final var o = new VolumeAttachmentStatusPatch(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatusPatch(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeError.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeError.java index e6096ec3bd..5a4bd5ac50 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeError.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeError.java @@ -58,19 +58,21 @@ public Builder(VolumeError defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeError build() { - final var o = new VolumeError(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeError(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeErrorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeErrorPatch.java index 4f1ba80207..1c7e2707ac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeErrorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeErrorPatch.java @@ -58,19 +58,21 @@ public Builder(VolumeErrorPatch defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeErrorPatch build() { - final var o = new VolumeErrorPatch(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeErrorPatch(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResources.java index b432ce33e7..0964b37306 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResources.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeResources defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } public VolumeNodeResources build() { - final var o = new VolumeNodeResources(); - o.count = count; - return o; + final var _resultValue = new VolumeNodeResources(); + _resultValue.count = count; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResourcesPatch.java index ddda6ccddf..084009d368 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/outputs/VolumeNodeResourcesPatch.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeResourcesPatch defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } public VolumeNodeResourcesPatch build() { - final var o = new VolumeNodeResourcesPatch(); - o.count = count; - return o; + final var _resultValue = new VolumeNodeResourcesPatch(); + _resultValue.count = count; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentArgs.java index fcebff4b37..8674dbaa15 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttachmentSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(VolumeAttachmentSpecArgs spec) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentListArgs.java index 9e33746265..32e368bedd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttachmentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttachmentArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public VolumeAttachmentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassArgs.java index 3e04004ced..7f8315363d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; import java.util.Map; @@ -236,7 +237,9 @@ public Builder parameters(Map parameters) { public VolumeAttributesClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("VolumeAttributesClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassListArgs.java index f6df57b602..9f6779f1a2 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/VolumeAttributesClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttributesClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public VolumeAttributesClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("VolumeAttributesClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentArgs.java index a102b4e99c..f49591e759 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttachmentSpecArgs; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttachmentStatusArgs; @@ -236,7 +237,9 @@ public Builder status(VolumeAttachmentStatusArgs status) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentSpecArgs.java index d0ad5e1826..37128fc7f3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeAttachmentSourceArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder source(VolumeAttachmentSourceArgs source) { } public VolumeAttachmentSpecArgs build() { - $.attacher = Objects.requireNonNull($.attacher, "expected parameter 'attacher' to be non-null"); - $.nodeName = Objects.requireNonNull($.nodeName, "expected parameter 'nodeName' to be non-null"); - $.source = Objects.requireNonNull($.source, "expected parameter 'source' to be non-null"); + if ($.attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "attacher"); + } + if ($.nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "nodeName"); + } + if ($.source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "source"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentStatusArgs.java index f85953d23a..4b46d9bd63 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttachmentStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeErrorArgs; import java.lang.Boolean; import java.lang.String; @@ -194,7 +195,9 @@ public Builder detachError(VolumeErrorArgs detachError) { } public VolumeAttachmentStatusArgs build() { - $.attached = Objects.requireNonNull($.attached, "expected parameter 'attached' to be non-null"); + if ($.attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatusArgs", "attached"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttributesClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttributesClassArgs.java index 2089f0a927..8ae5bfd124 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttributesClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/inputs/VolumeAttributesClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; import java.util.Map; @@ -240,7 +241,9 @@ public Builder parameters(Map parameters) { public VolumeAttributesClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.driverName = Objects.requireNonNull($.driverName, "expected parameter 'driverName' to be non-null"); + if ($.driverName == null) { + throw new MissingRequiredPropertyException("VolumeAttributesClassArgs", "driverName"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachment.java index dc155d43ca..cef47c27e0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachment.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1alpha1.outputs.VolumeAttachmentSpec; import com.pulumi.kubernetes.storage.v1alpha1.outputs.VolumeAttachmentStatus; @@ -103,37 +104,44 @@ public Builder(VolumeAttachment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(VolumeAttachmentSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachment", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable VolumeAttachmentStatus status) { + this.status = status; return this; } public VolumeAttachment build() { - final var o = new VolumeAttachment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new VolumeAttachment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSource.java index 8eafec6a82..f52cb5279d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSource.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSource defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSource build() { - final var o = new VolumeAttachmentSource(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSource(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSourcePatch.java index 3e9a0d0e04..aab07dac04 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSourcePatch.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSourcePatch defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpecPatch inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSourcePatch build() { - final var o = new VolumeAttachmentSourcePatch(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSourcePatch(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpec.java index d3ad91477c..6be0727c05 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1alpha1.outputs.VolumeAttachmentSource; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(VolumeAttachmentSpec defaults) { @CustomType.Setter public Builder attacher(String attacher) { - this.attacher = Objects.requireNonNull(attacher); + if (attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "attacher"); + } + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(String nodeName) { - this.nodeName = Objects.requireNonNull(nodeName); + if (nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "nodeName"); + } + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(VolumeAttachmentSource source) { - this.source = Objects.requireNonNull(source); + if (source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "source"); + } + this.source = source; return this; } public VolumeAttachmentSpec build() { - final var o = new VolumeAttachmentSpec(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpec(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpecPatch.java index db3baf5c5e..b125d3ed3d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentSpecPatch.java @@ -73,25 +73,28 @@ public Builder(VolumeAttachmentSpecPatch defaults) { @CustomType.Setter public Builder attacher(@Nullable String attacher) { + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(@Nullable VolumeAttachmentSourcePatch source) { + this.source = source; return this; } public VolumeAttachmentSpecPatch build() { - final var o = new VolumeAttachmentSpecPatch(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpecPatch(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatus.java index bc570a6588..3048d68baf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1alpha1.outputs.VolumeError; import java.lang.Boolean; import java.lang.String; @@ -89,31 +90,37 @@ public Builder(VolumeAttachmentStatus defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeError attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(Boolean attached) { - this.attached = Objects.requireNonNull(attached); + if (attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatus", "attached"); + } + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeError detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatus build() { - final var o = new VolumeAttachmentStatus(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatus(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatusPatch.java index fec6b5ae7e..265ea139d7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttachmentStatusPatch.java @@ -89,31 +89,35 @@ public Builder(VolumeAttachmentStatusPatch defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeErrorPatch attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(@Nullable Boolean attached) { + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeErrorPatch detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatusPatch build() { - final var o = new VolumeAttachmentStatusPatch(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatusPatch(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttributesClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttributesClass.java index d107b715b2..4e87ad614c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttributesClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeAttributesClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.String; import java.util.Map; @@ -106,37 +107,44 @@ public Builder(VolumeAttributesClass defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder driverName(String driverName) { - this.driverName = Objects.requireNonNull(driverName); + if (driverName == null) { + throw new MissingRequiredPropertyException("VolumeAttributesClass", "driverName"); + } + this.driverName = driverName; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder parameters(@Nullable Map parameters) { + this.parameters = parameters; return this; } public VolumeAttributesClass build() { - final var o = new VolumeAttributesClass(); - o.apiVersion = apiVersion; - o.driverName = driverName; - o.kind = kind; - o.metadata = metadata; - o.parameters = parameters; - return o; + final var _resultValue = new VolumeAttributesClass(); + _resultValue.apiVersion = apiVersion; + _resultValue.driverName = driverName; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.parameters = parameters; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeError.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeError.java index 4733b35302..a6a7a73e93 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeError.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeError.java @@ -58,19 +58,21 @@ public Builder(VolumeError defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeError build() { - final var o = new VolumeError(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeError(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeErrorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeErrorPatch.java index 517b789978..4ba9c598af 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeErrorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1alpha1/outputs/VolumeErrorPatch.java @@ -58,19 +58,21 @@ public Builder(VolumeErrorPatch defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeErrorPatch build() { - final var o = new VolumeErrorPatch(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeErrorPatch(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverArgs.java index b0dc0299e3..8ba90766c7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSIDriverSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(CSIDriverSpecArgs spec) { public CSIDriverArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSIDriverArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverListArgs.java index 2e5fccabbf..72b0541029 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIDriverListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSIDriverArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSIDriverListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSIDriverListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeArgs.java index c98b835735..6a5f0239e8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSINodeSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(CSINodeSpecArgs spec) { public CSINodeArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSINodeArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeListArgs.java index 5c13047005..5006b3f1b3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSINodeListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSINodeArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSINodeListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSINodeListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityArgs.java index feac851820..20237c5986 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -335,7 +336,9 @@ public Builder storageClassName(String storageClassName) { public CSIStorageCapacityArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.storageClassName = Objects.requireNonNull($.storageClassName, "expected parameter 'storageClassName' to be non-null"); + if ($.storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityArgs", "storageClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityListArgs.java index 929a05b6d7..3e0a265409 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/CSIStorageCapacityListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSIStorageCapacityArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public CSIStorageCapacityListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassArgs.java index e529db181d..36d7d5ada3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TopologySelectorTermArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; @@ -437,7 +438,9 @@ public Builder volumeBindingMode(String volumeBindingMode) { public StorageClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.provisioner = Objects.requireNonNull($.provisioner, "expected parameter 'provisioner' to be non-null"); + if ($.provisioner == null) { + throw new MissingRequiredPropertyException("StorageClassArgs", "provisioner"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassListArgs.java index 6878d594b6..a5f5e34c19 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/StorageClassListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.StorageClassArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public StorageClassListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StorageClassListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentArgs.java index c7638127ce..2ae07ff16e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeAttachmentSpecArgs; import java.lang.String; @@ -192,7 +193,9 @@ public Builder spec(VolumeAttachmentSpecArgs spec) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentListArgs.java index 506c238dd6..b8b351a3f1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/VolumeAttachmentListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeAttachmentArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public VolumeAttachmentListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIDriverArgs.java index f38a83e081..f7abc4c3b4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIDriverArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSIDriverSpecArgs; import java.lang.String; @@ -196,7 +197,9 @@ public Builder spec(CSIDriverSpecArgs spec) { public CSIDriverArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSIDriverArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeArgs.java index a25f78ec8e..c4ffc77da0 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSINodeSpecArgs; import java.lang.String; @@ -196,7 +197,9 @@ public Builder spec(CSINodeSpecArgs spec) { public CSINodeArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("CSINodeArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeDriverArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeDriverArgs.java index c1ba17afa4..480c784b03 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeNodeResourcesArgs; import java.lang.String; import java.util.List; @@ -203,8 +204,12 @@ public Builder topologyKeys(String... topologyKeys) { } public CSINodeDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.nodeID = Objects.requireNonNull($.nodeID, "expected parameter 'nodeID' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("CSINodeDriverArgs", "name"); + } + if ($.nodeID == null) { + throw new MissingRequiredPropertyException("CSINodeDriverArgs", "nodeID"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeSpecArgs.java index b5a63c33e1..30aafa07a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSINodeSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.inputs.CSINodeDriverArgs; import java.util.List; import java.util.Objects; @@ -89,7 +90,9 @@ public Builder drivers(CSINodeDriverArgs... drivers) { } public CSINodeSpecArgs build() { - $.drivers = Objects.requireNonNull($.drivers, "expected parameter 'drivers' to be non-null"); + if ($.drivers == null) { + throw new MissingRequiredPropertyException("CSINodeSpecArgs", "drivers"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIStorageCapacityArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIStorageCapacityArgs.java index 51a9aba60c..b8d9c098e9 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIStorageCapacityArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/CSIStorageCapacityArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.LabelSelectorArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.String; @@ -347,7 +348,9 @@ public Builder storageClassName(String storageClassName) { public CSIStorageCapacityArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.storageClassName = Objects.requireNonNull($.storageClassName, "expected parameter 'storageClassName' to be non-null"); + if ($.storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacityArgs", "storageClassName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/StorageClassArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/StorageClassArgs.java index e7aea185b4..70ba074923 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/StorageClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/StorageClassArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.inputs.TopologySelectorTermArgs; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import java.lang.Boolean; @@ -443,7 +444,9 @@ public Builder volumeBindingMode(String volumeBindingMode) { public StorageClassArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.provisioner = Objects.requireNonNull($.provisioner, "expected parameter 'provisioner' to be non-null"); + if ($.provisioner == null) { + throw new MissingRequiredPropertyException("StorageClassArgs", "provisioner"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/TokenRequestArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/TokenRequestArgs.java index 963cf396f9..f752f805b8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/TokenRequestArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/TokenRequestArgs.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; @@ -118,7 +119,9 @@ public Builder expirationSeconds(Integer expirationSeconds) { } public TokenRequestArgs build() { - $.audience = Objects.requireNonNull($.audience, "expected parameter 'audience' to be non-null"); + if ($.audience == null) { + throw new MissingRequiredPropertyException("TokenRequestArgs", "audience"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentArgs.java index 5a9fed0988..48bde39d23 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeAttachmentSpecArgs; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeAttachmentStatusArgs; @@ -236,7 +237,9 @@ public Builder status(VolumeAttachmentStatusArgs status) { public VolumeAttachmentArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); - $.spec = Objects.requireNonNull($.spec, "expected parameter 'spec' to be non-null"); + if ($.spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "spec"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentSpecArgs.java index 40bbad6ce3..616cffa14a 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeAttachmentSourceArgs; import java.lang.String; import java.util.Objects; @@ -153,9 +154,15 @@ public Builder source(VolumeAttachmentSourceArgs source) { } public VolumeAttachmentSpecArgs build() { - $.attacher = Objects.requireNonNull($.attacher, "expected parameter 'attacher' to be non-null"); - $.nodeName = Objects.requireNonNull($.nodeName, "expected parameter 'nodeName' to be non-null"); - $.source = Objects.requireNonNull($.source, "expected parameter 'source' to be non-null"); + if ($.attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "attacher"); + } + if ($.nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "nodeName"); + } + if ($.source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpecArgs", "source"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentStatusArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentStatusArgs.java index 4bdbc1226b..f2ce2dccaf 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentStatusArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/inputs/VolumeAttachmentStatusArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.inputs.VolumeErrorArgs; import java.lang.Boolean; import java.lang.String; @@ -194,7 +195,9 @@ public Builder detachError(VolumeErrorArgs detachError) { } public VolumeAttachmentStatusArgs build() { - $.attached = Objects.requireNonNull($.attached, "expected parameter 'attached' to be non-null"); + if ($.attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatusArgs", "attached"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriver.java index 80306e2b3d..985b42ac28 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1beta1.outputs.CSIDriverSpec; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CSIDriver defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CSIDriverSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CSIDriver", "spec"); + } + this.spec = spec; return this; } public CSIDriver build() { - final var o = new CSIDriver(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new CSIDriver(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpec.java index 203e1926cc..99dcd3ccc1 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpec.java @@ -177,31 +177,37 @@ public Builder(CSIDriverSpec defaults) { @CustomType.Setter public Builder attachRequired(@Nullable Boolean attachRequired) { + this.attachRequired = attachRequired; return this; } @CustomType.Setter public Builder fsGroupPolicy(@Nullable String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; return this; } @CustomType.Setter public Builder podInfoOnMount(@Nullable Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; return this; } @CustomType.Setter public Builder requiresRepublish(@Nullable Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; return this; } @CustomType.Setter public Builder storageCapacity(@Nullable Boolean storageCapacity) { + this.storageCapacity = storageCapacity; return this; } @CustomType.Setter public Builder tokenRequests(@Nullable List tokenRequests) { + this.tokenRequests = tokenRequests; return this; } @@ -210,6 +216,7 @@ public Builder tokenRequests(TokenRequest... tokenRequests) { } @CustomType.Setter public Builder volumeLifecycleModes(@Nullable List volumeLifecycleModes) { + this.volumeLifecycleModes = volumeLifecycleModes; return this; } @@ -217,15 +224,15 @@ public Builder volumeLifecycleModes(String... volumeLifecycleModes) { return volumeLifecycleModes(List.of(volumeLifecycleModes)); } public CSIDriverSpec build() { - final var o = new CSIDriverSpec(); - o.attachRequired = attachRequired; - o.fsGroupPolicy = fsGroupPolicy; - o.podInfoOnMount = podInfoOnMount; - o.requiresRepublish = requiresRepublish; - o.storageCapacity = storageCapacity; - o.tokenRequests = tokenRequests; - o.volumeLifecycleModes = volumeLifecycleModes; - return o; + final var _resultValue = new CSIDriverSpec(); + _resultValue.attachRequired = attachRequired; + _resultValue.fsGroupPolicy = fsGroupPolicy; + _resultValue.podInfoOnMount = podInfoOnMount; + _resultValue.requiresRepublish = requiresRepublish; + _resultValue.storageCapacity = storageCapacity; + _resultValue.tokenRequests = tokenRequests; + _resultValue.volumeLifecycleModes = volumeLifecycleModes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpecPatch.java index 74cf1c4747..0f317648ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIDriverSpecPatch.java @@ -177,31 +177,37 @@ public Builder(CSIDriverSpecPatch defaults) { @CustomType.Setter public Builder attachRequired(@Nullable Boolean attachRequired) { + this.attachRequired = attachRequired; return this; } @CustomType.Setter public Builder fsGroupPolicy(@Nullable String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; return this; } @CustomType.Setter public Builder podInfoOnMount(@Nullable Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; return this; } @CustomType.Setter public Builder requiresRepublish(@Nullable Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; return this; } @CustomType.Setter public Builder storageCapacity(@Nullable Boolean storageCapacity) { + this.storageCapacity = storageCapacity; return this; } @CustomType.Setter public Builder tokenRequests(@Nullable List tokenRequests) { + this.tokenRequests = tokenRequests; return this; } @@ -210,6 +216,7 @@ public Builder tokenRequests(TokenRequestPatch... tokenRequests) { } @CustomType.Setter public Builder volumeLifecycleModes(@Nullable List volumeLifecycleModes) { + this.volumeLifecycleModes = volumeLifecycleModes; return this; } @@ -217,15 +224,15 @@ public Builder volumeLifecycleModes(String... volumeLifecycleModes) { return volumeLifecycleModes(List.of(volumeLifecycleModes)); } public CSIDriverSpecPatch build() { - final var o = new CSIDriverSpecPatch(); - o.attachRequired = attachRequired; - o.fsGroupPolicy = fsGroupPolicy; - o.podInfoOnMount = podInfoOnMount; - o.requiresRepublish = requiresRepublish; - o.storageCapacity = storageCapacity; - o.tokenRequests = tokenRequests; - o.volumeLifecycleModes = volumeLifecycleModes; - return o; + final var _resultValue = new CSIDriverSpecPatch(); + _resultValue.attachRequired = attachRequired; + _resultValue.fsGroupPolicy = fsGroupPolicy; + _resultValue.podInfoOnMount = podInfoOnMount; + _resultValue.requiresRepublish = requiresRepublish; + _resultValue.storageCapacity = storageCapacity; + _resultValue.tokenRequests = tokenRequests; + _resultValue.volumeLifecycleModes = volumeLifecycleModes; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINode.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINode.java index 48ed9f9d11..422ceb9f92 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINode.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINode.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1beta1.outputs.CSINodeSpec; import java.lang.String; @@ -88,31 +89,37 @@ public Builder(CSINode defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(CSINodeSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("CSINode", "spec"); + } + this.spec = spec; return this; } public CSINode build() { - final var o = new CSINode(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - return o; + final var _resultValue = new CSINode(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriver.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriver.java index 9696021d69..e6fea1bcb7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriver.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriver.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeNodeResources; import java.lang.String; import java.util.List; @@ -88,21 +89,29 @@ public Builder(CSINodeDriver defaults) { @CustomType.Setter public Builder allocatable(@Nullable VolumeNodeResources allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("CSINodeDriver", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeID(String nodeID) { - this.nodeID = Objects.requireNonNull(nodeID); + if (nodeID == null) { + throw new MissingRequiredPropertyException("CSINodeDriver", "nodeID"); + } + this.nodeID = nodeID; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -110,12 +119,12 @@ public Builder topologyKeys(String... topologyKeys) { return topologyKeys(List.of(topologyKeys)); } public CSINodeDriver build() { - final var o = new CSINodeDriver(); - o.allocatable = allocatable; - o.name = name; - o.nodeID = nodeID; - o.topologyKeys = topologyKeys; - return o; + final var _resultValue = new CSINodeDriver(); + _resultValue.allocatable = allocatable; + _resultValue.name = name; + _resultValue.nodeID = nodeID; + _resultValue.topologyKeys = topologyKeys; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriverPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriverPatch.java index 3b8bd1fd40..7e6ff1914c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriverPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeDriverPatch.java @@ -88,21 +88,25 @@ public Builder(CSINodeDriverPatch defaults) { @CustomType.Setter public Builder allocatable(@Nullable VolumeNodeResourcesPatch allocatable) { + this.allocatable = allocatable; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodeID(@Nullable String nodeID) { + this.nodeID = nodeID; return this; } @CustomType.Setter public Builder topologyKeys(@Nullable List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -110,12 +114,12 @@ public Builder topologyKeys(String... topologyKeys) { return topologyKeys(List.of(topologyKeys)); } public CSINodeDriverPatch build() { - final var o = new CSINodeDriverPatch(); - o.allocatable = allocatable; - o.name = name; - o.nodeID = nodeID; - o.topologyKeys = topologyKeys; - return o; + final var _resultValue = new CSINodeDriverPatch(); + _resultValue.allocatable = allocatable; + _resultValue.name = name; + _resultValue.nodeID = nodeID; + _resultValue.topologyKeys = topologyKeys; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpec.java index f20fccc4c1..53951d02ea 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.outputs.CSINodeDriver; import java.util.List; import java.util.Objects; @@ -43,16 +44,19 @@ public Builder(CSINodeSpec defaults) { @CustomType.Setter public Builder drivers(List drivers) { - this.drivers = Objects.requireNonNull(drivers); + if (drivers == null) { + throw new MissingRequiredPropertyException("CSINodeSpec", "drivers"); + } + this.drivers = drivers; return this; } public Builder drivers(CSINodeDriver... drivers) { return drivers(List.of(drivers)); } public CSINodeSpec build() { - final var o = new CSINodeSpec(); - o.drivers = drivers; - return o; + final var _resultValue = new CSINodeSpec(); + _resultValue.drivers = drivers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpecPatch.java index 35308eae63..46bf8070a8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSINodeSpecPatch.java @@ -44,6 +44,7 @@ public Builder(CSINodeSpecPatch defaults) { @CustomType.Setter public Builder drivers(@Nullable List drivers) { + this.drivers = drivers; return this; } @@ -51,9 +52,9 @@ public Builder drivers(CSINodeDriverPatch... drivers) { return drivers(List.of(drivers)); } public CSINodeSpecPatch build() { - final var o = new CSINodeSpecPatch(); - o.drivers = drivers; - return o; + final var _resultValue = new CSINodeSpecPatch(); + _resultValue.drivers = drivers; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIStorageCapacity.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIStorageCapacity.java index ac9f164e20..c37c1b85c8 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIStorageCapacity.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/CSIStorageCapacity.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.LabelSelector; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.String; @@ -146,49 +147,58 @@ public Builder(CSIStorageCapacity defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder capacity(@Nullable String capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder maximumVolumeSize(@Nullable String maximumVolumeSize) { + this.maximumVolumeSize = maximumVolumeSize; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder nodeTopology(@Nullable LabelSelector nodeTopology) { + this.nodeTopology = nodeTopology; return this; } @CustomType.Setter public Builder storageClassName(String storageClassName) { - this.storageClassName = Objects.requireNonNull(storageClassName); + if (storageClassName == null) { + throw new MissingRequiredPropertyException("CSIStorageCapacity", "storageClassName"); + } + this.storageClassName = storageClassName; return this; } public CSIStorageCapacity build() { - final var o = new CSIStorageCapacity(); - o.apiVersion = apiVersion; - o.capacity = capacity; - o.kind = kind; - o.maximumVolumeSize = maximumVolumeSize; - o.metadata = metadata; - o.nodeTopology = nodeTopology; - o.storageClassName = storageClassName; - return o; + final var _resultValue = new CSIStorageCapacity(); + _resultValue.apiVersion = apiVersion; + _resultValue.capacity = capacity; + _resultValue.kind = kind; + _resultValue.maximumVolumeSize = maximumVolumeSize; + _resultValue.metadata = metadata; + _resultValue.nodeTopology = nodeTopology; + _resultValue.storageClassName = storageClassName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/StorageClass.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/StorageClass.java index 0cc95b9bcd..2152306242 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/StorageClass.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/StorageClass.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.core.v1.outputs.TopologySelectorTerm; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import java.lang.Boolean; @@ -175,11 +176,13 @@ public Builder(StorageClass defaults) { @CustomType.Setter public Builder allowVolumeExpansion(@Nullable Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; return this; } @CustomType.Setter public Builder allowedTopologies(@Nullable List allowedTopologies) { + this.allowedTopologies = allowedTopologies; return this; } @@ -188,21 +191,25 @@ public Builder allowedTopologies(TopologySelectorTerm... allowedTopologies) { } @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder mountOptions(@Nullable List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -211,37 +218,43 @@ public Builder mountOptions(String... mountOptions) { } @CustomType.Setter public Builder parameters(@Nullable Map parameters) { + this.parameters = parameters; return this; } @CustomType.Setter public Builder provisioner(String provisioner) { - this.provisioner = Objects.requireNonNull(provisioner); + if (provisioner == null) { + throw new MissingRequiredPropertyException("StorageClass", "provisioner"); + } + this.provisioner = provisioner; return this; } @CustomType.Setter public Builder reclaimPolicy(@Nullable String reclaimPolicy) { + this.reclaimPolicy = reclaimPolicy; return this; } @CustomType.Setter public Builder volumeBindingMode(@Nullable String volumeBindingMode) { + this.volumeBindingMode = volumeBindingMode; return this; } public StorageClass build() { - final var o = new StorageClass(); - o.allowVolumeExpansion = allowVolumeExpansion; - o.allowedTopologies = allowedTopologies; - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.mountOptions = mountOptions; - o.parameters = parameters; - o.provisioner = provisioner; - o.reclaimPolicy = reclaimPolicy; - o.volumeBindingMode = volumeBindingMode; - return o; + final var _resultValue = new StorageClass(); + _resultValue.allowVolumeExpansion = allowVolumeExpansion; + _resultValue.allowedTopologies = allowedTopologies; + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.mountOptions = mountOptions; + _resultValue.parameters = parameters; + _resultValue.provisioner = provisioner; + _resultValue.reclaimPolicy = reclaimPolicy; + _resultValue.volumeBindingMode = volumeBindingMode; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequest.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequest.java index 9d04bc81af..224dc9c9ab 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequest.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequest.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(TokenRequest defaults) { @CustomType.Setter public Builder audience(String audience) { - this.audience = Objects.requireNonNull(audience); + if (audience == null) { + throw new MissingRequiredPropertyException("TokenRequest", "audience"); + } + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } public TokenRequest build() { - final var o = new TokenRequest(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - return o; + final var _resultValue = new TokenRequest(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequestPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequestPatch.java index 39fb8b358a..0b58298de4 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequestPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/TokenRequestPatch.java @@ -59,19 +59,21 @@ public Builder(TokenRequestPatch defaults) { @CustomType.Setter public Builder audience(@Nullable String audience) { + this.audience = audience; return this; } @CustomType.Setter public Builder expirationSeconds(@Nullable Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } public TokenRequestPatch build() { - final var o = new TokenRequestPatch(); - o.audience = audience; - o.expirationSeconds = expirationSeconds; - return o; + final var _resultValue = new TokenRequestPatch(); + _resultValue.audience = audience; + _resultValue.expirationSeconds = expirationSeconds; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachment.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachment.java index 297ccfe22e..241711d9c7 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachment.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta; import com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeAttachmentSpec; import com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeAttachmentStatus; @@ -103,37 +104,44 @@ public Builder(VolumeAttachment defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(VolumeAttachmentSpec spec) { - this.spec = Objects.requireNonNull(spec); + if (spec == null) { + throw new MissingRequiredPropertyException("VolumeAttachment", "spec"); + } + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable VolumeAttachmentStatus status) { + this.status = status; return this; } public VolumeAttachment build() { - final var o = new VolumeAttachment(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new VolumeAttachment(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSource.java index 973828a036..298f15487d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSource.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSource defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSource build() { - final var o = new VolumeAttachmentSource(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSource(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSourcePatch.java index 16dba7ad33..0ab181f054 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSourcePatch.java @@ -59,19 +59,21 @@ public Builder(VolumeAttachmentSourcePatch defaults) { @CustomType.Setter public Builder inlineVolumeSpec(@Nullable PersistentVolumeSpecPatch inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; return this; } @CustomType.Setter public Builder persistentVolumeName(@Nullable String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } public VolumeAttachmentSourcePatch build() { - final var o = new VolumeAttachmentSourcePatch(); - o.inlineVolumeSpec = inlineVolumeSpec; - o.persistentVolumeName = persistentVolumeName; - return o; + final var _resultValue = new VolumeAttachmentSourcePatch(); + _resultValue.inlineVolumeSpec = inlineVolumeSpec; + _resultValue.persistentVolumeName = persistentVolumeName; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpec.java index bbdcbf8f18..337394c014 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeAttachmentSource; import java.lang.String; import java.util.Objects; @@ -71,25 +72,34 @@ public Builder(VolumeAttachmentSpec defaults) { @CustomType.Setter public Builder attacher(String attacher) { - this.attacher = Objects.requireNonNull(attacher); + if (attacher == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "attacher"); + } + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(String nodeName) { - this.nodeName = Objects.requireNonNull(nodeName); + if (nodeName == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "nodeName"); + } + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(VolumeAttachmentSource source) { - this.source = Objects.requireNonNull(source); + if (source == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentSpec", "source"); + } + this.source = source; return this; } public VolumeAttachmentSpec build() { - final var o = new VolumeAttachmentSpec(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpec(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpecPatch.java index dfaf64d2b2..c4aa8277ac 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentSpecPatch.java @@ -73,25 +73,28 @@ public Builder(VolumeAttachmentSpecPatch defaults) { @CustomType.Setter public Builder attacher(@Nullable String attacher) { + this.attacher = attacher; return this; } @CustomType.Setter public Builder nodeName(@Nullable String nodeName) { + this.nodeName = nodeName; return this; } @CustomType.Setter public Builder source(@Nullable VolumeAttachmentSourcePatch source) { + this.source = source; return this; } public VolumeAttachmentSpecPatch build() { - final var o = new VolumeAttachmentSpecPatch(); - o.attacher = attacher; - o.nodeName = nodeName; - o.source = source; - return o; + final var _resultValue = new VolumeAttachmentSpecPatch(); + _resultValue.attacher = attacher; + _resultValue.nodeName = nodeName; + _resultValue.source = source; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatus.java index 6339c36da4..93d8ccf99e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatus.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storage.v1beta1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storage.v1beta1.outputs.VolumeError; import java.lang.Boolean; import java.lang.String; @@ -89,31 +90,37 @@ public Builder(VolumeAttachmentStatus defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeError attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(Boolean attached) { - this.attached = Objects.requireNonNull(attached); + if (attached == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentStatus", "attached"); + } + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeError detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatus build() { - final var o = new VolumeAttachmentStatus(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatus(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatusPatch.java index 8d6794b182..7cb2be5ee5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeAttachmentStatusPatch.java @@ -89,31 +89,35 @@ public Builder(VolumeAttachmentStatusPatch defaults) { @CustomType.Setter public Builder attachError(@Nullable VolumeErrorPatch attachError) { + this.attachError = attachError; return this; } @CustomType.Setter public Builder attached(@Nullable Boolean attached) { + this.attached = attached; return this; } @CustomType.Setter public Builder attachmentMetadata(@Nullable Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @CustomType.Setter public Builder detachError(@Nullable VolumeErrorPatch detachError) { + this.detachError = detachError; return this; } public VolumeAttachmentStatusPatch build() { - final var o = new VolumeAttachmentStatusPatch(); - o.attachError = attachError; - o.attached = attached; - o.attachmentMetadata = attachmentMetadata; - o.detachError = detachError; - return o; + final var _resultValue = new VolumeAttachmentStatusPatch(); + _resultValue.attachError = attachError; + _resultValue.attached = attached; + _resultValue.attachmentMetadata = attachmentMetadata; + _resultValue.detachError = detachError; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeError.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeError.java index b853675c15..3b5269485e 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeError.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeError.java @@ -58,19 +58,21 @@ public Builder(VolumeError defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeError build() { - final var o = new VolumeError(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeError(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeErrorPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeErrorPatch.java index 91c957ff50..fa49b3e229 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeErrorPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeErrorPatch.java @@ -58,19 +58,21 @@ public Builder(VolumeErrorPatch defaults) { @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder time(@Nullable String time) { + this.time = time; return this; } public VolumeErrorPatch build() { - final var o = new VolumeErrorPatch(); - o.message = message; - o.time = time; - return o; + final var _resultValue = new VolumeErrorPatch(); + _resultValue.message = message; + _resultValue.time = time; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResources.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResources.java index 24c8b72ff7..7a07d2b251 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResources.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResources.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeResources defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } public VolumeNodeResources build() { - final var o = new VolumeNodeResources(); - o.count = count; - return o; + final var _resultValue = new VolumeNodeResources(); + _resultValue.count = count; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResourcesPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResourcesPatch.java index 05e389d51f..28a79fc1e5 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResourcesPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1beta1/outputs/VolumeNodeResourcesPatch.java @@ -44,13 +44,14 @@ public Builder(VolumeNodeResourcesPatch defaults) { @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } public VolumeNodeResourcesPatch build() { - final var o = new VolumeNodeResourcesPatch(); - o.count = count; - return o; + final var _resultValue = new VolumeNodeResourcesPatch(); + _resultValue.count = count; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/StorageVersionMigrationListArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/StorageVersionMigrationListArgs.java index 84bf606107..1001ed0b31 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/StorageVersionMigrationListArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/StorageVersionMigrationListArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.meta.v1.inputs.ListMetaArgs; import com.pulumi.kubernetes.storagemigration.v1alpha1.inputs.StorageVersionMigrationArgs; import java.lang.String; @@ -202,7 +203,9 @@ public Builder metadata(ListMetaArgs metadata) { public StorageVersionMigrationListArgs build() { $.apiVersion = Codegen.stringProp("apiVersion").output().arg($.apiVersion).getNullable(); - $.items = Objects.requireNonNull($.items, "expected parameter 'items' to be non-null"); + if ($.items == null) { + throw new MissingRequiredPropertyException("StorageVersionMigrationListArgs", "items"); + } $.kind = Codegen.stringProp("kind").output().arg($.kind).getNullable(); return $; } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/MigrationConditionArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/MigrationConditionArgs.java index 6ab67566a4..c4c40d50ad 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/MigrationConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/MigrationConditionArgs.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; @@ -228,8 +229,12 @@ public Builder type(String type) { } public MigrationConditionArgs build() { - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.status == null) { + throw new MissingRequiredPropertyException("MigrationConditionArgs", "status"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("MigrationConditionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/StorageVersionMigrationSpecArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/StorageVersionMigrationSpecArgs.java index 69f1a29438..b3e85d7899 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/StorageVersionMigrationSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/inputs/StorageVersionMigrationSpecArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storagemigration.v1alpha1.inputs.GroupVersionResourceArgs; import java.lang.String; import java.util.Objects; @@ -118,7 +119,9 @@ public Builder resource(GroupVersionResourceArgs resource) { } public StorageVersionMigrationSpecArgs build() { - $.resource = Objects.requireNonNull($.resource, "expected parameter 'resource' to be non-null"); + if ($.resource == null) { + throw new MissingRequiredPropertyException("StorageVersionMigrationSpecArgs", "resource"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResource.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResource.java index 2739392ec3..2f89540faa 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResource.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResource.java @@ -72,25 +72,28 @@ public Builder(GroupVersionResource defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } public GroupVersionResource build() { - final var o = new GroupVersionResource(); - o.group = group; - o.resource = resource; - o.version = version; - return o; + final var _resultValue = new GroupVersionResource(); + _resultValue.group = group; + _resultValue.resource = resource; + _resultValue.version = version; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResourcePatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResourcePatch.java index a516b21386..1716e1e5a3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResourcePatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/GroupVersionResourcePatch.java @@ -72,25 +72,28 @@ public Builder(GroupVersionResourcePatch defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder resource(@Nullable String resource) { + this.resource = resource; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } public GroupVersionResourcePatch build() { - final var o = new GroupVersionResourcePatch(); - o.group = group; - o.resource = resource; - o.version = version; - return o; + final var _resultValue = new GroupVersionResourcePatch(); + _resultValue.group = group; + _resultValue.resource = resource; + _resultValue.version = version; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationCondition.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationCondition.java index 316f3e5de0..d572c2330c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationCondition.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationCondition.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storagemigration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,37 +101,46 @@ public Builder(MigrationCondition defaults) { @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("MigrationCondition", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("MigrationCondition", "type"); + } + this.type = type; return this; } public MigrationCondition build() { - final var o = new MigrationCondition(); - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new MigrationCondition(); + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationConditionPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationConditionPatch.java index d9e81ac5ad..5282822bfd 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationConditionPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/MigrationConditionPatch.java @@ -100,37 +100,42 @@ public Builder(MigrationConditionPatch defaults) { @CustomType.Setter public Builder lastUpdateTime(@Nullable String lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } public MigrationConditionPatch build() { - final var o = new MigrationConditionPatch(); - o.lastUpdateTime = lastUpdateTime; - o.message = message; - o.reason = reason; - o.status = status; - o.type = type; - return o; + final var _resultValue = new MigrationConditionPatch(); + _resultValue.lastUpdateTime = lastUpdateTime; + _resultValue.message = message; + _resultValue.reason = reason; + _resultValue.status = status; + _resultValue.type = type; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigration.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigration.java index 58d415a322..2fc805b5fb 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigration.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigration.java @@ -103,37 +103,42 @@ public Builder(StorageVersionMigration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder metadata(@Nullable ObjectMeta metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder spec(@Nullable StorageVersionMigrationSpec spec) { + this.spec = spec; return this; } @CustomType.Setter public Builder status(@Nullable StorageVersionMigrationStatus status) { + this.status = status; return this; } public StorageVersionMigration build() { - final var o = new StorageVersionMigration(); - o.apiVersion = apiVersion; - o.kind = kind; - o.metadata = metadata; - o.spec = spec; - o.status = status; - return o; + final var _resultValue = new StorageVersionMigration(); + _resultValue.apiVersion = apiVersion; + _resultValue.kind = kind; + _resultValue.metadata = metadata; + _resultValue.spec = spec; + _resultValue.status = status; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpec.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpec.java index 96e6551db6..98d0abdc79 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpec.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpec.java @@ -4,6 +4,7 @@ package com.pulumi.kubernetes.storagemigration.v1alpha1.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.kubernetes.storagemigration.v1alpha1.outputs.GroupVersionResource; import java.lang.String; import java.util.Objects; @@ -59,19 +60,23 @@ public Builder(StorageVersionMigrationSpec defaults) { @CustomType.Setter public Builder continueToken(@Nullable String continueToken) { + this.continueToken = continueToken; return this; } @CustomType.Setter public Builder resource(GroupVersionResource resource) { - this.resource = Objects.requireNonNull(resource); + if (resource == null) { + throw new MissingRequiredPropertyException("StorageVersionMigrationSpec", "resource"); + } + this.resource = resource; return this; } public StorageVersionMigrationSpec build() { - final var o = new StorageVersionMigrationSpec(); - o.continueToken = continueToken; - o.resource = resource; - return o; + final var _resultValue = new StorageVersionMigrationSpec(); + _resultValue.continueToken = continueToken; + _resultValue.resource = resource; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpecPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpecPatch.java index 9556ccd835..1f7d576264 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpecPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationSpecPatch.java @@ -59,19 +59,21 @@ public Builder(StorageVersionMigrationSpecPatch defaults) { @CustomType.Setter public Builder continueToken(@Nullable String continueToken) { + this.continueToken = continueToken; return this; } @CustomType.Setter public Builder resource(@Nullable GroupVersionResourcePatch resource) { + this.resource = resource; return this; } public StorageVersionMigrationSpecPatch build() { - final var o = new StorageVersionMigrationSpecPatch(); - o.continueToken = continueToken; - o.resource = resource; - return o; + final var _resultValue = new StorageVersionMigrationSpecPatch(); + _resultValue.continueToken = continueToken; + _resultValue.resource = resource; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatus.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatus.java index 5634a1658c..47f1568b14 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatus.java @@ -60,6 +60,7 @@ public Builder(StorageVersionMigrationStatus defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(MigrationCondition... conditions) { } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } public StorageVersionMigrationStatus build() { - final var o = new StorageVersionMigrationStatus(); - o.conditions = conditions; - o.resourceVersion = resourceVersion; - return o; + final var _resultValue = new StorageVersionMigrationStatus(); + _resultValue.conditions = conditions; + _resultValue.resourceVersion = resourceVersion; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatusPatch.java b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatusPatch.java index e232b728f7..23b9865936 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatusPatch.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/storagemigration/v1alpha1/outputs/StorageVersionMigrationStatusPatch.java @@ -60,6 +60,7 @@ public Builder(StorageVersionMigrationStatusPatch defaults) { @CustomType.Setter public Builder conditions(@Nullable List conditions) { + this.conditions = conditions; return this; } @@ -68,14 +69,15 @@ public Builder conditions(MigrationConditionPatch... conditions) { } @CustomType.Setter public Builder resourceVersion(@Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } public StorageVersionMigrationStatusPatch build() { - final var o = new StorageVersionMigrationStatusPatch(); - o.conditions = conditions; - o.resourceVersion = resourceVersion; - return o; + final var _resultValue = new StorageVersionMigrationStatusPatch(); + _resultValue.conditions = conditions; + _resultValue.resourceVersion = resourceVersion; + return _resultValue; } } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFile.java b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFile.java index 14248f6b06..d5153d30ee 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFile.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFile.java @@ -53,7 +53,8 @@ * * ## Example Usage * ### Local File - * ```java + *
+ * {@code
  * package myproject;
  * 
  * import com.pulumi.Pulumi;
@@ -62,14 +63,15 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var example = new ConfigFile("example", ConfigFileArgs.builder()
- *                     .file("./manifest.yaml")
+ *         Pulumi.run(ctx -> {
+ *             var example = new ConfigFile("example", ConfigFileArgs.builder()
+ *                     .file("./manifest.yaml")
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* {% /examples %}} * */ diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFileArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFileArgs.java index 889a4655dc..99b7de68c3 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigFileArgs.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 skipAwait(Boolean skipAwait) { } public ConfigFileArgs build() { - $.file = Objects.requireNonNull($.file, "expected parameter 'file' to be non-null"); + if ($.file == null) { + throw new MissingRequiredPropertyException("ConfigFileArgs", "file"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigGroup.java b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigGroup.java index 168f94e9df..fc92de575d 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigGroup.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml/v2/ConfigGroup.java @@ -59,7 +59,8 @@ * * ## Example Usage * ### Local File(s) - * ```java + *
+ * {@code
  * package myproject;
  * 
  * import com.pulumi.Pulumi;
@@ -68,16 +69,18 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
- *                     .files("./manifest.yaml")
+ *         Pulumi.run(ctx -> {
+ *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
+ *                     .files("./manifest.yaml")
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### Local File Pattern - * ```java + *
+ * {@code
  * package myproject;
  * 
  * import com.pulumi.Pulumi;
@@ -86,17 +89,19 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
- *                     .files("./manifests/*.yaml")
+ *         Pulumi.run(ctx -> {
+ *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
+ *                     .files("./manifests/*.yaml")
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* {{% /example %}} * ### Literal YAML String - * ```java + *
+ * {@code
  * package myproject;
  * 
  * import com.pulumi.Pulumi;
@@ -105,22 +110,24 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
- *                     .yaml("""
+ *         Pulumi.run(ctx -> {
+ *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
+ *                     .yaml("""
  *                         apiVersion: v1
  *                         kind: ConfigMap
  *                         metadata:
  *                           name: my-map
- *                         """
+ *                         """
  *                     )
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* ### Literal Object - * ```java + *
+ * {@code
  * package myproject;
  * 
  * import java.util.Map;
@@ -131,20 +138,21 @@
  * 
  * public class App {
  *     public static void main(String[] args) {
- *         Pulumi.run(ctx -> {
- *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
+ *         Pulumi.run(ctx -> {
+ *             var example = new ConfigGroup("example", ConfigGroupArgs.builder()
  *                     .objs(Map.ofEntries(
- *                         Map.entry("apiVersion", "v1"),
- *                         Map.entry("kind", "ConfigMap"),
- *                         Map.entry("metadata", Map.ofEntries(
- *                             Map.entry("name", "my-map")
+ *                         Map.entry("apiVersion", "v1"),
+ *                         Map.entry("kind", "ConfigMap"),
+ *                         Map.entry("metadata", Map.ofEntries(
+ *                             Map.entry("name", "my-map")
  *                         ))
  *                     ))
  *                     .build());
  *         });
  *     }
  * }
- * ```
+ * }
+ * 
* {% /examples %}} * */