From b99456e07c00bd5bdebd1a97d20225b9f12a8ccc Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 2 Jan 2024 11:34:35 +0000 Subject: [PATCH] make build_sdks --- sdk/java/build.gradle | 2 +- .../java/com/pulumi/digitalocean/CdnArgs.java | 5 +- .../digitalocean/ContainerRegistryArgs.java | 5 +- ...ontainerRegistryDockerCredentialsArgs.java | 5 +- .../pulumi/digitalocean/CustomImageArgs.java | 9 +- .../digitalocean/DatabaseClusterArgs.java | 17 ++- .../DatabaseConnectionPoolArgs.java | 17 ++- .../pulumi/digitalocean/DatabaseDbArgs.java | 5 +- .../digitalocean/DatabaseFirewallArgs.java | 9 +- .../digitalocean/DatabaseKafkaTopicArgs.java | 5 +- .../digitalocean/DatabaseMysqlConfigArgs.java | 5 +- .../digitalocean/DatabaseRedisConfigArgs.java | 5 +- .../digitalocean/DatabaseReplicaArgs.java | 5 +- .../pulumi/digitalocean/DatabaseUserArgs.java | 5 +- .../pulumi/digitalocean/DnsRecordArgs.java | 13 +- .../com/pulumi/digitalocean/DomainArgs.java | 5 +- .../com/pulumi/digitalocean/DropletArgs.java | 9 +- .../digitalocean/DropletSnapshotArgs.java | 5 +- .../pulumi/digitalocean/FloatingIpArgs.java | 5 +- .../FloatingIpAssignmentArgs.java | 9 +- .../digitalocean/KubernetesClusterArgs.java | 13 +- .../digitalocean/KubernetesNodePoolArgs.java | 9 +- .../pulumi/digitalocean/LoadBalancerArgs.java | 5 +- .../pulumi/digitalocean/MonitorAlertArgs.java | 25 +++- .../digitalocean/ProjectResourcesArgs.java | 9 +- .../pulumi/digitalocean/ReservedIpArgs.java | 5 +- .../ReservedIpAssignmentArgs.java | 9 +- .../SpacesBucketCorsConfigurationArgs.java | 13 +- .../digitalocean/SpacesBucketObjectArgs.java | 13 +- .../digitalocean/SpacesBucketPolicyArgs.java | 13 +- .../com/pulumi/digitalocean/SshKeyArgs.java | 5 +- .../pulumi/digitalocean/UptimeAlertArgs.java | 13 +- .../pulumi/digitalocean/UptimeCheckArgs.java | 5 +- .../com/pulumi/digitalocean/VolumeArgs.java | 9 +- .../digitalocean/VolumeAttachmentArgs.java | 9 +- .../digitalocean/VolumeSnapshotArgs.java | 5 +- .../java/com/pulumi/digitalocean/VpcArgs.java | 5 +- .../digitalocean/inputs/AppSpecAlertArgs.java | 5 +- .../digitalocean/inputs/AppSpecArgs.java | 5 +- .../inputs/AppSpecDomainNameArgs.java | 5 +- .../inputs/AppSpecFunctionAlertArgs.java | 17 ++- .../inputs/AppSpecFunctionArgs.java | 5 +- .../AppSpecFunctionLogDestinationArgs.java | 5 +- ...SpecFunctionLogDestinationDatadogArgs.java | 5 +- ...SpecFunctionLogDestinationLogtailArgs.java | 5 +- ...cFunctionLogDestinationPapertrailArgs.java | 5 +- .../inputs/AppSpecJobAlertArgs.java | 17 ++- .../digitalocean/inputs/AppSpecJobArgs.java | 5 +- .../inputs/AppSpecJobImageArgs.java | 9 +- .../inputs/AppSpecJobLogDestinationArgs.java | 5 +- .../AppSpecJobLogDestinationDatadogArgs.java | 5 +- .../AppSpecJobLogDestinationLogtailArgs.java | 5 +- ...ppSpecJobLogDestinationPapertrailArgs.java | 5 +- .../inputs/AppSpecServiceAlertArgs.java | 17 ++- .../inputs/AppSpecServiceArgs.java | 5 +- .../inputs/AppSpecServiceImageArgs.java | 9 +- .../AppSpecServiceLogDestinationArgs.java | 5 +- ...pSpecServiceLogDestinationDatadogArgs.java | 5 +- ...pSpecServiceLogDestinationLogtailArgs.java | 5 +- ...ecServiceLogDestinationPapertrailArgs.java | 5 +- .../inputs/AppSpecStaticSiteArgs.java | 5 +- .../inputs/AppSpecWorkerAlertArgs.java | 17 ++- .../inputs/AppSpecWorkerArgs.java | 5 +- .../inputs/AppSpecWorkerImageArgs.java | 9 +- .../AppSpecWorkerLogDestinationArgs.java | 5 +- ...ppSpecWorkerLogDestinationDatadogArgs.java | 5 +- ...ppSpecWorkerLogDestinationLogtailArgs.java | 5 +- ...pecWorkerLogDestinationPapertrailArgs.java | 5 +- .../DatabaseClusterBackupRestoreArgs.java | 5 +- .../DatabaseClusterMaintenanceWindowArgs.java | 9 +- .../inputs/DatabaseFirewallRuleArgs.java | 9 +- .../inputs/DatabaseUserSettingAclArgs.java | 9 +- .../inputs/FirewallInboundRuleArgs.java | 5 +- .../inputs/FirewallOutboundRuleArgs.java | 5 +- .../digitalocean/inputs/GetAppArgs.java | 5 +- .../digitalocean/inputs/GetAppPlainArgs.java | 5 +- .../inputs/GetCertificateArgs.java | 5 +- .../inputs/GetCertificatePlainArgs.java | 5 +- .../inputs/GetContainerRegistryArgs.java | 5 +- .../inputs/GetContainerRegistryPlainArgs.java | 5 +- .../inputs/GetDatabaseCaArgs.java | 5 +- .../inputs/GetDatabaseCaPlainArgs.java | 5 +- .../inputs/GetDatabaseClusterArgs.java | 5 +- .../inputs/GetDatabaseClusterPlainArgs.java | 5 +- .../inputs/GetDatabaseConnectionPoolArgs.java | 9 +- .../GetDatabaseConnectionPoolPlainArgs.java | 9 +- .../inputs/GetDatabaseReplicaArgs.java | 9 +- .../inputs/GetDatabaseReplicaPlainArgs.java | 9 +- .../inputs/GetDatabaseUserArgs.java | 9 +- .../inputs/GetDatabaseUserPlainArgs.java | 9 +- .../digitalocean/inputs/GetDomainArgs.java | 5 +- .../inputs/GetDomainPlainArgs.java | 5 +- .../digitalocean/inputs/GetDomainsFilter.java | 9 +- .../inputs/GetDomainsFilterArgs.java | 9 +- .../digitalocean/inputs/GetDomainsSort.java | 5 +- .../inputs/GetDomainsSortArgs.java | 5 +- .../inputs/GetDropletsFilter.java | 9 +- .../inputs/GetDropletsFilterArgs.java | 9 +- .../digitalocean/inputs/GetDropletsSort.java | 5 +- .../inputs/GetDropletsSortArgs.java | 5 +- .../digitalocean/inputs/GetFirewallArgs.java | 5 +- .../inputs/GetFirewallInboundRule.java | 5 +- .../inputs/GetFirewallInboundRuleArgs.java | 5 +- .../inputs/GetFirewallOutboundRule.java | 5 +- .../inputs/GetFirewallOutboundRuleArgs.java | 5 +- .../inputs/GetFirewallPlainArgs.java | 5 +- .../inputs/GetFloatingIpArgs.java | 5 +- .../inputs/GetFloatingIpPlainArgs.java | 5 +- .../digitalocean/inputs/GetImagesFilter.java | 9 +- .../inputs/GetImagesFilterArgs.java | 9 +- .../digitalocean/inputs/GetImagesSort.java | 5 +- .../inputs/GetImagesSortArgs.java | 5 +- .../inputs/GetKubernetesClusterArgs.java | 5 +- .../inputs/GetKubernetesClusterPlainArgs.java | 5 +- .../inputs/GetProjectsFilter.java | 9 +- .../inputs/GetProjectsFilterArgs.java | 9 +- .../digitalocean/inputs/GetProjectsSort.java | 5 +- .../inputs/GetProjectsSortArgs.java | 5 +- .../digitalocean/inputs/GetRecordArgs.java | 9 +- .../inputs/GetRecordPlainArgs.java | 9 +- .../digitalocean/inputs/GetRecordsArgs.java | 5 +- .../digitalocean/inputs/GetRecordsFilter.java | 9 +- .../inputs/GetRecordsFilterArgs.java | 9 +- .../inputs/GetRecordsPlainArgs.java | 5 +- .../digitalocean/inputs/GetRecordsSort.java | 5 +- .../inputs/GetRecordsSortArgs.java | 5 +- .../digitalocean/inputs/GetRegionArgs.java | 5 +- .../inputs/GetRegionPlainArgs.java | 5 +- .../digitalocean/inputs/GetRegionsFilter.java | 9 +- .../inputs/GetRegionsFilterArgs.java | 9 +- .../digitalocean/inputs/GetRegionsSort.java | 5 +- .../inputs/GetRegionsSortArgs.java | 5 +- .../inputs/GetReservedIpArgs.java | 5 +- .../inputs/GetReservedIpPlainArgs.java | 5 +- .../digitalocean/inputs/GetSizesFilter.java | 9 +- .../inputs/GetSizesFilterArgs.java | 9 +- .../digitalocean/inputs/GetSizesSort.java | 5 +- .../digitalocean/inputs/GetSizesSortArgs.java | 5 +- .../inputs/GetSpacesBucketArgs.java | 9 +- .../inputs/GetSpacesBucketObjectArgs.java | 13 +- .../GetSpacesBucketObjectPlainArgs.java | 13 +- .../inputs/GetSpacesBucketObjectsArgs.java | 9 +- .../GetSpacesBucketObjectsPlainArgs.java | 9 +- .../inputs/GetSpacesBucketPlainArgs.java | 9 +- .../inputs/GetSpacesBucketsFilter.java | 9 +- .../inputs/GetSpacesBucketsFilterArgs.java | 9 +- .../inputs/GetSpacesBucketsSort.java | 5 +- .../inputs/GetSpacesBucketsSortArgs.java | 5 +- .../digitalocean/inputs/GetSshKeyArgs.java | 5 +- .../inputs/GetSshKeyPlainArgs.java | 5 +- .../digitalocean/inputs/GetSshKeysFilter.java | 9 +- .../inputs/GetSshKeysFilterArgs.java | 9 +- .../digitalocean/inputs/GetSshKeysSort.java | 5 +- .../inputs/GetSshKeysSortArgs.java | 5 +- .../digitalocean/inputs/GetTagArgs.java | 5 +- .../digitalocean/inputs/GetTagPlainArgs.java | 5 +- .../digitalocean/inputs/GetTagsFilter.java | 9 +- .../inputs/GetTagsFilterArgs.java | 9 +- .../digitalocean/inputs/GetTagsSort.java | 5 +- .../digitalocean/inputs/GetTagsSortArgs.java | 5 +- .../digitalocean/inputs/GetVolumeArgs.java | 5 +- .../inputs/GetVolumePlainArgs.java | 5 +- .../inputs/KubernetesClusterNodePoolArgs.java | 9 +- .../KubernetesClusterNodePoolTaintArgs.java | 13 +- .../inputs/KubernetesNodePoolTaintArgs.java | 13 +- .../LoadBalancerForwardingRuleArgs.java | 17 ++- .../inputs/LoadBalancerHealthcheckArgs.java | 9 +- .../inputs/MonitorAlertAlertsSlackArgs.java | 9 +- ...esBucketCorsConfigurationCorsRuleArgs.java | 9 +- .../inputs/SpacesBucketCorsRuleArgs.java | 9 +- .../inputs/SpacesBucketLifecycleRuleArgs.java | 5 +- .../UptimeAlertNotificationSlackArgs.java | 9 +- .../pulumi/digitalocean/outputs/AppSpec.java | 19 ++- .../digitalocean/outputs/AppSpecAlert.java | 7 +- .../digitalocean/outputs/AppSpecDatabase.java | 7 + .../outputs/AppSpecDomainName.java | 9 +- .../digitalocean/outputs/AppSpecEnv.java | 4 + .../digitalocean/outputs/AppSpecFunction.java | 15 ++- .../outputs/AppSpecFunctionAlert.java | 22 ++- .../outputs/AppSpecFunctionCors.java | 6 + .../AppSpecFunctionCorsAllowOrigins.java | 3 + .../outputs/AppSpecFunctionEnv.java | 4 + .../outputs/AppSpecFunctionGit.java | 2 + .../outputs/AppSpecFunctionGithub.java | 3 + .../outputs/AppSpecFunctionGitlab.java | 3 + .../AppSpecFunctionLogDestination.java | 9 +- .../AppSpecFunctionLogDestinationDatadog.java | 7 +- .../AppSpecFunctionLogDestinationLogtail.java | 6 +- ...pSpecFunctionLogDestinationPapertrail.java | 6 +- .../outputs/AppSpecFunctionRoute.java | 2 + .../digitalocean/outputs/AppSpecIngress.java | 1 + .../outputs/AppSpecIngressRule.java | 4 + .../outputs/AppSpecIngressRuleComponent.java | 3 + .../outputs/AppSpecIngressRuleCors.java | 6 + .../AppSpecIngressRuleCorsAllowOrigins.java | 3 + .../outputs/AppSpecIngressRuleMatch.java | 1 + .../outputs/AppSpecIngressRuleMatchPath.java | 1 + .../outputs/AppSpecIngressRuleRedirect.java | 5 + .../digitalocean/outputs/AppSpecJob.java | 21 ++- .../digitalocean/outputs/AppSpecJobAlert.java | 22 ++- .../digitalocean/outputs/AppSpecJobEnv.java | 4 + .../digitalocean/outputs/AppSpecJobGit.java | 2 + .../outputs/AppSpecJobGithub.java | 3 + .../outputs/AppSpecJobGitlab.java | 3 + .../digitalocean/outputs/AppSpecJobImage.java | 14 +- .../outputs/AppSpecJobImageDeployOnPush.java | 1 + .../outputs/AppSpecJobLogDestination.java | 9 +- .../AppSpecJobLogDestinationDatadog.java | 7 +- .../AppSpecJobLogDestinationLogtail.java | 6 +- .../AppSpecJobLogDestinationPapertrail.java | 6 +- .../digitalocean/outputs/AppSpecService.java | 25 +++- .../outputs/AppSpecServiceAlert.java | 22 ++- .../outputs/AppSpecServiceCors.java | 6 + .../AppSpecServiceCorsAllowOrigins.java | 3 + .../outputs/AppSpecServiceEnv.java | 4 + .../outputs/AppSpecServiceGit.java | 2 + .../outputs/AppSpecServiceGithub.java | 3 + .../outputs/AppSpecServiceGitlab.java | 3 + .../outputs/AppSpecServiceHealthCheck.java | 7 + .../outputs/AppSpecServiceImage.java | 14 +- .../AppSpecServiceImageDeployOnPush.java | 1 + .../outputs/AppSpecServiceLogDestination.java | 9 +- .../AppSpecServiceLogDestinationDatadog.java | 7 +- .../AppSpecServiceLogDestinationLogtail.java | 6 +- ...ppSpecServiceLogDestinationPapertrail.java | 6 +- .../outputs/AppSpecServiceRoute.java | 2 + .../outputs/AppSpecStaticSite.java | 20 ++- .../outputs/AppSpecStaticSiteCors.java | 6 + .../AppSpecStaticSiteCorsAllowOrigins.java | 3 + .../outputs/AppSpecStaticSiteEnv.java | 4 + .../outputs/AppSpecStaticSiteGit.java | 2 + .../outputs/AppSpecStaticSiteGithub.java | 3 + .../outputs/AppSpecStaticSiteGitlab.java | 3 + .../outputs/AppSpecStaticSiteRoute.java | 2 + .../digitalocean/outputs/AppSpecWorker.java | 20 ++- .../outputs/AppSpecWorkerAlert.java | 22 ++- .../outputs/AppSpecWorkerEnv.java | 4 + .../outputs/AppSpecWorkerGit.java | 2 + .../outputs/AppSpecWorkerGithub.java | 3 + .../outputs/AppSpecWorkerGitlab.java | 3 + .../outputs/AppSpecWorkerImage.java | 14 +- .../AppSpecWorkerImageDeployOnPush.java | 1 + .../outputs/AppSpecWorkerLogDestination.java | 9 +- .../AppSpecWorkerLogDestinationDatadog.java | 7 +- .../AppSpecWorkerLogDestinationLogtail.java | 6 +- ...AppSpecWorkerLogDestinationPapertrail.java | 6 +- .../outputs/DatabaseClusterBackupRestore.java | 7 +- .../DatabaseClusterMaintenanceWindow.java | 11 +- .../outputs/DatabaseFirewallRule.java | 13 +- .../outputs/DatabaseKafkaTopicConfig.java | 23 ++++ .../outputs/DatabaseUserSetting.java | 1 + .../outputs/DatabaseUserSettingAcl.java | 12 +- .../outputs/FirewallInboundRule.java | 12 +- .../outputs/FirewallOutboundRule.java | 12 +- .../outputs/FirewallPendingChange.java | 3 + .../outputs/GetAccountResult.java | 41 ++++-- .../digitalocean/outputs/GetAppResult.java | 46 +++++-- .../digitalocean/outputs/GetAppSpec.java | 31 ++++- .../digitalocean/outputs/GetAppSpecAlert.java | 7 +- .../outputs/GetAppSpecDatabase.java | 7 + .../outputs/GetAppSpecDomain.java | 17 ++- .../digitalocean/outputs/GetAppSpecEnv.java | 9 +- .../outputs/GetAppSpecFunction.java | 19 ++- .../outputs/GetAppSpecFunctionAlert.java | 22 ++- .../outputs/GetAppSpecFunctionCors.java | 6 + .../GetAppSpecFunctionCorsAllowOrigins.java | 3 + .../outputs/GetAppSpecFunctionEnv.java | 9 +- .../outputs/GetAppSpecFunctionGit.java | 2 + .../outputs/GetAppSpecFunctionGithub.java | 3 + .../outputs/GetAppSpecFunctionGitlab.java | 3 + .../GetAppSpecFunctionLogDestination.java | 9 +- ...tAppSpecFunctionLogDestinationDatadog.java | 7 +- ...tAppSpecFunctionLogDestinationLogtail.java | 6 +- ...pSpecFunctionLogDestinationPapertrail.java | 6 +- .../outputs/GetAppSpecFunctionRoute.java | 2 + .../outputs/GetAppSpecIngress.java | 6 +- .../outputs/GetAppSpecIngressRule.java | 17 ++- .../GetAppSpecIngressRuleComponent.java | 16 ++- .../outputs/GetAppSpecIngressRuleCors.java | 6 + ...GetAppSpecIngressRuleCorsAllowOrigins.java | 3 + .../outputs/GetAppSpecIngressRuleMatch.java | 6 +- .../GetAppSpecIngressRuleMatchPath.java | 6 +- .../GetAppSpecIngressRuleRedirect.java | 5 + .../digitalocean/outputs/GetAppSpecJob.java | 21 ++- .../outputs/GetAppSpecJobAlert.java | 22 ++- .../outputs/GetAppSpecJobEnv.java | 9 +- .../outputs/GetAppSpecJobGit.java | 2 + .../outputs/GetAppSpecJobGithub.java | 3 + .../outputs/GetAppSpecJobGitlab.java | 3 + .../outputs/GetAppSpecJobImage.java | 18 ++- .../GetAppSpecJobImageDeployOnPush.java | 1 + .../outputs/GetAppSpecJobLogDestination.java | 9 +- .../GetAppSpecJobLogDestinationDatadog.java | 7 +- .../GetAppSpecJobLogDestinationLogtail.java | 6 +- ...GetAppSpecJobLogDestinationPapertrail.java | 6 +- .../outputs/GetAppSpecService.java | 37 ++++- .../outputs/GetAppSpecServiceAlert.java | 22 ++- .../outputs/GetAppSpecServiceCors.java | 6 + .../GetAppSpecServiceCorsAllowOrigins.java | 3 + .../outputs/GetAppSpecServiceEnv.java | 9 +- .../outputs/GetAppSpecServiceGit.java | 2 + .../outputs/GetAppSpecServiceGithub.java | 3 + .../outputs/GetAppSpecServiceGitlab.java | 3 + .../outputs/GetAppSpecServiceHealthCheck.java | 7 + .../outputs/GetAppSpecServiceImage.java | 18 ++- .../GetAppSpecServiceImageDeployOnPush.java | 1 + .../GetAppSpecServiceLogDestination.java | 9 +- ...etAppSpecServiceLogDestinationDatadog.java | 7 +- ...etAppSpecServiceLogDestinationLogtail.java | 6 +- ...ppSpecServiceLogDestinationPapertrail.java | 6 +- .../outputs/GetAppSpecServiceRoute.java | 2 + .../outputs/GetAppSpecStaticSite.java | 24 +++- .../outputs/GetAppSpecStaticSiteCors.java | 6 + .../GetAppSpecStaticSiteCorsAllowOrigins.java | 3 + .../outputs/GetAppSpecStaticSiteEnv.java | 9 +- .../outputs/GetAppSpecStaticSiteGit.java | 2 + .../outputs/GetAppSpecStaticSiteGithub.java | 3 + .../outputs/GetAppSpecStaticSiteGitlab.java | 3 + .../outputs/GetAppSpecStaticSiteRoute.java | 2 + .../outputs/GetAppSpecWorker.java | 20 ++- .../outputs/GetAppSpecWorkerAlert.java | 22 ++- .../outputs/GetAppSpecWorkerEnv.java | 9 +- .../outputs/GetAppSpecWorkerGit.java | 2 + .../outputs/GetAppSpecWorkerGithub.java | 3 + .../outputs/GetAppSpecWorkerGitlab.java | 3 + .../outputs/GetAppSpecWorkerImage.java | 18 ++- .../GetAppSpecWorkerImageDeployOnPush.java | 1 + .../GetAppSpecWorkerLogDestination.java | 9 +- ...GetAppSpecWorkerLogDestinationDatadog.java | 7 +- ...GetAppSpecWorkerLogDestinationLogtail.java | 6 +- ...AppSpecWorkerLogDestinationPapertrail.java | 6 +- .../outputs/GetCertificateResult.java | 41 ++++-- .../outputs/GetContainerRegistryResult.java | 41 ++++-- .../outputs/GetDatabaseCaResult.java | 16 ++- .../GetDatabaseClusterMaintenanceWindow.java | 11 +- .../outputs/GetDatabaseClusterResult.java | 102 +++++++++++--- .../GetDatabaseConnectionPoolResult.java | 66 +++++++-- .../outputs/GetDatabaseReplicaResult.java | 72 ++++++++-- .../outputs/GetDatabaseUserResult.java | 36 ++++- .../outputs/GetDatabaseUserSetting.java | 1 + .../outputs/GetDatabaseUserSettingAcl.java | 16 ++- .../digitalocean/outputs/GetDomainResult.java | 26 +++- .../outputs/GetDomainsDomain.java | 16 ++- .../outputs/GetDomainsFilter.java | 13 +- .../outputs/GetDomainsResult.java | 13 +- .../digitalocean/outputs/GetDomainsSort.java | 7 +- .../outputs/GetDropletResult.java | 127 ++++++++++++++---- .../outputs/GetDropletSnapshotResult.java | 35 ++++- .../outputs/GetDropletsDroplet.java | 126 +++++++++++++---- .../outputs/GetDropletsFilter.java | 13 +- .../outputs/GetDropletsResult.java | 13 +- .../digitalocean/outputs/GetDropletsSort.java | 7 +- .../outputs/GetFirewallInboundRule.java | 12 +- .../outputs/GetFirewallOutboundRule.java | 12 +- .../outputs/GetFirewallPendingChange.java | 3 + .../outputs/GetFirewallResult.java | 51 +++++-- .../outputs/GetFloatingIpResult.java | 26 +++- .../digitalocean/outputs/GetImageResult.java | 77 ++++++++--- .../digitalocean/outputs/GetImagesFilter.java | 13 +- .../digitalocean/outputs/GetImagesImage.java | 76 ++++++++--- .../digitalocean/outputs/GetImagesResult.java | 13 +- .../digitalocean/outputs/GetImagesSort.java | 7 +- .../GetKubernetesClusterKubeConfig.java | 36 ++++- ...GetKubernetesClusterMaintenancePolicy.java | 16 ++- .../outputs/GetKubernetesClusterNodePool.java | 61 +++++++-- .../GetKubernetesClusterNodePoolNode.java | 31 ++++- .../GetKubernetesClusterNodePoolTaint.java | 16 ++- .../outputs/GetKubernetesClusterResult.java | 97 ++++++++++--- .../outputs/GetKubernetesVersionsResult.java | 17 ++- .../outputs/GetLoadBalancerFirewall.java | 11 +- .../GetLoadBalancerForwardingRule.java | 36 ++++- .../outputs/GetLoadBalancerHealthcheck.java | 36 ++++- .../outputs/GetLoadBalancerResult.java | 108 ++++++++++++--- .../outputs/GetLoadBalancerStickySession.java | 16 ++- .../outputs/GetProjectResult.java | 56 ++++++-- .../outputs/GetProjectsFilter.java | 13 +- .../outputs/GetProjectsProject.java | 56 ++++++-- .../outputs/GetProjectsResult.java | 13 +- .../digitalocean/outputs/GetProjectsSort.java | 7 +- .../digitalocean/outputs/GetRecordResult.java | 56 ++++++-- .../outputs/GetRecordsFilter.java | 13 +- .../outputs/GetRecordsRecord.java | 56 ++++++-- .../outputs/GetRecordsResult.java | 18 ++- .../digitalocean/outputs/GetRecordsSort.java | 7 +- .../digitalocean/outputs/GetRegionResult.java | 31 ++++- .../outputs/GetRegionsFilter.java | 13 +- .../outputs/GetRegionsRegion.java | 26 +++- .../outputs/GetRegionsResult.java | 13 +- .../digitalocean/outputs/GetRegionsSort.java | 7 +- .../outputs/GetReservedIpResult.java | 26 +++- .../digitalocean/outputs/GetSizesFilter.java | 13 +- .../digitalocean/outputs/GetSizesResult.java | 13 +- .../digitalocean/outputs/GetSizesSize.java | 46 +++++-- .../digitalocean/outputs/GetSizesSort.java | 7 +- .../outputs/GetSpacesBucketObjectResult.java | 92 ++++++++++--- .../outputs/GetSpacesBucketObjectsResult.java | 35 ++++- .../outputs/GetSpacesBucketResult.java | 31 ++++- .../outputs/GetSpacesBucketsBucket.java | 26 +++- .../outputs/GetSpacesBucketsFilter.java | 13 +- .../outputs/GetSpacesBucketsResult.java | 13 +- .../outputs/GetSpacesBucketsSort.java | 7 +- .../digitalocean/outputs/GetSshKeyResult.java | 21 ++- .../outputs/GetSshKeysFilter.java | 13 +- .../outputs/GetSshKeysResult.java | 13 +- .../digitalocean/outputs/GetSshKeysSort.java | 7 +- .../outputs/GetSshKeysSshKey.java | 21 ++- .../digitalocean/outputs/GetTagResult.java | 41 ++++-- .../digitalocean/outputs/GetTagsFilter.java | 13 +- .../digitalocean/outputs/GetTagsResult.java | 13 +- .../digitalocean/outputs/GetTagsSort.java | 7 +- .../digitalocean/outputs/GetTagsTag.java | 36 ++++- .../digitalocean/outputs/GetVolumeResult.java | 43 ++++-- .../outputs/GetVolumeSnapshotResult.java | 40 +++++- .../digitalocean/outputs/GetVpcResult.java | 41 ++++-- .../outputs/KubernetesClusterKubeConfig.java | 7 + .../KubernetesClusterMaintenancePolicy.java | 3 + .../outputs/KubernetesClusterNodePool.java | 21 ++- .../KubernetesClusterNodePoolNode.java | 6 + .../KubernetesClusterNodePoolTaint.java | 16 ++- .../outputs/KubernetesNodePoolNode.java | 6 + .../outputs/KubernetesNodePoolTaint.java | 16 ++- .../outputs/LoadBalancerFirewall.java | 2 + .../outputs/LoadBalancerForwardingRule.java | 24 +++- .../outputs/LoadBalancerHealthcheck.java | 16 ++- .../outputs/LoadBalancerStickySessions.java | 3 + .../outputs/MonitorAlertAlerts.java | 2 + .../outputs/MonitorAlertAlertsSlack.java | 11 +- ...SpacesBucketCorsConfigurationCorsRule.java | 15 ++- .../outputs/SpacesBucketCorsRule.java | 13 +- .../outputs/SpacesBucketLifecycleRule.java | 11 +- .../SpacesBucketLifecycleRuleExpiration.java | 3 + ...ecycleRuleNoncurrentVersionExpiration.java | 1 + .../outputs/SpacesBucketVersioning.java | 1 + .../outputs/UptimeAlertNotification.java | 2 + .../outputs/UptimeAlertNotificationSlack.java | 11 +- 435 files changed, 4441 insertions(+), 923 deletions(-) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 916cd5c3..9eba4780 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.9.8") + implementation("com.pulumi:pulumi:0.9.9") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/CdnArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/CdnArgs.java index 063dcde8..68bd76c1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/CdnArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/CdnArgs.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; @@ -241,7 +242,9 @@ public Builder ttl(Integer ttl) { } public CdnArgs build() { - $.origin = Objects.requireNonNull($.origin, "expected parameter 'origin' to be non-null"); + if ($.origin == null) { + throw new MissingRequiredPropertyException("CdnArgs", "origin"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryArgs.java index e62b65ff..aeb47fdc 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,7 +151,9 @@ public Builder subscriptionTierSlug(String subscriptionTierSlug) { } public ContainerRegistryArgs build() { - $.subscriptionTierSlug = Objects.requireNonNull($.subscriptionTierSlug, "expected parameter 'subscriptionTierSlug' to be non-null"); + if ($.subscriptionTierSlug == null) { + throw new MissingRequiredPropertyException("ContainerRegistryArgs", "subscriptionTierSlug"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentialsArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentialsArgs.java index 308f723a..4a9117bf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentialsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentialsArgs.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; @@ -152,7 +153,9 @@ public Builder write(Boolean write) { } public ContainerRegistryDockerCredentialsArgs build() { - $.registryName = Objects.requireNonNull($.registryName, "expected parameter 'registryName' to be non-null"); + if ($.registryName == null) { + throw new MissingRequiredPropertyException("ContainerRegistryDockerCredentialsArgs", "registryName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImageArgs.java index e2aa7436..2b848ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImageArgs.java @@ -5,6 +5,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; @@ -282,8 +283,12 @@ public Builder url(String url) { } public CustomImageArgs build() { - $.regions = Objects.requireNonNull($.regions, "expected parameter 'regions' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.regions == null) { + throw new MissingRequiredPropertyException("CustomImageArgs", "regions"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("CustomImageArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseClusterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseClusterArgs.java index 04ac07ba..34b7e93a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseClusterArgs.java @@ -10,6 +10,7 @@ import com.pulumi.digitalocean.enums.Region; import com.pulumi.digitalocean.inputs.DatabaseClusterBackupRestoreArgs; import com.pulumi.digitalocean.inputs.DatabaseClusterMaintenanceWindowArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -628,10 +629,18 @@ public Builder version(String version) { } public DatabaseClusterArgs build() { - $.engine = Objects.requireNonNull($.engine, "expected parameter 'engine' to be non-null"); - $.nodeCount = Objects.requireNonNull($.nodeCount, "expected parameter 'nodeCount' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.engine == null) { + throw new MissingRequiredPropertyException("DatabaseClusterArgs", "engine"); + } + if ($.nodeCount == null) { + throw new MissingRequiredPropertyException("DatabaseClusterArgs", "nodeCount"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("DatabaseClusterArgs", "region"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("DatabaseClusterArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPoolArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPoolArgs.java index b25cc931..f4e8a274 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -262,10 +263,18 @@ public Builder user(String user) { } public DatabaseConnectionPoolArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.dbName = Objects.requireNonNull($.dbName, "expected parameter 'dbName' to be non-null"); - $.mode = Objects.requireNonNull($.mode, "expected parameter 'mode' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseConnectionPoolArgs", "clusterId"); + } + if ($.dbName == null) { + throw new MissingRequiredPropertyException("DatabaseConnectionPoolArgs", "dbName"); + } + if ($.mode == null) { + throw new MissingRequiredPropertyException("DatabaseConnectionPoolArgs", "mode"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("DatabaseConnectionPoolArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDbArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDbArgs.java index 1d27923d..2a7b0092 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDbArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDbArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public DatabaseDbArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseDbArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewallArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewallArgs.java index 6188d345..3d8a7086 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewallArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewallArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.DatabaseFirewallRuleArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -123,8 +124,12 @@ public Builder rules(DatabaseFirewallRuleArgs... rules) { } public DatabaseFirewallArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.rules = Objects.requireNonNull($.rules, "expected parameter 'rules' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallArgs", "clusterId"); + } + if ($.rules == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallArgs", "rules"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseKafkaTopicArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseKafkaTopicArgs.java index 16d4e0db..5af7c7b7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseKafkaTopicArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseKafkaTopicArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.DatabaseKafkaTopicConfigArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -242,7 +243,9 @@ public Builder replicationFactor(Integer replicationFactor) { } public DatabaseKafkaTopicArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseKafkaTopicArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfigArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfigArgs.java index dcbf5287..a314cf71 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfigArgs.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.Double; import java.lang.Integer; @@ -1078,7 +1079,9 @@ public Builder waitTimeout(Integer waitTimeout) { } public DatabaseMysqlConfigArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseMysqlConfigArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfigArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfigArgs.java index caad4c62..343c89c2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -485,7 +486,9 @@ public Builder timeout(Integer timeout) { } public DatabaseRedisConfigArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseRedisConfigArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplicaArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplicaArgs.java index b2759cd9..53f9b5c0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplicaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplicaArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.enums.DatabaseSlug; import com.pulumi.digitalocean.enums.Region; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -315,7 +316,9 @@ public Builder tags(String... tags) { } public DatabaseReplicaArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseReplicaArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUserArgs.java index dcdc6c8c..b58145f4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUserArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.DatabaseUserSettingArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -204,7 +205,9 @@ public Builder settings(DatabaseUserSettingArgs... settings) { } public DatabaseUserArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("DatabaseUserArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecordArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecordArgs.java index ac50b213..e6d92c71 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecordArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecordArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.enums.RecordType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -432,9 +433,15 @@ public Builder weight(Integer weight) { } public DnsRecordArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' 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 ($.domain == null) { + throw new MissingRequiredPropertyException("DnsRecordArgs", "domain"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DnsRecordArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("DnsRecordArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DomainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DomainArgs.java index 7e5f2f81..96c7ba44 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DomainArgs.java @@ -5,6 +5,7 @@ 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 name(String name) { } public DomainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("DomainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletArgs.java index 760e721d..c30d36e9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.enums.DropletSlug; import com.pulumi.digitalocean.enums.Region; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -844,8 +845,12 @@ public Builder vpcUuid(String vpcUuid) { } public DropletArgs build() { - $.image = Objects.requireNonNull($.image, "expected parameter 'image' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.image == null) { + throw new MissingRequiredPropertyException("DropletArgs", "image"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("DropletArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshotArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshotArgs.java index ee00bdae..a8274c8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshotArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshotArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public DropletSnapshotArgs build() { - $.dropletId = Objects.requireNonNull($.dropletId, "expected parameter 'dropletId' to be non-null"); + if ($.dropletId == null) { + throw new MissingRequiredPropertyException("DropletSnapshotArgs", "dropletId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpArgs.java index 253deeac..4bfe1b4d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder region(String region) { } public FloatingIpArgs build() { - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.region == null) { + throw new MissingRequiredPropertyException("FloatingIpArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignmentArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignmentArgs.java index 3e0b37b2..b7fe396a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignmentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -112,8 +113,12 @@ public Builder ipAddress(String ipAddress) { } public FloatingIpAssignmentArgs build() { - $.dropletId = Objects.requireNonNull($.dropletId, "expected parameter 'dropletId' to be non-null"); - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.dropletId == null) { + throw new MissingRequiredPropertyException("FloatingIpAssignmentArgs", "dropletId"); + } + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("FloatingIpAssignmentArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesClusterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesClusterArgs.java index e8560909..03b98e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesClusterArgs.java @@ -9,6 +9,7 @@ import com.pulumi.digitalocean.enums.Region; import com.pulumi.digitalocean.inputs.KubernetesClusterMaintenancePolicyArgs; import com.pulumi.digitalocean.inputs.KubernetesClusterNodePoolArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -527,9 +528,15 @@ public Builder vpcUuid(String vpcUuid) { } public KubernetesClusterArgs build() { - $.nodePool = Objects.requireNonNull($.nodePool, "expected parameter 'nodePool' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.version = Objects.requireNonNull($.version, "expected parameter 'version' to be non-null"); + if ($.nodePool == null) { + throw new MissingRequiredPropertyException("KubernetesClusterArgs", "nodePool"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("KubernetesClusterArgs", "region"); + } + if ($.version == null) { + throw new MissingRequiredPropertyException("KubernetesClusterArgs", "version"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePoolArgs.java index 559f9415..1d68a63c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePoolArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.enums.DropletSlug; import com.pulumi.digitalocean.inputs.KubernetesNodePoolTaintArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -466,8 +467,12 @@ public Builder taints(KubernetesNodePoolTaintArgs... taints) { } public KubernetesNodePoolArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolArgs", "clusterId"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancerArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancerArgs.java index 5357299f..0bda5a1f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancerArgs.java @@ -12,6 +12,7 @@ import com.pulumi.digitalocean.inputs.LoadBalancerForwardingRuleArgs; import com.pulumi.digitalocean.inputs.LoadBalancerHealthcheckArgs; import com.pulumi.digitalocean.inputs.LoadBalancerStickySessionsArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -853,7 +854,9 @@ public Builder vpcUuid(String vpcUuid) { } public LoadBalancerArgs build() { - $.forwardingRules = Objects.requireNonNull($.forwardingRules, "expected parameter 'forwardingRules' to be non-null"); + if ($.forwardingRules == null) { + throw new MissingRequiredPropertyException("LoadBalancerArgs", "forwardingRules"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/MonitorAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/MonitorAlertArgs.java index 94d7200c..66af2070 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/MonitorAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/MonitorAlertArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.MonitorAlertAlertsArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -464,12 +465,24 @@ public Builder window(String window) { } public MonitorAlertArgs build() { - $.alerts = Objects.requireNonNull($.alerts, "expected parameter 'alerts' to be non-null"); - $.compare = Objects.requireNonNull($.compare, "expected parameter 'compare' to be non-null"); - $.description = Objects.requireNonNull($.description, "expected parameter 'description' 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"); - $.window = Objects.requireNonNull($.window, "expected parameter 'window' to be non-null"); + if ($.alerts == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "alerts"); + } + if ($.compare == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "compare"); + } + if ($.description == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "description"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "value"); + } + if ($.window == null) { + throw new MissingRequiredPropertyException("MonitorAlertArgs", "window"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResourcesArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResourcesArgs.java index 175ba7a6..e72d9efc 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResourcesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResourcesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -122,8 +123,12 @@ public Builder resources(String... resources) { } public ProjectResourcesArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.resources = Objects.requireNonNull($.resources, "expected parameter 'resources' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectResourcesArgs", "project"); + } + if ($.resources == null) { + throw new MissingRequiredPropertyException("ProjectResourcesArgs", "resources"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpArgs.java index 81a8d0cd..100c9946 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder region(String region) { } public ReservedIpArgs build() { - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.region == null) { + throw new MissingRequiredPropertyException("ReservedIpArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignmentArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignmentArgs.java index 7b0d4e95..5c6908e9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignmentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -112,8 +113,12 @@ public Builder ipAddress(String ipAddress) { } public ReservedIpAssignmentArgs build() { - $.dropletId = Objects.requireNonNull($.dropletId, "expected parameter 'dropletId' to be non-null"); - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.dropletId == null) { + throw new MissingRequiredPropertyException("ReservedIpAssignmentArgs", "dropletId"); + } + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("ReservedIpAssignmentArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfigurationArgs.java index 17e3bef6..353bbfa9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfigurationArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.SpacesBucketCorsConfigurationCorsRuleArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -160,9 +161,15 @@ public Builder region(String region) { } public SpacesBucketCorsConfigurationArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.corsRules = Objects.requireNonNull($.corsRules, "expected parameter 'corsRules' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationArgs", "bucket"); + } + if ($.corsRules == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationArgs", "corsRules"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObjectArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObjectArgs.java index bfa79249..12c706ab 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObjectArgs.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.Map; @@ -653,9 +654,15 @@ public Builder websiteRedirect(String websiteRedirect) { } public SpacesBucketObjectArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("SpacesBucketObjectArgs", "bucket"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("SpacesBucketObjectArgs", "key"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("SpacesBucketObjectArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicyArgs.java index d54a70a5..e759a2b3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -148,9 +149,15 @@ public Builder region(String region) { } public SpacesBucketPolicyArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.policy = Objects.requireNonNull($.policy, "expected parameter 'policy' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("SpacesBucketPolicyArgs", "bucket"); + } + if ($.policy == null) { + throw new MissingRequiredPropertyException("SpacesBucketPolicyArgs", "policy"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("SpacesBucketPolicyArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SshKeyArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SshKeyArgs.java index f4ff3dba..2e5af740 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SshKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SshKeyArgs.java @@ -5,6 +5,7 @@ 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 publicKey(String publicKey) { } public SshKeyArgs build() { - $.publicKey = Objects.requireNonNull($.publicKey, "expected parameter 'publicKey' to be non-null"); + if ($.publicKey == null) { + throw new MissingRequiredPropertyException("SshKeyArgs", "publicKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeAlertArgs.java index e8f8c19e..885bb41c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeAlertArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.UptimeAlertNotificationArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -311,9 +312,15 @@ public Builder type(String type) { } public UptimeAlertArgs build() { - $.checkId = Objects.requireNonNull($.checkId, "expected parameter 'checkId' to be non-null"); - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.checkId == null) { + throw new MissingRequiredPropertyException("UptimeAlertArgs", "checkId"); + } + if ($.notifications == null) { + throw new MissingRequiredPropertyException("UptimeAlertArgs", "notifications"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("UptimeAlertArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeCheckArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeCheckArgs.java index ac29b887..d07698fe 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeCheckArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/UptimeCheckArgs.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; @@ -236,7 +237,9 @@ public Builder type(String type) { } public UptimeCheckArgs build() { - $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null"); + if ($.target == null) { + throw new MissingRequiredPropertyException("UptimeCheckArgs", "target"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeArgs.java index 99fefc3f..84a3d03d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.enums.FileSystemType; import com.pulumi.digitalocean.enums.Region; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -443,8 +444,12 @@ public Builder tags(String... tags) { } public VolumeArgs build() { - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.region == null) { + throw new MissingRequiredPropertyException("VolumeArgs", "region"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("VolumeArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachmentArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachmentArgs.java index 47425c5a..39371557 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachmentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -112,8 +113,12 @@ public Builder volumeId(String volumeId) { } public VolumeAttachmentArgs build() { - $.dropletId = Objects.requireNonNull($.dropletId, "expected parameter 'dropletId' to be non-null"); - $.volumeId = Objects.requireNonNull($.volumeId, "expected parameter 'volumeId' to be non-null"); + if ($.dropletId == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "dropletId"); + } + if ($.volumeId == null) { + throw new MissingRequiredPropertyException("VolumeAttachmentArgs", "volumeId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshotArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshotArgs.java index ba75947b..f84b14c1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshotArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshotArgs.java @@ -5,6 +5,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; @@ -161,7 +162,9 @@ public Builder volumeId(String volumeId) { } public VolumeSnapshotArgs build() { - $.volumeId = Objects.requireNonNull($.volumeId, "expected parameter 'volumeId' to be non-null"); + if ($.volumeId == null) { + throw new MissingRequiredPropertyException("VolumeSnapshotArgs", "volumeId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VpcArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VpcArgs.java index 1c8a3d1a..15469e16 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VpcArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VpcArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,7 +188,9 @@ public Builder region(String region) { } public VpcArgs build() { - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.region == null) { + throw new MissingRequiredPropertyException("VpcArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java index b4b2ab1d..6d981659 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -114,7 +115,9 @@ public Builder rule(String rule) { } public AppSpecAlertArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("AppSpecAlertArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java index 13a46caa..435ba90c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java @@ -15,6 +15,7 @@ import com.pulumi.digitalocean.inputs.AppSpecServiceArgs; import com.pulumi.digitalocean.inputs.AppSpecStaticSiteArgs; import com.pulumi.digitalocean.inputs.AppSpecWorkerArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -532,7 +533,9 @@ public Builder workers(AppSpecWorkerArgs... workers) { } public AppSpecArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java index 1dfd3c46..ab5316f7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder zone(String zone) { } public AppSpecDomainNameArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecDomainNameArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionAlertArgs.java index 97f32cd3..184a3922 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionAlertArgs.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.Double; import java.lang.String; @@ -226,10 +227,18 @@ public Builder window(String window) { } public AppSpecFunctionAlertArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); - $.window = Objects.requireNonNull($.window, "expected parameter 'window' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlertArgs", "operator"); + } + if ($.rule == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlertArgs", "rule"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlertArgs", "value"); + } + if ($.window == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlertArgs", "window"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionArgs.java index f708dc10..bcf5ebc7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionArgs.java @@ -13,6 +13,7 @@ import com.pulumi.digitalocean.inputs.AppSpecFunctionGitlabArgs; import com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationArgs; import com.pulumi.digitalocean.inputs.AppSpecFunctionRouteArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -494,7 +495,9 @@ public Builder sourceDir(String sourceDir) { } public AppSpecFunctionArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationArgs.java index b8bc53ce..8f615e23 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationArgs.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationDatadogArgs; import com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationLogtailArgs; import com.pulumi.digitalocean.inputs.AppSpecFunctionLogDestinationPapertrailArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -190,7 +191,9 @@ public Builder papertrail(AppSpecFunctionLogDestinationPapertrailArgs papertrail } public AppSpecFunctionLogDestinationArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationDatadogArgs.java index 1743eaaf..1995b5fa 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationDatadogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder endpoint(String endpoint) { } public AppSpecFunctionLogDestinationDatadogArgs build() { - $.apiKey = Objects.requireNonNull($.apiKey, "expected parameter 'apiKey' to be non-null"); + if ($.apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationDatadogArgs", "apiKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java index b69f267f..0779717d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -82,7 +83,9 @@ public Builder token(String token) { } public AppSpecFunctionLogDestinationLogtailArgs build() { - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.token == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationLogtailArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationPapertrailArgs.java index bd3102d1..03b9057d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationPapertrailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder endpoint(String endpoint) { } public AppSpecFunctionLogDestinationPapertrailArgs build() { - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationPapertrailArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobAlertArgs.java index 475ba2cb..180ad870 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobAlertArgs.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.Double; import java.lang.String; @@ -226,10 +227,18 @@ public Builder window(String window) { } public AppSpecJobAlertArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); - $.window = Objects.requireNonNull($.window, "expected parameter 'window' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlertArgs", "operator"); + } + if ($.rule == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlertArgs", "rule"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlertArgs", "value"); + } + if ($.window == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlertArgs", "window"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java index 2c413092..79f9223d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java @@ -12,6 +12,7 @@ import com.pulumi.digitalocean.inputs.AppSpecJobGitlabArgs; import com.pulumi.digitalocean.inputs.AppSpecJobImageArgs; import com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -670,7 +671,9 @@ public Builder sourceDir(String sourceDir) { } public AppSpecJobArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecJobArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java index 458d4e9a..72484079 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobImageArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.AppSpecJobImageDeployOnPushArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -236,8 +237,12 @@ public Builder tag(String tag) { } public AppSpecJobImageArgs build() { - $.registryType = Objects.requireNonNull($.registryType, "expected parameter 'registryType' to be non-null"); - $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + if ($.registryType == null) { + throw new MissingRequiredPropertyException("AppSpecJobImageArgs", "registryType"); + } + if ($.repository == null) { + throw new MissingRequiredPropertyException("AppSpecJobImageArgs", "repository"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationArgs.java index 96b8da88..eb7e860e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationArgs.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationDatadogArgs; import com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationLogtailArgs; import com.pulumi.digitalocean.inputs.AppSpecJobLogDestinationPapertrailArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -190,7 +191,9 @@ public Builder papertrail(AppSpecJobLogDestinationPapertrailArgs papertrail) { } public AppSpecJobLogDestinationArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationDatadogArgs.java index a67a52cb..c8418b53 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationDatadogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder endpoint(String endpoint) { } public AppSpecJobLogDestinationDatadogArgs build() { - $.apiKey = Objects.requireNonNull($.apiKey, "expected parameter 'apiKey' to be non-null"); + if ($.apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationDatadogArgs", "apiKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java index de9a64a7..5148721a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -82,7 +83,9 @@ public Builder token(String token) { } public AppSpecJobLogDestinationLogtailArgs build() { - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.token == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationLogtailArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationPapertrailArgs.java index e5714a6a..ba364734 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationPapertrailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder endpoint(String endpoint) { } public AppSpecJobLogDestinationPapertrailArgs build() { - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationPapertrailArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceAlertArgs.java index c9e4cdd2..bb9e3c11 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceAlertArgs.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.Double; import java.lang.String; @@ -226,10 +227,18 @@ public Builder window(String window) { } public AppSpecServiceAlertArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); - $.window = Objects.requireNonNull($.window, "expected parameter 'window' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlertArgs", "operator"); + } + if ($.rule == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlertArgs", "rule"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlertArgs", "value"); + } + if ($.window == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlertArgs", "window"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceArgs.java index dfbaace1..98bcb35b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceArgs.java @@ -15,6 +15,7 @@ import com.pulumi.digitalocean.inputs.AppSpecServiceImageArgs; import com.pulumi.digitalocean.inputs.AppSpecServiceLogDestinationArgs; import com.pulumi.digitalocean.inputs.AppSpecServiceRouteArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -877,7 +878,9 @@ public Builder sourceDir(String sourceDir) { } public AppSpecServiceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecServiceArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java index 5950ed25..11bbe898 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceImageArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.AppSpecServiceImageDeployOnPushArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -236,8 +237,12 @@ public Builder tag(String tag) { } public AppSpecServiceImageArgs build() { - $.registryType = Objects.requireNonNull($.registryType, "expected parameter 'registryType' to be non-null"); - $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + if ($.registryType == null) { + throw new MissingRequiredPropertyException("AppSpecServiceImageArgs", "registryType"); + } + if ($.repository == null) { + throw new MissingRequiredPropertyException("AppSpecServiceImageArgs", "repository"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationArgs.java index 4e4efcb3..624ef117 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationArgs.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.inputs.AppSpecServiceLogDestinationDatadogArgs; import com.pulumi.digitalocean.inputs.AppSpecServiceLogDestinationLogtailArgs; import com.pulumi.digitalocean.inputs.AppSpecServiceLogDestinationPapertrailArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -190,7 +191,9 @@ public Builder papertrail(AppSpecServiceLogDestinationPapertrailArgs papertrail) } public AppSpecServiceLogDestinationArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationDatadogArgs.java index e404392d..fc9f2936 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationDatadogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder endpoint(String endpoint) { } public AppSpecServiceLogDestinationDatadogArgs build() { - $.apiKey = Objects.requireNonNull($.apiKey, "expected parameter 'apiKey' to be non-null"); + if ($.apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationDatadogArgs", "apiKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java index b815a0e3..b0849e9c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -82,7 +83,9 @@ public Builder token(String token) { } public AppSpecServiceLogDestinationLogtailArgs build() { - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.token == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationLogtailArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationPapertrailArgs.java index 2c56790b..de46b2ec 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationPapertrailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder endpoint(String endpoint) { } public AppSpecServiceLogDestinationPapertrailArgs build() { - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationPapertrailArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecStaticSiteArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecStaticSiteArgs.java index 46f875ed..324a1d90 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecStaticSiteArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecStaticSiteArgs.java @@ -11,6 +11,7 @@ import com.pulumi.digitalocean.inputs.AppSpecStaticSiteGithubArgs; import com.pulumi.digitalocean.inputs.AppSpecStaticSiteGitlabArgs; import com.pulumi.digitalocean.inputs.AppSpecStaticSiteRouteArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -657,7 +658,9 @@ public Builder sourceDir(String sourceDir) { } public AppSpecStaticSiteArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecStaticSiteArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerAlertArgs.java index d7a15560..6dd3e47a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerAlertArgs.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.Double; import java.lang.String; @@ -226,10 +227,18 @@ public Builder window(String window) { } public AppSpecWorkerAlertArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); - $.window = Objects.requireNonNull($.window, "expected parameter 'window' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlertArgs", "operator"); + } + if ($.rule == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlertArgs", "rule"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlertArgs", "value"); + } + if ($.window == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlertArgs", "window"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerArgs.java index 6b487c47..7ed1ad62 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerArgs.java @@ -12,6 +12,7 @@ import com.pulumi.digitalocean.inputs.AppSpecWorkerGitlabArgs; import com.pulumi.digitalocean.inputs.AppSpecWorkerImageArgs; import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -633,7 +634,9 @@ public Builder sourceDir(String sourceDir) { } public AppSpecWorkerArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java index e500f2ec..15ae078c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerImageArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.AppSpecWorkerImageDeployOnPushArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -236,8 +237,12 @@ public Builder tag(String tag) { } public AppSpecWorkerImageArgs build() { - $.registryType = Objects.requireNonNull($.registryType, "expected parameter 'registryType' to be non-null"); - $.repository = Objects.requireNonNull($.repository, "expected parameter 'repository' to be non-null"); + if ($.registryType == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerImageArgs", "registryType"); + } + if ($.repository == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerImageArgs", "repository"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationArgs.java index 52ef7348..2cd413eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationArgs.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationDatadogArgs; import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationLogtailArgs; import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationPapertrailArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -190,7 +191,9 @@ public Builder papertrail(AppSpecWorkerLogDestinationPapertrailArgs papertrail) } public AppSpecWorkerLogDestinationArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationDatadogArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationDatadogArgs.java index 0c4f1869..d9e05d60 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationDatadogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationDatadogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder endpoint(String endpoint) { } public AppSpecWorkerLogDestinationDatadogArgs build() { - $.apiKey = Objects.requireNonNull($.apiKey, "expected parameter 'apiKey' to be non-null"); + if ($.apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationDatadogArgs", "apiKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java index 21fba5db..0b10f62a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -82,7 +83,9 @@ public Builder token(String token) { } public AppSpecWorkerLogDestinationLogtailArgs build() { - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.token == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationLogtailArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationPapertrailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationPapertrailArgs.java index 6cd7989d..a842f8a7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationPapertrailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationPapertrailArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder endpoint(String endpoint) { } public AppSpecWorkerLogDestinationPapertrailArgs build() { - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationPapertrailArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterBackupRestoreArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterBackupRestoreArgs.java index 99d1e3c0..6425ae7f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterBackupRestoreArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterBackupRestoreArgs.java @@ -5,6 +5,7 @@ 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; @@ -121,7 +122,9 @@ public Builder databaseName(String databaseName) { } public DatabaseClusterBackupRestoreArgs build() { - $.databaseName = Objects.requireNonNull($.databaseName, "expected parameter 'databaseName' to be non-null"); + if ($.databaseName == null) { + throw new MissingRequiredPropertyException("DatabaseClusterBackupRestoreArgs", "databaseName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterMaintenanceWindowArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterMaintenanceWindowArgs.java index 57ef58cd..e3b969f4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterMaintenanceWindowArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterMaintenanceWindowArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder hour(String hour) { } public DatabaseClusterMaintenanceWindowArgs build() { - $.day = Objects.requireNonNull($.day, "expected parameter 'day' to be non-null"); - $.hour = Objects.requireNonNull($.hour, "expected parameter 'hour' to be non-null"); + if ($.day == null) { + throw new MissingRequiredPropertyException("DatabaseClusterMaintenanceWindowArgs", "day"); + } + if ($.hour == null) { + throw new MissingRequiredPropertyException("DatabaseClusterMaintenanceWindowArgs", "hour"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseFirewallRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseFirewallRuleArgs.java index b708f22b..a1f0e0b1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseFirewallRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseFirewallRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,8 +188,12 @@ public Builder value(String value) { } public DatabaseFirewallRuleArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallRuleArgs", "type"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallRuleArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseUserSettingAclArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseUserSettingAclArgs.java index f63421bf..66e8c24e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseUserSettingAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseUserSettingAclArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder topic(String topic) { } public DatabaseUserSettingAclArgs build() { - $.permission = Objects.requireNonNull($.permission, "expected parameter 'permission' to be non-null"); - $.topic = Objects.requireNonNull($.topic, "expected parameter 'topic' to be non-null"); + if ($.permission == null) { + throw new MissingRequiredPropertyException("DatabaseUserSettingAclArgs", "permission"); + } + if ($.topic == null) { + throw new MissingRequiredPropertyException("DatabaseUserSettingAclArgs", "topic"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallInboundRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallInboundRuleArgs.java index e3d7e0e6..e6f12c0a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallInboundRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallInboundRuleArgs.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; @@ -401,7 +402,9 @@ public Builder sourceTags(String... sourceTags) { } public FirewallInboundRuleArgs build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("FirewallInboundRuleArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallOutboundRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallOutboundRuleArgs.java index 230037ea..5dcc2567 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallOutboundRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/FirewallOutboundRuleArgs.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; @@ -401,7 +402,9 @@ public Builder protocol(String protocol) { } public FirewallOutboundRuleArgs build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("FirewallOutboundRuleArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppArgs.java index 5a77dcda..45d1d961 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder appId(String appId) { } public GetAppArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetAppArgs", "appId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppPlainArgs.java index eab587e4..2c3d9bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetAppPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder appId(String appId) { } public GetAppPlainArgs build() { - $.appId = Objects.requireNonNull($.appId, "expected parameter 'appId' to be non-null"); + if ($.appId == null) { + throw new MissingRequiredPropertyException("GetAppPlainArgs", "appId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificateArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificateArgs.java index e858bec1..d8f42da2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetCertificateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCertificateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificatePlainArgs.java index 62cb9ae6..22c4858b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetCertificatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetCertificatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCertificatePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryArgs.java index 4c841339..c2c80d12 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetContainerRegistryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryPlainArgs.java index cf408eef..d5d1f2e7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetContainerRegistryPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetContainerRegistryPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaArgs.java index fa093b16..5a026864 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder clusterId(String clusterId) { } public GetDatabaseCaArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseCaArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaPlainArgs.java index a50ac213..40d0031b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseCaPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder clusterId(String clusterId) { } public GetDatabaseCaPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseCaPlainArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterArgs.java index 9cd8b597..253aa8b6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterArgs.java @@ -5,6 +5,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; @@ -98,7 +99,9 @@ public Builder tags(String... tags) { } public GetDatabaseClusterArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterPlainArgs.java index 0d406f0b..b89e8aaf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseClusterPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -83,7 +84,9 @@ public Builder tags(String... tags) { } public GetDatabaseClusterPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolArgs.java index 4c86f639..2d8094b9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetDatabaseConnectionPoolArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolPlainArgs.java index 47388535..724bb487 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseConnectionPoolPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetDatabaseConnectionPoolPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaArgs.java index 0fd3e286..8f478863 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaArgs.java @@ -5,6 +5,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; @@ -161,8 +162,12 @@ public Builder tags(String... tags) { } public GetDatabaseReplicaArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaPlainArgs.java index d6bf882f..49d73489 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseReplicaPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -130,8 +131,12 @@ public Builder tags(String... tags) { } public GetDatabaseReplicaPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserArgs.java index 8b9d6678..275ed8eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetDatabaseUserArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserPlainArgs.java index a304385f..1511251c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDatabaseUserPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetDatabaseUserPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainArgs.java index 90f41ebc..26017f11 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetDomainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDomainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainPlainArgs.java index aaf13dd6..3a74f7fb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetDomainPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetDomainPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilter.java index 24c81291..454b4172 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -174,8 +175,12 @@ public Builder values(String... values) { } public GetDomainsFilter 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("GetDomainsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDomainsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilterArgs.java index 2ecbebe6..7ee20322 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsFilterArgs.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; @@ -220,8 +221,12 @@ public Builder values(String... values) { } public GetDomainsFilterArgs 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("GetDomainsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDomainsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSort.java index e6eae161..d5be4671 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder key(String key) { } public GetDomainsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetDomainsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSortArgs.java index 62c17cc1..10ea3b7e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDomainsSortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder key(String key) { } public GetDomainsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetDomainsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilter.java index 12bce57f..47d08905 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -183,8 +184,12 @@ public Builder values(String... values) { } public GetDropletsFilter 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("GetDropletsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDropletsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilterArgs.java index 6b0b01c7..57458e06 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsFilterArgs.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; @@ -232,8 +233,12 @@ public Builder values(String... values) { } public GetDropletsFilterArgs 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("GetDropletsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDropletsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSort.java index 47d56aed..f38aa426 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -101,7 +102,9 @@ public Builder key(String key) { } public GetDropletsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetDropletsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSortArgs.java index 2a5a4c42..e909c2a7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetDropletsSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetDropletsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetDropletsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallArgs.java index 17775f22..df609521 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.GetFirewallInboundRuleArgs; import com.pulumi.digitalocean.inputs.GetFirewallOutboundRuleArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -225,7 +226,9 @@ public Builder tags(String... tags) { } public GetFirewallArgs build() { - $.firewallId = Objects.requireNonNull($.firewallId, "expected parameter 'firewallId' to be non-null"); + if ($.firewallId == null) { + throw new MissingRequiredPropertyException("GetFirewallArgs", "firewallId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRule.java index 13a8e198..722af86d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -291,7 +292,9 @@ public Builder sourceTags(String... sourceTags) { } public GetFirewallInboundRule build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallInboundRule", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRuleArgs.java index dd58883e..08d8e003 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallInboundRuleArgs.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; @@ -365,7 +366,9 @@ public Builder sourceTags(String... sourceTags) { } public GetFirewallInboundRuleArgs build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallInboundRuleArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRule.java index 27352490..97529697 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -299,7 +300,9 @@ public Builder protocol(String protocol) { } public GetFirewallOutboundRule build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallOutboundRule", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRuleArgs.java index 0204b26d..1aec6090 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallOutboundRuleArgs.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; @@ -375,7 +376,9 @@ public Builder protocol(String protocol) { } public GetFirewallOutboundRuleArgs build() { - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); + if ($.protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallOutboundRuleArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallPlainArgs.java index b517c5f1..026e18ff 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFirewallPlainArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.GetFirewallInboundRule; import com.pulumi.digitalocean.inputs.GetFirewallOutboundRule; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -184,7 +185,9 @@ public Builder tags(String... tags) { } public GetFirewallPlainArgs build() { - $.firewallId = Objects.requireNonNull($.firewallId, "expected parameter 'firewallId' to be non-null"); + if ($.firewallId == null) { + throw new MissingRequiredPropertyException("GetFirewallPlainArgs", "firewallId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpArgs.java index f4337950..f4dfee51 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder ipAddress(String ipAddress) { } public GetFloatingIpArgs build() { - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetFloatingIpArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpPlainArgs.java index ab0a8ed5..de7e12de 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetFloatingIpPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder ipAddress(String ipAddress) { } public GetFloatingIpPlainArgs build() { - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetFloatingIpPlainArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilter.java index f69e0143..f87a7a37 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -180,8 +181,12 @@ public Builder values(String... values) { } public GetImagesFilter 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("GetImagesFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetImagesFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilterArgs.java index 059a1c38..c9daec8c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesFilterArgs.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; @@ -228,8 +229,12 @@ public Builder values(String... values) { } public GetImagesFilterArgs 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("GetImagesFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetImagesFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSort.java index 05d70dea..8ba2ee5f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -95,7 +96,9 @@ public Builder key(String key) { } public GetImagesSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetImagesSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSortArgs.java index e7ae0b57..508d02da 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetImagesSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetImagesSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetImagesSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterArgs.java index 58710bf5..ac174fe5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -124,7 +125,9 @@ public Builder tags(String... tags) { } public GetKubernetesClusterArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterPlainArgs.java index 37fcb764..303c3729 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetKubernetesClusterPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -103,7 +104,9 @@ public Builder tags(String... tags) { } public GetKubernetesClusterPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilter.java index f7378759..6adf17a1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -177,8 +178,12 @@ public Builder values(String... values) { } public GetProjectsFilter 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("GetProjectsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetProjectsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilterArgs.java index 233c148c..35cd838b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsFilterArgs.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; @@ -224,8 +225,12 @@ public Builder values(String... values) { } public GetProjectsFilterArgs 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("GetProjectsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetProjectsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSort.java index f74a7da1..570b1248 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -95,7 +96,9 @@ public Builder key(String key) { } public GetProjectsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetProjectsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSortArgs.java index e9914691..2f455622 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetProjectsSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetProjectsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetProjectsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordArgs.java index e57d7f6d..b1cd349e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetRecordArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetRecordArgs", "domain"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRecordArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordPlainArgs.java index 079d5962..6acc1105 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetRecordPlainArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetRecordPlainArgs", "domain"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRecordPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsArgs.java index 86ec841c..ba697bdf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.GetRecordsFilterArgs; import com.pulumi.digitalocean.inputs.GetRecordsSortArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -183,7 +184,9 @@ public Builder sorts(GetRecordsSortArgs... sorts) { } public GetRecordsArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetRecordsArgs", "domain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilter.java index 98ab9e79..e1d9c015 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -177,8 +178,12 @@ public Builder values(String... values) { } public GetRecordsFilter 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("GetRecordsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetRecordsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilterArgs.java index 04a42f88..0bfd457e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsFilterArgs.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; @@ -224,8 +225,12 @@ public Builder values(String... values) { } public GetRecordsFilterArgs 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("GetRecordsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetRecordsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsPlainArgs.java index e2b1cf5b..2650a63f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsPlainArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.GetRecordsFilter; import com.pulumi.digitalocean.inputs.GetRecordsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -150,7 +151,9 @@ public Builder sorts(GetRecordsSort... sorts) { } public GetRecordsPlainArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("GetRecordsPlainArgs", "domain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSort.java index e1cda5d6..2cf25a7a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -95,7 +96,9 @@ public Builder key(String key) { } public GetRecordsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetRecordsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSortArgs.java index 4ec15c93..05cab719 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRecordsSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetRecordsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetRecordsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionArgs.java index 3ccf0bf1..5e51e809 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder slug(String slug) { } public GetRegionArgs build() { - $.slug = Objects.requireNonNull($.slug, "expected parameter 'slug' to be non-null"); + if ($.slug == null) { + throw new MissingRequiredPropertyException("GetRegionArgs", "slug"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionPlainArgs.java index fe25f4ef..e35fc31d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder slug(String slug) { } public GetRegionPlainArgs build() { - $.slug = Objects.requireNonNull($.slug, "expected parameter 'slug' to be non-null"); + if ($.slug == null) { + throw new MissingRequiredPropertyException("GetRegionPlainArgs", "slug"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilter.java index 59613df2..2e9df0c4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -177,8 +178,12 @@ public Builder values(String... values) { } public GetRegionsFilter 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("GetRegionsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetRegionsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilterArgs.java index 9b64c759..4c17601b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsFilterArgs.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; @@ -224,8 +225,12 @@ public Builder values(String... values) { } public GetRegionsFilterArgs 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("GetRegionsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetRegionsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSort.java index 07772b83..04e359eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -95,7 +96,9 @@ public Builder key(String key) { } public GetRegionsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetRegionsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSortArgs.java index 3db15fc6..c4efab01 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetRegionsSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetRegionsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetRegionsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpArgs.java index 464b0506..7775e437 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder ipAddress(String ipAddress) { } public GetReservedIpArgs build() { - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetReservedIpArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpPlainArgs.java index beb8fccd..c7e2404e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetReservedIpPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder ipAddress(String ipAddress) { } public GetReservedIpPlainArgs build() { - $.ipAddress = Objects.requireNonNull($.ipAddress, "expected parameter 'ipAddress' to be non-null"); + if ($.ipAddress == null) { + throw new MissingRequiredPropertyException("GetReservedIpPlainArgs", "ipAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilter.java index 3918cec4..686c2958 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -180,8 +181,12 @@ public Builder values(String... values) { } public GetSizesFilter 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("GetSizesFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSizesFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilterArgs.java index ea6b5d93..399cce10 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesFilterArgs.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; @@ -228,8 +229,12 @@ public Builder values(String... values) { } public GetSizesFilterArgs 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("GetSizesFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSizesFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSort.java index b9e5c8f9..ddbb99ea 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -95,7 +96,9 @@ public Builder key(String key) { } public GetSizesSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSizesSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSortArgs.java index 921da29f..10241c95 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSizesSortArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetSizesSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSizesSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketArgs.java index ef4f63be..99f9ba75 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder region(String region) { } public GetSpacesBucketArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketArgs", "name"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectArgs.java index a7f408cc..7fce6a81 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectArgs.java @@ -5,6 +5,7 @@ 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; @@ -204,9 +205,15 @@ public Builder versionId(String versionId) { } public GetSpacesBucketObjectArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "bucket"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "key"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectPlainArgs.java index 5611617d..6d195a43 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -159,9 +160,15 @@ public Builder versionId(@Nullable String versionId) { } public GetSpacesBucketObjectPlainArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectPlainArgs", "bucket"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectPlainArgs", "key"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectPlainArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsArgs.java index 634ccaa5..6b008a30 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -262,8 +263,12 @@ public Builder region(String region) { } public GetSpacesBucketObjectsArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsArgs", "bucket"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsPlainArgs.java index 73a38983..9272df24 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketObjectsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -201,8 +202,12 @@ public Builder region(String region) { } public GetSpacesBucketObjectsPlainArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsPlainArgs", "bucket"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsPlainArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketPlainArgs.java index 5ed2ea3f..cc4ecf02 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder region(String region) { } public GetSpacesBucketPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketPlainArgs", "name"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketPlainArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilter.java index a3ec8697..97b6d3f0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -174,8 +175,12 @@ public Builder values(String... values) { } public GetSpacesBucketsFilter 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("GetSpacesBucketsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilterArgs.java index 3092f29a..3dc818b1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsFilterArgs.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; @@ -220,8 +221,12 @@ public Builder values(String... values) { } public GetSpacesBucketsFilterArgs 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("GetSpacesBucketsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSort.java index cc1081c5..89acbe20 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder key(String key) { } public GetSpacesBucketsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSortArgs.java index 3932a9ec..38685a1d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSpacesBucketsSortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder key(String key) { } public GetSpacesBucketsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyArgs.java index 2382937b..d2219d28 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetSshKeyArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSshKeyArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyPlainArgs.java index 336739d9..f4c2c991 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeyPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetSshKeyPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSshKeyPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilter.java index 72ade0e1..e8da8973 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -130,8 +131,12 @@ public Builder values(String... values) { } public GetSshKeysFilter 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("GetSshKeysFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSshKeysFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilterArgs.java index 7def1aa6..2ad8ebd1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysFilterArgs.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; @@ -159,8 +160,12 @@ public Builder values(String... values) { } public GetSshKeysFilterArgs 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("GetSshKeysFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetSshKeysFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSort.java index faedcbc7..cc988953 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder key(String key) { } public GetSshKeysSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSshKeysSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSortArgs.java index a3c67d6f..3fe0eb3f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetSshKeysSortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder key(String key) { } public GetSshKeysSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetSshKeysSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagArgs.java index d9c4a416..359bc582 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetTagArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetTagArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagPlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagPlainArgs.java index 42a07cc1..8b65fd49 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetTagPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetTagPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilter.java index e2df2008..36adf6e6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -174,8 +175,12 @@ public Builder values(String... values) { } public GetTagsFilter 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("GetTagsFilter", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetTagsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilterArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilterArgs.java index c3325901..0ef76e01 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsFilterArgs.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; @@ -220,8 +221,12 @@ public Builder values(String... values) { } public GetTagsFilterArgs 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("GetTagsFilterArgs", "key"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetTagsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSort.java index 7a7c5f0e..9404d8c6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder key(String key) { } public GetTagsSort build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetTagsSort", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSortArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSortArgs.java index 9d63b40a..bc5db37b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetTagsSortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder key(String key) { } public GetTagsSortArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetTagsSortArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumeArgs.java index 73cecf62..f057c314 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,7 +151,9 @@ public Builder region(String region) { } public GetVolumeArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetVolumeArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumePlainArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumePlainArgs.java index a7e41aa5..157ac263 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/GetVolumePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,7 +120,9 @@ public Builder region(@Nullable String region) { } public GetVolumePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetVolumePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolArgs.java index 8f9c21b6..b697926d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.KubernetesClusterNodePoolNodeArgs; import com.pulumi.digitalocean.inputs.KubernetesClusterNodePoolTaintArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -519,8 +520,12 @@ public Builder taints(KubernetesClusterNodePoolTaintArgs... taints) { } public KubernetesClusterNodePoolArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.size = Objects.requireNonNull($.size, "expected parameter 'size' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolArgs", "name"); + } + if ($.size == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolArgs", "size"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolTaintArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolTaintArgs.java index afd8be45..9cc4f66a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesClusterNodePoolTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -148,9 +149,15 @@ public Builder value(String value) { } public KubernetesClusterNodePoolTaintArgs build() { - $.effect = Objects.requireNonNull($.effect, "expected parameter 'effect' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.effect == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "effect"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesNodePoolTaintArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesNodePoolTaintArgs.java index 89e7dc60..d97bc3a6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesNodePoolTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/KubernetesNodePoolTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -148,9 +149,15 @@ public Builder value(String value) { } public KubernetesNodePoolTaintArgs build() { - $.effect = Objects.requireNonNull($.effect, "expected parameter 'effect' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.effect == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaintArgs", "effect"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerForwardingRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerForwardingRuleArgs.java index 95b9a15b..dfa57366 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerForwardingRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerForwardingRuleArgs.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; @@ -316,10 +317,18 @@ public Builder tlsPassthrough(Boolean tlsPassthrough) { } public LoadBalancerForwardingRuleArgs build() { - $.entryPort = Objects.requireNonNull($.entryPort, "expected parameter 'entryPort' to be non-null"); - $.entryProtocol = Objects.requireNonNull($.entryProtocol, "expected parameter 'entryProtocol' to be non-null"); - $.targetPort = Objects.requireNonNull($.targetPort, "expected parameter 'targetPort' to be non-null"); - $.targetProtocol = Objects.requireNonNull($.targetProtocol, "expected parameter 'targetProtocol' to be non-null"); + if ($.entryPort == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRuleArgs", "entryPort"); + } + if ($.entryProtocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRuleArgs", "entryProtocol"); + } + if ($.targetPort == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRuleArgs", "targetPort"); + } + if ($.targetProtocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRuleArgs", "targetProtocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerHealthcheckArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerHealthcheckArgs.java index 1f4f8038..7d38af52 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerHealthcheckArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/LoadBalancerHealthcheckArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -299,8 +300,12 @@ public Builder unhealthyThreshold(Integer unhealthyThreshold) { } public LoadBalancerHealthcheckArgs 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("LoadBalancerHealthcheckArgs", "port"); + } + if ($.protocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerHealthcheckArgs", "protocol"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/MonitorAlertAlertsSlackArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/MonitorAlertAlertsSlackArgs.java index 761e5a6c..41038b8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/MonitorAlertAlertsSlackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/MonitorAlertAlertsSlackArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder url(String url) { } public MonitorAlertAlertsSlackArgs build() { - $.channel = Objects.requireNonNull($.channel, "expected parameter 'channel' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.channel == null) { + throw new MissingRequiredPropertyException("MonitorAlertAlertsSlackArgs", "channel"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("MonitorAlertAlertsSlackArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsConfigurationCorsRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsConfigurationCorsRuleArgs.java index ed788201..5606a9d7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsConfigurationCorsRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsConfigurationCorsRuleArgs.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; @@ -303,8 +304,12 @@ public Builder maxAgeSeconds(Integer maxAgeSeconds) { } public SpacesBucketCorsConfigurationCorsRuleArgs build() { - $.allowedMethods = Objects.requireNonNull($.allowedMethods, "expected parameter 'allowedMethods' to be non-null"); - $.allowedOrigins = Objects.requireNonNull($.allowedOrigins, "expected parameter 'allowedOrigins' to be non-null"); + if ($.allowedMethods == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationCorsRuleArgs", "allowedMethods"); + } + if ($.allowedOrigins == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationCorsRuleArgs", "allowedOrigins"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsRuleArgs.java index a1b2d04e..1eef83ca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketCorsRuleArgs.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; @@ -219,8 +220,12 @@ public Builder maxAgeSeconds(Integer maxAgeSeconds) { } public SpacesBucketCorsRuleArgs build() { - $.allowedMethods = Objects.requireNonNull($.allowedMethods, "expected parameter 'allowedMethods' to be non-null"); - $.allowedOrigins = Objects.requireNonNull($.allowedOrigins, "expected parameter 'allowedOrigins' to be non-null"); + if ($.allowedMethods == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsRuleArgs", "allowedMethods"); + } + if ($.allowedOrigins == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsRuleArgs", "allowedOrigins"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketLifecycleRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketLifecycleRuleArgs.java index c1cdd275..8284ede7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketLifecycleRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/SpacesBucketLifecycleRuleArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.annotations.Import; import com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleExpirationArgs; import com.pulumi.digitalocean.inputs.SpacesBucketLifecycleRuleNoncurrentVersionExpirationArgs; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -277,7 +278,9 @@ public Builder prefix(String prefix) { } public SpacesBucketLifecycleRuleArgs build() { - $.enabled = Objects.requireNonNull($.enabled, "expected parameter 'enabled' to be non-null"); + if ($.enabled == null) { + throw new MissingRequiredPropertyException("SpacesBucketLifecycleRuleArgs", "enabled"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/UptimeAlertNotificationSlackArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/UptimeAlertNotificationSlackArgs.java index b6e7ef40..1f664f92 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/UptimeAlertNotificationSlackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/UptimeAlertNotificationSlackArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder url(String url) { } public UptimeAlertNotificationSlackArgs build() { - $.channel = Objects.requireNonNull($.channel, "expected parameter 'channel' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.channel == null) { + throw new MissingRequiredPropertyException("UptimeAlertNotificationSlackArgs", "channel"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("UptimeAlertNotificationSlackArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java index 7348a9f5..3e091c09 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java @@ -14,6 +14,7 @@ import com.pulumi.digitalocean.outputs.AppSpecService; import com.pulumi.digitalocean.outputs.AppSpecStaticSite; import com.pulumi.digitalocean.outputs.AppSpecWorker; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -193,6 +194,7 @@ public Builder(AppSpec defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -201,6 +203,7 @@ public Builder alerts(AppSpecAlert... alerts) { } @CustomType.Setter public Builder databases(@Nullable List databases) { + this.databases = databases; return this; } @@ -209,6 +212,7 @@ public Builder databases(AppSpecDatabase... databases) { } @CustomType.Setter public Builder domainNames(@Nullable List domainNames) { + this.domainNames = domainNames; return this; } @@ -217,6 +221,7 @@ public Builder domainNames(AppSpecDomainName... domainNames) { } @CustomType.Setter public Builder domains(@Nullable List domains) { + this.domains = domains; return this; } @@ -225,6 +230,7 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -233,6 +239,7 @@ public Builder envs(AppSpecEnv... envs) { } @CustomType.Setter public Builder features(@Nullable List features) { + this.features = features; return this; } @@ -241,6 +248,7 @@ public Builder features(String... features) { } @CustomType.Setter public Builder functions(@Nullable List functions) { + this.functions = functions; return this; } @@ -249,11 +257,13 @@ public Builder functions(AppSpecFunction... functions) { } @CustomType.Setter public Builder ingress(@Nullable AppSpecIngress ingress) { + this.ingress = ingress; return this; } @CustomType.Setter public Builder jobs(@Nullable List jobs) { + this.jobs = jobs; return this; } @@ -262,16 +272,21 @@ public Builder jobs(AppSpecJob... jobs) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpec", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder services(@Nullable List services) { + this.services = services; return this; } @@ -280,6 +295,7 @@ public Builder services(AppSpecService... services) { } @CustomType.Setter public Builder staticSites(@Nullable List staticSites) { + this.staticSites = staticSites; return this; } @@ -288,6 +304,7 @@ public Builder staticSites(AppSpecStaticSite... staticSites) { } @CustomType.Setter public Builder workers(@Nullable List workers) { + this.workers = workers; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java index 38d9a265..25be814f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,12 +60,16 @@ public Builder(AppSpecAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("AppSpecAlert", "rule"); + } + this.rule = rule; return this; } public AppSpecAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDatabase.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDatabase.java index cf66974a..50e93df8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDatabase.java @@ -133,36 +133,43 @@ public Builder(AppSpecDatabase defaults) { @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder dbName(@Nullable String dbName) { + this.dbName = dbName; return this; } @CustomType.Setter public Builder dbUser(@Nullable String dbUser) { + this.dbUser = dbUser; return this; } @CustomType.Setter public Builder engine(@Nullable String engine) { + this.engine = engine; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder production(@Nullable Boolean production) { + this.production = production; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java index 23bbd503..f9ffc502 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,21 +88,27 @@ public Builder(AppSpecDomainName defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecDomainName", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder wildcard(@Nullable Boolean wildcard) { + this.wildcard = wildcard; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecEnv.java index 248baa88..fb34b129 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunction.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunction.java index 9e42d794..648ca5db 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunction.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunction.java @@ -12,6 +12,7 @@ import com.pulumi.digitalocean.outputs.AppSpecFunctionGitlab; import com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestination; import com.pulumi.digitalocean.outputs.AppSpecFunctionRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -195,6 +196,7 @@ public Builder(AppSpecFunction defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -203,11 +205,13 @@ public Builder alerts(AppSpecFunctionAlert... alerts) { } @CustomType.Setter public Builder cors(@Nullable AppSpecFunctionCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -216,21 +220,25 @@ public Builder envs(AppSpecFunctionEnv... envs) { } @CustomType.Setter public Builder git(@Nullable AppSpecFunctionGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable AppSpecFunctionGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable AppSpecFunctionGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -239,11 +247,15 @@ public Builder logDestinations(AppSpecFunctionLogDestination... logDestinations) } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecFunction", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder routes(@Nullable List routes) { + this.routes = routes; return this; } @@ -252,6 +264,7 @@ public Builder routes(AppSpecFunctionRoute... routes) { } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionAlert.java index f98ee04c..8c5202d5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(AppSpecFunctionAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionAlert", "window"); + } + this.window = window; return this; } public AppSpecFunctionAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCors.java index 7330b662..bad43b8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCors.java @@ -125,11 +125,13 @@ public Builder(AppSpecFunctionCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -138,6 +140,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -146,11 +149,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable AppSpecFunctionCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -159,6 +164,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCorsAllowOrigins.java index c01d9a8b..67aa7e58 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(AppSpecFunctionCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionEnv.java index cc010f46..f22a30ea 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecFunctionEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGit.java index 95832763..86313469 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGit.java @@ -58,11 +58,13 @@ public Builder(AppSpecFunctionGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGithub.java index d6fea824..bc38a9a1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGithub.java @@ -73,16 +73,19 @@ public Builder(AppSpecFunctionGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGitlab.java index 70e06328..fa889635 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionGitlab.java @@ -73,16 +73,19 @@ public Builder(AppSpecFunctionGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestination.java index ad2a19eb..ee44ba6b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestinationDatadog; import com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestinationLogtail; import com.pulumi.digitalocean.outputs.AppSpecFunctionLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(AppSpecFunctionLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable AppSpecFunctionLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable AppSpecFunctionLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable AppSpecFunctionLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationDatadog.java index e5830176..f6c5a36e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(AppSpecFunctionLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java index 4329f6bf..afa0e172 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,7 +47,10 @@ public Builder(AppSpecFunctionLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationLogtail", "token"); + } + this.token = token; return this; } public AppSpecFunctionLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationPapertrail.java index 7438c5bf..ec50243d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(AppSpecFunctionLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecFunctionLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public AppSpecFunctionLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionRoute.java index ae9aa054..de47a303 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionRoute.java @@ -59,11 +59,13 @@ public Builder(AppSpecFunctionRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngress.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngress.java index ac49bee0..f6a01f1a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngress.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngress.java @@ -44,6 +44,7 @@ public Builder(AppSpecIngress defaults) { @CustomType.Setter public Builder rules(@Nullable List rules) { + this.rules = rules; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java index 2a8ead38..8a1dfea5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java @@ -89,21 +89,25 @@ public Builder(AppSpecIngressRule defaults) { @CustomType.Setter public Builder component(@Nullable AppSpecIngressRuleComponent component) { + this.component = component; return this; } @CustomType.Setter public Builder cors(@Nullable AppSpecIngressRuleCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder match(@Nullable AppSpecIngressRuleMatch match) { + this.match = match; return this; } @CustomType.Setter public Builder redirect(@Nullable AppSpecIngressRuleRedirect redirect) { + this.redirect = redirect; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java index 11dd9f9a..f5c2e3fd 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java @@ -73,16 +73,19 @@ public Builder(AppSpecIngressRuleComponent defaults) { @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } @CustomType.Setter public Builder rewrite(@Nullable String rewrite) { + this.rewrite = rewrite; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java index 0d3a69a1..ec7b616a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java @@ -125,11 +125,13 @@ public Builder(AppSpecIngressRuleCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -138,6 +140,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -146,11 +149,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable AppSpecIngressRuleCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -159,6 +164,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java index a76fba9b..f08f85a2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(AppSpecIngressRuleCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java index 7c62d30a..28859e71 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java @@ -44,6 +44,7 @@ public Builder(AppSpecIngressRuleMatch defaults) { @CustomType.Setter public Builder path(@Nullable AppSpecIngressRuleMatchPath path) { + this.path = path; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java index 3ae3286e..a04d2517 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java @@ -44,6 +44,7 @@ public Builder(AppSpecIngressRuleMatchPath defaults) { @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java index 992e50bd..4b9062f9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java @@ -101,26 +101,31 @@ public Builder(AppSpecIngressRuleRedirect defaults) { @CustomType.Setter public Builder authority(@Nullable String authority) { + this.authority = authority; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder redirectCode(@Nullable Integer redirectCode) { + this.redirectCode = redirectCode; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } @CustomType.Setter public Builder uri(@Nullable String uri) { + this.uri = uri; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java index 9f447b95..da3abae1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java @@ -11,6 +11,7 @@ import com.pulumi.digitalocean.outputs.AppSpecJobGitlab; import com.pulumi.digitalocean.outputs.AppSpecJobImage; import com.pulumi.digitalocean.outputs.AppSpecJobLogDestination; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -263,6 +264,7 @@ public Builder(AppSpecJob defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -271,21 +273,25 @@ public Builder alerts(AppSpecJobAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -294,41 +300,49 @@ public Builder envs(AppSpecJobEnv... envs) { } @CustomType.Setter public Builder git(@Nullable AppSpecJobGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable AppSpecJobGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable AppSpecJobGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder image(@Nullable AppSpecJobImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -337,16 +351,21 @@ public Builder logDestinations(AppSpecJobLogDestination... logDestinations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecJob", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder runCommand(@Nullable String runCommand) { + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobAlert.java index 60040fa4..b081d794 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(AppSpecJobAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("AppSpecJobAlert", "window"); + } + this.window = window; return this; } public AppSpecJobAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobEnv.java index c01a5a2f..f9eebb35 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecJobEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGit.java index 6985c02f..262ed79f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGit.java @@ -58,11 +58,13 @@ public Builder(AppSpecJobGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGithub.java index 6819623d..16558e95 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGithub.java @@ -73,16 +73,19 @@ public Builder(AppSpecJobGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGitlab.java index a4c330eb..cb849df2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobGitlab.java @@ -73,16 +73,19 @@ public Builder(AppSpecJobGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java index 2c8930a8..a449acd7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.AppSpecJobImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,6 +103,7 @@ public Builder(AppSpecJobImage defaults) { @CustomType.Setter public Builder deployOnPushes(@Nullable List deployOnPushes) { + this.deployOnPushes = deployOnPushes; return this; } @@ -110,21 +112,29 @@ public Builder deployOnPushes(AppSpecJobImageDeployOnPush... deployOnPushes) { } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("AppSpecJobImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("AppSpecJobImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImageDeployOnPush.java index cbf921ec..0890777a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(AppSpecJobImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestination.java index dadfb7ce..93b8a8eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.AppSpecJobLogDestinationDatadog; import com.pulumi.digitalocean.outputs.AppSpecJobLogDestinationLogtail; import com.pulumi.digitalocean.outputs.AppSpecJobLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(AppSpecJobLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable AppSpecJobLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable AppSpecJobLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable AppSpecJobLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationDatadog.java index 257009d2..dad86780 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(AppSpecJobLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java index cf851d2a..7ecb4e25 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,7 +47,10 @@ public Builder(AppSpecJobLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationLogtail", "token"); + } + this.token = token; return this; } public AppSpecJobLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationPapertrail.java index eb7cdd94..32bc02c3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(AppSpecJobLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecJobLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public AppSpecJobLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecService.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecService.java index bb32607a..0205c54c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecService.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecService.java @@ -14,6 +14,7 @@ import com.pulumi.digitalocean.outputs.AppSpecServiceImage; import com.pulumi.digitalocean.outputs.AppSpecServiceLogDestination; import com.pulumi.digitalocean.outputs.AppSpecServiceRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -338,6 +339,7 @@ public Builder(AppSpecService defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -346,26 +348,31 @@ public Builder alerts(AppSpecServiceAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder cors(@Nullable AppSpecServiceCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -374,46 +381,55 @@ public Builder envs(AppSpecServiceEnv... envs) { } @CustomType.Setter public Builder git(@Nullable AppSpecServiceGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable AppSpecServiceGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable AppSpecServiceGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder healthCheck(@Nullable AppSpecServiceHealthCheck healthCheck) { + this.healthCheck = healthCheck; return this; } @CustomType.Setter public Builder httpPort(@Nullable Integer httpPort) { + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder image(@Nullable AppSpecServiceImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder internalPorts(@Nullable List internalPorts) { + this.internalPorts = internalPorts; return this; } @@ -422,6 +438,7 @@ public Builder internalPorts(Integer... internalPorts) { } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -430,11 +447,15 @@ public Builder logDestinations(AppSpecServiceLogDestination... logDestinations) } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecService", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder routes(@Nullable List routes) { + this.routes = routes; return this; } @@ -443,11 +464,13 @@ public Builder routes(AppSpecServiceRoute... routes) { } @CustomType.Setter public Builder runCommand(@Nullable String runCommand) { + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceAlert.java index 28a56244..677853d1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(AppSpecServiceAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("AppSpecServiceAlert", "window"); + } + this.window = window; return this; } public AppSpecServiceAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCors.java index 21927009..e283c973 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCors.java @@ -125,11 +125,13 @@ public Builder(AppSpecServiceCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -138,6 +140,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -146,11 +149,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable AppSpecServiceCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -159,6 +164,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCorsAllowOrigins.java index 63bc25b4..712dfa52 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(AppSpecServiceCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceEnv.java index 1d62edb8..592fdd8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecServiceEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGit.java index 372419d0..d9bac43d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGit.java @@ -58,11 +58,13 @@ public Builder(AppSpecServiceGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGithub.java index e25a7e7d..76dae382 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGithub.java @@ -73,16 +73,19 @@ public Builder(AppSpecServiceGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGitlab.java index 099b9275..84970480 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceGitlab.java @@ -73,16 +73,19 @@ public Builder(AppSpecServiceGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceHealthCheck.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceHealthCheck.java index 327de719..0f8d714d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceHealthCheck.java @@ -129,36 +129,43 @@ public Builder(AppSpecServiceHealthCheck defaults) { @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { + this.failureThreshold = failureThreshold; return this; } @CustomType.Setter public Builder httpPath(@Nullable String httpPath) { + this.httpPath = httpPath; 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 port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder successThreshold(@Nullable Integer successThreshold) { + this.successThreshold = successThreshold; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java index e5b52cf4..bef5a987 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.AppSpecServiceImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,6 +103,7 @@ public Builder(AppSpecServiceImage defaults) { @CustomType.Setter public Builder deployOnPushes(@Nullable List deployOnPushes) { + this.deployOnPushes = deployOnPushes; return this; } @@ -110,21 +112,29 @@ public Builder deployOnPushes(AppSpecServiceImageDeployOnPush... deployOnPushes) } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("AppSpecServiceImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("AppSpecServiceImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImageDeployOnPush.java index 81af40ff..d1685075 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(AppSpecServiceImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestination.java index 5ea242d0..f993404c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.AppSpecServiceLogDestinationDatadog; import com.pulumi.digitalocean.outputs.AppSpecServiceLogDestinationLogtail; import com.pulumi.digitalocean.outputs.AppSpecServiceLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(AppSpecServiceLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable AppSpecServiceLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable AppSpecServiceLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable AppSpecServiceLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationDatadog.java index 30e4ab42..021d0af4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(AppSpecServiceLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java index 7a784fb7..03fe7080 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,7 +47,10 @@ public Builder(AppSpecServiceLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationLogtail", "token"); + } + this.token = token; return this; } public AppSpecServiceLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationPapertrail.java index 9d557f31..819fb7d3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(AppSpecServiceLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecServiceLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public AppSpecServiceLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceRoute.java index 372f2316..76f3a670 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceRoute.java @@ -59,11 +59,13 @@ public Builder(AppSpecServiceRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSite.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSite.java index 70635328..6fe31201 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSite.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSite.java @@ -10,6 +10,7 @@ import com.pulumi.digitalocean.outputs.AppSpecStaticSiteGithub; import com.pulumi.digitalocean.outputs.AppSpecStaticSiteGitlab; import com.pulumi.digitalocean.outputs.AppSpecStaticSiteRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -263,31 +264,37 @@ public Builder(AppSpecStaticSite defaults) { @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder catchallDocument(@Nullable String catchallDocument) { + this.catchallDocument = catchallDocument; return this; } @CustomType.Setter public Builder cors(@Nullable AppSpecStaticSiteCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -296,41 +303,51 @@ public Builder envs(AppSpecStaticSiteEnv... envs) { } @CustomType.Setter public Builder errorDocument(@Nullable String errorDocument) { + this.errorDocument = errorDocument; return this; } @CustomType.Setter public Builder git(@Nullable AppSpecStaticSiteGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable AppSpecStaticSiteGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable AppSpecStaticSiteGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder indexDocument(@Nullable String indexDocument) { + this.indexDocument = indexDocument; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecStaticSite", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder outputDir(@Nullable String outputDir) { + this.outputDir = outputDir; return this; } @CustomType.Setter public Builder routes(@Nullable List routes) { + this.routes = routes; return this; } @@ -339,6 +356,7 @@ public Builder routes(AppSpecStaticSiteRoute... routes) { } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCors.java index d7de57ca..eb6725c1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCors.java @@ -125,11 +125,13 @@ public Builder(AppSpecStaticSiteCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -138,6 +140,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -146,11 +149,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable AppSpecStaticSiteCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -159,6 +164,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCorsAllowOrigins.java index 8cd9c5a8..9a264871 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(AppSpecStaticSiteCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteEnv.java index 39423960..c6f38ee9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecStaticSiteEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGit.java index 8b59ffd3..67b794e2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGit.java @@ -58,11 +58,13 @@ public Builder(AppSpecStaticSiteGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGithub.java index 9055b91e..13fda1bf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGithub.java @@ -73,16 +73,19 @@ public Builder(AppSpecStaticSiteGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGitlab.java index 8b086ed2..b3183c40 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteGitlab.java @@ -73,16 +73,19 @@ public Builder(AppSpecStaticSiteGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteRoute.java index 21a05180..9e6b6782 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecStaticSiteRoute.java @@ -59,11 +59,13 @@ public Builder(AppSpecStaticSiteRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorker.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorker.java index 4a14589e..a8720983 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorker.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorker.java @@ -11,6 +11,7 @@ import com.pulumi.digitalocean.outputs.AppSpecWorkerGitlab; import com.pulumi.digitalocean.outputs.AppSpecWorkerImage; import com.pulumi.digitalocean.outputs.AppSpecWorkerLogDestination; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -249,6 +250,7 @@ public Builder(AppSpecWorker defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -257,21 +259,25 @@ public Builder alerts(AppSpecWorkerAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -280,36 +286,43 @@ public Builder envs(AppSpecWorkerEnv... envs) { } @CustomType.Setter public Builder git(@Nullable AppSpecWorkerGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable AppSpecWorkerGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable AppSpecWorkerGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder image(@Nullable AppSpecWorkerImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -318,16 +331,21 @@ public Builder logDestinations(AppSpecWorkerLogDestination... logDestinations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecWorker", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder runCommand(@Nullable String runCommand) { + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerAlert.java index e47ffaa8..0c76a5c8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(AppSpecWorkerAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerAlert", "window"); + } + this.window = window; return this; } public AppSpecWorkerAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerEnv.java index b448dc40..20f2e48b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerEnv.java @@ -86,21 +86,25 @@ public Builder(AppSpecWorkerEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; 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; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGit.java index cf185e43..2185c503 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGit.java @@ -58,11 +58,13 @@ public Builder(AppSpecWorkerGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGithub.java index 003301ff..ca3fe9ac 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGithub.java @@ -73,16 +73,19 @@ public Builder(AppSpecWorkerGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGitlab.java index 36606642..7d6c47e5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerGitlab.java @@ -73,16 +73,19 @@ public Builder(AppSpecWorkerGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java index 9162c7f3..250f664b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.AppSpecWorkerImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,6 +103,7 @@ public Builder(AppSpecWorkerImage defaults) { @CustomType.Setter public Builder deployOnPushes(@Nullable List deployOnPushes) { + this.deployOnPushes = deployOnPushes; return this; } @@ -110,21 +112,29 @@ public Builder deployOnPushes(AppSpecWorkerImageDeployOnPush... deployOnPushes) } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImageDeployOnPush.java index e0d425fe..fd298e50 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(AppSpecWorkerImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestination.java index 3f0d4c43..7605744a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.AppSpecWorkerLogDestinationDatadog; import com.pulumi.digitalocean.outputs.AppSpecWorkerLogDestinationLogtail; import com.pulumi.digitalocean.outputs.AppSpecWorkerLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(AppSpecWorkerLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable AppSpecWorkerLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable AppSpecWorkerLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable AppSpecWorkerLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationDatadog.java index 2e7d65f0..9d97a5d4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(AppSpecWorkerLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java index 8caacd71..3f80a0eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,7 +47,10 @@ public Builder(AppSpecWorkerLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationLogtail", "token"); + } + this.token = token; return this; } public AppSpecWorkerLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationPapertrail.java index 75f58e61..ed4983b3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(AppSpecWorkerLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public AppSpecWorkerLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterBackupRestore.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterBackupRestore.java index 68394884..160d3f32 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterBackupRestore.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterBackupRestore.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,12 +63,16 @@ public Builder(DatabaseClusterBackupRestore defaults) { @CustomType.Setter public Builder backupCreatedAt(@Nullable String backupCreatedAt) { + this.backupCreatedAt = backupCreatedAt; return this; } @CustomType.Setter public Builder databaseName(String databaseName) { - this.databaseName = Objects.requireNonNull(databaseName); + if (databaseName == null) { + throw new MissingRequiredPropertyException("DatabaseClusterBackupRestore", "databaseName"); + } + this.databaseName = databaseName; return this; } public DatabaseClusterBackupRestore build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterMaintenanceWindow.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterMaintenanceWindow.java index 45672cf5..c42b2877 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterMaintenanceWindow.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseClusterMaintenanceWindow.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(DatabaseClusterMaintenanceWindow defaults) { @CustomType.Setter public Builder day(String day) { - this.day = Objects.requireNonNull(day); + if (day == null) { + throw new MissingRequiredPropertyException("DatabaseClusterMaintenanceWindow", "day"); + } + this.day = day; return this; } @CustomType.Setter public Builder hour(String hour) { - this.hour = Objects.requireNonNull(hour); + if (hour == null) { + throw new MissingRequiredPropertyException("DatabaseClusterMaintenanceWindow", "hour"); + } + this.hour = hour; return this; } public DatabaseClusterMaintenanceWindow build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseFirewallRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseFirewallRule.java index 26856244..423455ec 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseFirewallRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseFirewallRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,22 +87,30 @@ public Builder(DatabaseFirewallRule defaults) { @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallRule", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("DatabaseFirewallRule", "value"); + } + this.value = value; return this; } public DatabaseFirewallRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseKafkaTopicConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseKafkaTopicConfig.java index c70da404..c6822ee5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseKafkaTopicConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseKafkaTopicConfig.java @@ -351,116 +351,139 @@ public Builder(DatabaseKafkaTopicConfig defaults) { @CustomType.Setter public Builder cleanupPolicy(@Nullable String cleanupPolicy) { + this.cleanupPolicy = cleanupPolicy; return this; } @CustomType.Setter public Builder compressionType(@Nullable String compressionType) { + this.compressionType = compressionType; return this; } @CustomType.Setter public Builder deleteRetentionMs(@Nullable String deleteRetentionMs) { + this.deleteRetentionMs = deleteRetentionMs; return this; } @CustomType.Setter public Builder fileDeleteDelayMs(@Nullable String fileDeleteDelayMs) { + this.fileDeleteDelayMs = fileDeleteDelayMs; return this; } @CustomType.Setter public Builder flushMessages(@Nullable String flushMessages) { + this.flushMessages = flushMessages; return this; } @CustomType.Setter public Builder flushMs(@Nullable String flushMs) { + this.flushMs = flushMs; return this; } @CustomType.Setter public Builder indexIntervalBytes(@Nullable String indexIntervalBytes) { + this.indexIntervalBytes = indexIntervalBytes; return this; } @CustomType.Setter public Builder maxCompactionLagMs(@Nullable String maxCompactionLagMs) { + this.maxCompactionLagMs = maxCompactionLagMs; return this; } @CustomType.Setter public Builder maxMessageBytes(@Nullable String maxMessageBytes) { + this.maxMessageBytes = maxMessageBytes; return this; } @CustomType.Setter public Builder messageDownConversionEnable(@Nullable Boolean messageDownConversionEnable) { + this.messageDownConversionEnable = messageDownConversionEnable; return this; } @CustomType.Setter public Builder messageFormatVersion(@Nullable String messageFormatVersion) { + this.messageFormatVersion = messageFormatVersion; return this; } @CustomType.Setter public Builder messageTimestampDifferenceMaxMs(@Nullable String messageTimestampDifferenceMaxMs) { + this.messageTimestampDifferenceMaxMs = messageTimestampDifferenceMaxMs; return this; } @CustomType.Setter public Builder messageTimestampType(@Nullable String messageTimestampType) { + this.messageTimestampType = messageTimestampType; return this; } @CustomType.Setter public Builder minCleanableDirtyRatio(@Nullable Double minCleanableDirtyRatio) { + this.minCleanableDirtyRatio = minCleanableDirtyRatio; return this; } @CustomType.Setter public Builder minCompactionLagMs(@Nullable String minCompactionLagMs) { + this.minCompactionLagMs = minCompactionLagMs; return this; } @CustomType.Setter public Builder minInsyncReplicas(@Nullable Integer minInsyncReplicas) { + this.minInsyncReplicas = minInsyncReplicas; return this; } @CustomType.Setter public Builder preallocate(@Nullable Boolean preallocate) { + this.preallocate = preallocate; return this; } @CustomType.Setter public Builder retentionBytes(@Nullable String retentionBytes) { + this.retentionBytes = retentionBytes; return this; } @CustomType.Setter public Builder retentionMs(@Nullable String retentionMs) { + this.retentionMs = retentionMs; return this; } @CustomType.Setter public Builder segmentBytes(@Nullable String segmentBytes) { + this.segmentBytes = segmentBytes; return this; } @CustomType.Setter public Builder segmentIndexBytes(@Nullable String segmentIndexBytes) { + this.segmentIndexBytes = segmentIndexBytes; return this; } @CustomType.Setter public Builder segmentJitterMs(@Nullable String segmentJitterMs) { + this.segmentJitterMs = segmentJitterMs; return this; } @CustomType.Setter public Builder segmentMs(@Nullable String segmentMs) { + this.segmentMs = segmentMs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSetting.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSetting.java index 188a0ade..2b66327e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSetting.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSetting.java @@ -48,6 +48,7 @@ public Builder(DatabaseUserSetting defaults) { @CustomType.Setter public Builder acls(@Nullable List acls) { + this.acls = acls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSettingAcl.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSettingAcl.java index e51c1c48..f0293840 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSettingAcl.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/DatabaseUserSettingAcl.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,24 @@ public Builder(DatabaseUserSettingAcl defaults) { @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder permission(String permission) { - this.permission = Objects.requireNonNull(permission); + if (permission == null) { + throw new MissingRequiredPropertyException("DatabaseUserSettingAcl", "permission"); + } + this.permission = permission; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("DatabaseUserSettingAcl", "topic"); + } + this.topic = topic; return this; } public DatabaseUserSettingAcl build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallInboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallInboundRule.java index 169daf7a..0255182a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallInboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallInboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -152,16 +153,21 @@ public Builder(FirewallInboundRule defaults) { @CustomType.Setter public Builder portRange(@Nullable String portRange) { + this.portRange = portRange; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("FirewallInboundRule", "protocol"); + } + this.protocol = protocol; return this; } @CustomType.Setter public Builder sourceAddresses(@Nullable List sourceAddresses) { + this.sourceAddresses = sourceAddresses; return this; } @@ -170,6 +176,7 @@ public Builder sourceAddresses(String... sourceAddresses) { } @CustomType.Setter public Builder sourceDropletIds(@Nullable List sourceDropletIds) { + this.sourceDropletIds = sourceDropletIds; return this; } @@ -178,6 +185,7 @@ public Builder sourceDropletIds(Integer... sourceDropletIds) { } @CustomType.Setter public Builder sourceKubernetesIds(@Nullable List sourceKubernetesIds) { + this.sourceKubernetesIds = sourceKubernetesIds; return this; } @@ -186,6 +194,7 @@ public Builder sourceKubernetesIds(String... sourceKubernetesIds) { } @CustomType.Setter public Builder sourceLoadBalancerUids(@Nullable List sourceLoadBalancerUids) { + this.sourceLoadBalancerUids = sourceLoadBalancerUids; return this; } @@ -194,6 +203,7 @@ public Builder sourceLoadBalancerUids(String... sourceLoadBalancerUids) { } @CustomType.Setter public Builder sourceTags(@Nullable List sourceTags) { + this.sourceTags = sourceTags; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallOutboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallOutboundRule.java index a8eeac7c..1daec0fe 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallOutboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallOutboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -152,6 +153,7 @@ public Builder(FirewallOutboundRule defaults) { @CustomType.Setter public Builder destinationAddresses(@Nullable List destinationAddresses) { + this.destinationAddresses = destinationAddresses; return this; } @@ -160,6 +162,7 @@ public Builder destinationAddresses(String... destinationAddresses) { } @CustomType.Setter public Builder destinationDropletIds(@Nullable List destinationDropletIds) { + this.destinationDropletIds = destinationDropletIds; return this; } @@ -168,6 +171,7 @@ public Builder destinationDropletIds(Integer... destinationDropletIds) { } @CustomType.Setter public Builder destinationKubernetesIds(@Nullable List destinationKubernetesIds) { + this.destinationKubernetesIds = destinationKubernetesIds; return this; } @@ -176,6 +180,7 @@ public Builder destinationKubernetesIds(String... destinationKubernetesIds) { } @CustomType.Setter public Builder destinationLoadBalancerUids(@Nullable List destinationLoadBalancerUids) { + this.destinationLoadBalancerUids = destinationLoadBalancerUids; return this; } @@ -184,6 +189,7 @@ public Builder destinationLoadBalancerUids(String... destinationLoadBalancerUids } @CustomType.Setter public Builder destinationTags(@Nullable List destinationTags) { + this.destinationTags = destinationTags; return this; } @@ -192,12 +198,16 @@ public Builder destinationTags(String... destinationTags) { } @CustomType.Setter public Builder portRange(@Nullable String portRange) { + this.portRange = portRange; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("FirewallOutboundRule", "protocol"); + } + this.protocol = protocol; return this; } public FirewallOutboundRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallPendingChange.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallPendingChange.java index 72cca4fa..a2d3cfab 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallPendingChange.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/FirewallPendingChange.java @@ -60,16 +60,19 @@ public Builder(FirewallPendingChange defaults) { @CustomType.Setter public Builder dropletId(@Nullable Integer dropletId) { + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder removing(@Nullable Boolean removing) { + this.removing = removing; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAccountResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAccountResult.java index ffd9930e..b289d93b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAccountResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -142,42 +143,66 @@ public Builder(GetAccountResult defaults) { @CustomType.Setter public Builder dropletLimit(Integer dropletLimit) { - this.dropletLimit = Objects.requireNonNull(dropletLimit); + if (dropletLimit == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "dropletLimit"); + } + this.dropletLimit = dropletLimit; return this; } @CustomType.Setter public Builder email(String email) { - this.email = Objects.requireNonNull(email); + if (email == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "email"); + } + this.email = email; return this; } @CustomType.Setter public Builder emailVerified(Boolean emailVerified) { - this.emailVerified = Objects.requireNonNull(emailVerified); + if (emailVerified == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "emailVerified"); + } + this.emailVerified = emailVerified; return this; } @CustomType.Setter public Builder floatingIpLimit(Integer floatingIpLimit) { - this.floatingIpLimit = Objects.requireNonNull(floatingIpLimit); + if (floatingIpLimit == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "floatingIpLimit"); + } + this.floatingIpLimit = floatingIpLimit; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder statusMessage(String statusMessage) { - this.statusMessage = Objects.requireNonNull(statusMessage); + if (statusMessage == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "statusMessage"); + } + this.statusMessage = statusMessage; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "uuid"); + } + this.uuid = uuid; return this; } public GetAccountResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppResult.java index 31c86f58..1697f26d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppResult.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpec; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -148,37 +149,58 @@ public Builder(GetAppResult defaults) { @CustomType.Setter public Builder activeDeploymentId(String activeDeploymentId) { - this.activeDeploymentId = Objects.requireNonNull(activeDeploymentId); + if (activeDeploymentId == null) { + throw new MissingRequiredPropertyException("GetAppResult", "activeDeploymentId"); + } + this.activeDeploymentId = activeDeploymentId; return this; } @CustomType.Setter public Builder appId(String appId) { - this.appId = Objects.requireNonNull(appId); + if (appId == null) { + throw new MissingRequiredPropertyException("GetAppResult", "appId"); + } + this.appId = appId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetAppResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder defaultIngress(String defaultIngress) { - this.defaultIngress = Objects.requireNonNull(defaultIngress); + if (defaultIngress == null) { + throw new MissingRequiredPropertyException("GetAppResult", "defaultIngress"); + } + this.defaultIngress = defaultIngress; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAppResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder liveUrl(String liveUrl) { - this.liveUrl = Objects.requireNonNull(liveUrl); + if (liveUrl == null) { + throw new MissingRequiredPropertyException("GetAppResult", "liveUrl"); + } + this.liveUrl = liveUrl; return this; } @CustomType.Setter public Builder specs(List specs) { - this.specs = Objects.requireNonNull(specs); + if (specs == null) { + throw new MissingRequiredPropertyException("GetAppResult", "specs"); + } + this.specs = specs; return this; } public Builder specs(GetAppSpec... specs) { @@ -186,12 +208,18 @@ public Builder specs(GetAppSpec... specs) { } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetAppResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetAppResult", "urn"); + } + this.urn = urn; return this; } public GetAppResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpec.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpec.java index 442996b2..d06d063f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpec.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpec.java @@ -14,6 +14,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecService; import com.pulumi.digitalocean.outputs.GetAppSpecStaticSite; import com.pulumi.digitalocean.outputs.GetAppSpecWorker; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -161,6 +162,7 @@ public Builder(GetAppSpec defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -169,6 +171,7 @@ public Builder alerts(GetAppSpecAlert... alerts) { } @CustomType.Setter public Builder databases(@Nullable List databases) { + this.databases = databases; return this; } @@ -177,7 +180,10 @@ public Builder databases(GetAppSpecDatabase... databases) { } @CustomType.Setter public Builder domain(List domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetAppSpec", "domain"); + } + this.domain = domain; return this; } public Builder domain(GetAppSpecDomain... domain) { @@ -185,7 +191,10 @@ public Builder domain(GetAppSpecDomain... domain) { } @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetAppSpec", "domains"); + } + this.domains = domains; return this; } public Builder domains(String... domains) { @@ -193,6 +202,7 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -201,6 +211,7 @@ public Builder envs(GetAppSpecEnv... envs) { } @CustomType.Setter public Builder features(@Nullable List features) { + this.features = features; return this; } @@ -209,6 +220,7 @@ public Builder features(String... features) { } @CustomType.Setter public Builder functions(@Nullable List functions) { + this.functions = functions; return this; } @@ -217,11 +229,15 @@ public Builder functions(GetAppSpecFunction... functions) { } @CustomType.Setter public Builder ingress(GetAppSpecIngress ingress) { - this.ingress = Objects.requireNonNull(ingress); + if (ingress == null) { + throw new MissingRequiredPropertyException("GetAppSpec", "ingress"); + } + this.ingress = ingress; return this; } @CustomType.Setter public Builder jobs(@Nullable List jobs) { + this.jobs = jobs; return this; } @@ -230,16 +246,21 @@ public Builder jobs(GetAppSpecJob... jobs) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpec", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder services(@Nullable List services) { + this.services = services; return this; } @@ -248,6 +269,7 @@ public Builder services(GetAppSpecService... services) { } @CustomType.Setter public Builder staticSites(@Nullable List staticSites) { + this.staticSites = staticSites; return this; } @@ -256,6 +278,7 @@ public Builder staticSites(GetAppSpecStaticSite... staticSites) { } @CustomType.Setter public Builder workers(@Nullable List workers) { + this.workers = workers; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecAlert.java index 99b53a26..79cc06fe 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,12 +60,16 @@ public Builder(GetAppSpecAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetAppSpecAlert", "rule"); + } + this.rule = rule; return this; } public GetAppSpecAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDatabase.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDatabase.java index 3f1767e7..7d5ba899 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDatabase.java @@ -129,36 +129,43 @@ public Builder(GetAppSpecDatabase defaults) { @CustomType.Setter public Builder clusterName(@Nullable String clusterName) { + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder dbName(@Nullable String dbName) { + this.dbName = dbName; return this; } @CustomType.Setter public Builder dbUser(@Nullable String dbUser) { + this.dbUser = dbUser; return this; } @CustomType.Setter public Builder engine(@Nullable String engine) { + this.engine = engine; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder production(@Nullable Boolean production) { + this.production = production; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDomain.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDomain.java index 89b0d551..8c5124cf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDomain.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecDomain.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -71,21 +72,31 @@ public Builder(GetAppSpecDomain defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecDomain", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecDomain", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder wildcard(Boolean wildcard) { - this.wildcard = Objects.requireNonNull(wildcard); + if (wildcard == null) { + throw new MissingRequiredPropertyException("GetAppSpecDomain", "wildcard"); + } + this.wildcard = wildcard; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecEnv.java index 850c1a77..9a393316 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunction.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunction.java index 5e9c9bb2..f1350985 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunction.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunction.java @@ -12,6 +12,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecFunctionGitlab; import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestination; import com.pulumi.digitalocean.outputs.GetAppSpecFunctionRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -191,6 +192,7 @@ public Builder(GetAppSpecFunction defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -199,11 +201,13 @@ public Builder alerts(GetAppSpecFunctionAlert... alerts) { } @CustomType.Setter public Builder cors(@Nullable GetAppSpecFunctionCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -212,21 +216,25 @@ public Builder envs(GetAppSpecFunctionEnv... envs) { } @CustomType.Setter public Builder git(@Nullable GetAppSpecFunctionGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable GetAppSpecFunctionGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable GetAppSpecFunctionGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -235,12 +243,18 @@ public Builder logDestinations(GetAppSpecFunctionLogDestination... logDestinatio } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunction", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder routes(List routes) { - this.routes = Objects.requireNonNull(routes); + if (routes == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunction", "routes"); + } + this.routes = routes; return this; } public Builder routes(GetAppSpecFunctionRoute... routes) { @@ -248,6 +262,7 @@ public Builder routes(GetAppSpecFunctionRoute... routes) { } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionAlert.java index 8689f275..b1659a92 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(GetAppSpecFunctionAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionAlert", "window"); + } + this.window = window; return this; } public GetAppSpecFunctionAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCors.java index 0cff4a58..19ad5b5c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCors.java @@ -117,11 +117,13 @@ public Builder(GetAppSpecFunctionCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -130,6 +132,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -138,11 +141,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable GetAppSpecFunctionCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -151,6 +156,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCorsAllowOrigins.java index 138f71ea..e98f7c7f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(GetAppSpecFunctionCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionEnv.java index 00784b9b..bd87e6b6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecFunctionEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGit.java index 485ced8f..bb29fd6f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGit.java @@ -58,11 +58,13 @@ public Builder(GetAppSpecFunctionGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGithub.java index c902ece8..d4773527 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGithub.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecFunctionGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGitlab.java index 15f1c760..89d50b17 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionGitlab.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecFunctionGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestination.java index f3a00583..f9bd405e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationDatadog; import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationLogtail; import com.pulumi.digitalocean.outputs.GetAppSpecFunctionLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(GetAppSpecFunctionLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable GetAppSpecFunctionLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable GetAppSpecFunctionLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable GetAppSpecFunctionLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationDatadog.java index cb65a76f..293ce5b1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetAppSpecFunctionLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationLogtail.java index b7ec574e..17175e3d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecFunctionLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionLogDestinationLogtail", "token"); + } + this.token = token; return this; } public GetAppSpecFunctionLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationPapertrail.java index c1ce951d..96cdd686 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecFunctionLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetAppSpecFunctionLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public GetAppSpecFunctionLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionRoute.java index 38507c3d..6cedf752 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecFunctionRoute.java @@ -59,11 +59,13 @@ public Builder(GetAppSpecFunctionRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java index 2fd8a7fc..66340cce 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngress.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecIngressRule; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.List; import java.util.Objects; @@ -43,7 +44,10 @@ public Builder(GetAppSpecIngress defaults) { @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngress", "rules"); + } + this.rules = rules; return this; } public Builder rules(GetAppSpecIngressRule... rules) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRule.java index 2ccfbd27..acec5e4e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRule.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecIngressRuleCors; import com.pulumi.digitalocean.outputs.GetAppSpecIngressRuleMatch; import com.pulumi.digitalocean.outputs.GetAppSpecIngressRuleRedirect; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -65,21 +66,31 @@ public Builder(GetAppSpecIngressRule defaults) { @CustomType.Setter public Builder component(GetAppSpecIngressRuleComponent component) { - this.component = Objects.requireNonNull(component); + if (component == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRule", "component"); + } + this.component = component; return this; } @CustomType.Setter public Builder cors(GetAppSpecIngressRuleCors cors) { - this.cors = Objects.requireNonNull(cors); + if (cors == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRule", "cors"); + } + this.cors = cors; return this; } @CustomType.Setter public Builder match(GetAppSpecIngressRuleMatch match) { - this.match = Objects.requireNonNull(match); + if (match == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRule", "match"); + } + this.match = match; return this; } @CustomType.Setter public Builder redirect(@Nullable GetAppSpecIngressRuleRedirect redirect) { + this.redirect = redirect; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleComponent.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleComponent.java index af0e1f58..9d21c26a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleComponent.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleComponent.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -63,17 +64,26 @@ public Builder(GetAppSpecIngressRuleComponent defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRuleComponent", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder preservePathPrefix(Boolean preservePathPrefix) { - this.preservePathPrefix = Objects.requireNonNull(preservePathPrefix); + if (preservePathPrefix == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRuleComponent", "preservePathPrefix"); + } + this.preservePathPrefix = preservePathPrefix; return this; } @CustomType.Setter public Builder rewrite(String rewrite) { - this.rewrite = Objects.requireNonNull(rewrite); + if (rewrite == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRuleComponent", "rewrite"); + } + this.rewrite = rewrite; return this; } public GetAppSpecIngressRuleComponent build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCors.java index 14940ce2..210f65e0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCors.java @@ -117,11 +117,13 @@ public Builder(GetAppSpecIngressRuleCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -130,6 +132,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -138,11 +141,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable GetAppSpecIngressRuleCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -151,6 +156,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCorsAllowOrigins.java index 32935d68..3a893e3e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(GetAppSpecIngressRuleCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatch.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatch.java index 67054969..6da857d1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatch.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatch.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecIngressRuleMatchPath; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.Objects; @CustomType @@ -42,7 +43,10 @@ public Builder(GetAppSpecIngressRuleMatch defaults) { @CustomType.Setter public Builder path(GetAppSpecIngressRuleMatchPath path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRuleMatch", "path"); + } + this.path = path; return this; } public GetAppSpecIngressRuleMatch build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatchPath.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatchPath.java index a4ad3d9a..3580a626 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatchPath.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleMatchPath.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecIngressRuleMatchPath defaults) { @CustomType.Setter public Builder prefix(String prefix) { - this.prefix = Objects.requireNonNull(prefix); + if (prefix == null) { + throw new MissingRequiredPropertyException("GetAppSpecIngressRuleMatchPath", "prefix"); + } + this.prefix = prefix; return this; } public GetAppSpecIngressRuleMatchPath build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleRedirect.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleRedirect.java index 7f84f66a..76a0e882 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecIngressRuleRedirect.java @@ -61,26 +61,31 @@ public Builder(GetAppSpecIngressRuleRedirect defaults) { @CustomType.Setter public Builder authority(@Nullable String authority) { + this.authority = authority; return this; } @CustomType.Setter public Builder port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder redirectCode(@Nullable Integer redirectCode) { + this.redirectCode = redirectCode; return this; } @CustomType.Setter public Builder scheme(@Nullable String scheme) { + this.scheme = scheme; return this; } @CustomType.Setter public Builder uri(@Nullable String uri) { + this.uri = uri; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java index ad51ecd9..de95ee7e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java @@ -11,6 +11,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecJobGitlab; import com.pulumi.digitalocean.outputs.GetAppSpecJobImage; import com.pulumi.digitalocean.outputs.GetAppSpecJobLogDestination; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -263,6 +264,7 @@ public Builder(GetAppSpecJob defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -271,21 +273,25 @@ public Builder alerts(GetAppSpecJobAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -294,41 +300,49 @@ public Builder envs(GetAppSpecJobEnv... envs) { } @CustomType.Setter public Builder git(@Nullable GetAppSpecJobGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable GetAppSpecJobGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable GetAppSpecJobGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder image(@Nullable GetAppSpecJobImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -337,16 +351,21 @@ public Builder logDestinations(GetAppSpecJobLogDestination... logDestinations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecJob", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder runCommand(@Nullable String runCommand) { + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobAlert.java index 16f67c5a..e3d2151b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(GetAppSpecJobAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobAlert", "window"); + } + this.window = window; return this; } public GetAppSpecJobAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobEnv.java index 8c2dc91e..901e59a4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecJobEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGit.java index bee7c60d..5cda27e2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGit.java @@ -58,11 +58,13 @@ public Builder(GetAppSpecJobGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGithub.java index 77294599..b3696fac 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGithub.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecJobGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGitlab.java index 3c1f006d..93b913cf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobGitlab.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecJobGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java index 39754a1a..e00684e7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecJobImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,7 +103,10 @@ public Builder(GetAppSpecJobImage defaults) { @CustomType.Setter public Builder deployOnPushes(List deployOnPushes) { - this.deployOnPushes = Objects.requireNonNull(deployOnPushes); + if (deployOnPushes == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobImage", "deployOnPushes"); + } + this.deployOnPushes = deployOnPushes; return this; } public Builder deployOnPushes(GetAppSpecJobImageDeployOnPush... deployOnPushes) { @@ -110,21 +114,29 @@ public Builder deployOnPushes(GetAppSpecJobImageDeployOnPush... deployOnPushes) } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImageDeployOnPush.java index 0e51ea2a..04e4faca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(GetAppSpecJobImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestination.java index 0e988dc6..f43bed88 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecJobLogDestinationDatadog; import com.pulumi.digitalocean.outputs.GetAppSpecJobLogDestinationLogtail; import com.pulumi.digitalocean.outputs.GetAppSpecJobLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(GetAppSpecJobLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable GetAppSpecJobLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable GetAppSpecJobLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable GetAppSpecJobLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationDatadog.java index b2817fd1..48192d95 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetAppSpecJobLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationLogtail.java index bce8f033..a36964d0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecJobLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobLogDestinationLogtail", "token"); + } + this.token = token; return this; } public GetAppSpecJobLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationPapertrail.java index c50abd22..02c967bb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJobLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecJobLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetAppSpecJobLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public GetAppSpecJobLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecService.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecService.java index 4a6d7776..98a7e185 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecService.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecService.java @@ -14,6 +14,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecServiceImage; import com.pulumi.digitalocean.outputs.GetAppSpecServiceLogDestination; import com.pulumi.digitalocean.outputs.GetAppSpecServiceRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -334,6 +335,7 @@ public Builder(GetAppSpecService defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -342,26 +344,31 @@ public Builder alerts(GetAppSpecServiceAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder cors(@Nullable GetAppSpecServiceCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -370,46 +377,57 @@ public Builder envs(GetAppSpecServiceEnv... envs) { } @CustomType.Setter public Builder git(@Nullable GetAppSpecServiceGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable GetAppSpecServiceGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable GetAppSpecServiceGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder healthCheck(@Nullable GetAppSpecServiceHealthCheck healthCheck) { + this.healthCheck = healthCheck; return this; } @CustomType.Setter public Builder httpPort(Integer httpPort) { - this.httpPort = Objects.requireNonNull(httpPort); + if (httpPort == null) { + throw new MissingRequiredPropertyException("GetAppSpecService", "httpPort"); + } + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder image(@Nullable GetAppSpecServiceImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder internalPorts(@Nullable List internalPorts) { + this.internalPorts = internalPorts; return this; } @@ -418,6 +436,7 @@ public Builder internalPorts(Integer... internalPorts) { } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -426,12 +445,18 @@ public Builder logDestinations(GetAppSpecServiceLogDestination... logDestination } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecService", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder routes(List routes) { - this.routes = Objects.requireNonNull(routes); + if (routes == null) { + throw new MissingRequiredPropertyException("GetAppSpecService", "routes"); + } + this.routes = routes; return this; } public Builder routes(GetAppSpecServiceRoute... routes) { @@ -439,11 +464,15 @@ public Builder routes(GetAppSpecServiceRoute... routes) { } @CustomType.Setter public Builder runCommand(String runCommand) { - this.runCommand = Objects.requireNonNull(runCommand); + if (runCommand == null) { + throw new MissingRequiredPropertyException("GetAppSpecService", "runCommand"); + } + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceAlert.java index a35f8539..1234f24b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(GetAppSpecServiceAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceAlert", "window"); + } + this.window = window; return this; } public GetAppSpecServiceAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCors.java index 58fb0372..bc820e61 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCors.java @@ -117,11 +117,13 @@ public Builder(GetAppSpecServiceCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -130,6 +132,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -138,11 +141,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable GetAppSpecServiceCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -151,6 +156,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCorsAllowOrigins.java index bdc4be73..a32e9022 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(GetAppSpecServiceCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceEnv.java index f8b38b4e..40e3765c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecServiceEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGit.java index 2c0422ba..2575611a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGit.java @@ -58,11 +58,13 @@ public Builder(GetAppSpecServiceGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGithub.java index 2a8f4f14..5d2100e6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGithub.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecServiceGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGitlab.java index 5d5cfbe2..0f61959c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceGitlab.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecServiceGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceHealthCheck.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceHealthCheck.java index 8c907d94..3bc70d00 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceHealthCheck.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceHealthCheck.java @@ -121,36 +121,43 @@ public Builder(GetAppSpecServiceHealthCheck defaults) { @CustomType.Setter public Builder failureThreshold(@Nullable Integer failureThreshold) { + this.failureThreshold = failureThreshold; return this; } @CustomType.Setter public Builder httpPath(@Nullable String httpPath) { + this.httpPath = httpPath; 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 port(@Nullable Integer port) { + this.port = port; return this; } @CustomType.Setter public Builder successThreshold(@Nullable Integer successThreshold) { + this.successThreshold = successThreshold; return this; } @CustomType.Setter public Builder timeoutSeconds(@Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java index 056f0afa..2ef80b6c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecServiceImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,7 +103,10 @@ public Builder(GetAppSpecServiceImage defaults) { @CustomType.Setter public Builder deployOnPushes(List deployOnPushes) { - this.deployOnPushes = Objects.requireNonNull(deployOnPushes); + if (deployOnPushes == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceImage", "deployOnPushes"); + } + this.deployOnPushes = deployOnPushes; return this; } public Builder deployOnPushes(GetAppSpecServiceImageDeployOnPush... deployOnPushes) { @@ -110,21 +114,29 @@ public Builder deployOnPushes(GetAppSpecServiceImageDeployOnPush... deployOnPush } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImageDeployOnPush.java index a23e805e..50ce360e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(GetAppSpecServiceImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestination.java index 8e967b4f..01442bff 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecServiceLogDestinationDatadog; import com.pulumi.digitalocean.outputs.GetAppSpecServiceLogDestinationLogtail; import com.pulumi.digitalocean.outputs.GetAppSpecServiceLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(GetAppSpecServiceLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable GetAppSpecServiceLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable GetAppSpecServiceLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable GetAppSpecServiceLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationDatadog.java index aaf3a401..7837b7d1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetAppSpecServiceLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationLogtail.java index a66e9e15..bc98c09b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecServiceLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceLogDestinationLogtail", "token"); + } + this.token = token; return this; } public GetAppSpecServiceLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationPapertrail.java index 6eddece2..550140ea 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecServiceLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetAppSpecServiceLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public GetAppSpecServiceLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceRoute.java index 0144128b..cbe1d627 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecServiceRoute.java @@ -59,11 +59,13 @@ public Builder(GetAppSpecServiceRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSite.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSite.java index ae936f99..3e297054 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSite.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSite.java @@ -10,6 +10,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecStaticSiteGithub; import com.pulumi.digitalocean.outputs.GetAppSpecStaticSiteGitlab; import com.pulumi.digitalocean.outputs.GetAppSpecStaticSiteRoute; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -259,31 +260,37 @@ public Builder(GetAppSpecStaticSite defaults) { @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder catchallDocument(@Nullable String catchallDocument) { + this.catchallDocument = catchallDocument; return this; } @CustomType.Setter public Builder cors(@Nullable GetAppSpecStaticSiteCors cors) { + this.cors = cors; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -292,42 +299,54 @@ public Builder envs(GetAppSpecStaticSiteEnv... envs) { } @CustomType.Setter public Builder errorDocument(@Nullable String errorDocument) { + this.errorDocument = errorDocument; return this; } @CustomType.Setter public Builder git(@Nullable GetAppSpecStaticSiteGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable GetAppSpecStaticSiteGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable GetAppSpecStaticSiteGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder indexDocument(@Nullable String indexDocument) { + this.indexDocument = indexDocument; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecStaticSite", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder outputDir(@Nullable String outputDir) { + this.outputDir = outputDir; return this; } @CustomType.Setter public Builder routes(List routes) { - this.routes = Objects.requireNonNull(routes); + if (routes == null) { + throw new MissingRequiredPropertyException("GetAppSpecStaticSite", "routes"); + } + this.routes = routes; return this; } public Builder routes(GetAppSpecStaticSiteRoute... routes) { @@ -335,6 +354,7 @@ public Builder routes(GetAppSpecStaticSiteRoute... routes) { } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCors.java index 4251ff99..e17f6fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCors.java @@ -117,11 +117,13 @@ public Builder(GetAppSpecStaticSiteCors defaults) { @CustomType.Setter public Builder allowCredentials(@Nullable Boolean allowCredentials) { + this.allowCredentials = allowCredentials; return this; } @CustomType.Setter public Builder allowHeaders(@Nullable List allowHeaders) { + this.allowHeaders = allowHeaders; return this; } @@ -130,6 +132,7 @@ public Builder allowHeaders(String... allowHeaders) { } @CustomType.Setter public Builder allowMethods(@Nullable List allowMethods) { + this.allowMethods = allowMethods; return this; } @@ -138,11 +141,13 @@ public Builder allowMethods(String... allowMethods) { } @CustomType.Setter public Builder allowOrigins(@Nullable GetAppSpecStaticSiteCorsAllowOrigins allowOrigins) { + this.allowOrigins = allowOrigins; return this; } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -151,6 +156,7 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder maxAge(@Nullable String maxAge) { + this.maxAge = maxAge; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCorsAllowOrigins.java index 4d0771ce..f2f6e020 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteCorsAllowOrigins.java @@ -72,16 +72,19 @@ public Builder(GetAppSpecStaticSiteCorsAllowOrigins defaults) { @CustomType.Setter public Builder exact(@Nullable String exact) { + this.exact = exact; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder regex(@Nullable String regex) { + this.regex = regex; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteEnv.java index baa74dd0..cc8ba452 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecStaticSiteEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecStaticSiteEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGit.java index be920121..fed2e5e7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGit.java @@ -58,11 +58,13 @@ public Builder(GetAppSpecStaticSiteGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGithub.java index 182f19e5..2f650b96 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGithub.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecStaticSiteGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGitlab.java index 3da667f5..80bf37f0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteGitlab.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecStaticSiteGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteRoute.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteRoute.java index eefb6e9c..62ce3c29 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteRoute.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecStaticSiteRoute.java @@ -59,11 +59,13 @@ public Builder(GetAppSpecStaticSiteRoute defaults) { @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder preservePathPrefix(@Nullable Boolean preservePathPrefix) { + this.preservePathPrefix = preservePathPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorker.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorker.java index 32cfd6ad..962c47fa 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorker.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorker.java @@ -11,6 +11,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecWorkerGitlab; import com.pulumi.digitalocean.outputs.GetAppSpecWorkerImage; import com.pulumi.digitalocean.outputs.GetAppSpecWorkerLogDestination; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -249,6 +250,7 @@ public Builder(GetAppSpecWorker defaults) { @CustomType.Setter public Builder alerts(@Nullable List alerts) { + this.alerts = alerts; return this; } @@ -257,21 +259,25 @@ public Builder alerts(GetAppSpecWorkerAlert... alerts) { } @CustomType.Setter public Builder buildCommand(@Nullable String buildCommand) { + this.buildCommand = buildCommand; return this; } @CustomType.Setter public Builder dockerfilePath(@Nullable String dockerfilePath) { + this.dockerfilePath = dockerfilePath; return this; } @CustomType.Setter public Builder environmentSlug(@Nullable String environmentSlug) { + this.environmentSlug = environmentSlug; return this; } @CustomType.Setter public Builder envs(@Nullable List envs) { + this.envs = envs; return this; } @@ -280,36 +286,43 @@ public Builder envs(GetAppSpecWorkerEnv... envs) { } @CustomType.Setter public Builder git(@Nullable GetAppSpecWorkerGit git) { + this.git = git; return this; } @CustomType.Setter public Builder github(@Nullable GetAppSpecWorkerGithub github) { + this.github = github; return this; } @CustomType.Setter public Builder gitlab(@Nullable GetAppSpecWorkerGitlab gitlab) { + this.gitlab = gitlab; return this; } @CustomType.Setter public Builder image(@Nullable GetAppSpecWorkerImage image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceCount(@Nullable Integer instanceCount) { + this.instanceCount = instanceCount; return this; } @CustomType.Setter public Builder instanceSizeSlug(@Nullable String instanceSizeSlug) { + this.instanceSizeSlug = instanceSizeSlug; return this; } @CustomType.Setter public Builder logDestinations(@Nullable List logDestinations) { + this.logDestinations = logDestinations; return this; } @@ -318,16 +331,21 @@ public Builder logDestinations(GetAppSpecWorkerLogDestination... logDestinations } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorker", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder runCommand(@Nullable String runCommand) { + this.runCommand = runCommand; return this; } @CustomType.Setter public Builder sourceDir(@Nullable String sourceDir) { + this.sourceDir = sourceDir; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerAlert.java index 3938f7f7..0db4df25 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerAlert.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -102,27 +103,40 @@ public Builder(GetAppSpecWorkerAlert defaults) { @CustomType.Setter public Builder disabled(@Nullable Boolean disabled) { + this.disabled = disabled; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerAlert", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerAlert", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder value(Double value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerAlert", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder window(String window) { - this.window = Objects.requireNonNull(window); + if (window == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerAlert", "window"); + } + this.window = window; return this; } public GetAppSpecWorkerAlert build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerEnv.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerEnv.java index ebc8d334..d35d8582 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerEnv.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerEnv.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetAppSpecWorkerEnv defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerEnv", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGit.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGit.java index 05d34e8c..68fae3ab 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGit.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGit.java @@ -58,11 +58,13 @@ public Builder(GetAppSpecWorkerGit defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder repoCloneUrl(@Nullable String repoCloneUrl) { + this.repoCloneUrl = repoCloneUrl; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGithub.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGithub.java index 4c57aef7..dbbc8f7b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGithub.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGithub.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecWorkerGithub defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGitlab.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGitlab.java index 823fd91f..dbfd0e37 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGitlab.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerGitlab.java @@ -73,16 +73,19 @@ public Builder(GetAppSpecWorkerGitlab defaults) { @CustomType.Setter public Builder branch(@Nullable String branch) { + this.branch = branch; return this; } @CustomType.Setter public Builder deployOnPush(@Nullable Boolean deployOnPush) { + this.deployOnPush = deployOnPush; return this; } @CustomType.Setter public Builder repo(@Nullable String repo) { + this.repo = repo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java index 3b83d772..8fc4c9fb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImage.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetAppSpecWorkerImageDeployOnPush; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -102,7 +103,10 @@ public Builder(GetAppSpecWorkerImage defaults) { @CustomType.Setter public Builder deployOnPushes(List deployOnPushes) { - this.deployOnPushes = Objects.requireNonNull(deployOnPushes); + if (deployOnPushes == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerImage", "deployOnPushes"); + } + this.deployOnPushes = deployOnPushes; return this; } public Builder deployOnPushes(GetAppSpecWorkerImageDeployOnPush... deployOnPushes) { @@ -110,21 +114,29 @@ public Builder deployOnPushes(GetAppSpecWorkerImageDeployOnPush... deployOnPushe } @CustomType.Setter public Builder registry(@Nullable String registry) { + this.registry = registry; return this; } @CustomType.Setter public Builder registryType(String registryType) { - this.registryType = Objects.requireNonNull(registryType); + if (registryType == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerImage", "registryType"); + } + this.registryType = registryType; return this; } @CustomType.Setter public Builder repository(String repository) { - this.repository = Objects.requireNonNull(repository); + if (repository == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerImage", "repository"); + } + this.repository = repository; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImageDeployOnPush.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImageDeployOnPush.java index 285d0cf9..580ae8cb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImageDeployOnPush.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerImageDeployOnPush.java @@ -44,6 +44,7 @@ public Builder(GetAppSpecWorkerImageDeployOnPush defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestination.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestination.java index cc6dd7b8..946dffb4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestination.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestination.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetAppSpecWorkerLogDestinationDatadog; import com.pulumi.digitalocean.outputs.GetAppSpecWorkerLogDestinationLogtail; import com.pulumi.digitalocean.outputs.GetAppSpecWorkerLogDestinationPapertrail; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -89,21 +90,27 @@ public Builder(GetAppSpecWorkerLogDestination defaults) { @CustomType.Setter public Builder datadog(@Nullable GetAppSpecWorkerLogDestinationDatadog datadog) { + this.datadog = datadog; return this; } @CustomType.Setter public Builder logtail(@Nullable GetAppSpecWorkerLogDestinationLogtail logtail) { + this.logtail = logtail; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerLogDestination", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder papertrail(@Nullable GetAppSpecWorkerLogDestinationPapertrail papertrail) { + this.papertrail = papertrail; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationDatadog.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationDatadog.java index 53a130e7..3032aa67 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationDatadog.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationDatadog.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetAppSpecWorkerLogDestinationDatadog defaults) { @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerLogDestinationDatadog", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationLogtail.java index 6f0d6d44..cd78803b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationLogtail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecWorkerLogDestinationLogtail defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerLogDestinationLogtail", "token"); + } + this.token = token; return this; } public GetAppSpecWorkerLogDestinationLogtail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationPapertrail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationPapertrail.java index a28e89f1..868fe2d7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationPapertrail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecWorkerLogDestinationPapertrail.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetAppSpecWorkerLogDestinationPapertrail defaults) { @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetAppSpecWorkerLogDestinationPapertrail", "endpoint"); + } + this.endpoint = endpoint; return this; } public GetAppSpecWorkerLogDestinationPapertrail build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetCertificateResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetCertificateResult.java index 31fb6fbb..8ad95b53 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetCertificateResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -133,7 +134,10 @@ public Builder(GetCertificateResult defaults) { @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "domains"); + } + this.domains = domains; return this; } public Builder domains(String... domains) { @@ -141,37 +145,58 @@ public Builder domains(String... domains) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notAfter(String notAfter) { - this.notAfter = Objects.requireNonNull(notAfter); + if (notAfter == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "notAfter"); + } + this.notAfter = notAfter; return this; } @CustomType.Setter public Builder sha1Fingerprint(String sha1Fingerprint) { - this.sha1Fingerprint = Objects.requireNonNull(sha1Fingerprint); + if (sha1Fingerprint == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "sha1Fingerprint"); + } + this.sha1Fingerprint = sha1Fingerprint; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "uuid"); + } + this.uuid = uuid; return this; } public GetCertificateResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetContainerRegistryResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetContainerRegistryResult.java index 4793d5a4..fd167f39 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetContainerRegistryResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetContainerRegistryResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetContainerRegistryResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder serverUrl(String serverUrl) { - this.serverUrl = Objects.requireNonNull(serverUrl); + if (serverUrl == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "serverUrl"); + } + this.serverUrl = serverUrl; return this; } @CustomType.Setter public Builder storageUsageBytes(Integer storageUsageBytes) { - this.storageUsageBytes = Objects.requireNonNull(storageUsageBytes); + if (storageUsageBytes == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "storageUsageBytes"); + } + this.storageUsageBytes = storageUsageBytes; return this; } @CustomType.Setter public Builder subscriptionTierSlug(String subscriptionTierSlug) { - this.subscriptionTierSlug = Objects.requireNonNull(subscriptionTierSlug); + if (subscriptionTierSlug == null) { + throw new MissingRequiredPropertyException("GetContainerRegistryResult", "subscriptionTierSlug"); + } + this.subscriptionTierSlug = subscriptionTierSlug; return this; } public GetContainerRegistryResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseCaResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseCaResult.java index a6303cb9..b758108a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseCaResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseCaResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,17 +63,26 @@ public Builder(GetDatabaseCaResult defaults) { @CustomType.Setter public Builder certificate(String certificate) { - this.certificate = Objects.requireNonNull(certificate); + if (certificate == null) { + throw new MissingRequiredPropertyException("GetDatabaseCaResult", "certificate"); + } + this.certificate = certificate; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseCaResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseCaResult", "id"); + } + this.id = id; return this; } public GetDatabaseCaResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterMaintenanceWindow.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterMaintenanceWindow.java index addd5283..3f6f759b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterMaintenanceWindow.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterMaintenanceWindow.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetDatabaseClusterMaintenanceWindow defaults) { @CustomType.Setter public Builder day(String day) { - this.day = Objects.requireNonNull(day); + if (day == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterMaintenanceWindow", "day"); + } + this.day = day; return this; } @CustomType.Setter public Builder hour(String hour) { - this.hour = Objects.requireNonNull(hour); + if (hour == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterMaintenanceWindow", "hour"); + } + this.hour = hour; return this; } public GetDatabaseClusterMaintenanceWindow build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java index ab3f7170..20afaaab 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetDatabaseClusterMaintenanceWindow; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -302,27 +303,42 @@ public Builder(GetDatabaseClusterResult defaults) { @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder engine(String engine) { - this.engine = Objects.requireNonNull(engine); + if (engine == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "engine"); + } + this.engine = engine; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder maintenanceWindows(List maintenanceWindows) { - this.maintenanceWindows = Objects.requireNonNull(maintenanceWindows); + if (maintenanceWindows == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "maintenanceWindows"); + } + this.maintenanceWindows = maintenanceWindows; return this; } public Builder maintenanceWindows(GetDatabaseClusterMaintenanceWindow... maintenanceWindows) { @@ -330,61 +346,95 @@ public Builder maintenanceWindows(GetDatabaseClusterMaintenanceWindow... mainten } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeCount(Integer nodeCount) { - this.nodeCount = Objects.requireNonNull(nodeCount); + if (nodeCount == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "nodeCount"); + } + this.nodeCount = nodeCount; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder privateHost(String privateHost) { - this.privateHost = Objects.requireNonNull(privateHost); + if (privateHost == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "privateHost"); + } + this.privateHost = privateHost; return this; } @CustomType.Setter public Builder privateNetworkUuid(String privateNetworkUuid) { - this.privateNetworkUuid = Objects.requireNonNull(privateNetworkUuid); + if (privateNetworkUuid == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "privateNetworkUuid"); + } + this.privateNetworkUuid = privateNetworkUuid; return this; } @CustomType.Setter public Builder privateUri(String privateUri) { - this.privateUri = Objects.requireNonNull(privateUri); + if (privateUri == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "privateUri"); + } + this.privateUri = privateUri; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder storageSizeMib(String storageSizeMib) { - this.storageSizeMib = Objects.requireNonNull(storageSizeMib); + if (storageSizeMib == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "storageSizeMib"); + } + this.storageSizeMib = storageSizeMib; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -393,22 +443,34 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder uri(String uri) { - this.uri = Objects.requireNonNull(uri); + if (uri == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uri"); + } + this.uri = uri; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "urn"); + } + this.urn = urn; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "user"); + } + this.user = user; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "version"); + } + this.version = version; return this; } public GetDatabaseClusterResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseConnectionPoolResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseConnectionPoolResult.java index a542d526..50daf018 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseConnectionPoolResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseConnectionPoolResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -195,67 +196,106 @@ public Builder(GetDatabaseConnectionPoolResult defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder dbName(String dbName) { - this.dbName = Objects.requireNonNull(dbName); + if (dbName == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "dbName"); + } + this.dbName = dbName; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder privateHost(String privateHost) { - this.privateHost = Objects.requireNonNull(privateHost); + if (privateHost == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "privateHost"); + } + this.privateHost = privateHost; return this; } @CustomType.Setter public Builder privateUri(String privateUri) { - this.privateUri = Objects.requireNonNull(privateUri); + if (privateUri == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "privateUri"); + } + this.privateUri = privateUri; return this; } @CustomType.Setter public Builder size(Integer size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder uri(String uri) { - this.uri = Objects.requireNonNull(uri); + if (uri == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "uri"); + } + this.uri = uri; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetDatabaseConnectionPoolResult", "user"); + } + this.user = user; return this; } public GetDatabaseConnectionPoolResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseReplicaResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseReplicaResult.java index 993de7eb..807d8dcc 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseReplicaResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseReplicaResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -209,61 +210,95 @@ public Builder(GetDatabaseReplicaResult defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder database(String database) { - this.database = Objects.requireNonNull(database); + if (database == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "database"); + } + this.database = database; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder privateHost(String privateHost) { - this.privateHost = Objects.requireNonNull(privateHost); + if (privateHost == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "privateHost"); + } + this.privateHost = privateHost; return this; } @CustomType.Setter public Builder privateNetworkUuid(String privateNetworkUuid) { - this.privateNetworkUuid = Objects.requireNonNull(privateNetworkUuid); + if (privateNetworkUuid == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "privateNetworkUuid"); + } + this.privateNetworkUuid = privateNetworkUuid; return this; } @CustomType.Setter public Builder privateUri(String privateUri) { - this.privateUri = Objects.requireNonNull(privateUri); + if (privateUri == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "privateUri"); + } + this.privateUri = privateUri; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -272,17 +307,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder uri(String uri) { - this.uri = Objects.requireNonNull(uri); + if (uri == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "uri"); + } + this.uri = uri; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "user"); + } + this.user = user; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetDatabaseReplicaResult", "uuid"); + } + this.uuid = uuid; return this; } public GetDatabaseReplicaResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserResult.java index 816360a2..52d611a5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserResult.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetDatabaseUserSetting; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -104,37 +105,58 @@ public Builder(GetDatabaseUserResult defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mysqlAuthPlugin(String mysqlAuthPlugin) { - this.mysqlAuthPlugin = Objects.requireNonNull(mysqlAuthPlugin); + if (mysqlAuthPlugin == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "mysqlAuthPlugin"); + } + this.mysqlAuthPlugin = mysqlAuthPlugin; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "role"); + } + this.role = role; return this; } @CustomType.Setter public Builder settings(List settings) { - this.settings = Objects.requireNonNull(settings); + if (settings == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserResult", "settings"); + } + this.settings = settings; return this; } public Builder settings(GetDatabaseUserSetting... settings) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSetting.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSetting.java index 3fb5ee56..f1ee0e59 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSetting.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSetting.java @@ -36,6 +36,7 @@ public Builder(GetDatabaseUserSetting defaults) { @CustomType.Setter public Builder acls(@Nullable List acls) { + this.acls = acls; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSettingAcl.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSettingAcl.java index 4f18c694..860895b6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSettingAcl.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseUserSettingAcl.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,17 +47,26 @@ public Builder(GetDatabaseUserSettingAcl defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserSettingAcl", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder permission(String permission) { - this.permission = Objects.requireNonNull(permission); + if (permission == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserSettingAcl", "permission"); + } + this.permission = permission; return this; } @CustomType.Setter public Builder topic(String topic) { - this.topic = Objects.requireNonNull(topic); + if (topic == null) { + throw new MissingRequiredPropertyException("GetDatabaseUserSettingAcl", "topic"); + } + this.topic = topic; return this; } public GetDatabaseUserSettingAcl build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainResult.java index 65234a00..ca212905 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,27 +92,42 @@ public Builder(GetDomainResult defaults) { @CustomType.Setter public Builder domainUrn(String domainUrn) { - this.domainUrn = Objects.requireNonNull(domainUrn); + if (domainUrn == null) { + throw new MissingRequiredPropertyException("GetDomainResult", "domainUrn"); + } + this.domainUrn = domainUrn; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDomainResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDomainResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ttl(Integer ttl) { - this.ttl = Objects.requireNonNull(ttl); + if (ttl == null) { + throw new MissingRequiredPropertyException("GetDomainResult", "ttl"); + } + this.ttl = ttl; return this; } @CustomType.Setter public Builder zoneFile(String zoneFile) { - this.zoneFile = Objects.requireNonNull(zoneFile); + if (zoneFile == null) { + throw new MissingRequiredPropertyException("GetDomainResult", "zoneFile"); + } + this.zoneFile = zoneFile; return this; } public GetDomainResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsDomain.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsDomain.java index c12d3c85..565d3669 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsDomain.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsDomain.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -71,17 +72,26 @@ public Builder(GetDomainsDomain defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDomainsDomain", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ttl(Integer ttl) { - this.ttl = Objects.requireNonNull(ttl); + if (ttl == null) { + throw new MissingRequiredPropertyException("GetDomainsDomain", "ttl"); + } + this.ttl = ttl; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetDomainsDomain", "urn"); + } + this.urn = urn; return this; } public GetDomainsDomain build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsFilter.java index 1219395b..66d45da7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -98,22 +99,30 @@ public Builder(GetDomainsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDomainsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetDomainsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsResult.java index d6f69a3a..41651e4a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetDomainsDomain; import com.pulumi.digitalocean.outputs.GetDomainsFilter; import com.pulumi.digitalocean.outputs.GetDomainsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetDomainsResult defaults) { @CustomType.Setter public Builder domains(List domains) { - this.domains = Objects.requireNonNull(domains); + if (domains == null) { + throw new MissingRequiredPropertyException("GetDomainsResult", "domains"); + } + this.domains = domains; return this; } public Builder domains(GetDomainsDomain... domains) { @@ -81,6 +85,7 @@ public Builder domains(GetDomainsDomain... domains) { } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -89,11 +94,15 @@ public Builder filters(GetDomainsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDomainsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsSort.java index 541b386e..385c05b9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDomainsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(GetDomainsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDomainsSort", "key"); + } + this.key = key; return this; } public GetDomainsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletResult.java index 0f4fc800..b6a51eae 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -374,112 +375,176 @@ public Builder(GetDropletResult defaults) { @CustomType.Setter public Builder backups(Boolean backups) { - this.backups = Objects.requireNonNull(backups); + if (backups == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "backups"); + } + this.backups = backups; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder disk(Integer disk) { - this.disk = Objects.requireNonNull(disk); + if (disk == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "disk"); + } + this.disk = disk; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder ipv4Address(String ipv4Address) { - this.ipv4Address = Objects.requireNonNull(ipv4Address); + if (ipv4Address == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "ipv4Address"); + } + this.ipv4Address = ipv4Address; return this; } @CustomType.Setter public Builder ipv4AddressPrivate(String ipv4AddressPrivate) { - this.ipv4AddressPrivate = Objects.requireNonNull(ipv4AddressPrivate); + if (ipv4AddressPrivate == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "ipv4AddressPrivate"); + } + this.ipv4AddressPrivate = ipv4AddressPrivate; return this; } @CustomType.Setter public Builder ipv6(Boolean ipv6) { - this.ipv6 = Objects.requireNonNull(ipv6); + if (ipv6 == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "ipv6"); + } + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder ipv6Address(String ipv6Address) { - this.ipv6Address = Objects.requireNonNull(ipv6Address); + if (ipv6Address == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "ipv6Address"); + } + this.ipv6Address = ipv6Address; return this; } @CustomType.Setter public Builder ipv6AddressPrivate(String ipv6AddressPrivate) { - this.ipv6AddressPrivate = Objects.requireNonNull(ipv6AddressPrivate); + if (ipv6AddressPrivate == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "ipv6AddressPrivate"); + } + this.ipv6AddressPrivate = ipv6AddressPrivate; return this; } @CustomType.Setter public Builder locked(Boolean locked) { - this.locked = Objects.requireNonNull(locked); + if (locked == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "locked"); + } + this.locked = locked; return this; } @CustomType.Setter public Builder memory(Integer memory) { - this.memory = Objects.requireNonNull(memory); + if (memory == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "memory"); + } + this.memory = memory; return this; } @CustomType.Setter public Builder monitoring(Boolean monitoring) { - this.monitoring = Objects.requireNonNull(monitoring); + if (monitoring == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "monitoring"); + } + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priceHourly(Double priceHourly) { - this.priceHourly = Objects.requireNonNull(priceHourly); + if (priceHourly == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "priceHourly"); + } + this.priceHourly = priceHourly; return this; } @CustomType.Setter public Builder priceMonthly(Double priceMonthly) { - this.priceMonthly = Objects.requireNonNull(priceMonthly); + if (priceMonthly == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "priceMonthly"); + } + this.priceMonthly = priceMonthly; return this; } @CustomType.Setter public Builder privateNetworking(Boolean privateNetworking) { - this.privateNetworking = Objects.requireNonNull(privateNetworking); + if (privateNetworking == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "privateNetworking"); + } + this.privateNetworking = privateNetworking; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tag(@Nullable String tag) { + this.tag = tag; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -487,17 +552,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "urn"); + } + this.urn = urn; return this; } @CustomType.Setter public Builder vcpus(Integer vcpus) { - this.vcpus = Objects.requireNonNull(vcpus); + if (vcpus == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "vcpus"); + } + this.vcpus = vcpus; return this; } @CustomType.Setter public Builder volumeIds(List volumeIds) { - this.volumeIds = Objects.requireNonNull(volumeIds); + if (volumeIds == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "volumeIds"); + } + this.volumeIds = volumeIds; return this; } public Builder volumeIds(String... volumeIds) { @@ -505,7 +579,10 @@ public Builder volumeIds(String... volumeIds) { } @CustomType.Setter public Builder vpcUuid(String vpcUuid) { - this.vpcUuid = Objects.requireNonNull(vpcUuid); + if (vpcUuid == null) { + throw new MissingRequiredPropertyException("GetDropletResult", "vpcUuid"); + } + this.vpcUuid = vpcUuid; return this; } public GetDropletResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletSnapshotResult.java index 583a4591..d191426f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletSnapshotResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -142,47 +143,66 @@ public Builder(GetDropletSnapshotResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder dropletId(String dropletId) { - this.dropletId = Objects.requireNonNull(dropletId); + if (dropletId == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "dropletId"); + } + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder minDiskSize(Integer minDiskSize) { - this.minDiskSize = Objects.requireNonNull(minDiskSize); + if (minDiskSize == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "minDiskSize"); + } + this.minDiskSize = minDiskSize; return this; } @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { + this.mostRecent = mostRecent; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { + this.nameRegex = nameRegex; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -190,7 +210,10 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder size(Double size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDropletSnapshotResult", "size"); + } + this.size = size; return this; } public GetDropletSnapshotResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsDroplet.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsDroplet.java index 60d6ac10..865a1757 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsDroplet.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsDroplet.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -366,107 +367,170 @@ public Builder(GetDropletsDroplet defaults) { @CustomType.Setter public Builder backups(Boolean backups) { - this.backups = Objects.requireNonNull(backups); + if (backups == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "backups"); + } + this.backups = backups; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder disk(Integer disk) { - this.disk = Objects.requireNonNull(disk); + if (disk == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "disk"); + } + this.disk = disk; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder ipv4Address(String ipv4Address) { - this.ipv4Address = Objects.requireNonNull(ipv4Address); + if (ipv4Address == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "ipv4Address"); + } + this.ipv4Address = ipv4Address; return this; } @CustomType.Setter public Builder ipv4AddressPrivate(String ipv4AddressPrivate) { - this.ipv4AddressPrivate = Objects.requireNonNull(ipv4AddressPrivate); + if (ipv4AddressPrivate == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "ipv4AddressPrivate"); + } + this.ipv4AddressPrivate = ipv4AddressPrivate; return this; } @CustomType.Setter public Builder ipv6(Boolean ipv6) { - this.ipv6 = Objects.requireNonNull(ipv6); + if (ipv6 == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "ipv6"); + } + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder ipv6Address(String ipv6Address) { - this.ipv6Address = Objects.requireNonNull(ipv6Address); + if (ipv6Address == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "ipv6Address"); + } + this.ipv6Address = ipv6Address; return this; } @CustomType.Setter public Builder ipv6AddressPrivate(String ipv6AddressPrivate) { - this.ipv6AddressPrivate = Objects.requireNonNull(ipv6AddressPrivate); + if (ipv6AddressPrivate == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "ipv6AddressPrivate"); + } + this.ipv6AddressPrivate = ipv6AddressPrivate; return this; } @CustomType.Setter public Builder locked(Boolean locked) { - this.locked = Objects.requireNonNull(locked); + if (locked == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "locked"); + } + this.locked = locked; return this; } @CustomType.Setter public Builder memory(Integer memory) { - this.memory = Objects.requireNonNull(memory); + if (memory == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "memory"); + } + this.memory = memory; return this; } @CustomType.Setter public Builder monitoring(Boolean monitoring) { - this.monitoring = Objects.requireNonNull(monitoring); + if (monitoring == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "monitoring"); + } + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder priceHourly(Double priceHourly) { - this.priceHourly = Objects.requireNonNull(priceHourly); + if (priceHourly == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "priceHourly"); + } + this.priceHourly = priceHourly; return this; } @CustomType.Setter public Builder priceMonthly(Double priceMonthly) { - this.priceMonthly = Objects.requireNonNull(priceMonthly); + if (priceMonthly == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "priceMonthly"); + } + this.priceMonthly = priceMonthly; return this; } @CustomType.Setter public Builder privateNetworking(Boolean privateNetworking) { - this.privateNetworking = Objects.requireNonNull(privateNetworking); + if (privateNetworking == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "privateNetworking"); + } + this.privateNetworking = privateNetworking; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -474,17 +538,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "urn"); + } + this.urn = urn; return this; } @CustomType.Setter public Builder vcpus(Integer vcpus) { - this.vcpus = Objects.requireNonNull(vcpus); + if (vcpus == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "vcpus"); + } + this.vcpus = vcpus; return this; } @CustomType.Setter public Builder volumeIds(List volumeIds) { - this.volumeIds = Objects.requireNonNull(volumeIds); + if (volumeIds == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "volumeIds"); + } + this.volumeIds = volumeIds; return this; } public Builder volumeIds(String... volumeIds) { @@ -492,7 +565,10 @@ public Builder volumeIds(String... volumeIds) { } @CustomType.Setter public Builder vpcUuid(String vpcUuid) { - this.vpcUuid = Objects.requireNonNull(vpcUuid); + if (vpcUuid == null) { + throw new MissingRequiredPropertyException("GetDropletsDroplet", "vpcUuid"); + } + this.vpcUuid = vpcUuid; return this; } public GetDropletsDroplet build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsFilter.java index 18c1913f..6966216f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -104,22 +105,30 @@ public Builder(GetDropletsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDropletsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetDropletsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsResult.java index 13ffe5ec..971f1f6e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetDropletsDroplet; import com.pulumi.digitalocean.outputs.GetDropletsFilter; import com.pulumi.digitalocean.outputs.GetDropletsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetDropletsResult defaults) { @CustomType.Setter public Builder droplets(List droplets) { - this.droplets = Objects.requireNonNull(droplets); + if (droplets == null) { + throw new MissingRequiredPropertyException("GetDropletsResult", "droplets"); + } + this.droplets = droplets; return this; } public Builder droplets(GetDropletsDroplet... droplets) { @@ -81,6 +85,7 @@ public Builder droplets(GetDropletsDroplet... droplets) { } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -89,11 +94,15 @@ public Builder filters(GetDropletsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDropletsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsSort.java index 7b59d533..b523026c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDropletsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,12 +65,16 @@ public Builder(GetDropletsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetDropletsSort", "key"); + } + this.key = key; return this; } public GetDropletsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallInboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallInboundRule.java index bfc28307..9ce0897a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallInboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallInboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -140,16 +141,21 @@ public Builder(GetFirewallInboundRule defaults) { @CustomType.Setter public Builder portRange(@Nullable String portRange) { + this.portRange = portRange; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallInboundRule", "protocol"); + } + this.protocol = protocol; return this; } @CustomType.Setter public Builder sourceAddresses(@Nullable List sourceAddresses) { + this.sourceAddresses = sourceAddresses; return this; } @@ -158,6 +164,7 @@ public Builder sourceAddresses(String... sourceAddresses) { } @CustomType.Setter public Builder sourceDropletIds(@Nullable List sourceDropletIds) { + this.sourceDropletIds = sourceDropletIds; return this; } @@ -166,6 +173,7 @@ public Builder sourceDropletIds(Integer... sourceDropletIds) { } @CustomType.Setter public Builder sourceKubernetesIds(@Nullable List sourceKubernetesIds) { + this.sourceKubernetesIds = sourceKubernetesIds; return this; } @@ -174,6 +182,7 @@ public Builder sourceKubernetesIds(String... sourceKubernetesIds) { } @CustomType.Setter public Builder sourceLoadBalancerUids(@Nullable List sourceLoadBalancerUids) { + this.sourceLoadBalancerUids = sourceLoadBalancerUids; return this; } @@ -182,6 +191,7 @@ public Builder sourceLoadBalancerUids(String... sourceLoadBalancerUids) { } @CustomType.Setter public Builder sourceTags(@Nullable List sourceTags) { + this.sourceTags = sourceTags; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallOutboundRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallOutboundRule.java index 7f0b889a..42d1cf69 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallOutboundRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallOutboundRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -144,6 +145,7 @@ public Builder(GetFirewallOutboundRule defaults) { @CustomType.Setter public Builder destinationAddresses(@Nullable List destinationAddresses) { + this.destinationAddresses = destinationAddresses; return this; } @@ -152,6 +154,7 @@ public Builder destinationAddresses(String... destinationAddresses) { } @CustomType.Setter public Builder destinationDropletIds(@Nullable List destinationDropletIds) { + this.destinationDropletIds = destinationDropletIds; return this; } @@ -160,6 +163,7 @@ public Builder destinationDropletIds(Integer... destinationDropletIds) { } @CustomType.Setter public Builder destinationKubernetesIds(@Nullable List destinationKubernetesIds) { + this.destinationKubernetesIds = destinationKubernetesIds; return this; } @@ -168,6 +172,7 @@ public Builder destinationKubernetesIds(String... destinationKubernetesIds) { } @CustomType.Setter public Builder destinationLoadBalancerUids(@Nullable List destinationLoadBalancerUids) { + this.destinationLoadBalancerUids = destinationLoadBalancerUids; return this; } @@ -176,6 +181,7 @@ public Builder destinationLoadBalancerUids(String... destinationLoadBalancerUids } @CustomType.Setter public Builder destinationTags(@Nullable List destinationTags) { + this.destinationTags = destinationTags; return this; } @@ -184,12 +190,16 @@ public Builder destinationTags(String... destinationTags) { } @CustomType.Setter public Builder portRange(@Nullable String portRange) { + this.portRange = portRange; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("GetFirewallOutboundRule", "protocol"); + } + this.protocol = protocol; return this; } public GetFirewallOutboundRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallPendingChange.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallPendingChange.java index ba26f1e9..12cced6a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallPendingChange.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallPendingChange.java @@ -60,16 +60,19 @@ public Builder(GetFirewallPendingChange defaults) { @CustomType.Setter public Builder dropletId(@Nullable Integer dropletId) { + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder removing(@Nullable Boolean removing) { + this.removing = removing; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallResult.java index 9f379958..57074cb4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFirewallResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetFirewallInboundRule; import com.pulumi.digitalocean.outputs.GetFirewallOutboundRule; import com.pulumi.digitalocean.outputs.GetFirewallPendingChange; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -161,12 +162,18 @@ public Builder(GetFirewallResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder dropletIds(List dropletIds) { - this.dropletIds = Objects.requireNonNull(dropletIds); + if (dropletIds == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "dropletIds"); + } + this.dropletIds = dropletIds; return this; } public Builder dropletIds(Integer... dropletIds) { @@ -174,17 +181,26 @@ public Builder dropletIds(Integer... dropletIds) { } @CustomType.Setter public Builder firewallId(String firewallId) { - this.firewallId = Objects.requireNonNull(firewallId); + if (firewallId == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "firewallId"); + } + this.firewallId = firewallId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inboundRules(List inboundRules) { - this.inboundRules = Objects.requireNonNull(inboundRules); + if (inboundRules == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "inboundRules"); + } + this.inboundRules = inboundRules; return this; } public Builder inboundRules(GetFirewallInboundRule... inboundRules) { @@ -192,12 +208,18 @@ public Builder inboundRules(GetFirewallInboundRule... inboundRules) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder outboundRules(List outboundRules) { - this.outboundRules = Objects.requireNonNull(outboundRules); + if (outboundRules == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "outboundRules"); + } + this.outboundRules = outboundRules; return this; } public Builder outboundRules(GetFirewallOutboundRule... outboundRules) { @@ -205,7 +227,10 @@ public Builder outboundRules(GetFirewallOutboundRule... outboundRules) { } @CustomType.Setter public Builder pendingChanges(List pendingChanges) { - this.pendingChanges = Objects.requireNonNull(pendingChanges); + if (pendingChanges == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "pendingChanges"); + } + this.pendingChanges = pendingChanges; return this; } public Builder pendingChanges(GetFirewallPendingChange... pendingChanges) { @@ -213,12 +238,18 @@ public Builder pendingChanges(GetFirewallPendingChange... pendingChanges) { } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetFirewallResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFloatingIpResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFloatingIpResult.java index 57ecbc42..fda36289 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFloatingIpResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetFloatingIpResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,27 +92,42 @@ public Builder(GetFloatingIpResult defaults) { @CustomType.Setter public Builder dropletId(Integer dropletId) { - this.dropletId = Objects.requireNonNull(dropletId); + if (dropletId == null) { + throw new MissingRequiredPropertyException("GetFloatingIpResult", "dropletId"); + } + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder floatingIpUrn(String floatingIpUrn) { - this.floatingIpUrn = Objects.requireNonNull(floatingIpUrn); + if (floatingIpUrn == null) { + throw new MissingRequiredPropertyException("GetFloatingIpResult", "floatingIpUrn"); + } + this.floatingIpUrn = floatingIpUrn; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFloatingIpResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetFloatingIpResult", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetFloatingIpResult", "region"); + } + this.region = region; return this; } public GetFloatingIpResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImageResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImageResult.java index 8295b92b..d0ebfd2e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImageResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImageResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -246,52 +247,82 @@ public Builder(GetImageResult defaults) { @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetImageResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetImageResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder distribution(String distribution) { - this.distribution = Objects.requireNonNull(distribution); + if (distribution == null) { + throw new MissingRequiredPropertyException("GetImageResult", "distribution"); + } + this.distribution = distribution; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetImageResult", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetImageResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetImageResult", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder minDiskSize(Integer minDiskSize) { - this.minDiskSize = Objects.requireNonNull(minDiskSize); + if (minDiskSize == null) { + throw new MissingRequiredPropertyException("GetImageResult", "minDiskSize"); + } + this.minDiskSize = minDiskSize; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetImageResult", "name"); + } + this.name = name; return this; } @CustomType.Setter("private") public Builder private_(Boolean private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetImageResult", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetImageResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -299,27 +330,40 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder sizeGigabytes(Double sizeGigabytes) { - this.sizeGigabytes = Objects.requireNonNull(sizeGigabytes); + if (sizeGigabytes == null) { + throw new MissingRequiredPropertyException("GetImageResult", "sizeGigabytes"); + } + this.sizeGigabytes = sizeGigabytes; return this; } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetImageResult", "slug"); + } + this.slug = slug; return this; } @CustomType.Setter public Builder source(@Nullable String source) { + this.source = source; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetImageResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetImageResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -327,7 +371,10 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetImageResult", "type"); + } + this.type = type; return this; } public GetImageResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesFilter.java index 835d4076..546fece1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,22 +103,30 @@ public Builder(GetImagesFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetImagesFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetImagesFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesImage.java index 400afbae..ee7b9d66 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesImage.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -238,52 +239,82 @@ public Builder(GetImagesImage defaults) { @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder distribution(String distribution) { - this.distribution = Objects.requireNonNull(distribution); + if (distribution == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "distribution"); + } + this.distribution = distribution; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder minDiskSize(Integer minDiskSize) { - this.minDiskSize = Objects.requireNonNull(minDiskSize); + if (minDiskSize == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "minDiskSize"); + } + this.minDiskSize = minDiskSize; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "name"); + } + this.name = name; return this; } @CustomType.Setter("private") public Builder private_(Boolean private_) { - this.private_ = Objects.requireNonNull(private_); + if (private_ == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "private_"); + } + this.private_ = private_; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -291,22 +322,34 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder sizeGigabytes(Double sizeGigabytes) { - this.sizeGigabytes = Objects.requireNonNull(sizeGigabytes); + if (sizeGigabytes == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "sizeGigabytes"); + } + this.sizeGigabytes = sizeGigabytes; return this; } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "slug"); + } + this.slug = slug; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -314,7 +357,10 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetImagesImage", "type"); + } + this.type = type; return this; } public GetImagesImage build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesResult.java index 19b945f9..1f052a12 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetImagesFilter; import com.pulumi.digitalocean.outputs.GetImagesImage; import com.pulumi.digitalocean.outputs.GetImagesSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,6 +74,7 @@ public Builder(GetImagesResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -81,12 +83,18 @@ public Builder filters(GetImagesFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetImagesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder images(List images) { - this.images = Objects.requireNonNull(images); + if (images == null) { + throw new MissingRequiredPropertyException("GetImagesResult", "images"); + } + this.images = images; return this; } public Builder images(GetImagesImage... images) { @@ -94,6 +102,7 @@ public Builder images(GetImagesImage... images) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesSort.java index 475b963c..d5a94733 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetImagesSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,12 +61,16 @@ public Builder(GetImagesSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetImagesSort", "key"); + } + this.key = key; return this; } public GetImagesSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterKubeConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterKubeConfig.java index 68abafb1..f2d32a87 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterKubeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterKubeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -126,37 +127,58 @@ public Builder(GetKubernetesClusterKubeConfig defaults) { @CustomType.Setter public Builder clientCertificate(String clientCertificate) { - this.clientCertificate = Objects.requireNonNull(clientCertificate); + if (clientCertificate == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "clientCertificate"); + } + this.clientCertificate = clientCertificate; return this; } @CustomType.Setter public Builder clientKey(String clientKey) { - this.clientKey = Objects.requireNonNull(clientKey); + if (clientKey == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "clientKey"); + } + this.clientKey = clientKey; return this; } @CustomType.Setter public Builder clusterCaCertificate(String clusterCaCertificate) { - this.clusterCaCertificate = Objects.requireNonNull(clusterCaCertificate); + if (clusterCaCertificate == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "clusterCaCertificate"); + } + this.clusterCaCertificate = clusterCaCertificate; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder rawConfig(String rawConfig) { - this.rawConfig = Objects.requireNonNull(rawConfig); + if (rawConfig == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "rawConfig"); + } + this.rawConfig = rawConfig; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterKubeConfig", "token"); + } + this.token = token; return this; } public GetKubernetesClusterKubeConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterMaintenancePolicy.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterMaintenancePolicy.java index 98d5859a..92a2afdf 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterMaintenancePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterMaintenancePolicy.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(GetKubernetesClusterMaintenancePolicy defaults) { @CustomType.Setter public Builder day(String day) { - this.day = Objects.requireNonNull(day); + if (day == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterMaintenancePolicy", "day"); + } + this.day = day; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterMaintenancePolicy", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder startTime(String startTime) { - this.startTime = Objects.requireNonNull(startTime); + if (startTime == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterMaintenancePolicy", "startTime"); + } + this.startTime = startTime; return this; } public GetKubernetesClusterMaintenancePolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePool.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePool.java index 063d425b..639c9fa0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePool.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePool.java @@ -6,6 +6,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.GetKubernetesClusterNodePoolNode; import com.pulumi.digitalocean.outputs.GetKubernetesClusterNodePoolTaint; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -202,47 +203,74 @@ public Builder(GetKubernetesClusterNodePool defaults) { @CustomType.Setter public Builder actualNodeCount(Integer actualNodeCount) { - this.actualNodeCount = Objects.requireNonNull(actualNodeCount); + if (actualNodeCount == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "actualNodeCount"); + } + this.actualNodeCount = actualNodeCount; return this; } @CustomType.Setter public Builder autoScale(Boolean autoScale) { - this.autoScale = Objects.requireNonNull(autoScale); + if (autoScale == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "autoScale"); + } + this.autoScale = autoScale; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder maxNodes(Integer maxNodes) { - this.maxNodes = Objects.requireNonNull(maxNodes); + if (maxNodes == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "maxNodes"); + } + this.maxNodes = maxNodes; return this; } @CustomType.Setter public Builder minNodes(Integer minNodes) { - this.minNodes = Objects.requireNonNull(minNodes); + if (minNodes == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "minNodes"); + } + this.minNodes = minNodes; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeCount(Integer nodeCount) { - this.nodeCount = Objects.requireNonNull(nodeCount); + if (nodeCount == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "nodeCount"); + } + this.nodeCount = nodeCount; return this; } @CustomType.Setter public Builder nodes(List nodes) { - this.nodes = Objects.requireNonNull(nodes); + if (nodes == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "nodes"); + } + this.nodes = nodes; return this; } public Builder nodes(GetKubernetesClusterNodePoolNode... nodes) { @@ -250,12 +278,18 @@ public Builder nodes(GetKubernetesClusterNodePoolNode... nodes) { } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -263,7 +297,10 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder taints(List taints) { - this.taints = Objects.requireNonNull(taints); + if (taints == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePool", "taints"); + } + this.taints = taints; return this; } public Builder taints(GetKubernetesClusterNodePoolTaint... taints) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolNode.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolNode.java index 9471f4b4..b760be24 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolNode.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolNode.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -104,32 +105,50 @@ public Builder(GetKubernetesClusterNodePoolNode defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder dropletId(String dropletId) { - this.dropletId = Objects.requireNonNull(dropletId); + if (dropletId == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "dropletId"); + } + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolNode", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetKubernetesClusterNodePoolNode build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolTaint.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolTaint.java index ef51ef0d..6cca28e9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterNodePoolTaint.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(GetKubernetesClusterNodePoolTaint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolTaint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterNodePoolTaint", "value"); + } + this.value = value; return this; } public GetKubernetesClusterNodePoolTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterResult.java index 0c2042ef..15906892 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesClusterResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetKubernetesClusterKubeConfig; import com.pulumi.digitalocean.outputs.GetKubernetesClusterMaintenancePolicy; import com.pulumi.digitalocean.outputs.GetKubernetesClusterNodePool; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -292,42 +293,66 @@ public Builder(GetKubernetesClusterResult defaults) { @CustomType.Setter public Builder autoUpgrade(Boolean autoUpgrade) { - this.autoUpgrade = Objects.requireNonNull(autoUpgrade); + if (autoUpgrade == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "autoUpgrade"); + } + this.autoUpgrade = autoUpgrade; return this; } @CustomType.Setter public Builder clusterSubnet(String clusterSubnet) { - this.clusterSubnet = Objects.requireNonNull(clusterSubnet); + if (clusterSubnet == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "clusterSubnet"); + } + this.clusterSubnet = clusterSubnet; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder ha(Boolean ha) { - this.ha = Objects.requireNonNull(ha); + if (ha == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "ha"); + } + this.ha = ha; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipv4Address(String ipv4Address) { - this.ipv4Address = Objects.requireNonNull(ipv4Address); + if (ipv4Address == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "ipv4Address"); + } + this.ipv4Address = ipv4Address; return this; } @CustomType.Setter public Builder kubeConfigs(List kubeConfigs) { - this.kubeConfigs = Objects.requireNonNull(kubeConfigs); + if (kubeConfigs == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "kubeConfigs"); + } + this.kubeConfigs = kubeConfigs; return this; } public Builder kubeConfigs(GetKubernetesClusterKubeConfig... kubeConfigs) { @@ -335,7 +360,10 @@ public Builder kubeConfigs(GetKubernetesClusterKubeConfig... kubeConfigs) { } @CustomType.Setter public Builder maintenancePolicies(List maintenancePolicies) { - this.maintenancePolicies = Objects.requireNonNull(maintenancePolicies); + if (maintenancePolicies == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "maintenancePolicies"); + } + this.maintenancePolicies = maintenancePolicies; return this; } public Builder maintenancePolicies(GetKubernetesClusterMaintenancePolicy... maintenancePolicies) { @@ -343,12 +371,18 @@ public Builder maintenancePolicies(GetKubernetesClusterMaintenancePolicy... main } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodePools(List nodePools) { - this.nodePools = Objects.requireNonNull(nodePools); + if (nodePools == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "nodePools"); + } + this.nodePools = nodePools; return this; } public Builder nodePools(GetKubernetesClusterNodePool... nodePools) { @@ -356,26 +390,39 @@ public Builder nodePools(GetKubernetesClusterNodePool... nodePools) { } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder serviceSubnet(String serviceSubnet) { - this.serviceSubnet = Objects.requireNonNull(serviceSubnet); + if (serviceSubnet == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "serviceSubnet"); + } + this.serviceSubnet = serviceSubnet; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder surgeUpgrade(Boolean surgeUpgrade) { - this.surgeUpgrade = Objects.requireNonNull(surgeUpgrade); + if (surgeUpgrade == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "surgeUpgrade"); + } + this.surgeUpgrade = surgeUpgrade; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -384,22 +431,34 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "urn"); + } + this.urn = urn; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "version"); + } + this.version = version; return this; } @CustomType.Setter public Builder vpcUuid(String vpcUuid) { - this.vpcUuid = Objects.requireNonNull(vpcUuid); + if (vpcUuid == null) { + throw new MissingRequiredPropertyException("GetKubernetesClusterResult", "vpcUuid"); + } + this.vpcUuid = vpcUuid; return this; } public GetKubernetesClusterResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesVersionsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesVersionsResult.java index 6349e830..741f9b91 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesVersionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetKubernetesVersionsResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -79,17 +80,26 @@ public Builder(GetKubernetesVersionsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetKubernetesVersionsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder latestVersion(String latestVersion) { - this.latestVersion = Objects.requireNonNull(latestVersion); + if (latestVersion == null) { + throw new MissingRequiredPropertyException("GetKubernetesVersionsResult", "latestVersion"); + } + this.latestVersion = latestVersion; return this; } @CustomType.Setter public Builder validVersions(List validVersions) { - this.validVersions = Objects.requireNonNull(validVersions); + if (validVersions == null) { + throw new MissingRequiredPropertyException("GetKubernetesVersionsResult", "validVersions"); + } + this.validVersions = validVersions; return this; } public Builder validVersions(String... validVersions) { @@ -97,6 +107,7 @@ public Builder validVersions(String... validVersions) { } @CustomType.Setter public Builder versionPrefix(@Nullable String versionPrefix) { + this.versionPrefix = versionPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerFirewall.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerFirewall.java index 6383e2fe..412c5292 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerFirewall.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerFirewall.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -41,7 +42,10 @@ public Builder(GetLoadBalancerFirewall defaults) { @CustomType.Setter public Builder allows(List allows) { - this.allows = Objects.requireNonNull(allows); + if (allows == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerFirewall", "allows"); + } + this.allows = allows; return this; } public Builder allows(String... allows) { @@ -49,7 +53,10 @@ public Builder allows(String... allows) { } @CustomType.Setter public Builder denies(List denies) { - this.denies = Objects.requireNonNull(denies); + if (denies == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerFirewall", "denies"); + } + this.denies = denies; return this; } public Builder denies(String... denies) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerForwardingRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerForwardingRule.java index a3bd9ef8..ab2e7315 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerForwardingRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerForwardingRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -72,37 +73,58 @@ public Builder(GetLoadBalancerForwardingRule defaults) { @CustomType.Setter public Builder certificateId(String certificateId) { - this.certificateId = Objects.requireNonNull(certificateId); + if (certificateId == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "certificateId"); + } + this.certificateId = certificateId; return this; } @CustomType.Setter public Builder certificateName(String certificateName) { - this.certificateName = Objects.requireNonNull(certificateName); + if (certificateName == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "certificateName"); + } + this.certificateName = certificateName; return this; } @CustomType.Setter public Builder entryPort(Integer entryPort) { - this.entryPort = Objects.requireNonNull(entryPort); + if (entryPort == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "entryPort"); + } + this.entryPort = entryPort; return this; } @CustomType.Setter public Builder entryProtocol(String entryProtocol) { - this.entryProtocol = Objects.requireNonNull(entryProtocol); + if (entryProtocol == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "entryProtocol"); + } + this.entryProtocol = entryProtocol; return this; } @CustomType.Setter public Builder targetPort(Integer targetPort) { - this.targetPort = Objects.requireNonNull(targetPort); + if (targetPort == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "targetPort"); + } + this.targetPort = targetPort; return this; } @CustomType.Setter public Builder targetProtocol(String targetProtocol) { - this.targetProtocol = Objects.requireNonNull(targetProtocol); + if (targetProtocol == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "targetProtocol"); + } + this.targetProtocol = targetProtocol; return this; } @CustomType.Setter public Builder tlsPassthrough(Boolean tlsPassthrough) { - this.tlsPassthrough = Objects.requireNonNull(tlsPassthrough); + if (tlsPassthrough == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerForwardingRule", "tlsPassthrough"); + } + this.tlsPassthrough = tlsPassthrough; return this; } public GetLoadBalancerForwardingRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerHealthcheck.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerHealthcheck.java index 43c58782..0f9d337d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerHealthcheck.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerHealthcheck.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,37 +72,58 @@ public Builder(GetLoadBalancerHealthcheck defaults) { @CustomType.Setter public Builder checkIntervalSeconds(Integer checkIntervalSeconds) { - this.checkIntervalSeconds = Objects.requireNonNull(checkIntervalSeconds); + if (checkIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "checkIntervalSeconds"); + } + this.checkIntervalSeconds = checkIntervalSeconds; return this; } @CustomType.Setter public Builder healthyThreshold(Integer healthyThreshold) { - this.healthyThreshold = Objects.requireNonNull(healthyThreshold); + if (healthyThreshold == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "healthyThreshold"); + } + this.healthyThreshold = healthyThreshold; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "protocol"); + } + this.protocol = protocol; return this; } @CustomType.Setter public Builder responseTimeoutSeconds(Integer responseTimeoutSeconds) { - this.responseTimeoutSeconds = Objects.requireNonNull(responseTimeoutSeconds); + if (responseTimeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "responseTimeoutSeconds"); + } + this.responseTimeoutSeconds = responseTimeoutSeconds; return this; } @CustomType.Setter public Builder unhealthyThreshold(Integer unhealthyThreshold) { - this.unhealthyThreshold = Objects.requireNonNull(unhealthyThreshold); + if (unhealthyThreshold == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerHealthcheck", "unhealthyThreshold"); + } + this.unhealthyThreshold = unhealthyThreshold; return this; } public GetLoadBalancerHealthcheck build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerResult.java index 4134cf29..a509021a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerResult.java @@ -8,6 +8,7 @@ import com.pulumi.digitalocean.outputs.GetLoadBalancerForwardingRule; import com.pulumi.digitalocean.outputs.GetLoadBalancerHealthcheck; import com.pulumi.digitalocean.outputs.GetLoadBalancerStickySession; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -175,17 +176,26 @@ public Builder(GetLoadBalancerResult defaults) { @CustomType.Setter public Builder algorithm(String algorithm) { - this.algorithm = Objects.requireNonNull(algorithm); + if (algorithm == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "algorithm"); + } + this.algorithm = algorithm; return this; } @CustomType.Setter public Builder disableLetsEncryptDnsRecords(Boolean disableLetsEncryptDnsRecords) { - this.disableLetsEncryptDnsRecords = Objects.requireNonNull(disableLetsEncryptDnsRecords); + if (disableLetsEncryptDnsRecords == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "disableLetsEncryptDnsRecords"); + } + this.disableLetsEncryptDnsRecords = disableLetsEncryptDnsRecords; return this; } @CustomType.Setter public Builder dropletIds(List dropletIds) { - this.dropletIds = Objects.requireNonNull(dropletIds); + if (dropletIds == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "dropletIds"); + } + this.dropletIds = dropletIds; return this; } public Builder dropletIds(Integer... dropletIds) { @@ -193,22 +203,34 @@ public Builder dropletIds(Integer... dropletIds) { } @CustomType.Setter public Builder dropletTag(String dropletTag) { - this.dropletTag = Objects.requireNonNull(dropletTag); + if (dropletTag == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "dropletTag"); + } + this.dropletTag = dropletTag; return this; } @CustomType.Setter public Builder enableBackendKeepalive(Boolean enableBackendKeepalive) { - this.enableBackendKeepalive = Objects.requireNonNull(enableBackendKeepalive); + if (enableBackendKeepalive == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "enableBackendKeepalive"); + } + this.enableBackendKeepalive = enableBackendKeepalive; return this; } @CustomType.Setter public Builder enableProxyProtocol(Boolean enableProxyProtocol) { - this.enableProxyProtocol = Objects.requireNonNull(enableProxyProtocol); + if (enableProxyProtocol == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "enableProxyProtocol"); + } + this.enableProxyProtocol = enableProxyProtocol; return this; } @CustomType.Setter public Builder firewalls(List firewalls) { - this.firewalls = Objects.requireNonNull(firewalls); + if (firewalls == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "firewalls"); + } + this.firewalls = firewalls; return this; } public Builder firewalls(GetLoadBalancerFirewall... firewalls) { @@ -216,7 +238,10 @@ public Builder firewalls(GetLoadBalancerFirewall... firewalls) { } @CustomType.Setter public Builder forwardingRules(List forwardingRules) { - this.forwardingRules = Objects.requireNonNull(forwardingRules); + if (forwardingRules == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "forwardingRules"); + } + this.forwardingRules = forwardingRules; return this; } public Builder forwardingRules(GetLoadBalancerForwardingRule... forwardingRules) { @@ -224,7 +249,10 @@ public Builder forwardingRules(GetLoadBalancerForwardingRule... forwardingRules) } @CustomType.Setter public Builder healthchecks(List healthchecks) { - this.healthchecks = Objects.requireNonNull(healthchecks); + if (healthchecks == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "healthchecks"); + } + this.healthchecks = healthchecks; return this; } public Builder healthchecks(GetLoadBalancerHealthcheck... healthchecks) { @@ -232,62 +260,94 @@ public Builder healthchecks(GetLoadBalancerHealthcheck... healthchecks) { } @CustomType.Setter public Builder httpIdleTimeoutSeconds(Integer httpIdleTimeoutSeconds) { - this.httpIdleTimeoutSeconds = Objects.requireNonNull(httpIdleTimeoutSeconds); + if (httpIdleTimeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "httpIdleTimeoutSeconds"); + } + this.httpIdleTimeoutSeconds = httpIdleTimeoutSeconds; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder ip(String ip) { - this.ip = Objects.requireNonNull(ip); + if (ip == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "ip"); + } + this.ip = ip; return this; } @CustomType.Setter public Builder loadBalancerUrn(String loadBalancerUrn) { - this.loadBalancerUrn = Objects.requireNonNull(loadBalancerUrn); + if (loadBalancerUrn == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "loadBalancerUrn"); + } + this.loadBalancerUrn = loadBalancerUrn; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder redirectHttpToHttps(Boolean redirectHttpToHttps) { - this.redirectHttpToHttps = Objects.requireNonNull(redirectHttpToHttps); + if (redirectHttpToHttps == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "redirectHttpToHttps"); + } + this.redirectHttpToHttps = redirectHttpToHttps; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder sizeUnit(Integer sizeUnit) { - this.sizeUnit = Objects.requireNonNull(sizeUnit); + if (sizeUnit == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "sizeUnit"); + } + this.sizeUnit = sizeUnit; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder stickySessions(List stickySessions) { - this.stickySessions = Objects.requireNonNull(stickySessions); + if (stickySessions == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "stickySessions"); + } + this.stickySessions = stickySessions; return this; } public Builder stickySessions(GetLoadBalancerStickySession... stickySessions) { @@ -295,12 +355,18 @@ public Builder stickySessions(GetLoadBalancerStickySession... stickySessions) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder vpcUuid(String vpcUuid) { - this.vpcUuid = Objects.requireNonNull(vpcUuid); + if (vpcUuid == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerResult", "vpcUuid"); + } + this.vpcUuid = vpcUuid; return this; } public GetLoadBalancerResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerStickySession.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerStickySession.java index dc9b5ce2..9ee8a3d5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerStickySession.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetLoadBalancerStickySession.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetLoadBalancerStickySession defaults) { @CustomType.Setter public Builder cookieName(String cookieName) { - this.cookieName = Objects.requireNonNull(cookieName); + if (cookieName == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerStickySession", "cookieName"); + } + this.cookieName = cookieName; return this; } @CustomType.Setter public Builder cookieTtlSeconds(Integer cookieTtlSeconds) { - this.cookieTtlSeconds = Objects.requireNonNull(cookieTtlSeconds); + if (cookieTtlSeconds == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerStickySession", "cookieTtlSeconds"); + } + this.cookieTtlSeconds = cookieTtlSeconds; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetLoadBalancerStickySession", "type"); + } + this.type = type; return this; } public GetLoadBalancerStickySession build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectResult.java index 9be6ae47..86194924 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -161,52 +162,82 @@ public Builder(GetProjectResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder environment(String environment) { - this.environment = Objects.requireNonNull(environment); + if (environment == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "environment"); + } + this.environment = environment; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isDefault(Boolean isDefault) { - this.isDefault = Objects.requireNonNull(isDefault); + if (isDefault == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "isDefault"); + } + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ownerId(Integer ownerId) { - this.ownerId = Objects.requireNonNull(ownerId); + if (ownerId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ownerId"); + } + this.ownerId = ownerId; return this; } @CustomType.Setter public Builder ownerUuid(String ownerUuid) { - this.ownerUuid = Objects.requireNonNull(ownerUuid); + if (ownerUuid == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ownerUuid"); + } + this.ownerUuid = ownerUuid; return this; } @CustomType.Setter public Builder purpose(String purpose) { - this.purpose = Objects.requireNonNull(purpose); + if (purpose == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "purpose"); + } + this.purpose = purpose; return this; } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -214,7 +245,10 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetProjectResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsFilter.java index 248d834b..62a00cfc 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -100,22 +101,30 @@ public Builder(GetProjectsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetProjectsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetProjectsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsProject.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsProject.java index 74988073..064624af 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsProject.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsProject.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -177,52 +178,82 @@ public Builder(GetProjectsProject defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder environment(String environment) { - this.environment = Objects.requireNonNull(environment); + if (environment == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "environment"); + } + this.environment = environment; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isDefault(Boolean isDefault) { - this.isDefault = Objects.requireNonNull(isDefault); + if (isDefault == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "isDefault"); + } + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ownerId(Integer ownerId) { - this.ownerId = Objects.requireNonNull(ownerId); + if (ownerId == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ownerId"); + } + this.ownerId = ownerId; return this; } @CustomType.Setter public Builder ownerUuid(String ownerUuid) { - this.ownerUuid = Objects.requireNonNull(ownerUuid); + if (ownerUuid == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ownerUuid"); + } + this.ownerUuid = ownerUuid; return this; } @CustomType.Setter public Builder purpose(String purpose) { - this.purpose = Objects.requireNonNull(purpose); + if (purpose == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "purpose"); + } + this.purpose = purpose; return this; } @CustomType.Setter public Builder resources(List resources) { - this.resources = Objects.requireNonNull(resources); + if (resources == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "resources"); + } + this.resources = resources; return this; } public Builder resources(String... resources) { @@ -230,7 +261,10 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } public GetProjectsProject build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsResult.java index d654bb41..c230ed1b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetProjectsFilter; import com.pulumi.digitalocean.outputs.GetProjectsProject; import com.pulumi.digitalocean.outputs.GetProjectsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -75,6 +76,7 @@ public Builder(GetProjectsResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -83,12 +85,18 @@ public Builder filters(GetProjectsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetProjectsProject... projects) { @@ -96,6 +104,7 @@ public Builder projects(GetProjectsProject... projects) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsSort.java index 9e171435..7387e52e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetProjectsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,12 +61,16 @@ public Builder(GetProjectsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetProjectsSort", "key"); + } + this.key = key; return this; } public GetProjectsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordResult.java index 4a10a285..fed19f58 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -167,57 +168,90 @@ public Builder(GetRecordResult defaults) { @CustomType.Setter public Builder data(String data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "data"); + } + this.data = data; return this; } @CustomType.Setter public Builder domain(String domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "domain"); + } + this.domain = domain; return this; } @CustomType.Setter public Builder flags(Integer flags) { - this.flags = Objects.requireNonNull(flags); + if (flags == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "flags"); + } + this.flags = flags; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder tag(String tag) { - this.tag = Objects.requireNonNull(tag); + if (tag == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "tag"); + } + this.tag = tag; return this; } @CustomType.Setter public Builder ttl(Integer ttl) { - this.ttl = Objects.requireNonNull(ttl); + if (ttl == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "ttl"); + } + this.ttl = ttl; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("GetRecordResult", "weight"); + } + this.weight = weight; return this; } public GetRecordResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsFilter.java index deee89c0..8a88fe8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -100,22 +101,30 @@ public Builder(GetRecordsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetRecordsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetRecordsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsRecord.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsRecord.java index d2ff1a29..a4b7925c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsRecord.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsRecord.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -183,57 +184,90 @@ public Builder(GetRecordsRecord defaults) { @CustomType.Setter public Builder domain(String domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "domain"); + } + this.domain = domain; return this; } @CustomType.Setter public Builder flags(Integer flags) { - this.flags = Objects.requireNonNull(flags); + if (flags == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "flags"); + } + this.flags = flags; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder priority(Integer priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "priority"); + } + this.priority = priority; return this; } @CustomType.Setter public Builder tag(String tag) { - this.tag = Objects.requireNonNull(tag); + if (tag == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "tag"); + } + this.tag = tag; return this; } @CustomType.Setter public Builder ttl(Integer ttl) { - this.ttl = Objects.requireNonNull(ttl); + if (ttl == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "ttl"); + } + this.ttl = ttl; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("GetRecordsRecord", "weight"); + } + this.weight = weight; return this; } public GetRecordsRecord build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsResult.java index 40a6f17d..b2f7b401 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetRecordsFilter; import com.pulumi.digitalocean.outputs.GetRecordsRecord; import com.pulumi.digitalocean.outputs.GetRecordsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -79,11 +80,15 @@ public Builder(GetRecordsResult defaults) { @CustomType.Setter public Builder domain(String domain) { - this.domain = Objects.requireNonNull(domain); + if (domain == null) { + throw new MissingRequiredPropertyException("GetRecordsResult", "domain"); + } + this.domain = domain; return this; } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -92,12 +97,18 @@ public Builder filters(GetRecordsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRecordsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder records(List records) { - this.records = Objects.requireNonNull(records); + if (records == null) { + throw new MissingRequiredPropertyException("GetRecordsResult", "records"); + } + this.records = records; return this; } public Builder records(GetRecordsRecord... records) { @@ -105,6 +116,7 @@ public Builder records(GetRecordsRecord... records) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsSort.java index 34bde670..aae44859 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRecordsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,12 +61,16 @@ public Builder(GetRecordsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetRecordsSort", "key"); + } + this.key = key; return this; } public GetRecordsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionResult.java index f895ff54..ece12ceb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -114,12 +115,18 @@ public Builder(GetRegionResult defaults) { @CustomType.Setter public Builder available(Boolean available) { - this.available = Objects.requireNonNull(available); + if (available == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "available"); + } + this.available = available; return this; } @CustomType.Setter public Builder features(List features) { - this.features = Objects.requireNonNull(features); + if (features == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "features"); + } + this.features = features; return this; } public Builder features(String... features) { @@ -127,17 +134,26 @@ public Builder features(String... features) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder sizes(List sizes) { - this.sizes = Objects.requireNonNull(sizes); + if (sizes == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "sizes"); + } + this.sizes = sizes; return this; } public Builder sizes(String... sizes) { @@ -145,7 +161,10 @@ public Builder sizes(String... sizes) { } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetRegionResult", "slug"); + } + this.slug = slug; return this; } public GetRegionResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsFilter.java index 6e5739d6..01bd4948 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -100,22 +101,30 @@ public Builder(GetRegionsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetRegionsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetRegionsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsRegion.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsRegion.java index 4c8f73f6..7a3409cd 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsRegion.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsRegion.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -100,12 +101,18 @@ public Builder(GetRegionsRegion defaults) { @CustomType.Setter public Builder available(Boolean available) { - this.available = Objects.requireNonNull(available); + if (available == null) { + throw new MissingRequiredPropertyException("GetRegionsRegion", "available"); + } + this.available = available; return this; } @CustomType.Setter public Builder features(List features) { - this.features = Objects.requireNonNull(features); + if (features == null) { + throw new MissingRequiredPropertyException("GetRegionsRegion", "features"); + } + this.features = features; return this; } public Builder features(String... features) { @@ -113,12 +120,18 @@ public Builder features(String... features) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRegionsRegion", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder sizes(List sizes) { - this.sizes = Objects.requireNonNull(sizes); + if (sizes == null) { + throw new MissingRequiredPropertyException("GetRegionsRegion", "sizes"); + } + this.sizes = sizes; return this; } public Builder sizes(String... sizes) { @@ -126,7 +139,10 @@ public Builder sizes(String... sizes) { } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetRegionsRegion", "slug"); + } + this.slug = slug; return this; } public GetRegionsRegion build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsResult.java index df3f95c4..5652e2e5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetRegionsFilter; import com.pulumi.digitalocean.outputs.GetRegionsRegion; import com.pulumi.digitalocean.outputs.GetRegionsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,6 +74,7 @@ public Builder(GetRegionsResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -81,12 +83,18 @@ public Builder filters(GetRegionsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRegionsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetRegionsResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(GetRegionsRegion... regions) { @@ -94,6 +102,7 @@ public Builder regions(GetRegionsRegion... regions) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsSort.java index e4c32c3f..aef4e8ef 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetRegionsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,12 +61,16 @@ public Builder(GetRegionsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetRegionsSort", "key"); + } + this.key = key; return this; } public GetRegionsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetReservedIpResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetReservedIpResult.java index 4b5e67c9..b4e9e0d1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetReservedIpResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetReservedIpResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,27 +92,42 @@ public Builder(GetReservedIpResult defaults) { @CustomType.Setter public Builder dropletId(Integer dropletId) { - this.dropletId = Objects.requireNonNull(dropletId); + if (dropletId == null) { + throw new MissingRequiredPropertyException("GetReservedIpResult", "dropletId"); + } + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetReservedIpResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetReservedIpResult", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetReservedIpResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetReservedIpResult", "urn"); + } + this.urn = urn; return this; } public GetReservedIpResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesFilter.java index e23f4127..0e4b8723 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.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,22 +103,30 @@ public Builder(GetSizesFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSizesFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetSizesFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesResult.java index e24d4ffd..c48f8dd0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetSizesFilter; import com.pulumi.digitalocean.outputs.GetSizesSize; import com.pulumi.digitalocean.outputs.GetSizesSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -65,6 +66,7 @@ public Builder(GetSizesResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -73,12 +75,18 @@ public Builder filters(GetSizesFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSizesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sizes(List sizes) { - this.sizes = Objects.requireNonNull(sizes); + if (sizes == null) { + throw new MissingRequiredPropertyException("GetSizesResult", "sizes"); + } + this.sizes = sizes; return this; } public Builder sizes(GetSizesSize... sizes) { @@ -86,6 +94,7 @@ public Builder sizes(GetSizesSize... sizes) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSize.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSize.java index c939e74e..a8ed2115 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSize.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSize.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -158,32 +159,50 @@ public Builder(GetSizesSize defaults) { @CustomType.Setter public Builder available(Boolean available) { - this.available = Objects.requireNonNull(available); + if (available == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "available"); + } + this.available = available; return this; } @CustomType.Setter public Builder disk(Integer disk) { - this.disk = Objects.requireNonNull(disk); + if (disk == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "disk"); + } + this.disk = disk; return this; } @CustomType.Setter public Builder memory(Integer memory) { - this.memory = Objects.requireNonNull(memory); + if (memory == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "memory"); + } + this.memory = memory; return this; } @CustomType.Setter public Builder priceHourly(Double priceHourly) { - this.priceHourly = Objects.requireNonNull(priceHourly); + if (priceHourly == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "priceHourly"); + } + this.priceHourly = priceHourly; return this; } @CustomType.Setter public Builder priceMonthly(Double priceMonthly) { - this.priceMonthly = Objects.requireNonNull(priceMonthly); + if (priceMonthly == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "priceMonthly"); + } + this.priceMonthly = priceMonthly; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -191,17 +210,26 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "slug"); + } + this.slug = slug; return this; } @CustomType.Setter public Builder transfer(Double transfer) { - this.transfer = Objects.requireNonNull(transfer); + if (transfer == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "transfer"); + } + this.transfer = transfer; return this; } @CustomType.Setter public Builder vcpus(Integer vcpus) { - this.vcpus = Objects.requireNonNull(vcpus); + if (vcpus == null) { + throw new MissingRequiredPropertyException("GetSizesSize", "vcpus"); + } + this.vcpus = vcpus; return this; } public GetSizesSize build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSort.java index 43a6c1fe..b2d60f36 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSizesSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,12 +61,16 @@ public Builder(GetSizesSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSizesSort", "key"); + } + this.key = key; return this; } public GetSizesSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectResult.java index 34c460cf..375a3eba 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.Object; import java.lang.String; @@ -267,97 +268,152 @@ public Builder(GetSpacesBucketObjectResult defaults) { @CustomType.Setter public Builder body(String body) { - this.body = Objects.requireNonNull(body); + if (body == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "body"); + } + this.body = body; return this; } @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder cacheControl(String cacheControl) { - this.cacheControl = Objects.requireNonNull(cacheControl); + if (cacheControl == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "cacheControl"); + } + this.cacheControl = cacheControl; return this; } @CustomType.Setter public Builder contentDisposition(String contentDisposition) { - this.contentDisposition = Objects.requireNonNull(contentDisposition); + if (contentDisposition == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "contentDisposition"); + } + this.contentDisposition = contentDisposition; return this; } @CustomType.Setter public Builder contentEncoding(String contentEncoding) { - this.contentEncoding = Objects.requireNonNull(contentEncoding); + if (contentEncoding == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "contentEncoding"); + } + this.contentEncoding = contentEncoding; return this; } @CustomType.Setter public Builder contentLanguage(String contentLanguage) { - this.contentLanguage = Objects.requireNonNull(contentLanguage); + if (contentLanguage == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "contentLanguage"); + } + this.contentLanguage = contentLanguage; return this; } @CustomType.Setter public Builder contentLength(Integer contentLength) { - this.contentLength = Objects.requireNonNull(contentLength); + if (contentLength == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "contentLength"); + } + this.contentLength = contentLength; return this; } @CustomType.Setter public Builder contentType(String contentType) { - this.contentType = Objects.requireNonNull(contentType); + if (contentType == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "contentType"); + } + this.contentType = contentType; return this; } @CustomType.Setter public Builder etag(String etag) { - this.etag = Objects.requireNonNull(etag); + if (etag == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "etag"); + } + this.etag = etag; return this; } @CustomType.Setter public Builder expiration(String expiration) { - this.expiration = Objects.requireNonNull(expiration); + if (expiration == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "expiration"); + } + this.expiration = expiration; return this; } @CustomType.Setter public Builder expires(String expires) { - this.expires = Objects.requireNonNull(expires); + if (expires == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "expires"); + } + this.expires = expires; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder lastModified(String lastModified) { - this.lastModified = Objects.requireNonNull(lastModified); + if (lastModified == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "lastModified"); + } + this.lastModified = lastModified; return this; } @CustomType.Setter public Builder metadata(Map metadata) { - this.metadata = Objects.requireNonNull(metadata); + if (metadata == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "metadata"); + } + this.metadata = metadata; return this; } @CustomType.Setter public Builder range(@Nullable String range) { + this.range = range; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder versionId(String versionId) { - this.versionId = Objects.requireNonNull(versionId); + if (versionId == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "versionId"); + } + this.versionId = versionId; return this; } @CustomType.Setter public Builder websiteRedirectLocation(String websiteRedirectLocation) { - this.websiteRedirectLocation = Objects.requireNonNull(websiteRedirectLocation); + if (websiteRedirectLocation == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectResult", "websiteRedirectLocation"); + } + this.websiteRedirectLocation = websiteRedirectLocation; return this; } public GetSpacesBucketObjectResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectsResult.java index cfba3c4b..6cd160c1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketObjectsResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -124,12 +125,18 @@ public Builder(GetSpacesBucketObjectsResult defaults) { @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder commonPrefixes(List commonPrefixes) { - this.commonPrefixes = Objects.requireNonNull(commonPrefixes); + if (commonPrefixes == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "commonPrefixes"); + } + this.commonPrefixes = commonPrefixes; return this; } public Builder commonPrefixes(String... commonPrefixes) { @@ -137,22 +144,30 @@ public Builder commonPrefixes(String... commonPrefixes) { } @CustomType.Setter public Builder delimiter(@Nullable String delimiter) { + this.delimiter = delimiter; return this; } @CustomType.Setter public Builder encodingType(@Nullable String encodingType) { + this.encodingType = encodingType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder keys(List keys) { - this.keys = Objects.requireNonNull(keys); + if (keys == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "keys"); + } + this.keys = keys; return this; } public Builder keys(String... keys) { @@ -160,12 +175,16 @@ public Builder keys(String... keys) { } @CustomType.Setter public Builder maxKeys(@Nullable Integer maxKeys) { + this.maxKeys = maxKeys; return this; } @CustomType.Setter public Builder owners(List owners) { - this.owners = Objects.requireNonNull(owners); + if (owners == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "owners"); + } + this.owners = owners; return this; } public Builder owners(String... owners) { @@ -173,12 +192,16 @@ public Builder owners(String... owners) { } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketObjectsResult", "region"); + } + this.region = region; return this; } public GetSpacesBucketObjectsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketResult.java index 6431f737..78fbc30b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -112,32 +113,50 @@ public Builder(GetSpacesBucketResult defaults) { @CustomType.Setter public Builder bucketDomainName(String bucketDomainName) { - this.bucketDomainName = Objects.requireNonNull(bucketDomainName); + if (bucketDomainName == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "bucketDomainName"); + } + this.bucketDomainName = bucketDomainName; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketResult", "urn"); + } + this.urn = urn; return this; } public GetSpacesBucketResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsBucket.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsBucket.java index 19a567d8..0f29493b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsBucket.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsBucket.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetSpacesBucketsBucket defaults) { @CustomType.Setter public Builder bucketDomainName(String bucketDomainName) { - this.bucketDomainName = Objects.requireNonNull(bucketDomainName); + if (bucketDomainName == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsBucket", "bucketDomainName"); + } + this.bucketDomainName = bucketDomainName; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsBucket", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsBucket", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsBucket", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsBucket", "urn"); + } + this.urn = urn; return this; } public GetSpacesBucketsBucket build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsFilter.java index 6cb3d235..15512227 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -98,22 +99,30 @@ public Builder(GetSpacesBucketsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsResult.java index 46afe459..286639b4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetSpacesBucketsBucket; import com.pulumi.digitalocean.outputs.GetSpacesBucketsFilter; import com.pulumi.digitalocean.outputs.GetSpacesBucketsSort; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetSpacesBucketsResult defaults) { @CustomType.Setter public Builder buckets(List buckets) { - this.buckets = Objects.requireNonNull(buckets); + if (buckets == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsResult", "buckets"); + } + this.buckets = buckets; return this; } public Builder buckets(GetSpacesBucketsBucket... buckets) { @@ -81,6 +85,7 @@ public Builder buckets(GetSpacesBucketsBucket... buckets) { } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -89,11 +94,15 @@ public Builder filters(GetSpacesBucketsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsSort.java index a1ab5e1a..e1e190ae 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSpacesBucketsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(GetSpacesBucketsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSpacesBucketsSort", "key"); + } + this.key = key; return this; } public GetSpacesBucketsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeyResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeyResult.java index 1947445d..68c44eca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeyResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeyResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -77,22 +78,34 @@ public Builder(GetSshKeyResult defaults) { @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("GetSshKeyResult", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSshKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSshKeyResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetSshKeyResult", "publicKey"); + } + this.publicKey = publicKey; return this; } public GetSshKeyResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysFilter.java index f4fcf3d8..4eb19c1d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -72,22 +73,30 @@ public Builder(GetSshKeysFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSshKeysFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetSshKeysFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysResult.java index 68b843dd..375edfc7 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetSshKeysFilter; import com.pulumi.digitalocean.outputs.GetSshKeysSort; import com.pulumi.digitalocean.outputs.GetSshKeysSshKey; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,6 +74,7 @@ public Builder(GetSshKeysResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -81,11 +83,15 @@ public Builder filters(GetSshKeysFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSshKeysResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } @@ -94,7 +100,10 @@ public Builder sorts(GetSshKeysSort... sorts) { } @CustomType.Setter public Builder sshKeys(List sshKeys) { - this.sshKeys = Objects.requireNonNull(sshKeys); + if (sshKeys == null) { + throw new MissingRequiredPropertyException("GetSshKeysResult", "sshKeys"); + } + this.sshKeys = sshKeys; return this; } public Builder sshKeys(GetSshKeysSshKey... sshKeys) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSort.java index 07572349..dbc0b0b9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(GetSshKeysSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetSshKeysSort", "key"); + } + this.key = key; return this; } public GetSshKeysSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSshKey.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSshKey.java index fd11857a..b9f12526 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSshKey.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetSshKeysSshKey.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -85,22 +86,34 @@ public Builder(GetSshKeysSshKey defaults) { @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("GetSshKeysSshKey", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSshKeysSshKey", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSshKeysSshKey", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetSshKeysSshKey", "publicKey"); + } + this.publicKey = publicKey; return this; } public GetSshKeysSshKey build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagResult.java index 5fbe3253..e8bfab9f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -133,42 +134,66 @@ public Builder(GetTagResult defaults) { @CustomType.Setter public Builder databasesCount(Integer databasesCount) { - this.databasesCount = Objects.requireNonNull(databasesCount); + if (databasesCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "databasesCount"); + } + this.databasesCount = databasesCount; return this; } @CustomType.Setter public Builder dropletsCount(Integer dropletsCount) { - this.dropletsCount = Objects.requireNonNull(dropletsCount); + if (dropletsCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "dropletsCount"); + } + this.dropletsCount = dropletsCount; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTagResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder imagesCount(Integer imagesCount) { - this.imagesCount = Objects.requireNonNull(imagesCount); + if (imagesCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "imagesCount"); + } + this.imagesCount = imagesCount; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTagResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder totalResourceCount(Integer totalResourceCount) { - this.totalResourceCount = Objects.requireNonNull(totalResourceCount); + if (totalResourceCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "totalResourceCount"); + } + this.totalResourceCount = totalResourceCount; return this; } @CustomType.Setter public Builder volumeSnapshotsCount(Integer volumeSnapshotsCount) { - this.volumeSnapshotsCount = Objects.requireNonNull(volumeSnapshotsCount); + if (volumeSnapshotsCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "volumeSnapshotsCount"); + } + this.volumeSnapshotsCount = volumeSnapshotsCount; return this; } @CustomType.Setter public Builder volumesCount(Integer volumesCount) { - this.volumesCount = Objects.requireNonNull(volumesCount); + if (volumesCount == null) { + throw new MissingRequiredPropertyException("GetTagResult", "volumesCount"); + } + this.volumesCount = volumesCount; return this; } public GetTagResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsFilter.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsFilter.java index d60175e2..350055d6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsFilter.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsFilter.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -98,22 +99,30 @@ public Builder(GetTagsFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetTagsFilter", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetTagsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsResult.java index f6a0adc1..1aedd320 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsResult.java @@ -7,6 +7,7 @@ import com.pulumi.digitalocean.outputs.GetTagsFilter; import com.pulumi.digitalocean.outputs.GetTagsSort; import com.pulumi.digitalocean.outputs.GetTagsTag; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -65,6 +66,7 @@ public Builder(GetTagsResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -73,11 +75,15 @@ public Builder filters(GetTagsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetTagsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } @@ -86,7 +92,10 @@ public Builder sorts(GetTagsSort... sorts) { } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetTagsResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetTagsTag... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsSort.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsSort.java index 7916fa90..aed4e90d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsSort.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsSort.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(GetTagsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetTagsSort", "key"); + } + this.key = key; return this; } public GetTagsSort build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsTag.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsTag.java index 096bc6a6..dd946d30 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsTag.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetTagsTag.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -127,37 +128,58 @@ public Builder(GetTagsTag defaults) { @CustomType.Setter public Builder databasesCount(Integer databasesCount) { - this.databasesCount = Objects.requireNonNull(databasesCount); + if (databasesCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "databasesCount"); + } + this.databasesCount = databasesCount; return this; } @CustomType.Setter public Builder dropletsCount(Integer dropletsCount) { - this.dropletsCount = Objects.requireNonNull(dropletsCount); + if (dropletsCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "dropletsCount"); + } + this.dropletsCount = dropletsCount; return this; } @CustomType.Setter public Builder imagesCount(Integer imagesCount) { - this.imagesCount = Objects.requireNonNull(imagesCount); + if (imagesCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "imagesCount"); + } + this.imagesCount = imagesCount; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder totalResourceCount(Integer totalResourceCount) { - this.totalResourceCount = Objects.requireNonNull(totalResourceCount); + if (totalResourceCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "totalResourceCount"); + } + this.totalResourceCount = totalResourceCount; return this; } @CustomType.Setter public Builder volumeSnapshotsCount(Integer volumeSnapshotsCount) { - this.volumeSnapshotsCount = Objects.requireNonNull(volumeSnapshotsCount); + if (volumeSnapshotsCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "volumeSnapshotsCount"); + } + this.volumeSnapshotsCount = volumeSnapshotsCount; return this; } @CustomType.Setter public Builder volumesCount(Integer volumesCount) { - this.volumesCount = Objects.requireNonNull(volumesCount); + if (volumesCount == null) { + throw new MissingRequiredPropertyException("GetTagsTag", "volumesCount"); + } + this.volumesCount = volumesCount; return this; } public GetTagsTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeResult.java index 7b7713b6..ff08cd81 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -156,12 +157,16 @@ public Builder(GetVolumeResult defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder dropletIds(List dropletIds) { - this.dropletIds = Objects.requireNonNull(dropletIds); + if (dropletIds == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "dropletIds"); + } + this.dropletIds = dropletIds; return this; } public Builder dropletIds(Integer... dropletIds) { @@ -169,37 +174,56 @@ public Builder dropletIds(Integer... dropletIds) { } @CustomType.Setter public Builder filesystemLabel(String filesystemLabel) { - this.filesystemLabel = Objects.requireNonNull(filesystemLabel); + if (filesystemLabel == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "filesystemLabel"); + } + this.filesystemLabel = filesystemLabel; return this; } @CustomType.Setter public Builder filesystemType(String filesystemType) { - this.filesystemType = Objects.requireNonNull(filesystemType); + if (filesystemType == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "filesystemType"); + } + this.filesystemType = filesystemType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder size(Integer size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -207,7 +231,10 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "urn"); + } + this.urn = urn; return this; } public GetVolumeResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeSnapshotResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeSnapshotResult.java index 8b2b0a55..ccba79ac 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeSnapshotResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVolumeSnapshotResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -156,42 +157,58 @@ public Builder(GetVolumeSnapshotResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder minDiskSize(Integer minDiskSize) { - this.minDiskSize = Objects.requireNonNull(minDiskSize); + if (minDiskSize == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "minDiskSize"); + } + this.minDiskSize = minDiskSize; return this; } @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { + this.mostRecent = mostRecent; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { + this.nameRegex = nameRegex; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder regions(List regions) { - this.regions = Objects.requireNonNull(regions); + if (regions == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "regions"); + } + this.regions = regions; return this; } public Builder regions(String... regions) { @@ -199,12 +216,18 @@ public Builder regions(String... regions) { } @CustomType.Setter public Builder size(Double size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -212,7 +235,10 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder volumeId(String volumeId) { - this.volumeId = Objects.requireNonNull(volumeId); + if (volumeId == null) { + throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "volumeId"); + } + this.volumeId = volumeId; return this; } public GetVolumeSnapshotResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVpcResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVpcResult.java index d3e11dcf..ac98366c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVpcResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetVpcResult.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetVpcResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter("default") public Builder default_(Boolean default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipRange(String ipRange) { - this.ipRange = Objects.requireNonNull(ipRange); + if (ipRange == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "ipRange"); + } + this.ipRange = ipRange; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder urn(String urn) { - this.urn = Objects.requireNonNull(urn); + if (urn == null) { + throw new MissingRequiredPropertyException("GetVpcResult", "urn"); + } + this.urn = urn; return this; } public GetVpcResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterKubeConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterKubeConfig.java index 379d5df6..7d7e9a7e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterKubeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterKubeConfig.java @@ -128,36 +128,43 @@ public Builder(KubernetesClusterKubeConfig defaults) { @CustomType.Setter public Builder clientCertificate(@Nullable String clientCertificate) { + this.clientCertificate = clientCertificate; return this; } @CustomType.Setter public Builder clientKey(@Nullable String clientKey) { + this.clientKey = clientKey; return this; } @CustomType.Setter public Builder clusterCaCertificate(@Nullable String clusterCaCertificate) { + this.clusterCaCertificate = clusterCaCertificate; return this; } @CustomType.Setter public Builder expiresAt(@Nullable String expiresAt) { + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder host(@Nullable String host) { + this.host = host; return this; } @CustomType.Setter public Builder rawConfig(@Nullable String rawConfig) { + this.rawConfig = rawConfig; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterMaintenancePolicy.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterMaintenancePolicy.java index 2b5358b3..fd483263 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterMaintenancePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterMaintenancePolicy.java @@ -72,16 +72,19 @@ public Builder(KubernetesClusterMaintenancePolicy defaults) { @CustomType.Setter public Builder day(@Nullable String day) { + this.day = day; return this; } @CustomType.Setter public Builder duration(@Nullable String duration) { + this.duration = duration; return this; } @CustomType.Setter public Builder startTime(@Nullable String startTime) { + this.startTime = startTime; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePool.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePool.java index 15b00daa..0cb5af39 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePool.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePool.java @@ -6,6 +6,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.KubernetesClusterNodePoolNode; import com.pulumi.digitalocean.outputs.KubernetesClusterNodePoolTaint; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -204,46 +205,57 @@ public Builder(KubernetesClusterNodePool defaults) { @CustomType.Setter public Builder actualNodeCount(@Nullable Integer actualNodeCount) { + this.actualNodeCount = actualNodeCount; return this; } @CustomType.Setter public Builder autoScale(@Nullable Boolean autoScale) { + this.autoScale = autoScale; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder maxNodes(@Nullable Integer maxNodes) { + this.maxNodes = maxNodes; return this; } @CustomType.Setter public Builder minNodes(@Nullable Integer minNodes) { + this.minNodes = minNodes; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } @CustomType.Setter public Builder nodes(@Nullable List nodes) { + this.nodes = nodes; return this; } @@ -252,11 +264,15 @@ public Builder nodes(KubernetesClusterNodePoolNode... nodes) { } @CustomType.Setter public Builder size(String size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePool", "size"); + } + this.size = size; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -265,6 +281,7 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolNode.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolNode.java index c690bbfc..7c9a0bc1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolNode.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolNode.java @@ -114,31 +114,37 @@ public Builder(KubernetesClusterNodePoolNode defaults) { @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder dropletId(@Nullable String dropletId) { + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder updatedAt(@Nullable String updatedAt) { + this.updatedAt = updatedAt; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolTaint.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolTaint.java index 083dcabe..9074ee8e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesClusterNodePoolTaint.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(KubernetesClusterNodePoolTaint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaint", "value"); + } + this.value = value; return this; } public KubernetesClusterNodePoolTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolNode.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolNode.java index a90c5fdb..d6bc1b03 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolNode.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolNode.java @@ -114,31 +114,37 @@ public Builder(KubernetesNodePoolNode defaults) { @CustomType.Setter public Builder createdAt(@Nullable String createdAt) { + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder dropletId(@Nullable String dropletId) { + this.dropletId = dropletId; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder updatedAt(@Nullable String updatedAt) { + this.updatedAt = updatedAt; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolTaint.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolTaint.java index e11ad4ce..5346a983 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/KubernetesNodePoolTaint.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(KubernetesNodePoolTaint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("KubernetesNodePoolTaint", "value"); + } + this.value = value; return this; } public KubernetesNodePoolTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerFirewall.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerFirewall.java index 340ff03a..7e4995ed 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerFirewall.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerFirewall.java @@ -60,6 +60,7 @@ public Builder(LoadBalancerFirewall defaults) { @CustomType.Setter public Builder allows(@Nullable List allows) { + this.allows = allows; return this; } @@ -68,6 +69,7 @@ public Builder allows(String... allows) { } @CustomType.Setter public Builder denies(@Nullable List denies) { + this.denies = denies; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerForwardingRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerForwardingRule.java index cf17c920..09edf4c2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerForwardingRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerForwardingRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -138,36 +139,51 @@ public Builder(LoadBalancerForwardingRule defaults) { @CustomType.Setter public Builder certificateId(@Nullable String certificateId) { + this.certificateId = certificateId; return this; } @CustomType.Setter public Builder certificateName(@Nullable String certificateName) { + this.certificateName = certificateName; return this; } @CustomType.Setter public Builder entryPort(Integer entryPort) { - this.entryPort = Objects.requireNonNull(entryPort); + if (entryPort == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRule", "entryPort"); + } + this.entryPort = entryPort; return this; } @CustomType.Setter public Builder entryProtocol(String entryProtocol) { - this.entryProtocol = Objects.requireNonNull(entryProtocol); + if (entryProtocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRule", "entryProtocol"); + } + this.entryProtocol = entryProtocol; return this; } @CustomType.Setter public Builder targetPort(Integer targetPort) { - this.targetPort = Objects.requireNonNull(targetPort); + if (targetPort == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRule", "targetPort"); + } + this.targetPort = targetPort; return this; } @CustomType.Setter public Builder targetProtocol(String targetProtocol) { - this.targetProtocol = Objects.requireNonNull(targetProtocol); + if (targetProtocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerForwardingRule", "targetProtocol"); + } + this.targetProtocol = targetProtocol; return this; } @CustomType.Setter public Builder tlsPassthrough(@Nullable Boolean tlsPassthrough) { + this.tlsPassthrough = tlsPassthrough; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerHealthcheck.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerHealthcheck.java index 22b92c89..fd432356 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerHealthcheck.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerHealthcheck.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -129,36 +130,47 @@ public Builder(LoadBalancerHealthcheck defaults) { @CustomType.Setter public Builder checkIntervalSeconds(@Nullable Integer checkIntervalSeconds) { + this.checkIntervalSeconds = checkIntervalSeconds; return this; } @CustomType.Setter public Builder healthyThreshold(@Nullable Integer healthyThreshold) { + this.healthyThreshold = healthyThreshold; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("LoadBalancerHealthcheck", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("LoadBalancerHealthcheck", "protocol"); + } + this.protocol = protocol; return this; } @CustomType.Setter public Builder responseTimeoutSeconds(@Nullable Integer responseTimeoutSeconds) { + this.responseTimeoutSeconds = responseTimeoutSeconds; return this; } @CustomType.Setter public Builder unhealthyThreshold(@Nullable Integer unhealthyThreshold) { + this.unhealthyThreshold = unhealthyThreshold; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerStickySessions.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerStickySessions.java index dcc98e4b..1f67d2ca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerStickySessions.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/LoadBalancerStickySessions.java @@ -73,16 +73,19 @@ public Builder(LoadBalancerStickySessions defaults) { @CustomType.Setter public Builder cookieName(@Nullable String cookieName) { + this.cookieName = cookieName; return this; } @CustomType.Setter public Builder cookieTtlSeconds(@Nullable Integer cookieTtlSeconds) { + this.cookieTtlSeconds = cookieTtlSeconds; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlerts.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlerts.java index 9a274ae5..9d9f6a3c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlerts.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlerts.java @@ -43,6 +43,7 @@ public Builder(MonitorAlertAlerts defaults) { @CustomType.Setter public Builder emails(@Nullable List emails) { + this.emails = emails; return this; } @@ -51,6 +52,7 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder slacks(@Nullable List slacks) { + this.slacks = slacks; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlertsSlack.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlertsSlack.java index af1f9534..c89c5f58 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlertsSlack.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/MonitorAlertAlertsSlack.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(MonitorAlertAlertsSlack defaults) { @CustomType.Setter public Builder channel(String channel) { - this.channel = Objects.requireNonNull(channel); + if (channel == null) { + throw new MissingRequiredPropertyException("MonitorAlertAlertsSlack", "channel"); + } + this.channel = channel; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("MonitorAlertAlertsSlack", "url"); + } + this.url = url; return this; } public MonitorAlertAlertsSlack build() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsConfigurationCorsRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsConfigurationCorsRule.java index 94b5416c..87a26ce0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsConfigurationCorsRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsConfigurationCorsRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -116,6 +117,7 @@ public Builder(SpacesBucketCorsConfigurationCorsRule defaults) { @CustomType.Setter public Builder allowedHeaders(@Nullable List allowedHeaders) { + this.allowedHeaders = allowedHeaders; return this; } @@ -124,7 +126,10 @@ public Builder allowedHeaders(String... allowedHeaders) { } @CustomType.Setter public Builder allowedMethods(List allowedMethods) { - this.allowedMethods = Objects.requireNonNull(allowedMethods); + if (allowedMethods == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationCorsRule", "allowedMethods"); + } + this.allowedMethods = allowedMethods; return this; } public Builder allowedMethods(String... allowedMethods) { @@ -132,7 +137,10 @@ public Builder allowedMethods(String... allowedMethods) { } @CustomType.Setter public Builder allowedOrigins(List allowedOrigins) { - this.allowedOrigins = Objects.requireNonNull(allowedOrigins); + if (allowedOrigins == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsConfigurationCorsRule", "allowedOrigins"); + } + this.allowedOrigins = allowedOrigins; return this; } public Builder allowedOrigins(String... allowedOrigins) { @@ -140,6 +148,7 @@ public Builder allowedOrigins(String... allowedOrigins) { } @CustomType.Setter public Builder exposeHeaders(@Nullable List exposeHeaders) { + this.exposeHeaders = exposeHeaders; return this; } @@ -148,11 +157,13 @@ public Builder exposeHeaders(String... exposeHeaders) { } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder maxAgeSeconds(@Nullable Integer maxAgeSeconds) { + this.maxAgeSeconds = maxAgeSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsRule.java index 922fcf52..9764e6f5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketCorsRule.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -88,6 +89,7 @@ public Builder(SpacesBucketCorsRule defaults) { @CustomType.Setter public Builder allowedHeaders(@Nullable List allowedHeaders) { + this.allowedHeaders = allowedHeaders; return this; } @@ -96,7 +98,10 @@ public Builder allowedHeaders(String... allowedHeaders) { } @CustomType.Setter public Builder allowedMethods(List allowedMethods) { - this.allowedMethods = Objects.requireNonNull(allowedMethods); + if (allowedMethods == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsRule", "allowedMethods"); + } + this.allowedMethods = allowedMethods; return this; } public Builder allowedMethods(String... allowedMethods) { @@ -104,7 +109,10 @@ public Builder allowedMethods(String... allowedMethods) { } @CustomType.Setter public Builder allowedOrigins(List allowedOrigins) { - this.allowedOrigins = Objects.requireNonNull(allowedOrigins); + if (allowedOrigins == null) { + throw new MissingRequiredPropertyException("SpacesBucketCorsRule", "allowedOrigins"); + } + this.allowedOrigins = allowedOrigins; return this; } public Builder allowedOrigins(String... allowedOrigins) { @@ -112,6 +120,7 @@ public Builder allowedOrigins(String... allowedOrigins) { } @CustomType.Setter public Builder maxAgeSeconds(@Nullable Integer maxAgeSeconds) { + this.maxAgeSeconds = maxAgeSeconds; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRule.java index 7e39d276..a2b6d965 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRule.java @@ -6,6 +6,7 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.digitalocean.outputs.SpacesBucketLifecycleRuleExpiration; import com.pulumi.digitalocean.outputs.SpacesBucketLifecycleRuleNoncurrentVersionExpiration; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -124,31 +125,39 @@ public Builder(SpacesBucketLifecycleRule defaults) { @CustomType.Setter public Builder abortIncompleteMultipartUploadDays(@Nullable Integer abortIncompleteMultipartUploadDays) { + this.abortIncompleteMultipartUploadDays = abortIncompleteMultipartUploadDays; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("SpacesBucketLifecycleRule", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder expiration(@Nullable SpacesBucketLifecycleRuleExpiration expiration) { + this.expiration = expiration; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder noncurrentVersionExpiration(@Nullable SpacesBucketLifecycleRuleNoncurrentVersionExpiration noncurrentVersionExpiration) { + this.noncurrentVersionExpiration = noncurrentVersionExpiration; return this; } @CustomType.Setter public Builder prefix(@Nullable String prefix) { + this.prefix = prefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleExpiration.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleExpiration.java index 5e0a1ef0..0c3a148d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleExpiration.java @@ -78,16 +78,19 @@ public Builder(SpacesBucketLifecycleRuleExpiration defaults) { @CustomType.Setter public Builder date(@Nullable String date) { + this.date = date; return this; } @CustomType.Setter public Builder days(@Nullable Integer days) { + this.days = days; return this; } @CustomType.Setter public Builder expiredObjectDeleteMarker(@Nullable Boolean expiredObjectDeleteMarker) { + this.expiredObjectDeleteMarker = expiredObjectDeleteMarker; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleNoncurrentVersionExpiration.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleNoncurrentVersionExpiration.java index 26052149..69da5627 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleNoncurrentVersionExpiration.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketLifecycleRuleNoncurrentVersionExpiration.java @@ -44,6 +44,7 @@ public Builder(SpacesBucketLifecycleRuleNoncurrentVersionExpiration defaults) { @CustomType.Setter public Builder days(@Nullable Integer days) { + this.days = days; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketVersioning.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketVersioning.java index 3ea0fdac..505d4a91 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketVersioning.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/SpacesBucketVersioning.java @@ -46,6 +46,7 @@ public Builder(SpacesBucketVersioning defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotification.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotification.java index efd606de..41507445 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotification.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotification.java @@ -51,6 +51,7 @@ public Builder(UptimeAlertNotification defaults) { @CustomType.Setter public Builder emails(@Nullable List emails) { + this.emails = emails; return this; } @@ -59,6 +60,7 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder slacks(@Nullable List slacks) { + this.slacks = slacks; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotificationSlack.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotificationSlack.java index 15c8de88..cff5e37b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotificationSlack.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/UptimeAlertNotificationSlack.java @@ -4,6 +4,7 @@ package com.pulumi.digitalocean.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(UptimeAlertNotificationSlack defaults) { @CustomType.Setter public Builder channel(String channel) { - this.channel = Objects.requireNonNull(channel); + if (channel == null) { + throw new MissingRequiredPropertyException("UptimeAlertNotificationSlack", "channel"); + } + this.channel = channel; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("UptimeAlertNotificationSlack", "url"); + } + this.url = url; return this; } public UptimeAlertNotificationSlack build() {