From e846cd038b9a2a5325df8cdc3b46d51bbffacebd Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Tue, 2 Jan 2024 08:14:27 -0800 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.70.0 (#468) This PR was generated via `$ upgrade-provider pulumi/pulumi-gitlab --kind=bridge --pr-reviewers=t0yv0`. --- - Updating Java Gen version from 0.9.8 to 0.9.9. - Upgrading pulumi-terraform-bridge from v3.69.0 to v3.70.0. - Upgrading pulumi-terraform-bridge/pf from v0.22.0 to v0.23.0. --- .pulumi-java-gen.version | 2 +- examples/go.mod | 6 +- examples/go.sum | 12 +- provider/go.mod | 12 +- provider/go.sum | 24 +- sdk/go.mod | 4 +- sdk/go.sum | 8 +- sdk/java/build.gradle | 2 +- .../com/pulumi/gitlab/ApplicationArgs.java | 9 +- .../java/com/pulumi/gitlab/BranchArgs.java | 9 +- .../pulumi/gitlab/BranchProtectionArgs.java | 9 +- .../com/pulumi/gitlab/ClusterAgentArgs.java | 5 +- .../pulumi/gitlab/ClusterAgentTokenArgs.java | 9 +- .../gitlab/ComplianceFrameworkArgs.java | 13 +- .../java/com/pulumi/gitlab/DeployKeyArgs.java | 13 +- .../pulumi/gitlab/DeployKeyEnableArgs.java | 9 +- .../com/pulumi/gitlab/DeployTokenArgs.java | 5 +- .../pulumi/gitlab/GroupAccessTokenArgs.java | 13 +- .../java/com/pulumi/gitlab/GroupArgs.java | 5 +- .../com/pulumi/gitlab/GroupBadgeArgs.java | 13 +- .../com/pulumi/gitlab/GroupClusterArgs.java | 13 +- .../gitlab/GroupCustomAttributeArgs.java | 13 +- .../com/pulumi/gitlab/GroupEpicBoardArgs.java | 5 +- .../java/com/pulumi/gitlab/GroupHookArgs.java | 9 +- .../pulumi/gitlab/GroupIssueBoardArgs.java | 5 +- .../com/pulumi/gitlab/GroupLabelArgs.java | 9 +- .../com/pulumi/gitlab/GroupLdapLinkArgs.java | 9 +- .../pulumi/gitlab/GroupMembershipArgs.java | 13 +- .../gitlab/GroupProjectFileTemplateArgs.java | 9 +- .../gitlab/GroupProtectedEnvironmentArgs.java | 13 +- .../com/pulumi/gitlab/GroupSamlLinkArgs.java | 13 +- .../pulumi/gitlab/GroupShareGroupArgs.java | 13 +- .../com/pulumi/gitlab/GroupVariableArgs.java | 13 +- .../pulumi/gitlab/InstanceClusterArgs.java | 9 +- .../pulumi/gitlab/InstanceVariableArgs.java | 9 +- .../IntegrationCustomIssueTrackerArgs.java | 13 +- .../gitlab/IntegrationEmailsOnPushArgs.java | 9 +- .../gitlab/IntegrationExternalWikiArgs.java | 9 +- .../pulumi/gitlab/IntegrationGithubArgs.java | 13 +- .../pulumi/gitlab/IntegrationJiraArgs.java | 17 +- .../gitlab/IntegrationMattermostArgs.java | 9 +- .../gitlab/IntegrationMicrosoftTeamsArgs.java | 9 +- .../gitlab/IntegrationPipelinesEmailArgs.java | 9 +- .../pulumi/gitlab/IntegrationSlackArgs.java | 9 +- .../java/com/pulumi/gitlab/LabelArgs.java | 9 +- .../com/pulumi/gitlab/PagesDomainArgs.java | 9 +- .../gitlab/PersonalAccessTokenArgs.java | 13 +- .../pulumi/gitlab/PipelineScheduleArgs.java | 17 +- .../gitlab/PipelineScheduleVariableArgs.java | 17 +- .../pulumi/gitlab/PipelineTriggerArgs.java | 9 +- .../pulumi/gitlab/ProjectAccessTokenArgs.java | 13 +- .../gitlab/ProjectApprovalRuleArgs.java | 9 +- .../com/pulumi/gitlab/ProjectBadgeArgs.java | 13 +- .../com/pulumi/gitlab/ProjectClusterArgs.java | 13 +- .../ProjectComplianceFrameworkArgs.java | 9 +- .../gitlab/ProjectCustomAttributeArgs.java | 13 +- .../pulumi/gitlab/ProjectEnvironmentArgs.java | 5 +- .../gitlab/ProjectFreezePeriodArgs.java | 13 +- .../com/pulumi/gitlab/ProjectHookArgs.java | 9 +- .../com/pulumi/gitlab/ProjectIssueArgs.java | 9 +- .../pulumi/gitlab/ProjectIssueBoardArgs.java | 5 +- .../gitlab/ProjectJobTokenScopeArgs.java | 9 +- .../com/pulumi/gitlab/ProjectLabelArgs.java | 9 +- .../gitlab/ProjectLevelMrApprovalsArgs.java | 5 +- .../gitlab/ProjectLevelNotificationsArgs.java | 5 +- .../pulumi/gitlab/ProjectMembershipArgs.java | 13 +- .../pulumi/gitlab/ProjectMilestoneArgs.java | 9 +- .../com/pulumi/gitlab/ProjectMirrorArgs.java | 9 +- .../ProjectProtectedEnvironmentArgs.java | 9 +- .../gitlab/ProjectRunnerEnablementArgs.java | 9 +- .../pulumi/gitlab/ProjectShareGroupArgs.java | 9 +- .../com/pulumi/gitlab/ProjectTagArgs.java | 9 +- .../pulumi/gitlab/ProjectVariableArgs.java | 13 +- .../com/pulumi/gitlab/ReleaseLinkArgs.java | 13 +- .../com/pulumi/gitlab/RepositoryFileArgs.java | 17 +- .../java/com/pulumi/gitlab/RunnerArgs.java | 5 +- .../gitlab/ServiceCustomIssueTrackerArgs.java | 13 +- .../gitlab/ServiceEmailsOnPushArgs.java | 9 +- .../gitlab/ServiceExternalWikiArgs.java | 9 +- .../com/pulumi/gitlab/ServiceGithubArgs.java | 13 +- .../com/pulumi/gitlab/ServiceJiraArgs.java | 17 +- .../gitlab/ServiceMicrosoftTeamsArgs.java | 9 +- .../gitlab/ServicePipelinesEmailArgs.java | 9 +- .../com/pulumi/gitlab/ServiceSlackArgs.java | 9 +- .../com/pulumi/gitlab/SystemHookArgs.java | 5 +- .../com/pulumi/gitlab/TagProtectionArgs.java | 13 +- .../main/java/com/pulumi/gitlab/UserArgs.java | 9 +- .../gitlab/UserCustomAttributeArgs.java | 13 +- .../com/pulumi/gitlab/UserGpgKeyArgs.java | 5 +- .../com/pulumi/gitlab/UserRunnerArgs.java | 5 +- .../com/pulumi/gitlab/UserSshKeyArgs.java | 9 +- .../gitlab/inputs/GetApplicationArgs.java | 5 +- .../inputs/GetApplicationPlainArgs.java | 5 +- .../pulumi/gitlab/inputs/GetBranchArgs.java | 9 +- .../gitlab/inputs/GetBranchPlainArgs.java | 9 +- .../gitlab/inputs/GetClusterAgentArgs.java | 9 +- .../inputs/GetClusterAgentPlainArgs.java | 9 +- .../gitlab/inputs/GetClusterAgentsArgs.java | 5 +- .../inputs/GetClusterAgentsPlainArgs.java | 5 +- .../gitlab/inputs/GetGroupHookArgs.java | 9 +- .../gitlab/inputs/GetGroupHookPlainArgs.java | 9 +- .../gitlab/inputs/GetGroupHooksArgs.java | 5 +- .../gitlab/inputs/GetGroupHooksPlainArgs.java | 5 +- .../gitlab/inputs/GetGroupSubgroupsArgs.java | 5 +- .../inputs/GetGroupSubgroupsPlainArgs.java | 5 +- .../gitlab/inputs/GetGroupVariableArgs.java | 9 +- .../inputs/GetGroupVariablePlainArgs.java | 9 +- .../gitlab/inputs/GetGroupVariablesArgs.java | 5 +- .../inputs/GetGroupVariablesPlainArgs.java | 5 +- .../inputs/GetInstanceVariableArgs.java | 5 +- .../inputs/GetInstanceVariablePlainArgs.java | 5 +- .../gitlab/inputs/GetProjectBranchesArgs.java | 5 +- .../inputs/GetProjectBranchesPlainArgs.java | 5 +- .../gitlab/inputs/GetProjectHookArgs.java | 9 +- .../inputs/GetProjectHookPlainArgs.java | 9 +- .../gitlab/inputs/GetProjectHooksArgs.java | 5 +- .../inputs/GetProjectHooksPlainArgs.java | 5 +- .../gitlab/inputs/GetProjectIssueArgs.java | 9 +- .../inputs/GetProjectIssuePlainArgs.java | 9 +- .../gitlab/inputs/GetProjectIssuesArgs.java | 5 +- .../inputs/GetProjectIssuesPlainArgs.java | 5 +- .../inputs/GetProjectMilestoneArgs.java | 9 +- .../inputs/GetProjectMilestonePlainArgs.java | 9 +- .../inputs/GetProjectMilestonesArgs.java | 5 +- .../inputs/GetProjectMilestonesPlainArgs.java | 5 +- .../inputs/GetProjectProtectedBranchArgs.java | 9 +- .../GetProjectProtectedBranchPlainArgs.java | 9 +- .../GetProjectProtectedBranchesArgs.java | 5 +- .../GetProjectProtectedBranchesPlainArgs.java | 5 +- .../gitlab/inputs/GetProjectTagArgs.java | 9 +- .../gitlab/inputs/GetProjectTagPlainArgs.java | 9 +- .../gitlab/inputs/GetProjectTagsArgs.java | 5 +- .../inputs/GetProjectTagsPlainArgs.java | 5 +- .../gitlab/inputs/GetProjectVariableArgs.java | 9 +- .../inputs/GetProjectVariablePlainArgs.java | 9 +- .../inputs/GetProjectVariablesArgs.java | 5 +- .../inputs/GetProjectVariablesPlainArgs.java | 5 +- .../gitlab/inputs/GetReleaseLinkArgs.java | 13 +- .../inputs/GetReleaseLinkPlainArgs.java | 13 +- .../gitlab/inputs/GetReleaseLinksArgs.java | 9 +- .../inputs/GetReleaseLinksPlainArgs.java | 9 +- .../gitlab/inputs/GetRepositoryFileArgs.java | 13 +- .../inputs/GetRepositoryFilePlainArgs.java | 13 +- .../gitlab/inputs/GetRepositoryTreeArgs.java | 9 +- .../inputs/GetRepositoryTreePlainArgs.java | 9 +- .../pulumi/gitlab/outputs/BranchCommit.java | 11 + .../BranchProtectionAllowedToMerge.java | 4 + .../BranchProtectionAllowedToPush.java | 4 + .../BranchProtectionAllowedToUnprotect.java | 4 + .../gitlab/outputs/GetApplicationResult.java | 26 +- .../gitlab/outputs/GetBranchCommit.java | 56 ++- .../gitlab/outputs/GetBranchResult.java | 56 ++- .../gitlab/outputs/GetClusterAgentResult.java | 31 +- .../outputs/GetClusterAgentsClusterAgent.java | 26 +- .../outputs/GetClusterAgentsResult.java | 16 +- .../gitlab/outputs/GetCurrentUserResult.java | 46 +- .../gitlab/outputs/GetGroupHookResult.java | 106 +++- .../gitlab/outputs/GetGroupHooksHook.java | 101 +++- .../gitlab/outputs/GetGroupHooksResult.java | 16 +- .../outputs/GetGroupMembershipMember.java | 41 +- .../outputs/GetGroupMembershipResult.java | 27 +- .../pulumi/gitlab/outputs/GetGroupResult.java | 101 +++- .../outputs/GetGroupSubgroupsResult.java | 61 ++- .../outputs/GetGroupSubgroupsSubgroup.java | 136 ++++- .../outputs/GetGroupVariableResult.java | 46 +- .../outputs/GetGroupVariablesResult.java | 17 +- .../outputs/GetGroupVariablesVariable.java | 41 +- .../pulumi/gitlab/outputs/GetGroupsGroup.java | 81 ++- .../gitlab/outputs/GetGroupsResult.java | 15 +- .../GetInstanceDeployKeysDeployKey.java | 31 +- ...yKeysDeployKeyProjectsWithWriteAccess.java | 36 +- .../outputs/GetInstanceDeployKeysResult.java | 12 +- .../outputs/GetInstanceVariableResult.java | 36 +- .../outputs/GetInstanceVariablesResult.java | 11 +- .../outputs/GetInstanceVariablesVariable.java | 31 +- .../pulumi/gitlab/outputs/GetMetadataKas.java | 16 +- .../gitlab/outputs/GetMetadataResult.java | 26 +- .../outputs/GetProjectBranchesBranch.java | 46 +- .../GetProjectBranchesBranchCommit.java | 56 ++- .../outputs/GetProjectBranchesResult.java | 16 +- .../GetProjectContainerExpirationPolicy.java | 41 +- .../gitlab/outputs/GetProjectHookResult.java | 101 +++- .../gitlab/outputs/GetProjectHooksHook.java | 96 +++- .../gitlab/outputs/GetProjectHooksResult.java | 16 +- .../gitlab/outputs/GetProjectIssueResult.java | 201 ++++++-- .../GetProjectIssueTaskCompletionStatus.java | 11 +- .../gitlab/outputs/GetProjectIssuesIssue.java | 196 ++++++-- ...rojectIssuesIssueTaskCompletionStatus.java | 11 +- .../outputs/GetProjectIssuesResult.java | 41 +- .../outputs/GetProjectMembershipMember.java | 41 +- .../outputs/GetProjectMembershipResult.java | 23 +- .../outputs/GetProjectMilestoneResult.java | 71 ++- .../GetProjectMilestonesMilestone.java | 66 ++- .../outputs/GetProjectMilestonesResult.java | 21 +- ...rojectProtectedBranchMergeAccessLevel.java | 21 +- ...ProjectProtectedBranchPushAccessLevel.java | 21 +- .../GetProjectProtectedBranchResult.java | 36 +- ...ojectProtectedBranchesProtectedBranch.java | 31 +- ...anchesProtectedBranchMergeAccessLevel.java | 21 +- ...ranchesProtectedBranchPushAccessLevel.java | 21 +- .../GetProjectProtectedBranchesResult.java | 16 +- .../gitlab/outputs/GetProjectPushRule.java | 56 ++- .../gitlab/outputs/GetProjectResult.java | 317 +++++++++--- .../gitlab/outputs/GetProjectTagCommit.java | 56 ++- .../gitlab/outputs/GetProjectTagRelease.java | 11 +- .../gitlab/outputs/GetProjectTagResult.java | 41 +- .../gitlab/outputs/GetProjectTagsResult.java | 19 +- .../gitlab/outputs/GetProjectTagsTag.java | 31 +- .../outputs/GetProjectTagsTagCommit.java | 56 ++- .../outputs/GetProjectTagsTagRelease.java | 11 +- .../outputs/GetProjectVariableResult.java | 46 +- .../outputs/GetProjectVariablesResult.java | 17 +- .../outputs/GetProjectVariablesVariable.java | 41 +- .../gitlab/outputs/GetProjectsProject.java | 476 ++++++++++++++---- ...jectsProjectContainerExpirationPolicy.java | 41 +- .../GetProjectsProjectForkedFromProject.java | 36 +- .../outputs/GetProjectsProjectNamespace.java | 26 +- .../outputs/GetProjectsProjectOwner.java | 31 +- .../outputs/GetProjectsProjectPermission.java | 11 +- .../GetProjectsProjectSharedWithGroup.java | 16 +- .../gitlab/outputs/GetProjectsResult.java | 33 +- .../gitlab/outputs/GetReleaseLinkResult.java | 51 +- .../outputs/GetReleaseLinksReleaseLink.java | 46 +- .../gitlab/outputs/GetReleaseLinksResult.java | 21 +- .../outputs/GetRepositoryFileResult.java | 66 ++- .../outputs/GetRepositoryTreeResult.java | 23 +- .../gitlab/outputs/GetRepositoryTreeTree.java | 26 +- .../pulumi/gitlab/outputs/GetUserResult.java | 146 ++++-- .../gitlab/outputs/GetUserSshkeysKey.java | 31 +- .../gitlab/outputs/GetUserSshkeysResult.java | 21 +- .../pulumi/gitlab/outputs/GetUsersResult.java | 20 +- .../pulumi/gitlab/outputs/GetUsersUser.java | 136 ++++- .../gitlab/outputs/GroupEpicBoardList.java | 3 + .../gitlab/outputs/GroupIssueBoardList.java | 3 + ...GroupProtectedEnvironmentApprovalRule.java | 6 + ...ProtectedEnvironmentDeployAccessLevel.java | 5 + .../pulumi/gitlab/outputs/GroupPushRules.java | 11 + .../ProjectContainerExpirationPolicy.java | 8 + .../gitlab/outputs/ProjectIssueBoardList.java | 6 + .../ProjectIssueTaskCompletionStatus.java | 2 + ...ojectProtectedEnvironmentApprovalRule.java | 6 + ...ProtectedEnvironmentDeployAccessLevel.java | 5 + .../gitlab/outputs/ProjectPushRules.java | 11 + .../gitlab/outputs/ProjectTagCommit.java | 11 + .../gitlab/outputs/ProjectTagRelease.java | 2 + .../outputs/TagProtectionAllowedToCreate.java | 4 + 246 files changed, 4675 insertions(+), 1163 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index b5d0ec558..6f060dcbc 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.9.8 \ No newline at end of file +0.9.9 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 538d0788c..ebc595e00 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-gitlab/examples/v6 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.98.0 +require github.com/pulumi/pulumi/pkg/v3 v3.99.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -138,8 +138,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.98.0 // indirect + github.com/pulumi/esc v0.6.2 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.99.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 91d4a077b..09efe5183 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1445,12 +1445,12 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= diff --git a/provider/go.mod b/provider/go.mod index aa5fd899a..7975313bc 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,9 +3,9 @@ module github.com/pulumi/pulumi-gitlab/provider/v6 go 1.21 require ( - github.com/pulumi/pulumi-terraform-bridge/pf v0.22.0 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.23.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 gitlab.com/gitlab-org/terraform-provider-gitlab v0.0.0 ) @@ -185,11 +185,11 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 // indirect - github.com/pulumi/pulumi-yaml v1.4.3 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.98.0 // indirect + github.com/pulumi/pulumi-yaml v1.4.4 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.99.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index 3b621f110..0856200ff 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2199,24 +2199,24 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ= github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= -github.com/pulumi/pulumi-terraform-bridge/pf v0.22.0 h1:sgQslsC7PqYh3Flxk3bZhXc3DNLiYUmxUTBogR0l46w= -github.com/pulumi/pulumi-terraform-bridge/pf v0.22.0/go.mod h1:ejVXJ1pqYjapUPzl+3ERcw2CQzQvqir6bgfUVJH14P8= +github.com/pulumi/pulumi-terraform-bridge/pf v0.23.0 h1:j0rOtgpeGn2ZfyEVJtg5QhCEQEiMgz0rmFO6qWUFLzA= +github.com/pulumi/pulumi-terraform-bridge/pf v0.23.0/go.mod h1:V9uoQlm7O+B9m9y2f7BE5tvG+BGVjWzLN1tlrRLHUEE= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 h1:PsIB738ZqrQbHKe5Q5Ag8Kq/ejrOyO8skLUQeAqRjzM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0/go.mod h1:/wXhD95iSr4FlmGtVN/H8hXriMW4isDDrAUprozXG4A= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 h1:+o0c2gUjZURORGNftW4dEOm/E4rzh2JnK+z9PAwLjbE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0/go.mod h1:jcdXdda230ZJJjzeRwWuFPRzq1EI8APwYVQIH32MoRk= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6 h1:uy8P3aaAbrOrGvytvCb2KsYqZMA9TJiY8IKeVQgNAJo= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.6/go.mod h1:uw1IN0Mlvi5SL0cmWzmKqZ+ZDNueRIXkr9aE+XQkrug= -github.com/pulumi/pulumi-yaml v1.4.3 h1:GO36c7FTl8If20Dn/w2Hi3huP7kmsO00KNaz3GJU0Ws= -github.com/pulumi/pulumi-yaml v1.4.3/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/pulumi-yaml v1.4.4 h1:BODM3hnmy/kjmbjxySNI5dmGURn2fczVql2MSGjdeQw= +github.com/pulumi/pulumi-yaml v1.4.4/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index c207673f5..3f2a68ea1 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -57,7 +57,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 2f94a4521..1e455351e 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -149,10 +149,10 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index e17e65408..2eac86a3c 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/gitlab/ApplicationArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationArgs.java index 28ce829b3..1b5605893 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ApplicationArgs.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; @@ -204,8 +205,12 @@ public Builder scopes(String... scopes) { } public ApplicationArgs build() { - $.redirectUrl = Objects.requireNonNull($.redirectUrl, "expected parameter 'redirectUrl' to be non-null"); - $.scopes = Objects.requireNonNull($.scopes, "expected parameter 'scopes' to be non-null"); + if ($.redirectUrl == null) { + throw new MissingRequiredPropertyException("ApplicationArgs", "redirectUrl"); + } + if ($.scopes == null) { + throw new MissingRequiredPropertyException("ApplicationArgs", "scopes"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/BranchArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/BranchArgs.java index 1f9e50db7..2e2a60bce 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/BranchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/BranchArgs.java @@ -5,6 +5,7 @@ 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 ref(String ref) { } public BranchArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("BranchArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("BranchArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/BranchProtectionArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/BranchProtectionArgs.java index 486b61f3e..8fc9078fb 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/BranchProtectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/BranchProtectionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.BranchProtectionAllowedToMergeArgs; import com.pulumi.gitlab.inputs.BranchProtectionAllowedToPushArgs; import com.pulumi.gitlab.inputs.BranchProtectionAllowedToUnprotectArgs; @@ -444,8 +445,12 @@ public Builder unprotectAccessLevel(String unprotectAccessLevel) { } public BranchProtectionArgs build() { - $.branch = Objects.requireNonNull($.branch, "expected parameter 'branch' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.branch == null) { + throw new MissingRequiredPropertyException("BranchProtectionArgs", "branch"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("BranchProtectionArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentArgs.java index 9b2021543..b4e0c308f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public ClusterAgentArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ClusterAgentArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentTokenArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentTokenArgs.java index cb38538ce..83be6ac70 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ClusterAgentTokenArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -188,8 +189,12 @@ public Builder project(String project) { } public ClusterAgentTokenArgs build() { - $.agentId = Objects.requireNonNull($.agentId, "expected parameter 'agentId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.agentId == null) { + throw new MissingRequiredPropertyException("ClusterAgentTokenArgs", "agentId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ClusterAgentTokenArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ComplianceFrameworkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ComplianceFrameworkArgs.java index 061a109c4..469f8a641 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ComplianceFrameworkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ComplianceFrameworkArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -262,9 +263,15 @@ public Builder pipelineConfigurationFullPath(String pipelineConfigurationFullPat } public ComplianceFrameworkArgs build() { - $.color = Objects.requireNonNull($.color, "expected parameter 'color' to be non-null"); - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.namespacePath = Objects.requireNonNull($.namespacePath, "expected parameter 'namespacePath' to be non-null"); + if ($.color == null) { + throw new MissingRequiredPropertyException("ComplianceFrameworkArgs", "color"); + } + if ($.description == null) { + throw new MissingRequiredPropertyException("ComplianceFrameworkArgs", "description"); + } + if ($.namespacePath == null) { + throw new MissingRequiredPropertyException("ComplianceFrameworkArgs", "namespacePath"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyArgs.java index 11a71247e..56abf99b0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder title(String title) { } public DeployKeyArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.title = Objects.requireNonNull($.title, "expected parameter 'title' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("DeployKeyArgs", "key"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("DeployKeyArgs", "project"); + } + if ($.title == null) { + throw new MissingRequiredPropertyException("DeployKeyArgs", "title"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyEnableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyEnableArgs.java index a9c7235a9..a164c32da 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyEnableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/DeployKeyEnableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -225,8 +226,12 @@ public Builder title(String title) { } public DeployKeyEnableArgs build() { - $.keyId = Objects.requireNonNull($.keyId, "expected parameter 'keyId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.keyId == null) { + throw new MissingRequiredPropertyException("DeployKeyEnableArgs", "keyId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("DeployKeyEnableArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/DeployTokenArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/DeployTokenArgs.java index ff880c231..98615cd89 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/DeployTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/DeployTokenArgs.java @@ -5,6 +5,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; @@ -272,7 +273,9 @@ public Builder username(String username) { } public DeployTokenArgs build() { - $.scopes = Objects.requireNonNull($.scopes, "expected parameter 'scopes' to be non-null"); + if ($.scopes == null) { + throw new MissingRequiredPropertyException("DeployTokenArgs", "scopes"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupAccessTokenArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupAccessTokenArgs.java index 61c73055c..fc9a39eb1 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupAccessTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupAccessTokenArgs.java @@ -5,6 +5,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; @@ -235,9 +236,15 @@ public Builder scopes(String... scopes) { } public GroupAccessTokenArgs build() { - $.expiresAt = Objects.requireNonNull($.expiresAt, "expected parameter 'expiresAt' to be non-null"); - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.scopes = Objects.requireNonNull($.scopes, "expected parameter 'scopes' to be non-null"); + if ($.expiresAt == null) { + throw new MissingRequiredPropertyException("GroupAccessTokenArgs", "expiresAt"); + } + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupAccessTokenArgs", "group"); + } + if ($.scopes == null) { + throw new MissingRequiredPropertyException("GroupAccessTokenArgs", "scopes"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupArgs.java index 6448c8ca3..d62400375 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.GroupPushRulesArgs; import java.lang.Boolean; import java.lang.Integer; @@ -1015,7 +1016,9 @@ public Builder wikiAccessLevel(String wikiAccessLevel) { } public GroupArgs build() { - $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null"); + if ($.path == null) { + throw new MissingRequiredPropertyException("GroupArgs", "path"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupBadgeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupBadgeArgs.java index 89f18e19e..0dacdecc4 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupBadgeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupBadgeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,9 +188,15 @@ public Builder name(String name) { } public GroupBadgeArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.imageUrl = Objects.requireNonNull($.imageUrl, "expected parameter 'imageUrl' to be non-null"); - $.linkUrl = Objects.requireNonNull($.linkUrl, "expected parameter 'linkUrl' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupBadgeArgs", "group"); + } + if ($.imageUrl == null) { + throw new MissingRequiredPropertyException("GroupBadgeArgs", "imageUrl"); + } + if ($.linkUrl == null) { + throw new MissingRequiredPropertyException("GroupBadgeArgs", "linkUrl"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupClusterArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupClusterArgs.java index 60205a96d..9d1ce7124 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupClusterArgs.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; @@ -447,9 +448,15 @@ public Builder name(String name) { } public GroupClusterArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.kubernetesApiUrl = Objects.requireNonNull($.kubernetesApiUrl, "expected parameter 'kubernetesApiUrl' to be non-null"); - $.kubernetesToken = Objects.requireNonNull($.kubernetesToken, "expected parameter 'kubernetesToken' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupClusterArgs", "group"); + } + if ($.kubernetesApiUrl == null) { + throw new MissingRequiredPropertyException("GroupClusterArgs", "kubernetesApiUrl"); + } + if ($.kubernetesToken == null) { + throw new MissingRequiredPropertyException("GroupClusterArgs", "kubernetesToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupCustomAttributeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupCustomAttributeArgs.java index 70debfa0f..d2c525e67 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupCustomAttributeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupCustomAttributeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -149,9 +150,15 @@ public Builder value(String value) { } public GroupCustomAttributeArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' 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 ($.group == null) { + throw new MissingRequiredPropertyException("GroupCustomAttributeArgs", "group"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GroupCustomAttributeArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("GroupCustomAttributeArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupEpicBoardArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupEpicBoardArgs.java index c6e99530e..f9576b404 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupEpicBoardArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupEpicBoardArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.GroupEpicBoardListArgs; import java.lang.String; import java.util.List; @@ -162,7 +163,9 @@ public Builder name(String name) { } public GroupEpicBoardArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupEpicBoardArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupHookArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupHookArgs.java index ce7a8987c..896f28ff6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupHookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupHookArgs.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; @@ -706,8 +707,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public GroupHookArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupHookArgs", "group"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("GroupHookArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupIssueBoardArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupIssueBoardArgs.java index 4b6c9f8c4..7aa9a1fde 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupIssueBoardArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupIssueBoardArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.GroupIssueBoardListArgs; import java.lang.Integer; import java.lang.String; @@ -200,7 +201,9 @@ public Builder name(String name) { } public GroupIssueBoardArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupIssueBoardArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupLabelArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupLabelArgs.java index 82a590a5f..699312022 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupLabelArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupLabelArgs.java @@ -5,6 +5,7 @@ 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 name(String name) { } public GroupLabelArgs build() { - $.color = Objects.requireNonNull($.color, "expected parameter 'color' to be non-null"); - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.color == null) { + throw new MissingRequiredPropertyException("GroupLabelArgs", "color"); + } + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupLabelArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupLdapLinkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupLdapLinkArgs.java index 015ecf766..9c8f38772 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupLdapLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupLdapLinkArgs.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; @@ -315,8 +316,12 @@ public Builder ldapProvider(String ldapProvider) { } public GroupLdapLinkArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.ldapProvider = Objects.requireNonNull($.ldapProvider, "expected parameter 'ldapProvider' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupLdapLinkArgs", "group"); + } + if ($.ldapProvider == null) { + throw new MissingRequiredPropertyException("GroupLdapLinkArgs", "ldapProvider"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupMembershipArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupMembershipArgs.java index 1f03a7b7e..cd4ab4487 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupMembershipArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupMembershipArgs.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; @@ -263,9 +264,15 @@ public Builder userId(Integer userId) { } public GroupMembershipArgs build() { - $.accessLevel = Objects.requireNonNull($.accessLevel, "expected parameter 'accessLevel' to be non-null"); - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); - $.userId = Objects.requireNonNull($.userId, "expected parameter 'userId' to be non-null"); + if ($.accessLevel == null) { + throw new MissingRequiredPropertyException("GroupMembershipArgs", "accessLevel"); + } + if ($.groupId == null) { + throw new MissingRequiredPropertyException("GroupMembershipArgs", "groupId"); + } + if ($.userId == null) { + throw new MissingRequiredPropertyException("GroupMembershipArgs", "userId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupProjectFileTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupProjectFileTemplateArgs.java index 832220c29..f57e2bd5e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupProjectFileTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupProjectFileTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -119,8 +120,12 @@ public Builder groupId(Integer groupId) { } public GroupProjectFileTemplateArgs build() { - $.fileTemplateProjectId = Objects.requireNonNull($.fileTemplateProjectId, "expected parameter 'fileTemplateProjectId' to be non-null"); - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); + if ($.fileTemplateProjectId == null) { + throw new MissingRequiredPropertyException("GroupProjectFileTemplateArgs", "fileTemplateProjectId"); + } + if ($.groupId == null) { + throw new MissingRequiredPropertyException("GroupProjectFileTemplateArgs", "groupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupProtectedEnvironmentArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupProtectedEnvironmentArgs.java index a95498661..ef63fe8f8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupProtectedEnvironmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupProtectedEnvironmentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.GroupProtectedEnvironmentApprovalRuleArgs; import com.pulumi.gitlab.inputs.GroupProtectedEnvironmentDeployAccessLevelArgs; import java.lang.Integer; @@ -248,9 +249,15 @@ public Builder requiredApprovalCount(Integer requiredApprovalCount) { } public GroupProtectedEnvironmentArgs build() { - $.deployAccessLevels = Objects.requireNonNull($.deployAccessLevels, "expected parameter 'deployAccessLevels' to be non-null"); - $.environment = Objects.requireNonNull($.environment, "expected parameter 'environment' to be non-null"); - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.deployAccessLevels == null) { + throw new MissingRequiredPropertyException("GroupProtectedEnvironmentArgs", "deployAccessLevels"); + } + if ($.environment == null) { + throw new MissingRequiredPropertyException("GroupProtectedEnvironmentArgs", "environment"); + } + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupProtectedEnvironmentArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupSamlLinkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupSamlLinkArgs.java index 1210cfc9b..2fbbc47d7 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupSamlLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupSamlLinkArgs.java @@ -5,6 +5,7 @@ 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 samlGroupName(String samlGroupName) { } public GroupSamlLinkArgs build() { - $.accessLevel = Objects.requireNonNull($.accessLevel, "expected parameter 'accessLevel' to be non-null"); - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.samlGroupName = Objects.requireNonNull($.samlGroupName, "expected parameter 'samlGroupName' to be non-null"); + if ($.accessLevel == null) { + throw new MissingRequiredPropertyException("GroupSamlLinkArgs", "accessLevel"); + } + if ($.group == null) { + throw new MissingRequiredPropertyException("GroupSamlLinkArgs", "group"); + } + if ($.samlGroupName == null) { + throw new MissingRequiredPropertyException("GroupSamlLinkArgs", "samlGroupName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupShareGroupArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupShareGroupArgs.java index cf91e7c6e..faa9d6823 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupShareGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupShareGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder shareGroupId(Integer shareGroupId) { } public GroupShareGroupArgs build() { - $.groupAccess = Objects.requireNonNull($.groupAccess, "expected parameter 'groupAccess' to be non-null"); - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); - $.shareGroupId = Objects.requireNonNull($.shareGroupId, "expected parameter 'shareGroupId' to be non-null"); + if ($.groupAccess == null) { + throw new MissingRequiredPropertyException("GroupShareGroupArgs", "groupAccess"); + } + if ($.groupId == null) { + throw new MissingRequiredPropertyException("GroupShareGroupArgs", "groupId"); + } + if ($.shareGroupId == null) { + throw new MissingRequiredPropertyException("GroupShareGroupArgs", "shareGroupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java index 1e6d503d9..119c44c4c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/GroupVariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -336,9 +337,15 @@ public Builder variableType(String variableType) { } public GroupVariableArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' 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 ($.group == null) { + throw new MissingRequiredPropertyException("GroupVariableArgs", "group"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GroupVariableArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("GroupVariableArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/InstanceClusterArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/InstanceClusterArgs.java index 76ad7c825..4fdc69d42 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/InstanceClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/InstanceClusterArgs.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; @@ -447,8 +448,12 @@ public Builder name(String name) { } public InstanceClusterArgs build() { - $.kubernetesApiUrl = Objects.requireNonNull($.kubernetesApiUrl, "expected parameter 'kubernetesApiUrl' to be non-null"); - $.kubernetesToken = Objects.requireNonNull($.kubernetesToken, "expected parameter 'kubernetesToken' to be non-null"); + if ($.kubernetesApiUrl == null) { + throw new MissingRequiredPropertyException("InstanceClusterArgs", "kubernetesApiUrl"); + } + if ($.kubernetesToken == null) { + throw new MissingRequiredPropertyException("InstanceClusterArgs", "kubernetesToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/InstanceVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/InstanceVariableArgs.java index edbb3b7c2..94e8a0dea 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/InstanceVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/InstanceVariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -262,8 +263,12 @@ public Builder variableType(String variableType) { } public InstanceVariableArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("InstanceVariableArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("InstanceVariableArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationCustomIssueTrackerArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationCustomIssueTrackerArgs.java index 7403e7a25..8ad05f85f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationCustomIssueTrackerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationCustomIssueTrackerArgs.java @@ -5,6 +5,7 @@ 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 projectUrl(String projectUrl) { } public IntegrationCustomIssueTrackerArgs build() { - $.issuesUrl = Objects.requireNonNull($.issuesUrl, "expected parameter 'issuesUrl' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.projectUrl = Objects.requireNonNull($.projectUrl, "expected parameter 'projectUrl' to be non-null"); + if ($.issuesUrl == null) { + throw new MissingRequiredPropertyException("IntegrationCustomIssueTrackerArgs", "issuesUrl"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationCustomIssueTrackerArgs", "project"); + } + if ($.projectUrl == null) { + throw new MissingRequiredPropertyException("IntegrationCustomIssueTrackerArgs", "projectUrl"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationEmailsOnPushArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationEmailsOnPushArgs.java index 98641f6fb..e18150e07 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationEmailsOnPushArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationEmailsOnPushArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -299,8 +300,12 @@ public Builder tagPushEvents(Boolean tagPushEvents) { } public IntegrationEmailsOnPushArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.recipients = Objects.requireNonNull($.recipients, "expected parameter 'recipients' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationEmailsOnPushArgs", "project"); + } + if ($.recipients == null) { + throw new MissingRequiredPropertyException("IntegrationEmailsOnPushArgs", "recipients"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationExternalWikiArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationExternalWikiArgs.java index 7ef54ec69..71e027fc0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationExternalWikiArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationExternalWikiArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public IntegrationExternalWikiArgs build() { - $.externalWikiUrl = Objects.requireNonNull($.externalWikiUrl, "expected parameter 'externalWikiUrl' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.externalWikiUrl == null) { + throw new MissingRequiredPropertyException("IntegrationExternalWikiArgs", "externalWikiUrl"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationExternalWikiArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationGithubArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationGithubArgs.java index 4f31959db..c42136210 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationGithubArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationGithubArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder token(String token) { } public IntegrationGithubArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.repositoryUrl = Objects.requireNonNull($.repositoryUrl, "expected parameter 'repositoryUrl' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationGithubArgs", "project"); + } + if ($.repositoryUrl == null) { + throw new MissingRequiredPropertyException("IntegrationGithubArgs", "repositoryUrl"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("IntegrationGithubArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationJiraArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationJiraArgs.java index caa5a4d27..77a6d615e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationJiraArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationJiraArgs.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; @@ -632,10 +633,18 @@ public Builder username(String username) { } public IntegrationJiraArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("IntegrationJiraArgs", "password"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationJiraArgs", "project"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("IntegrationJiraArgs", "url"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("IntegrationJiraArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMattermostArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMattermostArgs.java index fecaed52b..64448b10a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMattermostArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMattermostArgs.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; @@ -891,8 +892,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public IntegrationMattermostArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationMattermostArgs", "project"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("IntegrationMattermostArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMicrosoftTeamsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMicrosoftTeamsArgs.java index 4a19fcaea..8c2b1608d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMicrosoftTeamsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationMicrosoftTeamsArgs.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; @@ -521,8 +522,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public IntegrationMicrosoftTeamsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationMicrosoftTeamsArgs", "project"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("IntegrationMicrosoftTeamsArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationPipelinesEmailArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationPipelinesEmailArgs.java index 5c8a383f2..c8e702013 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationPipelinesEmailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationPipelinesEmailArgs.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; @@ -199,8 +200,12 @@ public Builder recipients(String... recipients) { } public IntegrationPipelinesEmailArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.recipients = Objects.requireNonNull($.recipients, "expected parameter 'recipients' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationPipelinesEmailArgs", "project"); + } + if ($.recipients == null) { + throw new MissingRequiredPropertyException("IntegrationPipelinesEmailArgs", "recipients"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationSlackArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationSlackArgs.java index 4c1780614..52ea0ae52 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationSlackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/IntegrationSlackArgs.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; @@ -907,8 +908,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public IntegrationSlackArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("IntegrationSlackArgs", "project"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("IntegrationSlackArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/LabelArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/LabelArgs.java index 698c1fa9f..1dce4f44d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/LabelArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/LabelArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public LabelArgs build() { - $.color = Objects.requireNonNull($.color, "expected parameter 'color' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.color == null) { + throw new MissingRequiredPropertyException("LabelArgs", "color"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("LabelArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/PagesDomainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/PagesDomainArgs.java index ef477dbf9..2176be741 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/PagesDomainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/PagesDomainArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -262,8 +263,12 @@ public Builder project(String project) { } public PagesDomainArgs build() { - $.domain = Objects.requireNonNull($.domain, "expected parameter 'domain' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.domain == null) { + throw new MissingRequiredPropertyException("PagesDomainArgs", "domain"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("PagesDomainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/PersonalAccessTokenArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/PersonalAccessTokenArgs.java index f6da404ee..6e33dcfe9 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/PersonalAccessTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/PersonalAccessTokenArgs.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; @@ -199,9 +200,15 @@ public Builder userId(Integer userId) { } public PersonalAccessTokenArgs build() { - $.expiresAt = Objects.requireNonNull($.expiresAt, "expected parameter 'expiresAt' to be non-null"); - $.scopes = Objects.requireNonNull($.scopes, "expected parameter 'scopes' to be non-null"); - $.userId = Objects.requireNonNull($.userId, "expected parameter 'userId' to be non-null"); + if ($.expiresAt == null) { + throw new MissingRequiredPropertyException("PersonalAccessTokenArgs", "expiresAt"); + } + if ($.scopes == null) { + throw new MissingRequiredPropertyException("PersonalAccessTokenArgs", "scopes"); + } + if ($.userId == null) { + throw new MissingRequiredPropertyException("PersonalAccessTokenArgs", "userId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleArgs.java index 2a5fb1cf0..cb7de8d6f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleArgs.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; @@ -307,10 +308,18 @@ public Builder takeOwnership(Boolean takeOwnership) { } public PipelineScheduleArgs build() { - $.cron = Objects.requireNonNull($.cron, "expected parameter 'cron' to be non-null"); - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.cron == null) { + throw new MissingRequiredPropertyException("PipelineScheduleArgs", "cron"); + } + if ($.description == null) { + throw new MissingRequiredPropertyException("PipelineScheduleArgs", "description"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("PipelineScheduleArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("PipelineScheduleArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleVariableArgs.java index 29f859af6..2ef01b80a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineScheduleVariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -186,10 +187,18 @@ public Builder value(String value) { } public PipelineScheduleVariableArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.pipelineScheduleId = Objects.requireNonNull($.pipelineScheduleId, "expected parameter 'pipelineScheduleId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("PipelineScheduleVariableArgs", "key"); + } + if ($.pipelineScheduleId == null) { + throw new MissingRequiredPropertyException("PipelineScheduleVariableArgs", "pipelineScheduleId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("PipelineScheduleVariableArgs", "project"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("PipelineScheduleVariableArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineTriggerArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineTriggerArgs.java index 131a4ff32..4b7ed96ed 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/PipelineTriggerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/PipelineTriggerArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public PipelineTriggerArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("PipelineTriggerArgs", "description"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("PipelineTriggerArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectAccessTokenArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectAccessTokenArgs.java index a1b0ce724..15651e2bd 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectAccessTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectAccessTokenArgs.java @@ -5,6 +5,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; @@ -235,9 +236,15 @@ public Builder scopes(String... scopes) { } public ProjectAccessTokenArgs build() { - $.expiresAt = Objects.requireNonNull($.expiresAt, "expected parameter 'expiresAt' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.scopes = Objects.requireNonNull($.scopes, "expected parameter 'scopes' to be non-null"); + if ($.expiresAt == null) { + throw new MissingRequiredPropertyException("ProjectAccessTokenArgs", "expiresAt"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectAccessTokenArgs", "project"); + } + if ($.scopes == null) { + throw new MissingRequiredPropertyException("ProjectAccessTokenArgs", "scopes"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectApprovalRuleArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectApprovalRuleArgs.java index 147321a2f..a40afe245 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectApprovalRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectApprovalRuleArgs.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; @@ -405,8 +406,12 @@ public Builder userIds(Integer... userIds) { } public ProjectApprovalRuleArgs build() { - $.approvalsRequired = Objects.requireNonNull($.approvalsRequired, "expected parameter 'approvalsRequired' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.approvalsRequired == null) { + throw new MissingRequiredPropertyException("ProjectApprovalRuleArgs", "approvalsRequired"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectApprovalRuleArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectBadgeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectBadgeArgs.java index ff0868eaf..56639c3c6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectBadgeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectBadgeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,9 +188,15 @@ public Builder project(String project) { } public ProjectBadgeArgs build() { - $.imageUrl = Objects.requireNonNull($.imageUrl, "expected parameter 'imageUrl' to be non-null"); - $.linkUrl = Objects.requireNonNull($.linkUrl, "expected parameter 'linkUrl' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.imageUrl == null) { + throw new MissingRequiredPropertyException("ProjectBadgeArgs", "imageUrl"); + } + if ($.linkUrl == null) { + throw new MissingRequiredPropertyException("ProjectBadgeArgs", "linkUrl"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectBadgeArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectClusterArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectClusterArgs.java index da6774da3..9247b0393 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectClusterArgs.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; @@ -484,9 +485,15 @@ public Builder project(String project) { } public ProjectClusterArgs build() { - $.kubernetesApiUrl = Objects.requireNonNull($.kubernetesApiUrl, "expected parameter 'kubernetesApiUrl' to be non-null"); - $.kubernetesToken = Objects.requireNonNull($.kubernetesToken, "expected parameter 'kubernetesToken' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.kubernetesApiUrl == null) { + throw new MissingRequiredPropertyException("ProjectClusterArgs", "kubernetesApiUrl"); + } + if ($.kubernetesToken == null) { + throw new MissingRequiredPropertyException("ProjectClusterArgs", "kubernetesToken"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectClusterArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectComplianceFrameworkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectComplianceFrameworkArgs.java index 99d93d41b..21d3b150c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectComplianceFrameworkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectComplianceFrameworkArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public ProjectComplianceFrameworkArgs build() { - $.complianceFrameworkId = Objects.requireNonNull($.complianceFrameworkId, "expected parameter 'complianceFrameworkId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.complianceFrameworkId == null) { + throw new MissingRequiredPropertyException("ProjectComplianceFrameworkArgs", "complianceFrameworkId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectComplianceFrameworkArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectCustomAttributeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectCustomAttributeArgs.java index e5073da59..c546f2575 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectCustomAttributeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectCustomAttributeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -149,9 +150,15 @@ public Builder value(String value) { } public ProjectCustomAttributeArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ProjectCustomAttributeArgs", "key"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectCustomAttributeArgs", "project"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ProjectCustomAttributeArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectEnvironmentArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectEnvironmentArgs.java index 5161592ee..8b2106b69 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectEnvironmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectEnvironmentArgs.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 stopBeforeDestroy(Boolean stopBeforeDestroy) { } public ProjectEnvironmentArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectEnvironmentArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectFreezePeriodArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectFreezePeriodArgs.java index aa660af4f..314489ccd 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectFreezePeriodArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectFreezePeriodArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,9 +188,15 @@ public Builder project(String project) { } public ProjectFreezePeriodArgs build() { - $.freezeEnd = Objects.requireNonNull($.freezeEnd, "expected parameter 'freezeEnd' to be non-null"); - $.freezeStart = Objects.requireNonNull($.freezeStart, "expected parameter 'freezeStart' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.freezeEnd == null) { + throw new MissingRequiredPropertyException("ProjectFreezePeriodArgs", "freezeEnd"); + } + if ($.freezeStart == null) { + throw new MissingRequiredPropertyException("ProjectFreezePeriodArgs", "freezeStart"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectFreezePeriodArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectHookArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectHookArgs.java index 59cb825b0..75913b8e7 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectHookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectHookArgs.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; @@ -669,8 +670,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public ProjectHookArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectHookArgs", "project"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ProjectHookArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueArgs.java index 8ddc2200d..e1a17ed10 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueArgs.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; @@ -765,8 +766,12 @@ public Builder weight(Integer weight) { } public ProjectIssueArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.title = Objects.requireNonNull($.title, "expected parameter 'title' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectIssueArgs", "project"); + } + if ($.title == null) { + throw new MissingRequiredPropertyException("ProjectIssueArgs", "title"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueBoardArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueBoardArgs.java index adbb8cd6d..26c4ceddc 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueBoardArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectIssueBoardArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.ProjectIssueBoardListArgs; import java.lang.Integer; import java.lang.String; @@ -321,7 +322,9 @@ public Builder weight(Integer weight) { } public ProjectIssueBoardArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectIssueBoardArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectJobTokenScopeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectJobTokenScopeArgs.java index 116c04ecc..5ecacc95f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectJobTokenScopeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectJobTokenScopeArgs.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 targetProjectId(Integer targetProjectId) { } public ProjectJobTokenScopeArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.targetProjectId = Objects.requireNonNull($.targetProjectId, "expected parameter 'targetProjectId' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectJobTokenScopeArgs", "project"); + } + if ($.targetProjectId == null) { + throw new MissingRequiredPropertyException("ProjectJobTokenScopeArgs", "targetProjectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLabelArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLabelArgs.java index 6a9723adc..4eb1947ad 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLabelArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLabelArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public ProjectLabelArgs build() { - $.color = Objects.requireNonNull($.color, "expected parameter 'color' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.color == null) { + throw new MissingRequiredPropertyException("ProjectLabelArgs", "color"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectLabelArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelMrApprovalsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelMrApprovalsArgs.java index 484a611ff..27f95755d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelMrApprovalsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelMrApprovalsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -299,7 +300,9 @@ public Builder selectiveCodeOwnerRemovals(Boolean selectiveCodeOwnerRemovals) { } public ProjectLevelMrApprovalsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectLevelMrApprovalsArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelNotificationsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelNotificationsArgs.java index d200c3e2c..2540c460d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelNotificationsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectLevelNotificationsArgs.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; @@ -743,7 +744,9 @@ public Builder successPipeline(Boolean successPipeline) { } public ProjectLevelNotificationsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectLevelNotificationsArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMembershipArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMembershipArgs.java index 8e2a39527..3d84e6812 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMembershipArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMembershipArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder userId(Integer userId) { } public ProjectMembershipArgs build() { - $.accessLevel = Objects.requireNonNull($.accessLevel, "expected parameter 'accessLevel' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.userId = Objects.requireNonNull($.userId, "expected parameter 'userId' to be non-null"); + if ($.accessLevel == null) { + throw new MissingRequiredPropertyException("ProjectMembershipArgs", "accessLevel"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectMembershipArgs", "project"); + } + if ($.userId == null) { + throw new MissingRequiredPropertyException("ProjectMembershipArgs", "userId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMilestoneArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMilestoneArgs.java index 34d6c5064..79685d572 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMilestoneArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMilestoneArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,8 +262,12 @@ public Builder title(String title) { } public ProjectMilestoneArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.title = Objects.requireNonNull($.title, "expected parameter 'title' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectMilestoneArgs", "project"); + } + if ($.title == null) { + throw new MissingRequiredPropertyException("ProjectMilestoneArgs", "title"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMirrorArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMirrorArgs.java index d89c5eeb4..60606bb93 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMirrorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectMirrorArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -225,8 +226,12 @@ public Builder url(String url) { } public ProjectMirrorArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectMirrorArgs", "project"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ProjectMirrorArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectProtectedEnvironmentArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectProtectedEnvironmentArgs.java index 1808b775a..d128eec3d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectProtectedEnvironmentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectProtectedEnvironmentArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.ProjectProtectedEnvironmentApprovalRuleArgs; import com.pulumi.gitlab.inputs.ProjectProtectedEnvironmentDeployAccessLevelArgs; import java.lang.Integer; @@ -248,8 +249,12 @@ public Builder requiredApprovalCount(Integer requiredApprovalCount) { } public ProjectProtectedEnvironmentArgs build() { - $.environment = Objects.requireNonNull($.environment, "expected parameter 'environment' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.environment == null) { + throw new MissingRequiredPropertyException("ProjectProtectedEnvironmentArgs", "environment"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectProtectedEnvironmentArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectRunnerEnablementArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectRunnerEnablementArgs.java index e4c69cab7..87b6e1cb0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectRunnerEnablementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectRunnerEnablementArgs.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 runnerId(Integer runnerId) { } public ProjectRunnerEnablementArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.runnerId = Objects.requireNonNull($.runnerId, "expected parameter 'runnerId' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectRunnerEnablementArgs", "project"); + } + if ($.runnerId == null) { + throw new MissingRequiredPropertyException("ProjectRunnerEnablementArgs", "runnerId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectShareGroupArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectShareGroupArgs.java index fb16da1e3..f73a536b6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectShareGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectShareGroupArgs.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; @@ -204,8 +205,12 @@ public Builder project(String project) { } public ProjectShareGroupArgs build() { - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.groupId == null) { + throw new MissingRequiredPropertyException("ProjectShareGroupArgs", "groupId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectShareGroupArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectTagArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectTagArgs.java index 709fd4bc5..8cbdd45f5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectTagArgs.java @@ -5,6 +5,7 @@ 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 ref(String ref) { } public ProjectTagArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectTagArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("ProjectTagArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java index ef1482aed..981118b94 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ProjectVariableArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -336,9 +337,15 @@ public Builder variableType(String variableType) { } public ProjectVariableArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ProjectVariableArgs", "key"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ProjectVariableArgs", "project"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ProjectVariableArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ReleaseLinkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ReleaseLinkArgs.java index 7344b44b9..88d66c081 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ReleaseLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ReleaseLinkArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,9 +262,15 @@ public Builder url(String url) { } public ReleaseLinkArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tagName = Objects.requireNonNull($.tagName, "expected parameter 'tagName' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ReleaseLinkArgs", "project"); + } + if ($.tagName == null) { + throw new MissingRequiredPropertyException("ReleaseLinkArgs", "tagName"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ReleaseLinkArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/RepositoryFileArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/RepositoryFileArgs.java index 920ae7208..89e19b0fd 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/RepositoryFileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/RepositoryFileArgs.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; @@ -558,10 +559,18 @@ public Builder updateCommitMessage(String updateCommitMessage) { } public RepositoryFileArgs build() { - $.branch = Objects.requireNonNull($.branch, "expected parameter 'branch' to be non-null"); - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.filePath = Objects.requireNonNull($.filePath, "expected parameter 'filePath' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.branch == null) { + throw new MissingRequiredPropertyException("RepositoryFileArgs", "branch"); + } + if ($.content == null) { + throw new MissingRequiredPropertyException("RepositoryFileArgs", "content"); + } + if ($.filePath == null) { + throw new MissingRequiredPropertyException("RepositoryFileArgs", "filePath"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("RepositoryFileArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/RunnerArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/RunnerArgs.java index 867f1d147..c9bb57b7c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/RunnerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/RunnerArgs.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; @@ -348,7 +349,9 @@ public Builder tagLists(String... tagLists) { } public RunnerArgs build() { - $.registrationToken = Objects.requireNonNull($.registrationToken, "expected parameter 'registrationToken' to be non-null"); + if ($.registrationToken == null) { + throw new MissingRequiredPropertyException("RunnerArgs", "registrationToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceCustomIssueTrackerArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceCustomIssueTrackerArgs.java index bc147ee68..9522edc67 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceCustomIssueTrackerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceCustomIssueTrackerArgs.java @@ -5,6 +5,7 @@ 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 projectUrl(String projectUrl) { } public ServiceCustomIssueTrackerArgs build() { - $.issuesUrl = Objects.requireNonNull($.issuesUrl, "expected parameter 'issuesUrl' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.projectUrl = Objects.requireNonNull($.projectUrl, "expected parameter 'projectUrl' to be non-null"); + if ($.issuesUrl == null) { + throw new MissingRequiredPropertyException("ServiceCustomIssueTrackerArgs", "issuesUrl"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceCustomIssueTrackerArgs", "project"); + } + if ($.projectUrl == null) { + throw new MissingRequiredPropertyException("ServiceCustomIssueTrackerArgs", "projectUrl"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceEmailsOnPushArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceEmailsOnPushArgs.java index 34df8d574..a31785999 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceEmailsOnPushArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceEmailsOnPushArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -299,8 +300,12 @@ public Builder tagPushEvents(Boolean tagPushEvents) { } public ServiceEmailsOnPushArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.recipients = Objects.requireNonNull($.recipients, "expected parameter 'recipients' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceEmailsOnPushArgs", "project"); + } + if ($.recipients == null) { + throw new MissingRequiredPropertyException("ServiceEmailsOnPushArgs", "recipients"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceExternalWikiArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceExternalWikiArgs.java index f59aae988..c206f9d02 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceExternalWikiArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceExternalWikiArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public ServiceExternalWikiArgs build() { - $.externalWikiUrl = Objects.requireNonNull($.externalWikiUrl, "expected parameter 'externalWikiUrl' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.externalWikiUrl == null) { + throw new MissingRequiredPropertyException("ServiceExternalWikiArgs", "externalWikiUrl"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceExternalWikiArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceGithubArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceGithubArgs.java index d23b37b59..4b468cc52 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceGithubArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceGithubArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,9 +189,15 @@ public Builder token(String token) { } public ServiceGithubArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.repositoryUrl = Objects.requireNonNull($.repositoryUrl, "expected parameter 'repositoryUrl' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceGithubArgs", "project"); + } + if ($.repositoryUrl == null) { + throw new MissingRequiredPropertyException("ServiceGithubArgs", "repositoryUrl"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ServiceGithubArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceJiraArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceJiraArgs.java index 1b74f48a8..4ed2fc3f3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceJiraArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceJiraArgs.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; @@ -632,10 +633,18 @@ public Builder username(String username) { } public ServiceJiraArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("ServiceJiraArgs", "password"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceJiraArgs", "project"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ServiceJiraArgs", "url"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("ServiceJiraArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceMicrosoftTeamsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceMicrosoftTeamsArgs.java index 8735ca8ff..f2600d0d8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceMicrosoftTeamsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceMicrosoftTeamsArgs.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; @@ -521,8 +522,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public ServiceMicrosoftTeamsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceMicrosoftTeamsArgs", "project"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("ServiceMicrosoftTeamsArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServicePipelinesEmailArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServicePipelinesEmailArgs.java index 229f7ea8e..ceabd7b7d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServicePipelinesEmailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServicePipelinesEmailArgs.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; @@ -199,8 +200,12 @@ public Builder recipients(String... recipients) { } public ServicePipelinesEmailArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.recipients = Objects.requireNonNull($.recipients, "expected parameter 'recipients' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ServicePipelinesEmailArgs", "project"); + } + if ($.recipients == null) { + throw new MissingRequiredPropertyException("ServicePipelinesEmailArgs", "recipients"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceSlackArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceSlackArgs.java index e8017b47d..6a6432776 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/ServiceSlackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/ServiceSlackArgs.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; @@ -907,8 +908,12 @@ public Builder wikiPageEvents(Boolean wikiPageEvents) { } public ServiceSlackArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.webhook = Objects.requireNonNull($.webhook, "expected parameter 'webhook' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("ServiceSlackArgs", "project"); + } + if ($.webhook == null) { + throw new MissingRequiredPropertyException("ServiceSlackArgs", "webhook"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/SystemHookArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/SystemHookArgs.java index b25f53d06..2953865c3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/SystemHookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/SystemHookArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -299,7 +300,9 @@ public Builder url(String url) { } public SystemHookArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("SystemHookArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/TagProtectionArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/TagProtectionArgs.java index 24506e0bc..713dc27a9 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/TagProtectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/TagProtectionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.inputs.TagProtectionAllowedToCreateArgs; import java.lang.String; import java.util.List; @@ -199,9 +200,15 @@ public Builder tag(String tag) { } public TagProtectionArgs build() { - $.createAccessLevel = Objects.requireNonNull($.createAccessLevel, "expected parameter 'createAccessLevel' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tag = Objects.requireNonNull($.tag, "expected parameter 'tag' to be non-null"); + if ($.createAccessLevel == null) { + throw new MissingRequiredPropertyException("TagProtectionArgs", "createAccessLevel"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("TagProtectionArgs", "project"); + } + if ($.tag == null) { + throw new MissingRequiredPropertyException("TagProtectionArgs", "tag"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/UserArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/UserArgs.java index 0b66c8529..9c6dff461 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/UserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/UserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -522,8 +523,12 @@ public Builder username(String username) { } public UserArgs build() { - $.email = Objects.requireNonNull($.email, "expected parameter 'email' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.email == null) { + throw new MissingRequiredPropertyException("UserArgs", "email"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("UserArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/UserCustomAttributeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/UserCustomAttributeArgs.java index e636ae462..149255062 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/UserCustomAttributeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/UserCustomAttributeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -149,9 +150,15 @@ public Builder value(String value) { } public UserCustomAttributeArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("UserCustomAttributeArgs", "key"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("UserCustomAttributeArgs", "user"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("UserCustomAttributeArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/UserGpgKeyArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/UserGpgKeyArgs.java index 8fb728ca0..2ac07231b 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/UserGpgKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/UserGpgKeyArgs.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; @@ -114,7 +115,9 @@ public Builder userId(Integer userId) { } public UserGpgKeyArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("UserGpgKeyArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/UserRunnerArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/UserRunnerArgs.java index 7edd5be1d..0cacc9bc8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/UserRunnerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/UserRunnerArgs.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; @@ -422,7 +423,9 @@ public Builder untagged(Boolean untagged) { } public UserRunnerArgs build() { - $.runnerType = Objects.requireNonNull($.runnerType, "expected parameter 'runnerType' to be non-null"); + if ($.runnerType == null) { + throw new MissingRequiredPropertyException("UserRunnerArgs", "runnerType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/UserSshKeyArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/UserSshKeyArgs.java index 8f9067f95..fedf53ff7 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/UserSshKeyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/UserSshKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -188,8 +189,12 @@ public Builder userId(Integer userId) { } public UserSshKeyArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.title = Objects.requireNonNull($.title, "expected parameter 'title' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("UserSshKeyArgs", "key"); + } + if ($.title == null) { + throw new MissingRequiredPropertyException("UserSshKeyArgs", "title"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationArgs.java index 47ffdb8e4..4701b757a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder id(String id) { } public GetApplicationArgs build() { - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); + if ($.id == null) { + throw new MissingRequiredPropertyException("GetApplicationArgs", "id"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationPlainArgs.java index 6ef33120c..9bf8eea7d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetApplicationPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder id(String id) { } public GetApplicationPlainArgs build() { - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); + if ($.id == null) { + throw new MissingRequiredPropertyException("GetApplicationPlainArgs", "id"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchArgs.java index 8e34a143f..3512a3c48 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public GetBranchArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBranchArgs", "name"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetBranchArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchPlainArgs.java index e76452504..bbcebb8a3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetBranchPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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 project(String project) { } public GetBranchPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBranchPlainArgs", "name"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetBranchPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentArgs.java index f1bae7ec5..52b83d6e2 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentArgs.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 project(String project) { } public GetClusterAgentArgs build() { - $.agentId = Objects.requireNonNull($.agentId, "expected parameter 'agentId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.agentId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentArgs", "agentId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentPlainArgs.java index 0a0f883f1..5b4b3a173 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder project(String project) { } public GetClusterAgentPlainArgs build() { - $.agentId = Objects.requireNonNull($.agentId, "expected parameter 'agentId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.agentId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentPlainArgs", "agentId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsArgs.java index b79430589..de4ddecc2 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder project(String project) { } public GetClusterAgentsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsPlainArgs.java index ce7885387..1fa021865 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetClusterAgentsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder project(String project) { } public GetClusterAgentsPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookArgs.java index 1d6d65e95..5c1e50c55 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookArgs.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 hookId(Integer hookId) { } public GetGroupHookArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.hookId = Objects.requireNonNull($.hookId, "expected parameter 'hookId' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupHookArgs", "group"); + } + if ($.hookId == null) { + throw new MissingRequiredPropertyException("GetGroupHookArgs", "hookId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookPlainArgs.java index f2c819d61..38062e8de 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHookPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder hookId(Integer hookId) { } public GetGroupHookPlainArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.hookId = Objects.requireNonNull($.hookId, "expected parameter 'hookId' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupHookPlainArgs", "group"); + } + if ($.hookId == null) { + throw new MissingRequiredPropertyException("GetGroupHookPlainArgs", "hookId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksArgs.java index 52159678d..b2c406a6a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder group(String group) { } public GetGroupHooksArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupHooksArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksPlainArgs.java index b0ed3f505..d418980d0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupHooksPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder group(String group) { } public GetGroupHooksPlainArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupHooksPlainArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsArgs.java index 76f2d6416..83f2031c4 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsArgs.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; @@ -382,7 +383,9 @@ public Builder withCustomAttributes(Boolean withCustomAttributes) { } public GetGroupSubgroupsArgs build() { - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); + if ($.groupId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsArgs", "groupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsPlainArgs.java index 7aa9c00d1..6f5b49da5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupSubgroupsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -293,7 +294,9 @@ public Builder withCustomAttributes(@Nullable Boolean withCustomAttributes) { } public GetGroupSubgroupsPlainArgs build() { - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); + if ($.groupId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsPlainArgs", "groupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariableArgs.java index d30807271..b4c90dbfe 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariableArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetGroupVariableArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupVariableArgs", "group"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GetGroupVariableArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablePlainArgs.java index 3792f1dcb..9a5ee56c8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder key(String key) { } public GetGroupVariablePlainArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupVariablePlainArgs", "group"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("GetGroupVariablePlainArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesArgs.java index 4cfb7771a..31d6349d3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -73,7 +74,9 @@ public Builder group(String group) { } public GetGroupVariablesArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesPlainArgs.java index c9461094b..5045e2ee5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetGroupVariablesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -64,7 +65,9 @@ public Builder group(String group) { } public GetGroupVariablesPlainArgs build() { - $.group = Objects.requireNonNull($.group, "expected parameter 'group' to be non-null"); + if ($.group == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesPlainArgs", "group"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariableArgs.java index 385a7256a..ba600ca00 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariableArgs.java @@ -5,6 +5,7 @@ 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 key(String key) { } public GetInstanceVariableArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariablePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariablePlainArgs.java index 7d8b39515..bac478bd5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariablePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetInstanceVariablePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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 key(String key) { } public GetInstanceVariablePlainArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablePlainArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesArgs.java index d46806d4c..ccf863482 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public GetProjectBranchesArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesPlainArgs.java index 03aaa396b..0a65c363d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectBranchesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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 project(String project) { } public GetProjectBranchesPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookArgs.java index afaa8a70c..0c1d524dc 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookArgs.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 project(String project) { } public GetProjectHookArgs build() { - $.hookId = Objects.requireNonNull($.hookId, "expected parameter 'hookId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.hookId == null) { + throw new MissingRequiredPropertyException("GetProjectHookArgs", "hookId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectHookArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookPlainArgs.java index ab0cd3ac8..542134b4e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHookPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder project(String project) { } public GetProjectHookPlainArgs build() { - $.hookId = Objects.requireNonNull($.hookId, "expected parameter 'hookId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.hookId == null) { + throw new MissingRequiredPropertyException("GetProjectHookPlainArgs", "hookId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectHookPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksArgs.java index 6fa81b2e6..09427a261 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder project(String project) { } public GetProjectHooksArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectHooksArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksPlainArgs.java index 2fd7dc858..faba18c27 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectHooksPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder project(String project) { } public GetProjectHooksPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectHooksPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssueArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssueArgs.java index 8a17281cf..e7ff0bca2 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssueArgs.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 project(String project) { } public GetProjectIssueArgs build() { - $.iid = Objects.requireNonNull($.iid, "expected parameter 'iid' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.iid == null) { + throw new MissingRequiredPropertyException("GetProjectIssueArgs", "iid"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectIssueArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuePlainArgs.java index 6c872fa95..0f30cd807 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder project(String project) { } public GetProjectIssuePlainArgs build() { - $.iid = Objects.requireNonNull($.iid, "expected parameter 'iid' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.iid == null) { + throw new MissingRequiredPropertyException("GetProjectIssuePlainArgs", "iid"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectIssuePlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesArgs.java index 48af54eec..2d8a233a5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesArgs.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; @@ -918,7 +919,9 @@ public Builder withLabelsDetails(Boolean withLabelsDetails) { } public GetProjectIssuesArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesPlainArgs.java index 007b8a92b..47dd8006e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectIssuesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -699,7 +700,9 @@ public Builder withLabelsDetails(@Nullable Boolean withLabelsDetails) { } public GetProjectIssuesPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestoneArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestoneArgs.java index fc8c56755..c28234f5d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestoneArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestoneArgs.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 project(String project) { } public GetProjectMilestoneArgs build() { - $.milestoneId = Objects.requireNonNull($.milestoneId, "expected parameter 'milestoneId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneArgs", "milestoneId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonePlainArgs.java index a87a12331..56dbdb4ae 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -91,8 +92,12 @@ public Builder project(String project) { } public GetProjectMilestonePlainArgs build() { - $.milestoneId = Objects.requireNonNull($.milestoneId, "expected parameter 'milestoneId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonePlainArgs", "milestoneId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonePlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesArgs.java index a5fbda678..826d674f6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesArgs.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; @@ -214,7 +215,9 @@ public Builder title(String title) { } public GetProjectMilestonesArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesPlainArgs.java index e864e4416..d4090d158 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectMilestonesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -171,7 +172,9 @@ public Builder title(@Nullable String title) { } public GetProjectMilestonesPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchArgs.java index 37fc572e5..46c4d7b33 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder projectId(String projectId) { } public GetProjectProtectedBranchArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchPlainArgs.java index c58c008c7..43830655c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder projectId(String projectId) { } public GetProjectProtectedBranchPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesArgs.java index fb46f6da6..221d42095 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder projectId(String projectId) { } public GetProjectProtectedBranchesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesPlainArgs.java index a24a59de8..2eba42f80 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectProtectedBranchesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder projectId(String projectId) { } public GetProjectProtectedBranchesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagArgs.java index 2223b38e2..f5f01983e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public GetProjectTagArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectTagArgs", "name"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectTagArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagPlainArgs.java index 3628faac4..b88832388 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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 project(String project) { } public GetProjectTagPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectTagPlainArgs", "name"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectTagPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsArgs.java index b1a320424..f6d24c00c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsArgs.java @@ -5,6 +5,7 @@ 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 sort(String sort) { } public GetProjectTagsArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectTagsArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsPlainArgs.java index 03e7f5e3b..60311dfcb 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectTagsPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -146,7 +147,9 @@ public Builder sort(@Nullable String sort) { } public GetProjectTagsPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectTagsPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariableArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariableArgs.java index 3fb1c8b68..cef1f7074 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariableArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariableArgs.java @@ -5,6 +5,7 @@ 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 project(String project) { } public GetProjectVariableArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetProjectVariableArgs", "key"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectVariableArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablePlainArgs.java index d1504e99a..3f9e08f87 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder project(String project) { } public GetProjectVariablePlainArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("GetProjectVariablePlainArgs", "key"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectVariablePlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesArgs.java index bc5480967..bbac4bbc4 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -73,7 +74,9 @@ public Builder project(String project) { } public GetProjectVariablesArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesPlainArgs.java index cd272a2e4..05c7a2c91 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetProjectVariablesPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -64,7 +65,9 @@ public Builder project(String project) { } public GetProjectVariablesPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesPlainArgs", "project"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkArgs.java index e78405445..14d109a07 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -149,9 +150,15 @@ public Builder tagName(String tagName) { } public GetReleaseLinkArgs build() { - $.linkId = Objects.requireNonNull($.linkId, "expected parameter 'linkId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tagName = Objects.requireNonNull($.tagName, "expected parameter 'tagName' to be non-null"); + if ($.linkId == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkArgs", "linkId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkArgs", "project"); + } + if ($.tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkArgs", "tagName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkPlainArgs.java index f1dcd5cda..767f8583e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinkPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -118,9 +119,15 @@ public Builder tagName(String tagName) { } public GetReleaseLinkPlainArgs build() { - $.linkId = Objects.requireNonNull($.linkId, "expected parameter 'linkId' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tagName = Objects.requireNonNull($.tagName, "expected parameter 'tagName' to be non-null"); + if ($.linkId == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkPlainArgs", "linkId"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkPlainArgs", "project"); + } + if ($.tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkPlainArgs", "tagName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksArgs.java index f16df426c..4fe0c4f74 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksArgs.java @@ -5,6 +5,7 @@ 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 tagName(String tagName) { } public GetReleaseLinksArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tagName = Objects.requireNonNull($.tagName, "expected parameter 'tagName' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksArgs", "project"); + } + if ($.tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksArgs", "tagName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksPlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksPlainArgs.java index 91c3efb2a..05be180cd 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetReleaseLinksPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder tagName(String tagName) { } public GetReleaseLinksPlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.tagName = Objects.requireNonNull($.tagName, "expected parameter 'tagName' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksPlainArgs", "project"); + } + if ($.tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksPlainArgs", "tagName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFileArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFileArgs.java index 6b27b015b..e4fc0731b 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFileArgs.java @@ -5,6 +5,7 @@ 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 ref(String ref) { } public GetRepositoryFileArgs build() { - $.filePath = Objects.requireNonNull($.filePath, "expected parameter 'filePath' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.filePath == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileArgs", "filePath"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFilePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFilePlainArgs.java index aa666c0ad..de376eb20 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFilePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryFilePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -117,9 +118,15 @@ public Builder ref(String ref) { } public GetRepositoryFilePlainArgs build() { - $.filePath = Objects.requireNonNull($.filePath, "expected parameter 'filePath' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.filePath == null) { + throw new MissingRequiredPropertyException("GetRepositoryFilePlainArgs", "filePath"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("GetRepositoryFilePlainArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryFilePlainArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreeArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreeArgs.java index 68173c42a..dd6f5e9aa 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -168,8 +169,12 @@ public Builder ref(String ref) { } public GetRepositoryTreeArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreePlainArgs.java b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreePlainArgs.java index d244736b2..e5c2b0a78 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/inputs/GetRepositoryTreePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -133,8 +134,12 @@ public Builder ref(String ref) { } public GetRepositoryTreePlainArgs build() { - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.ref = Objects.requireNonNull($.ref, "expected parameter 'ref' to be non-null"); + if ($.project == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreePlainArgs", "project"); + } + if ($.ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreePlainArgs", "ref"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchCommit.java index 41c99902f..0bc59f155 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchCommit.java @@ -97,46 +97,55 @@ public Builder(BranchCommit defaults) { @CustomType.Setter public Builder authorEmail(@Nullable String authorEmail) { + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(@Nullable String authorName) { + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(@Nullable String authoredDate) { + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(@Nullable String committedDate) { + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(@Nullable String committerEmail) { + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(@Nullable String committerName) { + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder parentIds(@Nullable List parentIds) { + this.parentIds = parentIds; return this; } @@ -145,11 +154,13 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(@Nullable String shortId) { + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToMerge.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToMerge.java index d9fff8fe7..20b5bfbe3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToMerge.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToMerge.java @@ -87,21 +87,25 @@ public Builder(BranchProtectionAllowedToMerge defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToPush.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToPush.java index 5609ca994..9ccbd3f68 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToPush.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToPush.java @@ -87,21 +87,25 @@ public Builder(BranchProtectionAllowedToPush defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToUnprotect.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToUnprotect.java index 608270047..da103bc47 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToUnprotect.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/BranchProtectionAllowedToUnprotect.java @@ -87,21 +87,25 @@ public Builder(BranchProtectionAllowedToUnprotect defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetApplicationResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetApplicationResult.java index c2a91118e..82bb70533 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetApplicationResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetApplicationResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -91,27 +92,42 @@ public Builder(GetApplicationResult defaults) { @CustomType.Setter public Builder applicationId(String applicationId) { - this.applicationId = Objects.requireNonNull(applicationId); + if (applicationId == null) { + throw new MissingRequiredPropertyException("GetApplicationResult", "applicationId"); + } + this.applicationId = applicationId; return this; } @CustomType.Setter public Builder confidential(Boolean confidential) { - this.confidential = Objects.requireNonNull(confidential); + if (confidential == null) { + throw new MissingRequiredPropertyException("GetApplicationResult", "confidential"); + } + this.confidential = confidential; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetApplicationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetApplicationResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redirectUrl(String redirectUrl) { - this.redirectUrl = Objects.requireNonNull(redirectUrl); + if (redirectUrl == null) { + throw new MissingRequiredPropertyException("GetApplicationResult", "redirectUrl"); + } + this.redirectUrl = redirectUrl; return this; } public GetApplicationResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchCommit.java index 7d230b312..9897258a8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchCommit.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -95,47 +96,74 @@ public Builder(GetBranchCommit defaults) { @CustomType.Setter public Builder authorEmail(String authorEmail) { - this.authorEmail = Objects.requireNonNull(authorEmail); + if (authorEmail == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "authorEmail"); + } + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(String authorName) { - this.authorName = Objects.requireNonNull(authorName); + if (authorName == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "authorName"); + } + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(String authoredDate) { - this.authoredDate = Objects.requireNonNull(authoredDate); + if (authoredDate == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "authoredDate"); + } + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(String committedDate) { - this.committedDate = Objects.requireNonNull(committedDate); + if (committedDate == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "committedDate"); + } + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(String committerEmail) { - this.committerEmail = Objects.requireNonNull(committerEmail); + if (committerEmail == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "committerEmail"); + } + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(String committerName) { - this.committerName = Objects.requireNonNull(committerName); + if (committerName == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "committerName"); + } + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder parentIds(List parentIds) { - this.parentIds = Objects.requireNonNull(parentIds); + if (parentIds == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "parentIds"); + } + this.parentIds = parentIds; return this; } public Builder parentIds(String... parentIds) { @@ -143,12 +171,18 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(String shortId) { - this.shortId = Objects.requireNonNull(shortId); + if (shortId == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "shortId"); + } + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetBranchCommit", "title"); + } + this.title = title; return this; } public GetBranchCommit build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchResult.java index 67a3b1f6c..1d0cef102 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetBranchResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetBranchCommit; import java.lang.Boolean; import java.lang.String; @@ -185,12 +186,18 @@ public Builder(GetBranchResult defaults) { @CustomType.Setter public Builder canPush(Boolean canPush) { - this.canPush = Objects.requireNonNull(canPush); + if (canPush == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "canPush"); + } + this.canPush = canPush; return this; } @CustomType.Setter public Builder commits(List commits) { - this.commits = Objects.requireNonNull(commits); + if (commits == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "commits"); + } + this.commits = commits; return this; } public Builder commits(GetBranchCommit... commits) { @@ -198,47 +205,74 @@ public Builder commits(GetBranchCommit... commits) { } @CustomType.Setter("default") public Builder default_(Boolean default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder developerCanMerge(Boolean developerCanMerge) { - this.developerCanMerge = Objects.requireNonNull(developerCanMerge); + if (developerCanMerge == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "developerCanMerge"); + } + this.developerCanMerge = developerCanMerge; return this; } @CustomType.Setter public Builder developerCanPush(Boolean developerCanPush) { - this.developerCanPush = Objects.requireNonNull(developerCanPush); + if (developerCanPush == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "developerCanPush"); + } + this.developerCanPush = developerCanPush; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder merged(Boolean merged) { - this.merged = Objects.requireNonNull(merged); + if (merged == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "merged"); + } + this.merged = merged; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "project"); + } + this.project = project; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetBranchResult", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetBranchResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentResult.java index 04641abef..b60a303e6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -113,32 +114,50 @@ public Builder(GetClusterAgentResult defaults) { @CustomType.Setter public Builder agentId(Integer agentId) { - this.agentId = Objects.requireNonNull(agentId); + if (agentId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "agentId"); + } + this.agentId = agentId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder createdByUserId(Integer createdByUserId) { - this.createdByUserId = Objects.requireNonNull(createdByUserId); + if (createdByUserId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "createdByUserId"); + } + this.createdByUserId = createdByUserId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentResult", "project"); + } + this.project = project; return this; } public GetClusterAgentResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsClusterAgent.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsClusterAgent.java index 2418d42ca..115923376 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsClusterAgent.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsClusterAgent.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(GetClusterAgentsClusterAgent defaults) { @CustomType.Setter public Builder agentId(Integer agentId) { - this.agentId = Objects.requireNonNull(agentId); + if (agentId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsClusterAgent", "agentId"); + } + this.agentId = agentId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsClusterAgent", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder createdByUserId(Integer createdByUserId) { - this.createdByUserId = Objects.requireNonNull(createdByUserId); + if (createdByUserId == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsClusterAgent", "createdByUserId"); + } + this.createdByUserId = createdByUserId; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsClusterAgent", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsClusterAgent", "project"); + } + this.project = project; return this; } public GetClusterAgentsClusterAgent build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsResult.java index b776a0618..57dbd096f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetClusterAgentsResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetClusterAgentsClusterAgent; import java.lang.String; import java.util.List; @@ -72,7 +73,10 @@ public Builder(GetClusterAgentsResult defaults) { @CustomType.Setter public Builder clusterAgents(List clusterAgents) { - this.clusterAgents = Objects.requireNonNull(clusterAgents); + if (clusterAgents == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsResult", "clusterAgents"); + } + this.clusterAgents = clusterAgents; return this; } public Builder clusterAgents(GetClusterAgentsClusterAgent... clusterAgents) { @@ -80,12 +84,18 @@ public Builder clusterAgents(GetClusterAgentsClusterAgent... clusterAgents) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetClusterAgentsResult", "project"); + } + this.project = project; return this; } public GetClusterAgentsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetCurrentUserResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetCurrentUserResult.java index ecebdaea4..4b6aac3c8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetCurrentUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetCurrentUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -156,47 +157,74 @@ public Builder(GetCurrentUserResult defaults) { @CustomType.Setter public Builder bot(Boolean bot) { - this.bot = Objects.requireNonNull(bot); + if (bot == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "bot"); + } + this.bot = bot; return this; } @CustomType.Setter public Builder globalId(String globalId) { - this.globalId = Objects.requireNonNull(globalId); + if (globalId == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "globalId"); + } + this.globalId = globalId; return this; } @CustomType.Setter public Builder globalNamespaceId(String globalNamespaceId) { - this.globalNamespaceId = Objects.requireNonNull(globalNamespaceId); + if (globalNamespaceId == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "globalNamespaceId"); + } + this.globalNamespaceId = globalNamespaceId; return this; } @CustomType.Setter public Builder groupCount(Integer groupCount) { - this.groupCount = Objects.requireNonNull(groupCount); + if (groupCount == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "groupCount"); + } + this.groupCount = groupCount; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(String namespaceId) { - this.namespaceId = Objects.requireNonNull(namespaceId); + if (namespaceId == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "namespaceId"); + } + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder publicEmail(String publicEmail) { - this.publicEmail = Objects.requireNonNull(publicEmail); + if (publicEmail == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "publicEmail"); + } + this.publicEmail = publicEmail; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetCurrentUserResult", "username"); + } + this.username = username; return this; } public GetCurrentUserResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHookResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHookResult.java index dad99158e..65322165c 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHookResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHookResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -324,107 +325,170 @@ public Builder(GetGroupHookResult defaults) { @CustomType.Setter public Builder confidentialIssuesEvents(Boolean confidentialIssuesEvents) { - this.confidentialIssuesEvents = Objects.requireNonNull(confidentialIssuesEvents); + if (confidentialIssuesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "confidentialIssuesEvents"); + } + this.confidentialIssuesEvents = confidentialIssuesEvents; return this; } @CustomType.Setter public Builder confidentialNoteEvents(Boolean confidentialNoteEvents) { - this.confidentialNoteEvents = Objects.requireNonNull(confidentialNoteEvents); + if (confidentialNoteEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "confidentialNoteEvents"); + } + this.confidentialNoteEvents = confidentialNoteEvents; return this; } @CustomType.Setter public Builder deploymentEvents(Boolean deploymentEvents) { - this.deploymentEvents = Objects.requireNonNull(deploymentEvents); + if (deploymentEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "deploymentEvents"); + } + this.deploymentEvents = deploymentEvents; return this; } @CustomType.Setter public Builder enableSslVerification(Boolean enableSslVerification) { - this.enableSslVerification = Objects.requireNonNull(enableSslVerification); + if (enableSslVerification == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "enableSslVerification"); + } + this.enableSslVerification = enableSslVerification; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder hookId(Integer hookId) { - this.hookId = Objects.requireNonNull(hookId); + if (hookId == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "hookId"); + } + this.hookId = hookId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder issuesEvents(Boolean issuesEvents) { - this.issuesEvents = Objects.requireNonNull(issuesEvents); + if (issuesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "issuesEvents"); + } + this.issuesEvents = issuesEvents; return this; } @CustomType.Setter public Builder jobEvents(Boolean jobEvents) { - this.jobEvents = Objects.requireNonNull(jobEvents); + if (jobEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "jobEvents"); + } + this.jobEvents = jobEvents; return this; } @CustomType.Setter public Builder mergeRequestsEvents(Boolean mergeRequestsEvents) { - this.mergeRequestsEvents = Objects.requireNonNull(mergeRequestsEvents); + if (mergeRequestsEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "mergeRequestsEvents"); + } + this.mergeRequestsEvents = mergeRequestsEvents; return this; } @CustomType.Setter public Builder noteEvents(Boolean noteEvents) { - this.noteEvents = Objects.requireNonNull(noteEvents); + if (noteEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "noteEvents"); + } + this.noteEvents = noteEvents; return this; } @CustomType.Setter public Builder pipelineEvents(Boolean pipelineEvents) { - this.pipelineEvents = Objects.requireNonNull(pipelineEvents); + if (pipelineEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "pipelineEvents"); + } + this.pipelineEvents = pipelineEvents; return this; } @CustomType.Setter public Builder pushEvents(Boolean pushEvents) { - this.pushEvents = Objects.requireNonNull(pushEvents); + if (pushEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "pushEvents"); + } + this.pushEvents = pushEvents; return this; } @CustomType.Setter public Builder pushEventsBranchFilter(String pushEventsBranchFilter) { - this.pushEventsBranchFilter = Objects.requireNonNull(pushEventsBranchFilter); + if (pushEventsBranchFilter == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "pushEventsBranchFilter"); + } + this.pushEventsBranchFilter = pushEventsBranchFilter; return this; } @CustomType.Setter public Builder releasesEvents(Boolean releasesEvents) { - this.releasesEvents = Objects.requireNonNull(releasesEvents); + if (releasesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "releasesEvents"); + } + this.releasesEvents = releasesEvents; return this; } @CustomType.Setter public Builder subgroupEvents(Boolean subgroupEvents) { - this.subgroupEvents = Objects.requireNonNull(subgroupEvents); + if (subgroupEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "subgroupEvents"); + } + this.subgroupEvents = subgroupEvents; return this; } @CustomType.Setter public Builder tagPushEvents(Boolean tagPushEvents) { - this.tagPushEvents = Objects.requireNonNull(tagPushEvents); + if (tagPushEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "tagPushEvents"); + } + this.tagPushEvents = tagPushEvents; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder wikiPageEvents(Boolean wikiPageEvents) { - this.wikiPageEvents = Objects.requireNonNull(wikiPageEvents); + if (wikiPageEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHookResult", "wikiPageEvents"); + } + this.wikiPageEvents = wikiPageEvents; return this; } public GetGroupHookResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksHook.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksHook.java index 142096285..6b2d4c154 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksHook.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksHook.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -150,102 +151,162 @@ public Builder(GetGroupHooksHook defaults) { @CustomType.Setter public Builder confidentialIssuesEvents(Boolean confidentialIssuesEvents) { - this.confidentialIssuesEvents = Objects.requireNonNull(confidentialIssuesEvents); + if (confidentialIssuesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "confidentialIssuesEvents"); + } + this.confidentialIssuesEvents = confidentialIssuesEvents; return this; } @CustomType.Setter public Builder confidentialNoteEvents(Boolean confidentialNoteEvents) { - this.confidentialNoteEvents = Objects.requireNonNull(confidentialNoteEvents); + if (confidentialNoteEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "confidentialNoteEvents"); + } + this.confidentialNoteEvents = confidentialNoteEvents; return this; } @CustomType.Setter public Builder deploymentEvents(Boolean deploymentEvents) { - this.deploymentEvents = Objects.requireNonNull(deploymentEvents); + if (deploymentEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "deploymentEvents"); + } + this.deploymentEvents = deploymentEvents; return this; } @CustomType.Setter public Builder enableSslVerification(Boolean enableSslVerification) { - this.enableSslVerification = Objects.requireNonNull(enableSslVerification); + if (enableSslVerification == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "enableSslVerification"); + } + this.enableSslVerification = enableSslVerification; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder hookId(Integer hookId) { - this.hookId = Objects.requireNonNull(hookId); + if (hookId == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "hookId"); + } + this.hookId = hookId; return this; } @CustomType.Setter public Builder issuesEvents(Boolean issuesEvents) { - this.issuesEvents = Objects.requireNonNull(issuesEvents); + if (issuesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "issuesEvents"); + } + this.issuesEvents = issuesEvents; return this; } @CustomType.Setter public Builder jobEvents(Boolean jobEvents) { - this.jobEvents = Objects.requireNonNull(jobEvents); + if (jobEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "jobEvents"); + } + this.jobEvents = jobEvents; return this; } @CustomType.Setter public Builder mergeRequestsEvents(Boolean mergeRequestsEvents) { - this.mergeRequestsEvents = Objects.requireNonNull(mergeRequestsEvents); + if (mergeRequestsEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "mergeRequestsEvents"); + } + this.mergeRequestsEvents = mergeRequestsEvents; return this; } @CustomType.Setter public Builder noteEvents(Boolean noteEvents) { - this.noteEvents = Objects.requireNonNull(noteEvents); + if (noteEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "noteEvents"); + } + this.noteEvents = noteEvents; return this; } @CustomType.Setter public Builder pipelineEvents(Boolean pipelineEvents) { - this.pipelineEvents = Objects.requireNonNull(pipelineEvents); + if (pipelineEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "pipelineEvents"); + } + this.pipelineEvents = pipelineEvents; return this; } @CustomType.Setter public Builder pushEvents(Boolean pushEvents) { - this.pushEvents = Objects.requireNonNull(pushEvents); + if (pushEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "pushEvents"); + } + this.pushEvents = pushEvents; return this; } @CustomType.Setter public Builder pushEventsBranchFilter(String pushEventsBranchFilter) { - this.pushEventsBranchFilter = Objects.requireNonNull(pushEventsBranchFilter); + if (pushEventsBranchFilter == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "pushEventsBranchFilter"); + } + this.pushEventsBranchFilter = pushEventsBranchFilter; return this; } @CustomType.Setter public Builder releasesEvents(Boolean releasesEvents) { - this.releasesEvents = Objects.requireNonNull(releasesEvents); + if (releasesEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "releasesEvents"); + } + this.releasesEvents = releasesEvents; return this; } @CustomType.Setter public Builder subgroupEvents(Boolean subgroupEvents) { - this.subgroupEvents = Objects.requireNonNull(subgroupEvents); + if (subgroupEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "subgroupEvents"); + } + this.subgroupEvents = subgroupEvents; return this; } @CustomType.Setter public Builder tagPushEvents(Boolean tagPushEvents) { - this.tagPushEvents = Objects.requireNonNull(tagPushEvents); + if (tagPushEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "tagPushEvents"); + } + this.tagPushEvents = tagPushEvents; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder wikiPageEvents(Boolean wikiPageEvents) { - this.wikiPageEvents = Objects.requireNonNull(wikiPageEvents); + if (wikiPageEvents == null) { + throw new MissingRequiredPropertyException("GetGroupHooksHook", "wikiPageEvents"); + } + this.wikiPageEvents = wikiPageEvents; return this; } public GetGroupHooksHook build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksResult.java index 81e22aa90..94c436e6f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupHooksResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetGroupHooksHook; import java.lang.String; import java.util.List; @@ -72,12 +73,18 @@ public Builder(GetGroupHooksResult defaults) { @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupHooksResult", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder hooks(List hooks) { - this.hooks = Objects.requireNonNull(hooks); + if (hooks == null) { + throw new MissingRequiredPropertyException("GetGroupHooksResult", "hooks"); + } + this.hooks = hooks; return this; } public Builder hooks(GetGroupHooksHook... hooks) { @@ -85,7 +92,10 @@ public Builder hooks(GetGroupHooksHook... hooks) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupHooksResult", "id"); + } + this.id = id; return this; } public GetGroupHooksResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipMember.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipMember.java index ca9aeb32a..546dfa104 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipMember.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipMember.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -77,42 +78,66 @@ public Builder(GetGroupMembershipMember defaults) { @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipMember", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetGroupMembershipMember build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipResult.java index ffdc08427..d74f0b9bd 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupMembershipResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetGroupMembershipMember; import java.lang.Boolean; import java.lang.Integer; @@ -118,32 +119,48 @@ public Builder(GetGroupMembershipResult defaults) { @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipResult", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipResult", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inherited(@Nullable Boolean inherited) { + this.inherited = inherited; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetGroupMembershipResult", "members"); + } + this.members = members; return this; } public Builder members(GetGroupMembershipMember... members) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupResult.java index 7234e7be2..1fe7ac27e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -310,102 +311,162 @@ public Builder(GetGroupResult defaults) { @CustomType.Setter public Builder defaultBranchProtection(Integer defaultBranchProtection) { - this.defaultBranchProtection = Objects.requireNonNull(defaultBranchProtection); + if (defaultBranchProtection == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "defaultBranchProtection"); + } + this.defaultBranchProtection = defaultBranchProtection; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder extraSharedRunnersMinutesLimit(Integer extraSharedRunnersMinutesLimit) { - this.extraSharedRunnersMinutesLimit = Objects.requireNonNull(extraSharedRunnersMinutesLimit); + if (extraSharedRunnersMinutesLimit == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "extraSharedRunnersMinutesLimit"); + } + this.extraSharedRunnersMinutesLimit = extraSharedRunnersMinutesLimit; return this; } @CustomType.Setter public Builder fullName(String fullName) { - this.fullName = Objects.requireNonNull(fullName); + if (fullName == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "fullName"); + } + this.fullName = fullName; return this; } @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lfsEnabled(Boolean lfsEnabled) { - this.lfsEnabled = Objects.requireNonNull(lfsEnabled); + if (lfsEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "lfsEnabled"); + } + this.lfsEnabled = lfsEnabled; return this; } @CustomType.Setter public Builder membershipLock(Boolean membershipLock) { - this.membershipLock = Objects.requireNonNull(membershipLock); + if (membershipLock == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "membershipLock"); + } + this.membershipLock = membershipLock; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parentId(Integer parentId) { - this.parentId = Objects.requireNonNull(parentId); + if (parentId == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "parentId"); + } + this.parentId = parentId; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder preventForkingOutsideGroup(Boolean preventForkingOutsideGroup) { - this.preventForkingOutsideGroup = Objects.requireNonNull(preventForkingOutsideGroup); + if (preventForkingOutsideGroup == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "preventForkingOutsideGroup"); + } + this.preventForkingOutsideGroup = preventForkingOutsideGroup; return this; } @CustomType.Setter public Builder requestAccessEnabled(Boolean requestAccessEnabled) { - this.requestAccessEnabled = Objects.requireNonNull(requestAccessEnabled); + if (requestAccessEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "requestAccessEnabled"); + } + this.requestAccessEnabled = requestAccessEnabled; return this; } @CustomType.Setter public Builder runnersToken(String runnersToken) { - this.runnersToken = Objects.requireNonNull(runnersToken); + if (runnersToken == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "runnersToken"); + } + this.runnersToken = runnersToken; return this; } @CustomType.Setter public Builder sharedRunnersMinutesLimit(Integer sharedRunnersMinutesLimit) { - this.sharedRunnersMinutesLimit = Objects.requireNonNull(sharedRunnersMinutesLimit); + if (sharedRunnersMinutesLimit == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "sharedRunnersMinutesLimit"); + } + this.sharedRunnersMinutesLimit = sharedRunnersMinutesLimit; return this; } @CustomType.Setter public Builder sharedRunnersSetting(String sharedRunnersSetting) { - this.sharedRunnersSetting = Objects.requireNonNull(sharedRunnersSetting); + if (sharedRunnersSetting == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "sharedRunnersSetting"); + } + this.sharedRunnersSetting = sharedRunnersSetting; return this; } @CustomType.Setter public Builder visibilityLevel(String visibilityLevel) { - this.visibilityLevel = Objects.requireNonNull(visibilityLevel); + if (visibilityLevel == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "visibilityLevel"); + } + this.visibilityLevel = visibilityLevel; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder wikiAccessLevel(String wikiAccessLevel) { - this.wikiAccessLevel = Objects.requireNonNull(wikiAccessLevel); + if (wikiAccessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupResult", "wikiAccessLevel"); + } + this.wikiAccessLevel = wikiAccessLevel; return this; } public GetGroupResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsResult.java index 0f960a1a1..7312625d5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetGroupSubgroupsSubgroup; import java.lang.Boolean; import java.lang.Integer; @@ -200,42 +201,66 @@ public Builder(GetGroupSubgroupsResult defaults) { @CustomType.Setter public Builder allAvailable(Boolean allAvailable) { - this.allAvailable = Objects.requireNonNull(allAvailable); + if (allAvailable == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "allAvailable"); + } + this.allAvailable = allAvailable; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder minAccessLevel(String minAccessLevel) { - this.minAccessLevel = Objects.requireNonNull(minAccessLevel); + if (minAccessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "minAccessLevel"); + } + this.minAccessLevel = minAccessLevel; return this; } @CustomType.Setter public Builder orderBy(String orderBy) { - this.orderBy = Objects.requireNonNull(orderBy); + if (orderBy == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "orderBy"); + } + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder owned(Boolean owned) { - this.owned = Objects.requireNonNull(owned); + if (owned == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "owned"); + } + this.owned = owned; return this; } @CustomType.Setter public Builder search(String search) { - this.search = Objects.requireNonNull(search); + if (search == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "search"); + } + this.search = search; return this; } @CustomType.Setter public Builder skipGroups(List skipGroups) { - this.skipGroups = Objects.requireNonNull(skipGroups); + if (skipGroups == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "skipGroups"); + } + this.skipGroups = skipGroups; return this; } public Builder skipGroups(Integer... skipGroups) { @@ -243,17 +268,26 @@ public Builder skipGroups(Integer... skipGroups) { } @CustomType.Setter public Builder sort(String sort) { - this.sort = Objects.requireNonNull(sort); + if (sort == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "sort"); + } + this.sort = sort; return this; } @CustomType.Setter public Builder statistics(Boolean statistics) { - this.statistics = Objects.requireNonNull(statistics); + if (statistics == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "statistics"); + } + this.statistics = statistics; return this; } @CustomType.Setter public Builder subgroups(List subgroups) { - this.subgroups = Objects.requireNonNull(subgroups); + if (subgroups == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "subgroups"); + } + this.subgroups = subgroups; return this; } public Builder subgroups(GetGroupSubgroupsSubgroup... subgroups) { @@ -261,7 +295,10 @@ public Builder subgroups(GetGroupSubgroupsSubgroup... subgroups) { } @CustomType.Setter public Builder withCustomAttributes(Boolean withCustomAttributes) { - this.withCustomAttributes = Objects.requireNonNull(withCustomAttributes); + if (withCustomAttributes == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsResult", "withCustomAttributes"); + } + this.withCustomAttributes = withCustomAttributes; return this; } public GetGroupSubgroupsResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsSubgroup.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsSubgroup.java index 30744c386..30b7afbc9 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsSubgroup.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupSubgroupsSubgroup.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -193,137 +194,218 @@ public Builder(GetGroupSubgroupsSubgroup defaults) { @CustomType.Setter public Builder autoDevopsEnabled(Boolean autoDevopsEnabled) { - this.autoDevopsEnabled = Objects.requireNonNull(autoDevopsEnabled); + if (autoDevopsEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "autoDevopsEnabled"); + } + this.autoDevopsEnabled = autoDevopsEnabled; return this; } @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder defaultBranchProtection(Integer defaultBranchProtection) { - this.defaultBranchProtection = Objects.requireNonNull(defaultBranchProtection); + if (defaultBranchProtection == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "defaultBranchProtection"); + } + this.defaultBranchProtection = defaultBranchProtection; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder emailsDisabled(Boolean emailsDisabled) { - this.emailsDisabled = Objects.requireNonNull(emailsDisabled); + if (emailsDisabled == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "emailsDisabled"); + } + this.emailsDisabled = emailsDisabled; return this; } @CustomType.Setter public Builder fileTemplateProjectId(Integer fileTemplateProjectId) { - this.fileTemplateProjectId = Objects.requireNonNull(fileTemplateProjectId); + if (fileTemplateProjectId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "fileTemplateProjectId"); + } + this.fileTemplateProjectId = fileTemplateProjectId; return this; } @CustomType.Setter public Builder fullName(String fullName) { - this.fullName = Objects.requireNonNull(fullName); + if (fullName == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "fullName"); + } + this.fullName = fullName; return this; } @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder ipRestrictionRanges(String ipRestrictionRanges) { - this.ipRestrictionRanges = Objects.requireNonNull(ipRestrictionRanges); + if (ipRestrictionRanges == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "ipRestrictionRanges"); + } + this.ipRestrictionRanges = ipRestrictionRanges; return this; } @CustomType.Setter public Builder lfsEnabled(Boolean lfsEnabled) { - this.lfsEnabled = Objects.requireNonNull(lfsEnabled); + if (lfsEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "lfsEnabled"); + } + this.lfsEnabled = lfsEnabled; return this; } @CustomType.Setter public Builder mentionsDisabled(Boolean mentionsDisabled) { - this.mentionsDisabled = Objects.requireNonNull(mentionsDisabled); + if (mentionsDisabled == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "mentionsDisabled"); + } + this.mentionsDisabled = mentionsDisabled; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parentId(Integer parentId) { - this.parentId = Objects.requireNonNull(parentId); + if (parentId == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "parentId"); + } + this.parentId = parentId; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder projectCreationLevel(String projectCreationLevel) { - this.projectCreationLevel = Objects.requireNonNull(projectCreationLevel); + if (projectCreationLevel == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "projectCreationLevel"); + } + this.projectCreationLevel = projectCreationLevel; return this; } @CustomType.Setter public Builder requestAccessEnabled(Boolean requestAccessEnabled) { - this.requestAccessEnabled = Objects.requireNonNull(requestAccessEnabled); + if (requestAccessEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "requestAccessEnabled"); + } + this.requestAccessEnabled = requestAccessEnabled; return this; } @CustomType.Setter public Builder requireTwoFactorAuthentication(Boolean requireTwoFactorAuthentication) { - this.requireTwoFactorAuthentication = Objects.requireNonNull(requireTwoFactorAuthentication); + if (requireTwoFactorAuthentication == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "requireTwoFactorAuthentication"); + } + this.requireTwoFactorAuthentication = requireTwoFactorAuthentication; return this; } @CustomType.Setter public Builder shareWithGroupLock(Boolean shareWithGroupLock) { - this.shareWithGroupLock = Objects.requireNonNull(shareWithGroupLock); + if (shareWithGroupLock == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "shareWithGroupLock"); + } + this.shareWithGroupLock = shareWithGroupLock; return this; } @CustomType.Setter public Builder sharedRunnersSetting(String sharedRunnersSetting) { - this.sharedRunnersSetting = Objects.requireNonNull(sharedRunnersSetting); + if (sharedRunnersSetting == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "sharedRunnersSetting"); + } + this.sharedRunnersSetting = sharedRunnersSetting; return this; } @CustomType.Setter public Builder statistics(Map statistics) { - this.statistics = Objects.requireNonNull(statistics); + if (statistics == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "statistics"); + } + this.statistics = statistics; return this; } @CustomType.Setter public Builder subgroupCreationLevel(String subgroupCreationLevel) { - this.subgroupCreationLevel = Objects.requireNonNull(subgroupCreationLevel); + if (subgroupCreationLevel == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "subgroupCreationLevel"); + } + this.subgroupCreationLevel = subgroupCreationLevel; return this; } @CustomType.Setter public Builder twoFactorGracePeriod(Integer twoFactorGracePeriod) { - this.twoFactorGracePeriod = Objects.requireNonNull(twoFactorGracePeriod); + if (twoFactorGracePeriod == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "twoFactorGracePeriod"); + } + this.twoFactorGracePeriod = twoFactorGracePeriod; return this; } @CustomType.Setter public Builder visibility(String visibility) { - this.visibility = Objects.requireNonNull(visibility); + if (visibility == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "visibility"); + } + this.visibility = visibility; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder wikiAccessLevel(String wikiAccessLevel) { - this.wikiAccessLevel = Objects.requireNonNull(wikiAccessLevel); + if (wikiAccessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupSubgroupsSubgroup", "wikiAccessLevel"); + } + this.wikiAccessLevel = wikiAccessLevel; return this; } public GetGroupSubgroupsSubgroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java index fd1b59cc3..ab6557107 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariableResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -155,47 +156,74 @@ public Builder(GetGroupVariableResult defaults) { @CustomType.Setter public Builder environmentScope(String environmentScope) { - this.environmentScope = Objects.requireNonNull(environmentScope); + if (environmentScope == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "environmentScope"); + } + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetGroupVariableResult", "variableType"); + } + this.variableType = variableType; return this; } public GetGroupVariableResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesResult.java index 399707546..7ec56f563 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetGroupVariablesVariable; import java.lang.String; import java.util.List; @@ -88,22 +89,32 @@ public Builder(GetGroupVariablesResult defaults) { @CustomType.Setter public Builder environmentScope(@Nullable String environmentScope) { + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesResult", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder variables(List variables) { - this.variables = Objects.requireNonNull(variables); + if (variables == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesResult", "variables"); + } + this.variables = variables; return this; } public Builder variables(GetGroupVariablesVariable... variables) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java index 943cbe99c..c8229b6d5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupVariablesVariable.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -77,42 +78,66 @@ public Builder(GetGroupVariablesVariable defaults) { @CustomType.Setter public Builder environmentScope(String environmentScope) { - this.environmentScope = Objects.requireNonNull(environmentScope); + if (environmentScope == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "environmentScope"); + } + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetGroupVariablesVariable", "variableType"); + } + this.variableType = variableType; return this; } public GetGroupVariablesVariable build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsGroup.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsGroup.java index 7418d3bd8..73a31a2b5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -126,82 +127,130 @@ public Builder(GetGroupsGroup defaults) { @CustomType.Setter public Builder defaultBranchProtection(Integer defaultBranchProtection) { - this.defaultBranchProtection = Objects.requireNonNull(defaultBranchProtection); + if (defaultBranchProtection == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "defaultBranchProtection"); + } + this.defaultBranchProtection = defaultBranchProtection; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder fullName(String fullName) { - this.fullName = Objects.requireNonNull(fullName); + if (fullName == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "fullName"); + } + this.fullName = fullName; return this; } @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder lfsEnabled(Boolean lfsEnabled) { - this.lfsEnabled = Objects.requireNonNull(lfsEnabled); + if (lfsEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "lfsEnabled"); + } + this.lfsEnabled = lfsEnabled; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parentId(Integer parentId) { - this.parentId = Objects.requireNonNull(parentId); + if (parentId == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "parentId"); + } + this.parentId = parentId; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder preventForkingOutsideGroup(Boolean preventForkingOutsideGroup) { - this.preventForkingOutsideGroup = Objects.requireNonNull(preventForkingOutsideGroup); + if (preventForkingOutsideGroup == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "preventForkingOutsideGroup"); + } + this.preventForkingOutsideGroup = preventForkingOutsideGroup; return this; } @CustomType.Setter public Builder requestAccessEnabled(Boolean requestAccessEnabled) { - this.requestAccessEnabled = Objects.requireNonNull(requestAccessEnabled); + if (requestAccessEnabled == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "requestAccessEnabled"); + } + this.requestAccessEnabled = requestAccessEnabled; return this; } @CustomType.Setter public Builder runnersToken(String runnersToken) { - this.runnersToken = Objects.requireNonNull(runnersToken); + if (runnersToken == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "runnersToken"); + } + this.runnersToken = runnersToken; return this; } @CustomType.Setter public Builder sharedRunnersSetting(String sharedRunnersSetting) { - this.sharedRunnersSetting = Objects.requireNonNull(sharedRunnersSetting); + if (sharedRunnersSetting == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "sharedRunnersSetting"); + } + this.sharedRunnersSetting = sharedRunnersSetting; return this; } @CustomType.Setter public Builder visibilityLevel(String visibilityLevel) { - this.visibilityLevel = Objects.requireNonNull(visibilityLevel); + if (visibilityLevel == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "visibilityLevel"); + } + this.visibilityLevel = visibilityLevel; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder wikiAccessLevel(String wikiAccessLevel) { - this.wikiAccessLevel = Objects.requireNonNull(wikiAccessLevel); + if (wikiAccessLevel == null) { + throw new MissingRequiredPropertyException("GetGroupsGroup", "wikiAccessLevel"); + } + this.wikiAccessLevel = wikiAccessLevel; return this; } public GetGroupsGroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsResult.java index 55e8bbf39..c1fa08921 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetGroupsResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetGroupsGroup; import java.lang.Boolean; import java.lang.String; @@ -117,7 +118,10 @@ public Builder(GetGroupsResult defaults) { @CustomType.Setter public Builder groups(List groups) { - this.groups = Objects.requireNonNull(groups); + if (groups == null) { + throw new MissingRequiredPropertyException("GetGroupsResult", "groups"); + } + this.groups = groups; return this; } public Builder groups(GetGroupsGroup... groups) { @@ -125,26 +129,33 @@ public Builder groups(GetGroupsGroup... groups) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGroupsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orderBy(@Nullable String orderBy) { + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder sort(@Nullable String sort) { + this.sort = sort; return this; } @CustomType.Setter public Builder topLevelOnly(@Nullable Boolean topLevelOnly) { + this.topLevelOnly = topLevelOnly; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKey.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKey.java index dabcd1dc5..8ab24836b 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKey.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKey.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess; import java.lang.Integer; import java.lang.String; @@ -67,27 +68,42 @@ public Builder(GetInstanceDeployKeysDeployKey defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder projectsWithWriteAccesses(List projectsWithWriteAccesses) { - this.projectsWithWriteAccesses = Objects.requireNonNull(projectsWithWriteAccesses); + if (projectsWithWriteAccesses == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "projectsWithWriteAccesses"); + } + this.projectsWithWriteAccesses = projectsWithWriteAccesses; return this; } public Builder projectsWithWriteAccesses(GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess... projectsWithWriteAccesses) { @@ -95,7 +111,10 @@ public Builder projectsWithWriteAccesses(GetInstanceDeployKeysDeployKeyProjectsW } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKey", "title"); + } + this.title = title; return this; } public GetInstanceDeployKeysDeployKey build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess.java index ffbed1817..aa84feb2d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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(GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nameWithNamespace(String nameWithNamespace) { - this.nameWithNamespace = Objects.requireNonNull(nameWithNamespace); + if (nameWithNamespace == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "nameWithNamespace"); + } + this.nameWithNamespace = nameWithNamespace; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder pathWithNamespace(String pathWithNamespace) { - this.pathWithNamespace = Objects.requireNonNull(pathWithNamespace); + if (pathWithNamespace == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess", "pathWithNamespace"); + } + this.pathWithNamespace = pathWithNamespace; return this; } public GetInstanceDeployKeysDeployKeyProjectsWithWriteAccess build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysResult.java index 685610f08..f891d9c45 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceDeployKeysResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetInstanceDeployKeysDeployKey; import java.lang.Boolean; import java.lang.String; @@ -75,7 +76,10 @@ public Builder(GetInstanceDeployKeysResult defaults) { @CustomType.Setter public Builder deployKeys(List deployKeys) { - this.deployKeys = Objects.requireNonNull(deployKeys); + if (deployKeys == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysResult", "deployKeys"); + } + this.deployKeys = deployKeys; return this; } public Builder deployKeys(GetInstanceDeployKeysDeployKey... deployKeys) { @@ -83,11 +87,15 @@ public Builder deployKeys(GetInstanceDeployKeysDeployKey... deployKeys) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInstanceDeployKeysResult", "id"); + } + this.id = id; return this; } @CustomType.Setter("public") public Builder public_(@Nullable Boolean public_) { + this.public_ = public_; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariableResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariableResult.java index 682063a2e..3c1f7aec6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariableResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariableResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -127,37 +128,58 @@ public Builder(GetInstanceVariableResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetInstanceVariableResult", "variableType"); + } + this.variableType = variableType; return this; } public GetInstanceVariableResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesResult.java index 81d091134..18bacc6ac 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetInstanceVariablesVariable; import java.lang.String; import java.util.List; @@ -58,12 +59,18 @@ public Builder(GetInstanceVariablesResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder variables(List variables) { - this.variables = Objects.requireNonNull(variables); + if (variables == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesResult", "variables"); + } + this.variables = variables; return this; } public Builder variables(GetInstanceVariablesVariable... variables) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesVariable.java index 47d7d57f4..aeeaed1d7 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetInstanceVariablesVariable.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -65,32 +66,50 @@ public Builder(GetInstanceVariablesVariable defaults) { @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetInstanceVariablesVariable", "variableType"); + } + this.variableType = variableType; return this; } public GetInstanceVariablesVariable build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataKas.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataKas.java index 4592931c5..e6bc89a4a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataKas.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataKas.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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,17 +72,26 @@ public Builder(GetMetadataKas defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetMetadataKas", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder externalUrl(String externalUrl) { - this.externalUrl = Objects.requireNonNull(externalUrl); + if (externalUrl == null) { + throw new MissingRequiredPropertyException("GetMetadataKas", "externalUrl"); + } + this.externalUrl = externalUrl; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetMetadataKas", "version"); + } + this.version = version; return this; } public GetMetadataKas build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataResult.java index da12ede33..90c5025f6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetMetadataResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetMetadataKas; import java.lang.Boolean; import java.lang.String; @@ -100,27 +101,42 @@ public Builder(GetMetadataResult defaults) { @CustomType.Setter public Builder enterprise(Boolean enterprise) { - this.enterprise = Objects.requireNonNull(enterprise); + if (enterprise == null) { + throw new MissingRequiredPropertyException("GetMetadataResult", "enterprise"); + } + this.enterprise = enterprise; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetMetadataResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder kas(GetMetadataKas kas) { - this.kas = Objects.requireNonNull(kas); + if (kas == null) { + throw new MissingRequiredPropertyException("GetMetadataResult", "kas"); + } + this.kas = kas; return this; } @CustomType.Setter public Builder revision(String revision) { - this.revision = Objects.requireNonNull(revision); + if (revision == null) { + throw new MissingRequiredPropertyException("GetMetadataResult", "revision"); + } + this.revision = revision; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetMetadataResult", "version"); + } + this.version = version; return this; } public GetMetadataResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranch.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranch.java index 6aacb7b61..297a212ad 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranch.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranch.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectBranchesBranchCommit; import java.lang.Boolean; import java.lang.String; @@ -85,12 +86,18 @@ public Builder(GetProjectBranchesBranch defaults) { @CustomType.Setter public Builder canPush(Boolean canPush) { - this.canPush = Objects.requireNonNull(canPush); + if (canPush == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "canPush"); + } + this.canPush = canPush; return this; } @CustomType.Setter public Builder commits(List commits) { - this.commits = Objects.requireNonNull(commits); + if (commits == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "commits"); + } + this.commits = commits; return this; } public Builder commits(GetProjectBranchesBranchCommit... commits) { @@ -98,37 +105,58 @@ public Builder commits(GetProjectBranchesBranchCommit... commits) { } @CustomType.Setter("default") public Builder default_(Boolean default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder developersCanMerge(Boolean developersCanMerge) { - this.developersCanMerge = Objects.requireNonNull(developersCanMerge); + if (developersCanMerge == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "developersCanMerge"); + } + this.developersCanMerge = developersCanMerge; return this; } @CustomType.Setter public Builder developersCanPush(Boolean developersCanPush) { - this.developersCanPush = Objects.requireNonNull(developersCanPush); + if (developersCanPush == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "developersCanPush"); + } + this.developersCanPush = developersCanPush; return this; } @CustomType.Setter public Builder merged(Boolean merged) { - this.merged = Objects.requireNonNull(merged); + if (merged == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "merged"); + } + this.merged = merged; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "name"); + } + this.name = name; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranch", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetProjectBranchesBranch build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranchCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranchCommit.java index 515410426..02898b772 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranchCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesBranchCommit.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -95,47 +96,74 @@ public Builder(GetProjectBranchesBranchCommit defaults) { @CustomType.Setter public Builder authorEmail(String authorEmail) { - this.authorEmail = Objects.requireNonNull(authorEmail); + if (authorEmail == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "authorEmail"); + } + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(String authorName) { - this.authorName = Objects.requireNonNull(authorName); + if (authorName == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "authorName"); + } + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(String authoredDate) { - this.authoredDate = Objects.requireNonNull(authoredDate); + if (authoredDate == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "authoredDate"); + } + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(String committedDate) { - this.committedDate = Objects.requireNonNull(committedDate); + if (committedDate == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "committedDate"); + } + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(String committerEmail) { - this.committerEmail = Objects.requireNonNull(committerEmail); + if (committerEmail == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "committerEmail"); + } + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(String committerName) { - this.committerName = Objects.requireNonNull(committerName); + if (committerName == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "committerName"); + } + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder parentIds(List parentIds) { - this.parentIds = Objects.requireNonNull(parentIds); + if (parentIds == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "parentIds"); + } + this.parentIds = parentIds; return this; } public Builder parentIds(String... parentIds) { @@ -143,12 +171,18 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(String shortId) { - this.shortId = Objects.requireNonNull(shortId); + if (shortId == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "shortId"); + } + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesBranchCommit", "title"); + } + this.title = title; return this; } public GetProjectBranchesBranchCommit build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesResult.java index d9a7fe6c0..3c2062aef 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectBranchesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectBranchesBranch; import java.lang.String; import java.util.List; @@ -72,7 +73,10 @@ public Builder(GetProjectBranchesResult defaults) { @CustomType.Setter public Builder branches(List branches) { - this.branches = Objects.requireNonNull(branches); + if (branches == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesResult", "branches"); + } + this.branches = branches; return this; } public Builder branches(GetProjectBranchesBranch... branches) { @@ -80,12 +84,18 @@ public Builder branches(GetProjectBranchesBranch... branches) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectBranchesResult", "project"); + } + this.project = project; return this; } public GetProjectBranchesResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectContainerExpirationPolicy.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectContainerExpirationPolicy.java index 3499edbf1..c6efdee50 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectContainerExpirationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectContainerExpirationPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -90,42 +91,66 @@ public Builder(GetProjectContainerExpirationPolicy defaults) { @CustomType.Setter public Builder cadence(String cadence) { - this.cadence = Objects.requireNonNull(cadence); + if (cadence == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "cadence"); + } + this.cadence = cadence; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder keepN(Integer keepN) { - this.keepN = Objects.requireNonNull(keepN); + if (keepN == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "keepN"); + } + this.keepN = keepN; return this; } @CustomType.Setter public Builder nameRegex(String nameRegex) { - this.nameRegex = Objects.requireNonNull(nameRegex); + if (nameRegex == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "nameRegex"); + } + this.nameRegex = nameRegex; return this; } @CustomType.Setter public Builder nameRegexDelete(String nameRegexDelete) { - this.nameRegexDelete = Objects.requireNonNull(nameRegexDelete); + if (nameRegexDelete == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "nameRegexDelete"); + } + this.nameRegexDelete = nameRegexDelete; return this; } @CustomType.Setter public Builder nameRegexKeep(String nameRegexKeep) { - this.nameRegexKeep = Objects.requireNonNull(nameRegexKeep); + if (nameRegexKeep == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "nameRegexKeep"); + } + this.nameRegexKeep = nameRegexKeep; return this; } @CustomType.Setter public Builder nextRunAt(String nextRunAt) { - this.nextRunAt = Objects.requireNonNull(nextRunAt); + if (nextRunAt == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "nextRunAt"); + } + this.nextRunAt = nextRunAt; return this; } @CustomType.Setter public Builder olderThan(String olderThan) { - this.olderThan = Objects.requireNonNull(olderThan); + if (olderThan == null) { + throw new MissingRequiredPropertyException("GetProjectContainerExpirationPolicy", "olderThan"); + } + this.olderThan = olderThan; return this; } public GetProjectContainerExpirationPolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHookResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHookResult.java index d70267fbc..89818c72a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHookResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHookResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -310,102 +311,162 @@ public Builder(GetProjectHookResult defaults) { @CustomType.Setter public Builder confidentialIssuesEvents(Boolean confidentialIssuesEvents) { - this.confidentialIssuesEvents = Objects.requireNonNull(confidentialIssuesEvents); + if (confidentialIssuesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "confidentialIssuesEvents"); + } + this.confidentialIssuesEvents = confidentialIssuesEvents; return this; } @CustomType.Setter public Builder confidentialNoteEvents(Boolean confidentialNoteEvents) { - this.confidentialNoteEvents = Objects.requireNonNull(confidentialNoteEvents); + if (confidentialNoteEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "confidentialNoteEvents"); + } + this.confidentialNoteEvents = confidentialNoteEvents; return this; } @CustomType.Setter public Builder deploymentEvents(Boolean deploymentEvents) { - this.deploymentEvents = Objects.requireNonNull(deploymentEvents); + if (deploymentEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "deploymentEvents"); + } + this.deploymentEvents = deploymentEvents; return this; } @CustomType.Setter public Builder enableSslVerification(Boolean enableSslVerification) { - this.enableSslVerification = Objects.requireNonNull(enableSslVerification); + if (enableSslVerification == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "enableSslVerification"); + } + this.enableSslVerification = enableSslVerification; return this; } @CustomType.Setter public Builder hookId(Integer hookId) { - this.hookId = Objects.requireNonNull(hookId); + if (hookId == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "hookId"); + } + this.hookId = hookId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder issuesEvents(Boolean issuesEvents) { - this.issuesEvents = Objects.requireNonNull(issuesEvents); + if (issuesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "issuesEvents"); + } + this.issuesEvents = issuesEvents; return this; } @CustomType.Setter public Builder jobEvents(Boolean jobEvents) { - this.jobEvents = Objects.requireNonNull(jobEvents); + if (jobEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "jobEvents"); + } + this.jobEvents = jobEvents; return this; } @CustomType.Setter public Builder mergeRequestsEvents(Boolean mergeRequestsEvents) { - this.mergeRequestsEvents = Objects.requireNonNull(mergeRequestsEvents); + if (mergeRequestsEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "mergeRequestsEvents"); + } + this.mergeRequestsEvents = mergeRequestsEvents; return this; } @CustomType.Setter public Builder noteEvents(Boolean noteEvents) { - this.noteEvents = Objects.requireNonNull(noteEvents); + if (noteEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "noteEvents"); + } + this.noteEvents = noteEvents; return this; } @CustomType.Setter public Builder pipelineEvents(Boolean pipelineEvents) { - this.pipelineEvents = Objects.requireNonNull(pipelineEvents); + if (pipelineEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "pipelineEvents"); + } + this.pipelineEvents = pipelineEvents; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder projectId(Integer projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder pushEvents(Boolean pushEvents) { - this.pushEvents = Objects.requireNonNull(pushEvents); + if (pushEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "pushEvents"); + } + this.pushEvents = pushEvents; return this; } @CustomType.Setter public Builder pushEventsBranchFilter(String pushEventsBranchFilter) { - this.pushEventsBranchFilter = Objects.requireNonNull(pushEventsBranchFilter); + if (pushEventsBranchFilter == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "pushEventsBranchFilter"); + } + this.pushEventsBranchFilter = pushEventsBranchFilter; return this; } @CustomType.Setter public Builder releasesEvents(Boolean releasesEvents) { - this.releasesEvents = Objects.requireNonNull(releasesEvents); + if (releasesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "releasesEvents"); + } + this.releasesEvents = releasesEvents; return this; } @CustomType.Setter public Builder tagPushEvents(Boolean tagPushEvents) { - this.tagPushEvents = Objects.requireNonNull(tagPushEvents); + if (tagPushEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "tagPushEvents"); + } + this.tagPushEvents = tagPushEvents; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder wikiPageEvents(Boolean wikiPageEvents) { - this.wikiPageEvents = Objects.requireNonNull(wikiPageEvents); + if (wikiPageEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHookResult", "wikiPageEvents"); + } + this.wikiPageEvents = wikiPageEvents; return this; } public GetProjectHookResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksHook.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksHook.java index 0c734a4a2..df0baff9d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksHook.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksHook.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -144,97 +145,154 @@ public Builder(GetProjectHooksHook defaults) { @CustomType.Setter public Builder confidentialIssuesEvents(Boolean confidentialIssuesEvents) { - this.confidentialIssuesEvents = Objects.requireNonNull(confidentialIssuesEvents); + if (confidentialIssuesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "confidentialIssuesEvents"); + } + this.confidentialIssuesEvents = confidentialIssuesEvents; return this; } @CustomType.Setter public Builder confidentialNoteEvents(Boolean confidentialNoteEvents) { - this.confidentialNoteEvents = Objects.requireNonNull(confidentialNoteEvents); + if (confidentialNoteEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "confidentialNoteEvents"); + } + this.confidentialNoteEvents = confidentialNoteEvents; return this; } @CustomType.Setter public Builder deploymentEvents(Boolean deploymentEvents) { - this.deploymentEvents = Objects.requireNonNull(deploymentEvents); + if (deploymentEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "deploymentEvents"); + } + this.deploymentEvents = deploymentEvents; return this; } @CustomType.Setter public Builder enableSslVerification(Boolean enableSslVerification) { - this.enableSslVerification = Objects.requireNonNull(enableSslVerification); + if (enableSslVerification == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "enableSslVerification"); + } + this.enableSslVerification = enableSslVerification; return this; } @CustomType.Setter public Builder hookId(Integer hookId) { - this.hookId = Objects.requireNonNull(hookId); + if (hookId == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "hookId"); + } + this.hookId = hookId; return this; } @CustomType.Setter public Builder issuesEvents(Boolean issuesEvents) { - this.issuesEvents = Objects.requireNonNull(issuesEvents); + if (issuesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "issuesEvents"); + } + this.issuesEvents = issuesEvents; return this; } @CustomType.Setter public Builder jobEvents(Boolean jobEvents) { - this.jobEvents = Objects.requireNonNull(jobEvents); + if (jobEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "jobEvents"); + } + this.jobEvents = jobEvents; return this; } @CustomType.Setter public Builder mergeRequestsEvents(Boolean mergeRequestsEvents) { - this.mergeRequestsEvents = Objects.requireNonNull(mergeRequestsEvents); + if (mergeRequestsEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "mergeRequestsEvents"); + } + this.mergeRequestsEvents = mergeRequestsEvents; return this; } @CustomType.Setter public Builder noteEvents(Boolean noteEvents) { - this.noteEvents = Objects.requireNonNull(noteEvents); + if (noteEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "noteEvents"); + } + this.noteEvents = noteEvents; return this; } @CustomType.Setter public Builder pipelineEvents(Boolean pipelineEvents) { - this.pipelineEvents = Objects.requireNonNull(pipelineEvents); + if (pipelineEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "pipelineEvents"); + } + this.pipelineEvents = pipelineEvents; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder projectId(Integer projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder pushEvents(Boolean pushEvents) { - this.pushEvents = Objects.requireNonNull(pushEvents); + if (pushEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "pushEvents"); + } + this.pushEvents = pushEvents; return this; } @CustomType.Setter public Builder pushEventsBranchFilter(String pushEventsBranchFilter) { - this.pushEventsBranchFilter = Objects.requireNonNull(pushEventsBranchFilter); + if (pushEventsBranchFilter == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "pushEventsBranchFilter"); + } + this.pushEventsBranchFilter = pushEventsBranchFilter; return this; } @CustomType.Setter public Builder releasesEvents(Boolean releasesEvents) { - this.releasesEvents = Objects.requireNonNull(releasesEvents); + if (releasesEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "releasesEvents"); + } + this.releasesEvents = releasesEvents; return this; } @CustomType.Setter public Builder tagPushEvents(Boolean tagPushEvents) { - this.tagPushEvents = Objects.requireNonNull(tagPushEvents); + if (tagPushEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "tagPushEvents"); + } + this.tagPushEvents = tagPushEvents; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder wikiPageEvents(Boolean wikiPageEvents) { - this.wikiPageEvents = Objects.requireNonNull(wikiPageEvents); + if (wikiPageEvents == null) { + throw new MissingRequiredPropertyException("GetProjectHooksHook", "wikiPageEvents"); + } + this.wikiPageEvents = wikiPageEvents; return this; } public GetProjectHooksHook build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksResult.java index 8cda341a0..bdebf5a9a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectHooksResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectHooksHook; import java.lang.String; import java.util.List; @@ -72,7 +73,10 @@ public Builder(GetProjectHooksResult defaults) { @CustomType.Setter public Builder hooks(List hooks) { - this.hooks = Objects.requireNonNull(hooks); + if (hooks == null) { + throw new MissingRequiredPropertyException("GetProjectHooksResult", "hooks"); + } + this.hooks = hooks; return this; } public Builder hooks(GetProjectHooksHook... hooks) { @@ -80,12 +84,18 @@ public Builder hooks(GetProjectHooksHook... hooks) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectHooksResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectHooksResult", "project"); + } + this.project = project; return this; } public GetProjectHooksResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueResult.java index 5832baa1b..0a262fabb 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectIssueTaskCompletionStatus; import java.lang.Boolean; import java.lang.Integer; @@ -593,7 +594,10 @@ public Builder(GetProjectIssueResult defaults) { @CustomType.Setter public Builder assigneeIds(List assigneeIds) { - this.assigneeIds = Objects.requireNonNull(assigneeIds); + if (assigneeIds == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "assigneeIds"); + } + this.assigneeIds = assigneeIds; return this; } public Builder assigneeIds(Integer... assigneeIds) { @@ -601,107 +605,170 @@ public Builder assigneeIds(Integer... assigneeIds) { } @CustomType.Setter public Builder authorId(Integer authorId) { - this.authorId = Objects.requireNonNull(authorId); + if (authorId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "authorId"); + } + this.authorId = authorId; return this; } @CustomType.Setter public Builder closedAt(String closedAt) { - this.closedAt = Objects.requireNonNull(closedAt); + if (closedAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "closedAt"); + } + this.closedAt = closedAt; return this; } @CustomType.Setter public Builder closedByUserId(Integer closedByUserId) { - this.closedByUserId = Objects.requireNonNull(closedByUserId); + if (closedByUserId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "closedByUserId"); + } + this.closedByUserId = closedByUserId; return this; } @CustomType.Setter public Builder confidential(Boolean confidential) { - this.confidential = Objects.requireNonNull(confidential); + if (confidential == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "confidential"); + } + this.confidential = confidential; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder discussionLocked(Boolean discussionLocked) { - this.discussionLocked = Objects.requireNonNull(discussionLocked); + if (discussionLocked == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "discussionLocked"); + } + this.discussionLocked = discussionLocked; return this; } @CustomType.Setter public Builder discussionToResolve(String discussionToResolve) { - this.discussionToResolve = Objects.requireNonNull(discussionToResolve); + if (discussionToResolve == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "discussionToResolve"); + } + this.discussionToResolve = discussionToResolve; return this; } @CustomType.Setter public Builder downvotes(Integer downvotes) { - this.downvotes = Objects.requireNonNull(downvotes); + if (downvotes == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "downvotes"); + } + this.downvotes = downvotes; return this; } @CustomType.Setter public Builder dueDate(String dueDate) { - this.dueDate = Objects.requireNonNull(dueDate); + if (dueDate == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "dueDate"); + } + this.dueDate = dueDate; return this; } @CustomType.Setter public Builder epicId(Integer epicId) { - this.epicId = Objects.requireNonNull(epicId); + if (epicId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "epicId"); + } + this.epicId = epicId; return this; } @CustomType.Setter public Builder epicIssueId(Integer epicIssueId) { - this.epicIssueId = Objects.requireNonNull(epicIssueId); + if (epicIssueId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "epicIssueId"); + } + this.epicIssueId = epicIssueId; return this; } @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder humanTimeEstimate(String humanTimeEstimate) { - this.humanTimeEstimate = Objects.requireNonNull(humanTimeEstimate); + if (humanTimeEstimate == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "humanTimeEstimate"); + } + this.humanTimeEstimate = humanTimeEstimate; return this; } @CustomType.Setter public Builder humanTotalTimeSpent(String humanTotalTimeSpent) { - this.humanTotalTimeSpent = Objects.requireNonNull(humanTotalTimeSpent); + if (humanTotalTimeSpent == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "humanTotalTimeSpent"); + } + this.humanTotalTimeSpent = humanTotalTimeSpent; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder iid(Integer iid) { - this.iid = Objects.requireNonNull(iid); + if (iid == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "iid"); + } + this.iid = iid; return this; } @CustomType.Setter public Builder issueId(Integer issueId) { - this.issueId = Objects.requireNonNull(issueId); + if (issueId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "issueId"); + } + this.issueId = issueId; return this; } @CustomType.Setter public Builder issueLinkId(Integer issueLinkId) { - this.issueLinkId = Objects.requireNonNull(issueLinkId); + if (issueLinkId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "issueLinkId"); + } + this.issueLinkId = issueLinkId; return this; } @CustomType.Setter public Builder issueType(String issueType) { - this.issueType = Objects.requireNonNull(issueType); + if (issueType == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "issueType"); + } + this.issueType = issueType; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "labels"); + } + this.labels = labels; return this; } public Builder labels(String... labels) { @@ -709,52 +776,82 @@ public Builder labels(String... labels) { } @CustomType.Setter public Builder links(Map links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "links"); + } + this.links = links; return this; } @CustomType.Setter public Builder mergeRequestToResolveDiscussionsOf(Integer mergeRequestToResolveDiscussionsOf) { - this.mergeRequestToResolveDiscussionsOf = Objects.requireNonNull(mergeRequestToResolveDiscussionsOf); + if (mergeRequestToResolveDiscussionsOf == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "mergeRequestToResolveDiscussionsOf"); + } + this.mergeRequestToResolveDiscussionsOf = mergeRequestToResolveDiscussionsOf; return this; } @CustomType.Setter public Builder mergeRequestsCount(Integer mergeRequestsCount) { - this.mergeRequestsCount = Objects.requireNonNull(mergeRequestsCount); + if (mergeRequestsCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "mergeRequestsCount"); + } + this.mergeRequestsCount = mergeRequestsCount; return this; } @CustomType.Setter public Builder milestoneId(Integer milestoneId) { - this.milestoneId = Objects.requireNonNull(milestoneId); + if (milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "milestoneId"); + } + this.milestoneId = milestoneId; return this; } @CustomType.Setter public Builder movedToId(Integer movedToId) { - this.movedToId = Objects.requireNonNull(movedToId); + if (movedToId == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "movedToId"); + } + this.movedToId = movedToId; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder references(Map references) { - this.references = Objects.requireNonNull(references); + if (references == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "references"); + } + this.references = references; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder subscribed(Boolean subscribed) { - this.subscribed = Objects.requireNonNull(subscribed); + if (subscribed == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "subscribed"); + } + this.subscribed = subscribed; return this; } @CustomType.Setter public Builder taskCompletionStatuses(List taskCompletionStatuses) { - this.taskCompletionStatuses = Objects.requireNonNull(taskCompletionStatuses); + if (taskCompletionStatuses == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "taskCompletionStatuses"); + } + this.taskCompletionStatuses = taskCompletionStatuses; return this; } public Builder taskCompletionStatuses(GetProjectIssueTaskCompletionStatus... taskCompletionStatuses) { @@ -762,42 +859,66 @@ public Builder taskCompletionStatuses(GetProjectIssueTaskCompletionStatus... tas } @CustomType.Setter public Builder timeEstimate(Integer timeEstimate) { - this.timeEstimate = Objects.requireNonNull(timeEstimate); + if (timeEstimate == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "timeEstimate"); + } + this.timeEstimate = timeEstimate; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "title"); + } + this.title = title; return this; } @CustomType.Setter public Builder totalTimeSpent(Integer totalTimeSpent) { - this.totalTimeSpent = Objects.requireNonNull(totalTimeSpent); + if (totalTimeSpent == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "totalTimeSpent"); + } + this.totalTimeSpent = totalTimeSpent; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder upvotes(Integer upvotes) { - this.upvotes = Objects.requireNonNull(upvotes); + if (upvotes == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "upvotes"); + } + this.upvotes = upvotes; return this; } @CustomType.Setter public Builder userNotesCount(Integer userNotesCount) { - this.userNotesCount = Objects.requireNonNull(userNotesCount); + if (userNotesCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "userNotesCount"); + } + this.userNotesCount = userNotesCount; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("GetProjectIssueResult", "weight"); + } + this.weight = weight; return this; } public GetProjectIssueResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueTaskCompletionStatus.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueTaskCompletionStatus.java index 133c004d3..4840e9740 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueTaskCompletionStatus.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssueTaskCompletionStatus.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetProjectIssueTaskCompletionStatus defaults) { @CustomType.Setter public Builder completedCount(Integer completedCount) { - this.completedCount = Objects.requireNonNull(completedCount); + if (completedCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssueTaskCompletionStatus", "completedCount"); + } + this.completedCount = completedCount; return this; } @CustomType.Setter public Builder count(Integer count) { - this.count = Objects.requireNonNull(count); + if (count == null) { + throw new MissingRequiredPropertyException("GetProjectIssueTaskCompletionStatus", "count"); + } + this.count = count; return this; } public GetProjectIssueTaskCompletionStatus build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssue.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssue.java index 04b6e7d11..27bd3b0f5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssue.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssue.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectIssuesIssueTaskCompletionStatus; import java.lang.Boolean; import java.lang.Integer; @@ -267,7 +268,10 @@ public Builder(GetProjectIssuesIssue defaults) { @CustomType.Setter public Builder assigneeIds(List assigneeIds) { - this.assigneeIds = Objects.requireNonNull(assigneeIds); + if (assigneeIds == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "assigneeIds"); + } + this.assigneeIds = assigneeIds; return this; } public Builder assigneeIds(Integer... assigneeIds) { @@ -275,102 +279,162 @@ public Builder assigneeIds(Integer... assigneeIds) { } @CustomType.Setter public Builder authorId(Integer authorId) { - this.authorId = Objects.requireNonNull(authorId); + if (authorId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "authorId"); + } + this.authorId = authorId; return this; } @CustomType.Setter public Builder closedAt(String closedAt) { - this.closedAt = Objects.requireNonNull(closedAt); + if (closedAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "closedAt"); + } + this.closedAt = closedAt; return this; } @CustomType.Setter public Builder closedByUserId(Integer closedByUserId) { - this.closedByUserId = Objects.requireNonNull(closedByUserId); + if (closedByUserId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "closedByUserId"); + } + this.closedByUserId = closedByUserId; return this; } @CustomType.Setter public Builder confidential(Boolean confidential) { - this.confidential = Objects.requireNonNull(confidential); + if (confidential == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "confidential"); + } + this.confidential = confidential; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder discussionLocked(Boolean discussionLocked) { - this.discussionLocked = Objects.requireNonNull(discussionLocked); + if (discussionLocked == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "discussionLocked"); + } + this.discussionLocked = discussionLocked; return this; } @CustomType.Setter public Builder discussionToResolve(String discussionToResolve) { - this.discussionToResolve = Objects.requireNonNull(discussionToResolve); + if (discussionToResolve == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "discussionToResolve"); + } + this.discussionToResolve = discussionToResolve; return this; } @CustomType.Setter public Builder downvotes(Integer downvotes) { - this.downvotes = Objects.requireNonNull(downvotes); + if (downvotes == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "downvotes"); + } + this.downvotes = downvotes; return this; } @CustomType.Setter public Builder dueDate(String dueDate) { - this.dueDate = Objects.requireNonNull(dueDate); + if (dueDate == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "dueDate"); + } + this.dueDate = dueDate; return this; } @CustomType.Setter public Builder epicId(Integer epicId) { - this.epicId = Objects.requireNonNull(epicId); + if (epicId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "epicId"); + } + this.epicId = epicId; return this; } @CustomType.Setter public Builder epicIssueId(Integer epicIssueId) { - this.epicIssueId = Objects.requireNonNull(epicIssueId); + if (epicIssueId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "epicIssueId"); + } + this.epicIssueId = epicIssueId; return this; } @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder humanTimeEstimate(String humanTimeEstimate) { - this.humanTimeEstimate = Objects.requireNonNull(humanTimeEstimate); + if (humanTimeEstimate == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "humanTimeEstimate"); + } + this.humanTimeEstimate = humanTimeEstimate; return this; } @CustomType.Setter public Builder humanTotalTimeSpent(String humanTotalTimeSpent) { - this.humanTotalTimeSpent = Objects.requireNonNull(humanTotalTimeSpent); + if (humanTotalTimeSpent == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "humanTotalTimeSpent"); + } + this.humanTotalTimeSpent = humanTotalTimeSpent; return this; } @CustomType.Setter public Builder iid(Integer iid) { - this.iid = Objects.requireNonNull(iid); + if (iid == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "iid"); + } + this.iid = iid; return this; } @CustomType.Setter public Builder issueId(Integer issueId) { - this.issueId = Objects.requireNonNull(issueId); + if (issueId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "issueId"); + } + this.issueId = issueId; return this; } @CustomType.Setter public Builder issueLinkId(Integer issueLinkId) { - this.issueLinkId = Objects.requireNonNull(issueLinkId); + if (issueLinkId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "issueLinkId"); + } + this.issueLinkId = issueLinkId; return this; } @CustomType.Setter public Builder issueType(String issueType) { - this.issueType = Objects.requireNonNull(issueType); + if (issueType == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "issueType"); + } + this.issueType = issueType; return this; } @CustomType.Setter public Builder labels(List labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "labels"); + } + this.labels = labels; return this; } public Builder labels(String... labels) { @@ -378,52 +442,82 @@ public Builder labels(String... labels) { } @CustomType.Setter public Builder links(Map links) { - this.links = Objects.requireNonNull(links); + if (links == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "links"); + } + this.links = links; return this; } @CustomType.Setter public Builder mergeRequestToResolveDiscussionsOf(Integer mergeRequestToResolveDiscussionsOf) { - this.mergeRequestToResolveDiscussionsOf = Objects.requireNonNull(mergeRequestToResolveDiscussionsOf); + if (mergeRequestToResolveDiscussionsOf == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "mergeRequestToResolveDiscussionsOf"); + } + this.mergeRequestToResolveDiscussionsOf = mergeRequestToResolveDiscussionsOf; return this; } @CustomType.Setter public Builder mergeRequestsCount(Integer mergeRequestsCount) { - this.mergeRequestsCount = Objects.requireNonNull(mergeRequestsCount); + if (mergeRequestsCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "mergeRequestsCount"); + } + this.mergeRequestsCount = mergeRequestsCount; return this; } @CustomType.Setter public Builder milestoneId(Integer milestoneId) { - this.milestoneId = Objects.requireNonNull(milestoneId); + if (milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "milestoneId"); + } + this.milestoneId = milestoneId; return this; } @CustomType.Setter public Builder movedToId(Integer movedToId) { - this.movedToId = Objects.requireNonNull(movedToId); + if (movedToId == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "movedToId"); + } + this.movedToId = movedToId; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder references(Map references) { - this.references = Objects.requireNonNull(references); + if (references == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "references"); + } + this.references = references; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder subscribed(Boolean subscribed) { - this.subscribed = Objects.requireNonNull(subscribed); + if (subscribed == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "subscribed"); + } + this.subscribed = subscribed; return this; } @CustomType.Setter public Builder taskCompletionStatuses(List taskCompletionStatuses) { - this.taskCompletionStatuses = Objects.requireNonNull(taskCompletionStatuses); + if (taskCompletionStatuses == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "taskCompletionStatuses"); + } + this.taskCompletionStatuses = taskCompletionStatuses; return this; } public Builder taskCompletionStatuses(GetProjectIssuesIssueTaskCompletionStatus... taskCompletionStatuses) { @@ -431,42 +525,66 @@ public Builder taskCompletionStatuses(GetProjectIssuesIssueTaskCompletionStatus. } @CustomType.Setter public Builder timeEstimate(Integer timeEstimate) { - this.timeEstimate = Objects.requireNonNull(timeEstimate); + if (timeEstimate == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "timeEstimate"); + } + this.timeEstimate = timeEstimate; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "title"); + } + this.title = title; return this; } @CustomType.Setter public Builder totalTimeSpent(Integer totalTimeSpent) { - this.totalTimeSpent = Objects.requireNonNull(totalTimeSpent); + if (totalTimeSpent == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "totalTimeSpent"); + } + this.totalTimeSpent = totalTimeSpent; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder upvotes(Integer upvotes) { - this.upvotes = Objects.requireNonNull(upvotes); + if (upvotes == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "upvotes"); + } + this.upvotes = upvotes; return this; } @CustomType.Setter public Builder userNotesCount(Integer userNotesCount) { - this.userNotesCount = Objects.requireNonNull(userNotesCount); + if (userNotesCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "userNotesCount"); + } + this.userNotesCount = userNotesCount; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder weight(Integer weight) { - this.weight = Objects.requireNonNull(weight); + if (weight == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssue", "weight"); + } + this.weight = weight; return this; } public GetProjectIssuesIssue build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssueTaskCompletionStatus.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssueTaskCompletionStatus.java index f6b7d2bbc..010e70178 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssueTaskCompletionStatus.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesIssueTaskCompletionStatus.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetProjectIssuesIssueTaskCompletionStatus defaults) { @CustomType.Setter public Builder completedCount(Integer completedCount) { - this.completedCount = Objects.requireNonNull(completedCount); + if (completedCount == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssueTaskCompletionStatus", "completedCount"); + } + this.completedCount = completedCount; return this; } @CustomType.Setter public Builder count(Integer count) { - this.count = Objects.requireNonNull(count); + if (count == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesIssueTaskCompletionStatus", "count"); + } + this.count = count; return this; } public GetProjectIssuesIssueTaskCompletionStatus build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesResult.java index fde1d5b0a..dc6f92a5a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectIssuesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectIssuesIssue; import java.lang.Boolean; import java.lang.Integer; @@ -426,46 +427,57 @@ public Builder(GetProjectIssuesResult defaults) { @CustomType.Setter public Builder assigneeId(@Nullable Integer assigneeId) { + this.assigneeId = assigneeId; return this; } @CustomType.Setter public Builder assigneeUsername(@Nullable String assigneeUsername) { + this.assigneeUsername = assigneeUsername; return this; } @CustomType.Setter public Builder authorId(@Nullable Integer authorId) { + this.authorId = authorId; return this; } @CustomType.Setter public Builder confidential(@Nullable Boolean confidential) { + this.confidential = confidential; return this; } @CustomType.Setter public Builder createdAfter(@Nullable String createdAfter) { + this.createdAfter = createdAfter; return this; } @CustomType.Setter public Builder createdBefore(@Nullable String createdBefore) { + this.createdBefore = createdBefore; return this; } @CustomType.Setter public Builder dueDate(@Nullable String dueDate) { + this.dueDate = dueDate; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder iids(@Nullable List iids) { + this.iids = iids; return this; } @@ -474,12 +486,16 @@ public Builder iids(Integer... iids) { } @CustomType.Setter public Builder issueType(@Nullable String issueType) { + this.issueType = issueType; return this; } @CustomType.Setter public Builder issues(List issues) { - this.issues = Objects.requireNonNull(issues); + if (issues == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesResult", "issues"); + } + this.issues = issues; return this; } public Builder issues(GetProjectIssuesIssue... issues) { @@ -487,6 +503,7 @@ public Builder issues(GetProjectIssuesIssue... issues) { } @CustomType.Setter public Builder labels(@Nullable List labels) { + this.labels = labels; return this; } @@ -495,16 +512,19 @@ public Builder labels(String... labels) { } @CustomType.Setter public Builder milestone(@Nullable String milestone) { + this.milestone = milestone; return this; } @CustomType.Setter public Builder myReactionEmoji(@Nullable String myReactionEmoji) { + this.myReactionEmoji = myReactionEmoji; return this; } @CustomType.Setter public Builder notAssigneeIds(@Nullable List notAssigneeIds) { + this.notAssigneeIds = notAssigneeIds; return this; } @@ -513,6 +533,7 @@ public Builder notAssigneeIds(Integer... notAssigneeIds) { } @CustomType.Setter public Builder notAuthorIds(@Nullable List notAuthorIds) { + this.notAuthorIds = notAuthorIds; return this; } @@ -521,6 +542,7 @@ public Builder notAuthorIds(Integer... notAuthorIds) { } @CustomType.Setter public Builder notLabels(@Nullable List notLabels) { + this.notLabels = notLabels; return this; } @@ -529,11 +551,13 @@ public Builder notLabels(String... notLabels) { } @CustomType.Setter public Builder notMilestone(@Nullable String notMilestone) { + this.notMilestone = notMilestone; return this; } @CustomType.Setter public Builder notMyReactionEmojis(@Nullable List notMyReactionEmojis) { + this.notMyReactionEmojis = notMyReactionEmojis; return this; } @@ -542,46 +566,57 @@ public Builder notMyReactionEmojis(String... notMyReactionEmojis) { } @CustomType.Setter public Builder orderBy(@Nullable String orderBy) { + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectIssuesResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder sort(@Nullable String sort) { + this.sort = sort; return this; } @CustomType.Setter public Builder updatedAfter(@Nullable String updatedAfter) { + this.updatedAfter = updatedAfter; return this; } @CustomType.Setter public Builder updatedBefore(@Nullable String updatedBefore) { + this.updatedBefore = updatedBefore; return this; } @CustomType.Setter public Builder weight(@Nullable Integer weight) { + this.weight = weight; return this; } @CustomType.Setter public Builder withLabelsDetails(@Nullable Boolean withLabelsDetails) { + this.withLabelsDetails = withLabelsDetails; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipMember.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipMember.java index 35faad2a5..0bca160ac 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipMember.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipMember.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -77,42 +78,66 @@ public Builder(GetProjectMembershipMember defaults) { @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipMember", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetProjectMembershipMember build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipResult.java index 9a60b38cb..62ab1cbf9 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMembershipResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectMembershipMember; import java.lang.Boolean; import java.lang.Integer; @@ -118,22 +119,32 @@ public Builder(GetProjectMembershipResult defaults) { @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipResult", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inherited(@Nullable Boolean inherited) { + this.inherited = inherited; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipResult", "members"); + } + this.members = members; return this; } public Builder members(GetProjectMembershipMember... members) { @@ -141,11 +152,15 @@ public Builder members(GetProjectMembershipMember... members) { } @CustomType.Setter public Builder projectId(Integer projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectMembershipResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder query(@Nullable String query) { + this.query = query; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestoneResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestoneResult.java index 070bd3d4f..4eeae6319 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestoneResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestoneResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -226,72 +227,114 @@ public Builder(GetProjectMilestoneResult defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder dueDate(String dueDate) { - this.dueDate = Objects.requireNonNull(dueDate); + if (dueDate == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "dueDate"); + } + this.dueDate = dueDate; return this; } @CustomType.Setter public Builder expired(Boolean expired) { - this.expired = Objects.requireNonNull(expired); + if (expired == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "expired"); + } + this.expired = expired; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder iid(Integer iid) { - this.iid = Objects.requireNonNull(iid); + if (iid == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "iid"); + } + this.iid = iid; return this; } @CustomType.Setter public Builder milestoneId(Integer milestoneId) { - this.milestoneId = Objects.requireNonNull(milestoneId); + if (milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "milestoneId"); + } + this.milestoneId = milestoneId; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder projectId(Integer projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder startDate(String startDate) { - this.startDate = Objects.requireNonNull(startDate); + if (startDate == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "startDate"); + } + this.startDate = startDate; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "title"); + } + this.title = title; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectMilestoneResult", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetProjectMilestoneResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesMilestone.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesMilestone.java index ac45dbb23..650d4fb8f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesMilestone.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesMilestone.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -108,67 +109,106 @@ public Builder(GetProjectMilestonesMilestone defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder dueDate(String dueDate) { - this.dueDate = Objects.requireNonNull(dueDate); + if (dueDate == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "dueDate"); + } + this.dueDate = dueDate; return this; } @CustomType.Setter public Builder expired(Boolean expired) { - this.expired = Objects.requireNonNull(expired); + if (expired == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "expired"); + } + this.expired = expired; return this; } @CustomType.Setter public Builder iid(Integer iid) { - this.iid = Objects.requireNonNull(iid); + if (iid == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "iid"); + } + this.iid = iid; return this; } @CustomType.Setter public Builder milestoneId(Integer milestoneId) { - this.milestoneId = Objects.requireNonNull(milestoneId); + if (milestoneId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "milestoneId"); + } + this.milestoneId = milestoneId; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder projectId(Integer projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder startDate(String startDate) { - this.startDate = Objects.requireNonNull(startDate); + if (startDate == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "startDate"); + } + this.startDate = startDate; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "title"); + } + this.title = title; return this; } @CustomType.Setter public Builder updatedAt(String updatedAt) { - this.updatedAt = Objects.requireNonNull(updatedAt); + if (updatedAt == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "updatedAt"); + } + this.updatedAt = updatedAt; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesMilestone", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetProjectMilestonesMilestone build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesResult.java index 08bd7b7c7..d520d0859 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectMilestonesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectMilestonesMilestone; import java.lang.Boolean; import java.lang.Integer; @@ -146,11 +147,15 @@ public Builder(GetProjectMilestonesResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder iids(@Nullable List iids) { + this.iids = iids; return this; } @@ -159,12 +164,16 @@ public Builder iids(Integer... iids) { } @CustomType.Setter public Builder includeParentMilestones(@Nullable Boolean includeParentMilestones) { + this.includeParentMilestones = includeParentMilestones; return this; } @CustomType.Setter public Builder milestones(List milestones) { - this.milestones = Objects.requireNonNull(milestones); + if (milestones == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesResult", "milestones"); + } + this.milestones = milestones; return this; } public Builder milestones(GetProjectMilestonesMilestone... milestones) { @@ -172,21 +181,27 @@ public Builder milestones(GetProjectMilestonesMilestone... milestones) { } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectMilestonesResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchMergeAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchMergeAccessLevel.java index 6b6e9a544..8d42836d1 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchMergeAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchMergeAccessLevel.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -53,22 +54,34 @@ public Builder(GetProjectProtectedBranchMergeAccessLevel defaults) { @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchMergeAccessLevel", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(String accessLevelDescription) { - this.accessLevelDescription = Objects.requireNonNull(accessLevelDescription); + if (accessLevelDescription == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchMergeAccessLevel", "accessLevelDescription"); + } + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchMergeAccessLevel", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchMergeAccessLevel", "userId"); + } + this.userId = userId; return this; } public GetProjectProtectedBranchMergeAccessLevel build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchPushAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchPushAccessLevel.java index a60db2e7e..1ff86686d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchPushAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchPushAccessLevel.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -53,22 +54,34 @@ public Builder(GetProjectProtectedBranchPushAccessLevel defaults) { @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPushAccessLevel", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(String accessLevelDescription) { - this.accessLevelDescription = Objects.requireNonNull(accessLevelDescription); + if (accessLevelDescription == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPushAccessLevel", "accessLevelDescription"); + } + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPushAccessLevel", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchPushAccessLevel", "userId"); + } + this.userId = userId; return this; } public GetProjectProtectedBranchPushAccessLevel build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchResult.java index c54074aae..85379fb45 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectProtectedBranchMergeAccessLevel; import com.pulumi.gitlab.outputs.GetProjectProtectedBranchPushAccessLevel; import java.lang.Boolean; @@ -131,22 +132,34 @@ public Builder(GetProjectProtectedBranchResult defaults) { @CustomType.Setter public Builder allowForcePush(Boolean allowForcePush) { - this.allowForcePush = Objects.requireNonNull(allowForcePush); + if (allowForcePush == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "allowForcePush"); + } + this.allowForcePush = allowForcePush; return this; } @CustomType.Setter public Builder codeOwnerApprovalRequired(Boolean codeOwnerApprovalRequired) { - this.codeOwnerApprovalRequired = Objects.requireNonNull(codeOwnerApprovalRequired); + if (codeOwnerApprovalRequired == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "codeOwnerApprovalRequired"); + } + this.codeOwnerApprovalRequired = codeOwnerApprovalRequired; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mergeAccessLevels(List mergeAccessLevels) { - this.mergeAccessLevels = Objects.requireNonNull(mergeAccessLevels); + if (mergeAccessLevels == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "mergeAccessLevels"); + } + this.mergeAccessLevels = mergeAccessLevels; return this; } public Builder mergeAccessLevels(GetProjectProtectedBranchMergeAccessLevel... mergeAccessLevels) { @@ -154,17 +167,26 @@ public Builder mergeAccessLevels(GetProjectProtectedBranchMergeAccessLevel... me } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder pushAccessLevels(List pushAccessLevels) { - this.pushAccessLevels = Objects.requireNonNull(pushAccessLevels); + if (pushAccessLevels == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchResult", "pushAccessLevels"); + } + this.pushAccessLevels = pushAccessLevels; return this; } public Builder pushAccessLevels(GetProjectProtectedBranchPushAccessLevel... pushAccessLevels) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranch.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranch.java index 9ce0b2229..364ec79be 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranch.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranch.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectProtectedBranchesProtectedBranchMergeAccessLevel; import com.pulumi.gitlab.outputs.GetProjectProtectedBranchesProtectedBranchPushAccessLevel; import java.lang.Boolean; @@ -69,22 +70,34 @@ public Builder(GetProjectProtectedBranchesProtectedBranch defaults) { @CustomType.Setter public Builder allowForcePush(Boolean allowForcePush) { - this.allowForcePush = Objects.requireNonNull(allowForcePush); + if (allowForcePush == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "allowForcePush"); + } + this.allowForcePush = allowForcePush; return this; } @CustomType.Setter public Builder codeOwnerApprovalRequired(Boolean codeOwnerApprovalRequired) { - this.codeOwnerApprovalRequired = Objects.requireNonNull(codeOwnerApprovalRequired); + if (codeOwnerApprovalRequired == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "codeOwnerApprovalRequired"); + } + this.codeOwnerApprovalRequired = codeOwnerApprovalRequired; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mergeAccessLevels(List mergeAccessLevels) { - this.mergeAccessLevels = Objects.requireNonNull(mergeAccessLevels); + if (mergeAccessLevels == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "mergeAccessLevels"); + } + this.mergeAccessLevels = mergeAccessLevels; return this; } public Builder mergeAccessLevels(GetProjectProtectedBranchesProtectedBranchMergeAccessLevel... mergeAccessLevels) { @@ -92,12 +105,18 @@ public Builder mergeAccessLevels(GetProjectProtectedBranchesProtectedBranchMerge } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder pushAccessLevels(List pushAccessLevels) { - this.pushAccessLevels = Objects.requireNonNull(pushAccessLevels); + if (pushAccessLevels == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranch", "pushAccessLevels"); + } + this.pushAccessLevels = pushAccessLevels; return this; } public Builder pushAccessLevels(GetProjectProtectedBranchesProtectedBranchPushAccessLevel... pushAccessLevels) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchMergeAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchMergeAccessLevel.java index e08ff989a..023311640 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchMergeAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchMergeAccessLevel.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -53,22 +54,34 @@ public Builder(GetProjectProtectedBranchesProtectedBranchMergeAccessLevel defaul @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchMergeAccessLevel", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(String accessLevelDescription) { - this.accessLevelDescription = Objects.requireNonNull(accessLevelDescription); + if (accessLevelDescription == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchMergeAccessLevel", "accessLevelDescription"); + } + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchMergeAccessLevel", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchMergeAccessLevel", "userId"); + } + this.userId = userId; return this; } public GetProjectProtectedBranchesProtectedBranchMergeAccessLevel build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchPushAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchPushAccessLevel.java index 59f6acce9..711ee2645 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchPushAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesProtectedBranchPushAccessLevel.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -53,22 +54,34 @@ public Builder(GetProjectProtectedBranchesProtectedBranchPushAccessLevel default @CustomType.Setter public Builder accessLevel(String accessLevel) { - this.accessLevel = Objects.requireNonNull(accessLevel); + if (accessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchPushAccessLevel", "accessLevel"); + } + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(String accessLevelDescription) { - this.accessLevelDescription = Objects.requireNonNull(accessLevelDescription); + if (accessLevelDescription == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchPushAccessLevel", "accessLevelDescription"); + } + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchPushAccessLevel", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesProtectedBranchPushAccessLevel", "userId"); + } + this.userId = userId; return this; } public GetProjectProtectedBranchesProtectedBranchPushAccessLevel build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesResult.java index 77c1ae7ac..c52006db6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectProtectedBranchesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectProtectedBranchesProtectedBranch; import java.lang.String; import java.util.List; @@ -72,17 +73,26 @@ public Builder(GetProjectProtectedBranchesResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder protectedBranches(List protectedBranches) { - this.protectedBranches = Objects.requireNonNull(protectedBranches); + if (protectedBranches == null) { + throw new MissingRequiredPropertyException("GetProjectProtectedBranchesResult", "protectedBranches"); + } + this.protectedBranches = protectedBranches; return this; } public Builder protectedBranches(GetProjectProtectedBranchesProtectedBranch... protectedBranches) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectPushRule.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectPushRule.java index 84862a999..7e6b68402 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectPushRule.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectPushRule.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -96,57 +97,90 @@ public Builder(GetProjectPushRule defaults) { @CustomType.Setter public Builder authorEmailRegex(String authorEmailRegex) { - this.authorEmailRegex = Objects.requireNonNull(authorEmailRegex); + if (authorEmailRegex == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "authorEmailRegex"); + } + this.authorEmailRegex = authorEmailRegex; return this; } @CustomType.Setter public Builder branchNameRegex(String branchNameRegex) { - this.branchNameRegex = Objects.requireNonNull(branchNameRegex); + if (branchNameRegex == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "branchNameRegex"); + } + this.branchNameRegex = branchNameRegex; return this; } @CustomType.Setter public Builder commitCommitterCheck(Boolean commitCommitterCheck) { - this.commitCommitterCheck = Objects.requireNonNull(commitCommitterCheck); + if (commitCommitterCheck == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "commitCommitterCheck"); + } + this.commitCommitterCheck = commitCommitterCheck; return this; } @CustomType.Setter public Builder commitMessageNegativeRegex(String commitMessageNegativeRegex) { - this.commitMessageNegativeRegex = Objects.requireNonNull(commitMessageNegativeRegex); + if (commitMessageNegativeRegex == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "commitMessageNegativeRegex"); + } + this.commitMessageNegativeRegex = commitMessageNegativeRegex; return this; } @CustomType.Setter public Builder commitMessageRegex(String commitMessageRegex) { - this.commitMessageRegex = Objects.requireNonNull(commitMessageRegex); + if (commitMessageRegex == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "commitMessageRegex"); + } + this.commitMessageRegex = commitMessageRegex; return this; } @CustomType.Setter public Builder denyDeleteTag(Boolean denyDeleteTag) { - this.denyDeleteTag = Objects.requireNonNull(denyDeleteTag); + if (denyDeleteTag == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "denyDeleteTag"); + } + this.denyDeleteTag = denyDeleteTag; return this; } @CustomType.Setter public Builder fileNameRegex(String fileNameRegex) { - this.fileNameRegex = Objects.requireNonNull(fileNameRegex); + if (fileNameRegex == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "fileNameRegex"); + } + this.fileNameRegex = fileNameRegex; return this; } @CustomType.Setter public Builder maxFileSize(Integer maxFileSize) { - this.maxFileSize = Objects.requireNonNull(maxFileSize); + if (maxFileSize == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "maxFileSize"); + } + this.maxFileSize = maxFileSize; return this; } @CustomType.Setter public Builder memberCheck(Boolean memberCheck) { - this.memberCheck = Objects.requireNonNull(memberCheck); + if (memberCheck == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "memberCheck"); + } + this.memberCheck = memberCheck; return this; } @CustomType.Setter public Builder preventSecrets(Boolean preventSecrets) { - this.preventSecrets = Objects.requireNonNull(preventSecrets); + if (preventSecrets == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "preventSecrets"); + } + this.preventSecrets = preventSecrets; return this; } @CustomType.Setter public Builder rejectUnsignedCommits(Boolean rejectUnsignedCommits) { - this.rejectUnsignedCommits = Objects.requireNonNull(rejectUnsignedCommits); + if (rejectUnsignedCommits == null) { + throw new MissingRequiredPropertyException("GetProjectPushRule", "rejectUnsignedCommits"); + } + this.rejectUnsignedCommits = rejectUnsignedCommits; return this; } public GetProjectPushRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java index 66d0071ee..fb10398e5 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectContainerExpirationPolicy; import com.pulumi.gitlab.outputs.GetProjectPushRule; import java.lang.Boolean; @@ -931,67 +932,106 @@ public Builder(GetProjectResult defaults) { @CustomType.Setter public Builder analyticsAccessLevel(String analyticsAccessLevel) { - this.analyticsAccessLevel = Objects.requireNonNull(analyticsAccessLevel); + if (analyticsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "analyticsAccessLevel"); + } + this.analyticsAccessLevel = analyticsAccessLevel; return this; } @CustomType.Setter public Builder archived(Boolean archived) { - this.archived = Objects.requireNonNull(archived); + if (archived == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "archived"); + } + this.archived = archived; return this; } @CustomType.Setter public Builder autoCancelPendingPipelines(String autoCancelPendingPipelines) { - this.autoCancelPendingPipelines = Objects.requireNonNull(autoCancelPendingPipelines); + if (autoCancelPendingPipelines == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "autoCancelPendingPipelines"); + } + this.autoCancelPendingPipelines = autoCancelPendingPipelines; return this; } @CustomType.Setter public Builder autoDevopsDeployStrategy(String autoDevopsDeployStrategy) { - this.autoDevopsDeployStrategy = Objects.requireNonNull(autoDevopsDeployStrategy); + if (autoDevopsDeployStrategy == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "autoDevopsDeployStrategy"); + } + this.autoDevopsDeployStrategy = autoDevopsDeployStrategy; return this; } @CustomType.Setter public Builder autoDevopsEnabled(Boolean autoDevopsEnabled) { - this.autoDevopsEnabled = Objects.requireNonNull(autoDevopsEnabled); + if (autoDevopsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "autoDevopsEnabled"); + } + this.autoDevopsEnabled = autoDevopsEnabled; return this; } @CustomType.Setter public Builder autocloseReferencedIssues(Boolean autocloseReferencedIssues) { - this.autocloseReferencedIssues = Objects.requireNonNull(autocloseReferencedIssues); + if (autocloseReferencedIssues == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "autocloseReferencedIssues"); + } + this.autocloseReferencedIssues = autocloseReferencedIssues; return this; } @CustomType.Setter public Builder buildGitStrategy(String buildGitStrategy) { - this.buildGitStrategy = Objects.requireNonNull(buildGitStrategy); + if (buildGitStrategy == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "buildGitStrategy"); + } + this.buildGitStrategy = buildGitStrategy; return this; } @CustomType.Setter public Builder buildTimeout(Integer buildTimeout) { - this.buildTimeout = Objects.requireNonNull(buildTimeout); + if (buildTimeout == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "buildTimeout"); + } + this.buildTimeout = buildTimeout; return this; } @CustomType.Setter public Builder buildsAccessLevel(String buildsAccessLevel) { - this.buildsAccessLevel = Objects.requireNonNull(buildsAccessLevel); + if (buildsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "buildsAccessLevel"); + } + this.buildsAccessLevel = buildsAccessLevel; return this; } @CustomType.Setter public Builder ciConfigPath(String ciConfigPath) { - this.ciConfigPath = Objects.requireNonNull(ciConfigPath); + if (ciConfigPath == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ciConfigPath"); + } + this.ciConfigPath = ciConfigPath; return this; } @CustomType.Setter public Builder ciDefaultGitDepth(Integer ciDefaultGitDepth) { - this.ciDefaultGitDepth = Objects.requireNonNull(ciDefaultGitDepth); + if (ciDefaultGitDepth == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ciDefaultGitDepth"); + } + this.ciDefaultGitDepth = ciDefaultGitDepth; return this; } @CustomType.Setter public Builder ciSeparatedCaches(Boolean ciSeparatedCaches) { - this.ciSeparatedCaches = Objects.requireNonNull(ciSeparatedCaches); + if (ciSeparatedCaches == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "ciSeparatedCaches"); + } + this.ciSeparatedCaches = ciSeparatedCaches; return this; } @CustomType.Setter public Builder containerExpirationPolicies(List containerExpirationPolicies) { - this.containerExpirationPolicies = Objects.requireNonNull(containerExpirationPolicies); + if (containerExpirationPolicies == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "containerExpirationPolicies"); + } + this.containerExpirationPolicies = containerExpirationPolicies; return this; } public Builder containerExpirationPolicies(GetProjectContainerExpirationPolicy... containerExpirationPolicies) { @@ -999,157 +1039,248 @@ public Builder containerExpirationPolicies(GetProjectContainerExpirationPolicy.. } @CustomType.Setter public Builder containerRegistryAccessLevel(String containerRegistryAccessLevel) { - this.containerRegistryAccessLevel = Objects.requireNonNull(containerRegistryAccessLevel); + if (containerRegistryAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "containerRegistryAccessLevel"); + } + this.containerRegistryAccessLevel = containerRegistryAccessLevel; return this; } @CustomType.Setter public Builder defaultBranch(String defaultBranch) { - this.defaultBranch = Objects.requireNonNull(defaultBranch); + if (defaultBranch == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "defaultBranch"); + } + this.defaultBranch = defaultBranch; 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 emailsDisabled(Boolean emailsDisabled) { - this.emailsDisabled = Objects.requireNonNull(emailsDisabled); + if (emailsDisabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "emailsDisabled"); + } + this.emailsDisabled = emailsDisabled; return this; } @CustomType.Setter public Builder emptyRepo(Boolean emptyRepo) { - this.emptyRepo = Objects.requireNonNull(emptyRepo); + if (emptyRepo == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "emptyRepo"); + } + this.emptyRepo = emptyRepo; return this; } @CustomType.Setter public Builder environmentsAccessLevel(String environmentsAccessLevel) { - this.environmentsAccessLevel = Objects.requireNonNull(environmentsAccessLevel); + if (environmentsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "environmentsAccessLevel"); + } + this.environmentsAccessLevel = environmentsAccessLevel; return this; } @CustomType.Setter public Builder externalAuthorizationClassificationLabel(String externalAuthorizationClassificationLabel) { - this.externalAuthorizationClassificationLabel = Objects.requireNonNull(externalAuthorizationClassificationLabel); + if (externalAuthorizationClassificationLabel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "externalAuthorizationClassificationLabel"); + } + this.externalAuthorizationClassificationLabel = externalAuthorizationClassificationLabel; return this; } @CustomType.Setter public Builder featureFlagsAccessLevel(String featureFlagsAccessLevel) { - this.featureFlagsAccessLevel = Objects.requireNonNull(featureFlagsAccessLevel); + if (featureFlagsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "featureFlagsAccessLevel"); + } + this.featureFlagsAccessLevel = featureFlagsAccessLevel; return this; } @CustomType.Setter public Builder forkingAccessLevel(String forkingAccessLevel) { - this.forkingAccessLevel = Objects.requireNonNull(forkingAccessLevel); + if (forkingAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "forkingAccessLevel"); + } + this.forkingAccessLevel = forkingAccessLevel; return this; } @CustomType.Setter public Builder httpUrlToRepo(String httpUrlToRepo) { - this.httpUrlToRepo = Objects.requireNonNull(httpUrlToRepo); + if (httpUrlToRepo == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "httpUrlToRepo"); + } + this.httpUrlToRepo = httpUrlToRepo; 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 importUrl(String importUrl) { - this.importUrl = Objects.requireNonNull(importUrl); + if (importUrl == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "importUrl"); + } + this.importUrl = importUrl; return this; } @CustomType.Setter public Builder infrastructureAccessLevel(String infrastructureAccessLevel) { - this.infrastructureAccessLevel = Objects.requireNonNull(infrastructureAccessLevel); + if (infrastructureAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "infrastructureAccessLevel"); + } + this.infrastructureAccessLevel = infrastructureAccessLevel; return this; } @CustomType.Setter public Builder issuesAccessLevel(String issuesAccessLevel) { - this.issuesAccessLevel = Objects.requireNonNull(issuesAccessLevel); + if (issuesAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "issuesAccessLevel"); + } + this.issuesAccessLevel = issuesAccessLevel; return this; } @CustomType.Setter public Builder issuesEnabled(Boolean issuesEnabled) { - this.issuesEnabled = Objects.requireNonNull(issuesEnabled); + if (issuesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "issuesEnabled"); + } + this.issuesEnabled = issuesEnabled; return this; } @CustomType.Setter public Builder keepLatestArtifact(Boolean keepLatestArtifact) { - this.keepLatestArtifact = Objects.requireNonNull(keepLatestArtifact); + if (keepLatestArtifact == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "keepLatestArtifact"); + } + this.keepLatestArtifact = keepLatestArtifact; return this; } @CustomType.Setter public Builder lfsEnabled(Boolean lfsEnabled) { - this.lfsEnabled = Objects.requireNonNull(lfsEnabled); + if (lfsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "lfsEnabled"); + } + this.lfsEnabled = lfsEnabled; return this; } @CustomType.Setter public Builder mergeCommitTemplate(String mergeCommitTemplate) { - this.mergeCommitTemplate = Objects.requireNonNull(mergeCommitTemplate); + if (mergeCommitTemplate == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "mergeCommitTemplate"); + } + this.mergeCommitTemplate = mergeCommitTemplate; return this; } @CustomType.Setter public Builder mergePipelinesEnabled(Boolean mergePipelinesEnabled) { - this.mergePipelinesEnabled = Objects.requireNonNull(mergePipelinesEnabled); + if (mergePipelinesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "mergePipelinesEnabled"); + } + this.mergePipelinesEnabled = mergePipelinesEnabled; return this; } @CustomType.Setter public Builder mergeRequestsAccessLevel(String mergeRequestsAccessLevel) { - this.mergeRequestsAccessLevel = Objects.requireNonNull(mergeRequestsAccessLevel); + if (mergeRequestsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "mergeRequestsAccessLevel"); + } + this.mergeRequestsAccessLevel = mergeRequestsAccessLevel; return this; } @CustomType.Setter public Builder mergeRequestsEnabled(Boolean mergeRequestsEnabled) { - this.mergeRequestsEnabled = Objects.requireNonNull(mergeRequestsEnabled); + if (mergeRequestsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "mergeRequestsEnabled"); + } + this.mergeRequestsEnabled = mergeRequestsEnabled; return this; } @CustomType.Setter public Builder mergeTrainsEnabled(Boolean mergeTrainsEnabled) { - this.mergeTrainsEnabled = Objects.requireNonNull(mergeTrainsEnabled); + if (mergeTrainsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "mergeTrainsEnabled"); + } + this.mergeTrainsEnabled = mergeTrainsEnabled; return this; } @CustomType.Setter public Builder monitorAccessLevel(String monitorAccessLevel) { - this.monitorAccessLevel = Objects.requireNonNull(monitorAccessLevel); + if (monitorAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "monitorAccessLevel"); + } + this.monitorAccessLevel = monitorAccessLevel; 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 namespaceId(Integer namespaceId) { - this.namespaceId = Objects.requireNonNull(namespaceId); + if (namespaceId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "namespaceId"); + } + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder pathWithNamespace(String pathWithNamespace) { - this.pathWithNamespace = Objects.requireNonNull(pathWithNamespace); + if (pathWithNamespace == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "pathWithNamespace"); + } + this.pathWithNamespace = pathWithNamespace; return this; } @CustomType.Setter public Builder pipelinesEnabled(Boolean pipelinesEnabled) { - this.pipelinesEnabled = Objects.requireNonNull(pipelinesEnabled); + if (pipelinesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "pipelinesEnabled"); + } + this.pipelinesEnabled = pipelinesEnabled; return this; } @CustomType.Setter public Builder printingMergeRequestLinkEnabled(Boolean printingMergeRequestLinkEnabled) { - this.printingMergeRequestLinkEnabled = Objects.requireNonNull(printingMergeRequestLinkEnabled); + if (printingMergeRequestLinkEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "printingMergeRequestLinkEnabled"); + } + this.printingMergeRequestLinkEnabled = printingMergeRequestLinkEnabled; return this; } @CustomType.Setter public Builder publicBuilds(@Nullable Boolean publicBuilds) { + this.publicBuilds = publicBuilds; return this; } @CustomType.Setter public Builder pushRules(List pushRules) { - this.pushRules = Objects.requireNonNull(pushRules); + if (pushRules == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "pushRules"); + } + this.pushRules = pushRules; return this; } public Builder pushRules(GetProjectPushRule... pushRules) { @@ -1157,82 +1288,130 @@ public Builder pushRules(GetProjectPushRule... pushRules) { } @CustomType.Setter public Builder releasesAccessLevel(String releasesAccessLevel) { - this.releasesAccessLevel = Objects.requireNonNull(releasesAccessLevel); + if (releasesAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "releasesAccessLevel"); + } + this.releasesAccessLevel = releasesAccessLevel; return this; } @CustomType.Setter public Builder removeSourceBranchAfterMerge(Boolean removeSourceBranchAfterMerge) { - this.removeSourceBranchAfterMerge = Objects.requireNonNull(removeSourceBranchAfterMerge); + if (removeSourceBranchAfterMerge == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "removeSourceBranchAfterMerge"); + } + this.removeSourceBranchAfterMerge = removeSourceBranchAfterMerge; return this; } @CustomType.Setter public Builder repositoryAccessLevel(String repositoryAccessLevel) { - this.repositoryAccessLevel = Objects.requireNonNull(repositoryAccessLevel); + if (repositoryAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "repositoryAccessLevel"); + } + this.repositoryAccessLevel = repositoryAccessLevel; return this; } @CustomType.Setter public Builder repositoryStorage(String repositoryStorage) { - this.repositoryStorage = Objects.requireNonNull(repositoryStorage); + if (repositoryStorage == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "repositoryStorage"); + } + this.repositoryStorage = repositoryStorage; return this; } @CustomType.Setter public Builder requestAccessEnabled(Boolean requestAccessEnabled) { - this.requestAccessEnabled = Objects.requireNonNull(requestAccessEnabled); + if (requestAccessEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "requestAccessEnabled"); + } + this.requestAccessEnabled = requestAccessEnabled; return this; } @CustomType.Setter public Builder requirementsAccessLevel(String requirementsAccessLevel) { - this.requirementsAccessLevel = Objects.requireNonNull(requirementsAccessLevel); + if (requirementsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "requirementsAccessLevel"); + } + this.requirementsAccessLevel = requirementsAccessLevel; return this; } @CustomType.Setter public Builder resolveOutdatedDiffDiscussions(Boolean resolveOutdatedDiffDiscussions) { - this.resolveOutdatedDiffDiscussions = Objects.requireNonNull(resolveOutdatedDiffDiscussions); + if (resolveOutdatedDiffDiscussions == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "resolveOutdatedDiffDiscussions"); + } + this.resolveOutdatedDiffDiscussions = resolveOutdatedDiffDiscussions; return this; } @CustomType.Setter public Builder restrictUserDefinedVariables(Boolean restrictUserDefinedVariables) { - this.restrictUserDefinedVariables = Objects.requireNonNull(restrictUserDefinedVariables); + if (restrictUserDefinedVariables == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "restrictUserDefinedVariables"); + } + this.restrictUserDefinedVariables = restrictUserDefinedVariables; return this; } @CustomType.Setter public Builder runnersToken(String runnersToken) { - this.runnersToken = Objects.requireNonNull(runnersToken); + if (runnersToken == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "runnersToken"); + } + this.runnersToken = runnersToken; return this; } @CustomType.Setter public Builder securityAndComplianceAccessLevel(String securityAndComplianceAccessLevel) { - this.securityAndComplianceAccessLevel = Objects.requireNonNull(securityAndComplianceAccessLevel); + if (securityAndComplianceAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "securityAndComplianceAccessLevel"); + } + this.securityAndComplianceAccessLevel = securityAndComplianceAccessLevel; return this; } @CustomType.Setter public Builder snippetsAccessLevel(String snippetsAccessLevel) { - this.snippetsAccessLevel = Objects.requireNonNull(snippetsAccessLevel); + if (snippetsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "snippetsAccessLevel"); + } + this.snippetsAccessLevel = snippetsAccessLevel; return this; } @CustomType.Setter public Builder snippetsEnabled(Boolean snippetsEnabled) { - this.snippetsEnabled = Objects.requireNonNull(snippetsEnabled); + if (snippetsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "snippetsEnabled"); + } + this.snippetsEnabled = snippetsEnabled; return this; } @CustomType.Setter public Builder squashCommitTemplate(String squashCommitTemplate) { - this.squashCommitTemplate = Objects.requireNonNull(squashCommitTemplate); + if (squashCommitTemplate == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "squashCommitTemplate"); + } + this.squashCommitTemplate = squashCommitTemplate; return this; } @CustomType.Setter public Builder sshUrlToRepo(String sshUrlToRepo) { - this.sshUrlToRepo = Objects.requireNonNull(sshUrlToRepo); + if (sshUrlToRepo == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "sshUrlToRepo"); + } + this.sshUrlToRepo = sshUrlToRepo; return this; } @CustomType.Setter public Builder suggestionCommitMessage(String suggestionCommitMessage) { - this.suggestionCommitMessage = Objects.requireNonNull(suggestionCommitMessage); + if (suggestionCommitMessage == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "suggestionCommitMessage"); + } + this.suggestionCommitMessage = suggestionCommitMessage; return this; } @CustomType.Setter public Builder topics(List topics) { - this.topics = Objects.requireNonNull(topics); + if (topics == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "topics"); + } + this.topics = topics; return this; } public Builder topics(String... topics) { @@ -1240,22 +1419,34 @@ public Builder topics(String... topics) { } @CustomType.Setter public Builder visibilityLevel(String visibilityLevel) { - this.visibilityLevel = Objects.requireNonNull(visibilityLevel); + if (visibilityLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "visibilityLevel"); + } + this.visibilityLevel = visibilityLevel; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder wikiAccessLevel(String wikiAccessLevel) { - this.wikiAccessLevel = Objects.requireNonNull(wikiAccessLevel); + if (wikiAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "wikiAccessLevel"); + } + this.wikiAccessLevel = wikiAccessLevel; return this; } @CustomType.Setter public Builder wikiEnabled(Boolean wikiEnabled) { - this.wikiEnabled = Objects.requireNonNull(wikiEnabled); + if (wikiEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "wikiEnabled"); + } + this.wikiEnabled = wikiEnabled; return this; } public GetProjectResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagCommit.java index b53c3fe37..0dda06c8d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagCommit.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -95,47 +96,74 @@ public Builder(GetProjectTagCommit defaults) { @CustomType.Setter public Builder authorEmail(String authorEmail) { - this.authorEmail = Objects.requireNonNull(authorEmail); + if (authorEmail == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "authorEmail"); + } + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(String authorName) { - this.authorName = Objects.requireNonNull(authorName); + if (authorName == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "authorName"); + } + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(String authoredDate) { - this.authoredDate = Objects.requireNonNull(authoredDate); + if (authoredDate == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "authoredDate"); + } + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(String committedDate) { - this.committedDate = Objects.requireNonNull(committedDate); + if (committedDate == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "committedDate"); + } + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(String committerEmail) { - this.committerEmail = Objects.requireNonNull(committerEmail); + if (committerEmail == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "committerEmail"); + } + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(String committerName) { - this.committerName = Objects.requireNonNull(committerName); + if (committerName == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "committerName"); + } + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder parentIds(List parentIds) { - this.parentIds = Objects.requireNonNull(parentIds); + if (parentIds == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "parentIds"); + } + this.parentIds = parentIds; return this; } public Builder parentIds(String... parentIds) { @@ -143,12 +171,18 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(String shortId) { - this.shortId = Objects.requireNonNull(shortId); + if (shortId == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "shortId"); + } + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectTagCommit", "title"); + } + this.title = title; return this; } public GetProjectTagCommit build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagRelease.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagRelease.java index 9f9af84f7..45642b95a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagRelease.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagRelease.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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(GetProjectTagRelease defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectTagRelease", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder tagName(String tagName) { - this.tagName = Objects.requireNonNull(tagName); + if (tagName == null) { + throw new MissingRequiredPropertyException("GetProjectTagRelease", "tagName"); + } + this.tagName = tagName; return this; } public GetProjectTagRelease build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagResult.java index e24c8c1d9..a58c30bc8 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectTagCommit; import com.pulumi.gitlab.outputs.GetProjectTagRelease; import java.lang.Boolean; @@ -144,7 +145,10 @@ public Builder(GetProjectTagResult defaults) { @CustomType.Setter public Builder commits(List commits) { - this.commits = Objects.requireNonNull(commits); + if (commits == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "commits"); + } + this.commits = commits; return this; } public Builder commits(GetProjectTagCommit... commits) { @@ -152,32 +156,50 @@ public Builder commits(GetProjectTagCommit... commits) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "project"); + } + this.project = project; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder releases(List releases) { - this.releases = Objects.requireNonNull(releases); + if (releases == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "releases"); + } + this.releases = releases; return this; } public Builder releases(GetProjectTagRelease... releases) { @@ -185,7 +207,10 @@ public Builder releases(GetProjectTagRelease... releases) { } @CustomType.Setter public Builder target(String target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("GetProjectTagResult", "target"); + } + this.target = target; return this; } public GetProjectTagResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsResult.java index 8f1ac32e8..1caa7e221 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectTagsTag; import java.lang.String; import java.util.List; @@ -116,32 +117,44 @@ public Builder(GetProjectTagsResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectTagsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orderBy(@Nullable String orderBy) { + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectTagsResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder sort(@Nullable String sort) { + this.sort = sort; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetProjectTagsResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(GetProjectTagsTag... tags) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTag.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTag.java index 8c0128d85..f5a09638a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTag.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTag.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectTagsTagCommit; import com.pulumi.gitlab.outputs.GetProjectTagsTagRelease; import java.lang.Boolean; @@ -68,7 +69,10 @@ public Builder(GetProjectTagsTag defaults) { @CustomType.Setter public Builder commits(List commits) { - this.commits = Objects.requireNonNull(commits); + if (commits == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "commits"); + } + this.commits = commits; return this; } public Builder commits(GetProjectTagsTagCommit... commits) { @@ -76,22 +80,34 @@ public Builder commits(GetProjectTagsTagCommit... commits) { } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "name"); + } + this.name = name; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder releases(List releases) { - this.releases = Objects.requireNonNull(releases); + if (releases == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "releases"); + } + this.releases = releases; return this; } public Builder releases(GetProjectTagsTagRelease... releases) { @@ -99,7 +115,10 @@ public Builder releases(GetProjectTagsTagRelease... releases) { } @CustomType.Setter public Builder target(String target) { - this.target = Objects.requireNonNull(target); + if (target == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTag", "target"); + } + this.target = target; return this; } public GetProjectTagsTag build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagCommit.java index b4c9b3627..beba0cd8d 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagCommit.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -95,47 +96,74 @@ public Builder(GetProjectTagsTagCommit defaults) { @CustomType.Setter public Builder authorEmail(String authorEmail) { - this.authorEmail = Objects.requireNonNull(authorEmail); + if (authorEmail == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "authorEmail"); + } + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(String authorName) { - this.authorName = Objects.requireNonNull(authorName); + if (authorName == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "authorName"); + } + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(String authoredDate) { - this.authoredDate = Objects.requireNonNull(authoredDate); + if (authoredDate == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "authoredDate"); + } + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(String committedDate) { - this.committedDate = Objects.requireNonNull(committedDate); + if (committedDate == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "committedDate"); + } + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(String committerEmail) { - this.committerEmail = Objects.requireNonNull(committerEmail); + if (committerEmail == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "committerEmail"); + } + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(String committerName) { - this.committerName = Objects.requireNonNull(committerName); + if (committerName == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "committerName"); + } + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder message(String message) { - this.message = Objects.requireNonNull(message); + if (message == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "message"); + } + this.message = message; return this; } @CustomType.Setter public Builder parentIds(List parentIds) { - this.parentIds = Objects.requireNonNull(parentIds); + if (parentIds == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "parentIds"); + } + this.parentIds = parentIds; return this; } public Builder parentIds(String... parentIds) { @@ -143,12 +171,18 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(String shortId) { - this.shortId = Objects.requireNonNull(shortId); + if (shortId == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "shortId"); + } + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagCommit", "title"); + } + this.title = title; return this; } public GetProjectTagsTagCommit build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagRelease.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagRelease.java index d9a4aac54..11d4b877e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagRelease.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectTagsTagRelease.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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(GetProjectTagsTagRelease defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagRelease", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder tagName(String tagName) { - this.tagName = Objects.requireNonNull(tagName); + if (tagName == null) { + throw new MissingRequiredPropertyException("GetProjectTagsTagRelease", "tagName"); + } + this.tagName = tagName; return this; } public GetProjectTagsTagRelease build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java index 0d5f82091..80fdbfdd6 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariableResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -155,47 +156,74 @@ public Builder(GetProjectVariableResult defaults) { @CustomType.Setter public Builder environmentScope(String environmentScope) { - this.environmentScope = Objects.requireNonNull(environmentScope); + if (environmentScope == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "environmentScope"); + } + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "project"); + } + this.project = project; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetProjectVariableResult", "variableType"); + } + this.variableType = variableType; return this; } public GetProjectVariableResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesResult.java index cc15cb315..85e61e8d9 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectVariablesVariable; import java.lang.String; import java.util.List; @@ -88,22 +89,32 @@ public Builder(GetProjectVariablesResult defaults) { @CustomType.Setter public Builder environmentScope(@Nullable String environmentScope) { + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder variables(List variables) { - this.variables = Objects.requireNonNull(variables); + if (variables == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesResult", "variables"); + } + this.variables = variables; return this; } public Builder variables(GetProjectVariablesVariable... variables) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java index 6007bec70..fc94b8d8a 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectVariablesVariable.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -77,42 +78,66 @@ public Builder(GetProjectVariablesVariable defaults) { @CustomType.Setter public Builder environmentScope(String environmentScope) { - this.environmentScope = Objects.requireNonNull(environmentScope); + if (environmentScope == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "environmentScope"); + } + this.environmentScope = environmentScope; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder masked(Boolean masked) { - this.masked = Objects.requireNonNull(masked); + if (masked == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "masked"); + } + this.masked = masked; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "project"); + } + this.project = project; return this; } @CustomType.Setter("protected") public Builder protected_(Boolean protected_) { - this.protected_ = Objects.requireNonNull(protected_); + if (protected_ == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "protected_"); + } + this.protected_ = protected_; return this; } @CustomType.Setter public Builder raw(Boolean raw) { - this.raw = Objects.requireNonNull(raw); + if (raw == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "raw"); + } + this.raw = raw; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "value"); + } + this.value = value; return this; } @CustomType.Setter public Builder variableType(String variableType) { - this.variableType = Objects.requireNonNull(variableType); + if (variableType == null) { + throw new MissingRequiredPropertyException("GetProjectVariablesVariable", "variableType"); + } + this.variableType = variableType; return this; } public GetProjectVariablesVariable build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java index 2e9357de1..5625cfaae 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProject.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectsProjectContainerExpirationPolicy; import com.pulumi.gitlab.outputs.GetProjectsProjectForkedFromProject; import com.pulumi.gitlab.outputs.GetProjectsProjectNamespace; @@ -608,92 +609,146 @@ public Builder(GetProjectsProject defaults) { @CustomType.Setter public Builder _links(Map _links) { - this._links = Objects.requireNonNull(_links); + if (_links == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "_links"); + } + this._links = _links; return this; } @CustomType.Setter public Builder allowMergeOnSkippedPipeline(Boolean allowMergeOnSkippedPipeline) { - this.allowMergeOnSkippedPipeline = Objects.requireNonNull(allowMergeOnSkippedPipeline); + if (allowMergeOnSkippedPipeline == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "allowMergeOnSkippedPipeline"); + } + this.allowMergeOnSkippedPipeline = allowMergeOnSkippedPipeline; return this; } @CustomType.Setter public Builder analyticsAccessLevel(String analyticsAccessLevel) { - this.analyticsAccessLevel = Objects.requireNonNull(analyticsAccessLevel); + if (analyticsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "analyticsAccessLevel"); + } + this.analyticsAccessLevel = analyticsAccessLevel; return this; } @CustomType.Setter public Builder approvalsBeforeMerge(Integer approvalsBeforeMerge) { - this.approvalsBeforeMerge = Objects.requireNonNull(approvalsBeforeMerge); + if (approvalsBeforeMerge == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "approvalsBeforeMerge"); + } + this.approvalsBeforeMerge = approvalsBeforeMerge; return this; } @CustomType.Setter public Builder archived(Boolean archived) { - this.archived = Objects.requireNonNull(archived); + if (archived == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "archived"); + } + this.archived = archived; return this; } @CustomType.Setter public Builder autoCancelPendingPipelines(String autoCancelPendingPipelines) { - this.autoCancelPendingPipelines = Objects.requireNonNull(autoCancelPendingPipelines); + if (autoCancelPendingPipelines == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "autoCancelPendingPipelines"); + } + this.autoCancelPendingPipelines = autoCancelPendingPipelines; return this; } @CustomType.Setter public Builder autoDevopsDeployStrategy(String autoDevopsDeployStrategy) { - this.autoDevopsDeployStrategy = Objects.requireNonNull(autoDevopsDeployStrategy); + if (autoDevopsDeployStrategy == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "autoDevopsDeployStrategy"); + } + this.autoDevopsDeployStrategy = autoDevopsDeployStrategy; return this; } @CustomType.Setter public Builder autoDevopsEnabled(Boolean autoDevopsEnabled) { - this.autoDevopsEnabled = Objects.requireNonNull(autoDevopsEnabled); + if (autoDevopsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "autoDevopsEnabled"); + } + this.autoDevopsEnabled = autoDevopsEnabled; return this; } @CustomType.Setter public Builder autocloseReferencedIssues(Boolean autocloseReferencedIssues) { - this.autocloseReferencedIssues = Objects.requireNonNull(autocloseReferencedIssues); + if (autocloseReferencedIssues == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "autocloseReferencedIssues"); + } + this.autocloseReferencedIssues = autocloseReferencedIssues; return this; } @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder buildCoverageRegex(String buildCoverageRegex) { - this.buildCoverageRegex = Objects.requireNonNull(buildCoverageRegex); + if (buildCoverageRegex == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "buildCoverageRegex"); + } + this.buildCoverageRegex = buildCoverageRegex; return this; } @CustomType.Setter public Builder buildGitStrategy(String buildGitStrategy) { - this.buildGitStrategy = Objects.requireNonNull(buildGitStrategy); + if (buildGitStrategy == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "buildGitStrategy"); + } + this.buildGitStrategy = buildGitStrategy; return this; } @CustomType.Setter public Builder buildTimeout(Integer buildTimeout) { - this.buildTimeout = Objects.requireNonNull(buildTimeout); + if (buildTimeout == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "buildTimeout"); + } + this.buildTimeout = buildTimeout; return this; } @CustomType.Setter public Builder buildsAccessLevel(String buildsAccessLevel) { - this.buildsAccessLevel = Objects.requireNonNull(buildsAccessLevel); + if (buildsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "buildsAccessLevel"); + } + this.buildsAccessLevel = buildsAccessLevel; return this; } @CustomType.Setter public Builder ciConfigPath(String ciConfigPath) { - this.ciConfigPath = Objects.requireNonNull(ciConfigPath); + if (ciConfigPath == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ciConfigPath"); + } + this.ciConfigPath = ciConfigPath; return this; } @CustomType.Setter public Builder ciDefaultGitDepth(Integer ciDefaultGitDepth) { - this.ciDefaultGitDepth = Objects.requireNonNull(ciDefaultGitDepth); + if (ciDefaultGitDepth == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ciDefaultGitDepth"); + } + this.ciDefaultGitDepth = ciDefaultGitDepth; return this; } @CustomType.Setter public Builder ciForwardDeploymentEnabled(Boolean ciForwardDeploymentEnabled) { - this.ciForwardDeploymentEnabled = Objects.requireNonNull(ciForwardDeploymentEnabled); + if (ciForwardDeploymentEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "ciForwardDeploymentEnabled"); + } + this.ciForwardDeploymentEnabled = ciForwardDeploymentEnabled; return this; } @CustomType.Setter public Builder containerExpirationPolicies(List containerExpirationPolicies) { - this.containerExpirationPolicies = Objects.requireNonNull(containerExpirationPolicies); + if (containerExpirationPolicies == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "containerExpirationPolicies"); + } + this.containerExpirationPolicies = containerExpirationPolicies; return this; } public Builder containerExpirationPolicies(GetProjectsProjectContainerExpirationPolicy... containerExpirationPolicies) { @@ -701,67 +756,106 @@ public Builder containerExpirationPolicies(GetProjectsProjectContainerExpiration } @CustomType.Setter public Builder containerRegistryAccessLevel(String containerRegistryAccessLevel) { - this.containerRegistryAccessLevel = Objects.requireNonNull(containerRegistryAccessLevel); + if (containerRegistryAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "containerRegistryAccessLevel"); + } + this.containerRegistryAccessLevel = containerRegistryAccessLevel; return this; } @CustomType.Setter public Builder containerRegistryEnabled(Boolean containerRegistryEnabled) { - this.containerRegistryEnabled = Objects.requireNonNull(containerRegistryEnabled); + if (containerRegistryEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "containerRegistryEnabled"); + } + this.containerRegistryEnabled = containerRegistryEnabled; return this; } @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 creatorId(Integer creatorId) { - this.creatorId = Objects.requireNonNull(creatorId); + if (creatorId == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "creatorId"); + } + this.creatorId = creatorId; return this; } @CustomType.Setter public Builder customAttributes(List> customAttributes) { - this.customAttributes = Objects.requireNonNull(customAttributes); + if (customAttributes == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "customAttributes"); + } + this.customAttributes = customAttributes; return this; } @CustomType.Setter public Builder defaultBranch(String defaultBranch) { - this.defaultBranch = Objects.requireNonNull(defaultBranch); + if (defaultBranch == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "defaultBranch"); + } + this.defaultBranch = defaultBranch; 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 emailsDisabled(Boolean emailsDisabled) { - this.emailsDisabled = Objects.requireNonNull(emailsDisabled); + if (emailsDisabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "emailsDisabled"); + } + this.emailsDisabled = emailsDisabled; return this; } @CustomType.Setter public Builder emptyRepo(Boolean emptyRepo) { - this.emptyRepo = Objects.requireNonNull(emptyRepo); + if (emptyRepo == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "emptyRepo"); + } + this.emptyRepo = emptyRepo; return this; } @CustomType.Setter public Builder environmentsAccessLevel(String environmentsAccessLevel) { - this.environmentsAccessLevel = Objects.requireNonNull(environmentsAccessLevel); + if (environmentsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "environmentsAccessLevel"); + } + this.environmentsAccessLevel = environmentsAccessLevel; return this; } @CustomType.Setter public Builder externalAuthorizationClassificationLabel(String externalAuthorizationClassificationLabel) { - this.externalAuthorizationClassificationLabel = Objects.requireNonNull(externalAuthorizationClassificationLabel); + if (externalAuthorizationClassificationLabel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "externalAuthorizationClassificationLabel"); + } + this.externalAuthorizationClassificationLabel = externalAuthorizationClassificationLabel; return this; } @CustomType.Setter public Builder featureFlagsAccessLevel(String featureFlagsAccessLevel) { - this.featureFlagsAccessLevel = Objects.requireNonNull(featureFlagsAccessLevel); + if (featureFlagsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "featureFlagsAccessLevel"); + } + this.featureFlagsAccessLevel = featureFlagsAccessLevel; return this; } @CustomType.Setter public Builder forkedFromProjects(List forkedFromProjects) { - this.forkedFromProjects = Objects.requireNonNull(forkedFromProjects); + if (forkedFromProjects == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "forkedFromProjects"); + } + this.forkedFromProjects = forkedFromProjects; return this; } public Builder forkedFromProjects(GetProjectsProjectForkedFromProject... forkedFromProjects) { @@ -769,142 +863,226 @@ public Builder forkedFromProjects(GetProjectsProjectForkedFromProject... forkedF } @CustomType.Setter public Builder forkingAccessLevel(String forkingAccessLevel) { - this.forkingAccessLevel = Objects.requireNonNull(forkingAccessLevel); + if (forkingAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "forkingAccessLevel"); + } + this.forkingAccessLevel = forkingAccessLevel; return this; } @CustomType.Setter public Builder forksCount(Integer forksCount) { - this.forksCount = Objects.requireNonNull(forksCount); + if (forksCount == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "forksCount"); + } + this.forksCount = forksCount; return this; } @CustomType.Setter public Builder httpUrlToRepo(String httpUrlToRepo) { - this.httpUrlToRepo = Objects.requireNonNull(httpUrlToRepo); + if (httpUrlToRepo == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "httpUrlToRepo"); + } + this.httpUrlToRepo = httpUrlToRepo; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder importError(String importError) { - this.importError = Objects.requireNonNull(importError); + if (importError == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "importError"); + } + this.importError = importError; return this; } @CustomType.Setter public Builder importStatus(String importStatus) { - this.importStatus = Objects.requireNonNull(importStatus); + if (importStatus == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "importStatus"); + } + this.importStatus = importStatus; return this; } @CustomType.Setter public Builder importUrl(String importUrl) { - this.importUrl = Objects.requireNonNull(importUrl); + if (importUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "importUrl"); + } + this.importUrl = importUrl; return this; } @CustomType.Setter public Builder infrastructureAccessLevel(String infrastructureAccessLevel) { - this.infrastructureAccessLevel = Objects.requireNonNull(infrastructureAccessLevel); + if (infrastructureAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "infrastructureAccessLevel"); + } + this.infrastructureAccessLevel = infrastructureAccessLevel; return this; } @CustomType.Setter public Builder issuesAccessLevel(String issuesAccessLevel) { - this.issuesAccessLevel = Objects.requireNonNull(issuesAccessLevel); + if (issuesAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "issuesAccessLevel"); + } + this.issuesAccessLevel = issuesAccessLevel; return this; } @CustomType.Setter public Builder issuesEnabled(Boolean issuesEnabled) { - this.issuesEnabled = Objects.requireNonNull(issuesEnabled); + if (issuesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "issuesEnabled"); + } + this.issuesEnabled = issuesEnabled; return this; } @CustomType.Setter public Builder jobsEnabled(Boolean jobsEnabled) { - this.jobsEnabled = Objects.requireNonNull(jobsEnabled); + if (jobsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "jobsEnabled"); + } + this.jobsEnabled = jobsEnabled; return this; } @CustomType.Setter public Builder keepLatestArtifact(Boolean keepLatestArtifact) { - this.keepLatestArtifact = Objects.requireNonNull(keepLatestArtifact); + if (keepLatestArtifact == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "keepLatestArtifact"); + } + this.keepLatestArtifact = keepLatestArtifact; return this; } @CustomType.Setter public Builder lastActivityAt(String lastActivityAt) { - this.lastActivityAt = Objects.requireNonNull(lastActivityAt); + if (lastActivityAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "lastActivityAt"); + } + this.lastActivityAt = lastActivityAt; return this; } @CustomType.Setter public Builder lfsEnabled(Boolean lfsEnabled) { - this.lfsEnabled = Objects.requireNonNull(lfsEnabled); + if (lfsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "lfsEnabled"); + } + this.lfsEnabled = lfsEnabled; return this; } @CustomType.Setter public Builder mergeCommitTemplate(String mergeCommitTemplate) { - this.mergeCommitTemplate = Objects.requireNonNull(mergeCommitTemplate); + if (mergeCommitTemplate == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergeCommitTemplate"); + } + this.mergeCommitTemplate = mergeCommitTemplate; return this; } @CustomType.Setter public Builder mergeMethod(String mergeMethod) { - this.mergeMethod = Objects.requireNonNull(mergeMethod); + if (mergeMethod == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergeMethod"); + } + this.mergeMethod = mergeMethod; return this; } @CustomType.Setter public Builder mergePipelinesEnabled(Boolean mergePipelinesEnabled) { - this.mergePipelinesEnabled = Objects.requireNonNull(mergePipelinesEnabled); + if (mergePipelinesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergePipelinesEnabled"); + } + this.mergePipelinesEnabled = mergePipelinesEnabled; return this; } @CustomType.Setter public Builder mergeRequestsAccessLevel(String mergeRequestsAccessLevel) { - this.mergeRequestsAccessLevel = Objects.requireNonNull(mergeRequestsAccessLevel); + if (mergeRequestsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergeRequestsAccessLevel"); + } + this.mergeRequestsAccessLevel = mergeRequestsAccessLevel; return this; } @CustomType.Setter public Builder mergeRequestsEnabled(Boolean mergeRequestsEnabled) { - this.mergeRequestsEnabled = Objects.requireNonNull(mergeRequestsEnabled); + if (mergeRequestsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergeRequestsEnabled"); + } + this.mergeRequestsEnabled = mergeRequestsEnabled; return this; } @CustomType.Setter public Builder mergeTrainsEnabled(Boolean mergeTrainsEnabled) { - this.mergeTrainsEnabled = Objects.requireNonNull(mergeTrainsEnabled); + if (mergeTrainsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mergeTrainsEnabled"); + } + this.mergeTrainsEnabled = mergeTrainsEnabled; return this; } @CustomType.Setter public Builder mirror(Boolean mirror) { - this.mirror = Objects.requireNonNull(mirror); + if (mirror == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mirror"); + } + this.mirror = mirror; return this; } @CustomType.Setter public Builder mirrorOverwritesDivergedBranches(Boolean mirrorOverwritesDivergedBranches) { - this.mirrorOverwritesDivergedBranches = Objects.requireNonNull(mirrorOverwritesDivergedBranches); + if (mirrorOverwritesDivergedBranches == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mirrorOverwritesDivergedBranches"); + } + this.mirrorOverwritesDivergedBranches = mirrorOverwritesDivergedBranches; return this; } @CustomType.Setter public Builder mirrorTriggerBuilds(Boolean mirrorTriggerBuilds) { - this.mirrorTriggerBuilds = Objects.requireNonNull(mirrorTriggerBuilds); + if (mirrorTriggerBuilds == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mirrorTriggerBuilds"); + } + this.mirrorTriggerBuilds = mirrorTriggerBuilds; return this; } @CustomType.Setter public Builder mirrorUserId(Integer mirrorUserId) { - this.mirrorUserId = Objects.requireNonNull(mirrorUserId); + if (mirrorUserId == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "mirrorUserId"); + } + this.mirrorUserId = mirrorUserId; return this; } @CustomType.Setter public Builder monitorAccessLevel(String monitorAccessLevel) { - this.monitorAccessLevel = Objects.requireNonNull(monitorAccessLevel); + if (monitorAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "monitorAccessLevel"); + } + this.monitorAccessLevel = monitorAccessLevel; 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 nameWithNamespace(String nameWithNamespace) { - this.nameWithNamespace = Objects.requireNonNull(nameWithNamespace); + if (nameWithNamespace == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "nameWithNamespace"); + } + this.nameWithNamespace = nameWithNamespace; return this; } @CustomType.Setter public Builder namespaces(List namespaces) { - this.namespaces = Objects.requireNonNull(namespaces); + if (namespaces == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "namespaces"); + } + this.namespaces = namespaces; return this; } public Builder namespaces(GetProjectsProjectNamespace... namespaces) { @@ -912,27 +1090,42 @@ public Builder namespaces(GetProjectsProjectNamespace... namespaces) { } @CustomType.Setter public Builder onlyAllowMergeIfAllDiscussionsAreResolved(Boolean onlyAllowMergeIfAllDiscussionsAreResolved) { - this.onlyAllowMergeIfAllDiscussionsAreResolved = Objects.requireNonNull(onlyAllowMergeIfAllDiscussionsAreResolved); + if (onlyAllowMergeIfAllDiscussionsAreResolved == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "onlyAllowMergeIfAllDiscussionsAreResolved"); + } + this.onlyAllowMergeIfAllDiscussionsAreResolved = onlyAllowMergeIfAllDiscussionsAreResolved; return this; } @CustomType.Setter public Builder onlyAllowMergeIfPipelineSucceeds(Boolean onlyAllowMergeIfPipelineSucceeds) { - this.onlyAllowMergeIfPipelineSucceeds = Objects.requireNonNull(onlyAllowMergeIfPipelineSucceeds); + if (onlyAllowMergeIfPipelineSucceeds == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "onlyAllowMergeIfPipelineSucceeds"); + } + this.onlyAllowMergeIfPipelineSucceeds = onlyAllowMergeIfPipelineSucceeds; return this; } @CustomType.Setter public Builder onlyMirrorProtectedBranches(Boolean onlyMirrorProtectedBranches) { - this.onlyMirrorProtectedBranches = Objects.requireNonNull(onlyMirrorProtectedBranches); + if (onlyMirrorProtectedBranches == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "onlyMirrorProtectedBranches"); + } + this.onlyMirrorProtectedBranches = onlyMirrorProtectedBranches; return this; } @CustomType.Setter public Builder openIssuesCount(Integer openIssuesCount) { - this.openIssuesCount = Objects.requireNonNull(openIssuesCount); + if (openIssuesCount == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "openIssuesCount"); + } + this.openIssuesCount = openIssuesCount; return this; } @CustomType.Setter public Builder owners(List owners) { - this.owners = Objects.requireNonNull(owners); + if (owners == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "owners"); + } + this.owners = owners; return this; } public Builder owners(GetProjectsProjectOwner... owners) { @@ -940,22 +1133,34 @@ public Builder owners(GetProjectsProjectOwner... owners) { } @CustomType.Setter public Builder packagesEnabled(Boolean packagesEnabled) { - this.packagesEnabled = Objects.requireNonNull(packagesEnabled); + if (packagesEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "packagesEnabled"); + } + this.packagesEnabled = packagesEnabled; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder pathWithNamespace(String pathWithNamespace) { - this.pathWithNamespace = Objects.requireNonNull(pathWithNamespace); + if (pathWithNamespace == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "pathWithNamespace"); + } + this.pathWithNamespace = pathWithNamespace; return this; } @CustomType.Setter public Builder permissions(List permissions) { - this.permissions = Objects.requireNonNull(permissions); + if (permissions == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "permissions"); + } + this.permissions = permissions; return this; } public Builder permissions(GetProjectsProjectPermission... permissions) { @@ -963,72 +1168,114 @@ public Builder permissions(GetProjectsProjectPermission... permissions) { } @CustomType.Setter("public") public Builder public_(Boolean public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "public_"); + } + this.public_ = public_; return this; } @CustomType.Setter public Builder publicBuilds(Boolean publicBuilds) { - this.publicBuilds = Objects.requireNonNull(publicBuilds); + if (publicBuilds == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "publicBuilds"); + } + this.publicBuilds = publicBuilds; return this; } @CustomType.Setter public Builder readmeUrl(String readmeUrl) { - this.readmeUrl = Objects.requireNonNull(readmeUrl); + if (readmeUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "readmeUrl"); + } + this.readmeUrl = readmeUrl; return this; } @CustomType.Setter public Builder releasesAccessLevel(String releasesAccessLevel) { - this.releasesAccessLevel = Objects.requireNonNull(releasesAccessLevel); + if (releasesAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "releasesAccessLevel"); + } + this.releasesAccessLevel = releasesAccessLevel; return this; } @CustomType.Setter public Builder repositoryAccessLevel(String repositoryAccessLevel) { - this.repositoryAccessLevel = Objects.requireNonNull(repositoryAccessLevel); + if (repositoryAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "repositoryAccessLevel"); + } + this.repositoryAccessLevel = repositoryAccessLevel; return this; } @CustomType.Setter public Builder repositoryStorage(String repositoryStorage) { - this.repositoryStorage = Objects.requireNonNull(repositoryStorage); + if (repositoryStorage == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "repositoryStorage"); + } + this.repositoryStorage = repositoryStorage; return this; } @CustomType.Setter public Builder requestAccessEnabled(Boolean requestAccessEnabled) { - this.requestAccessEnabled = Objects.requireNonNull(requestAccessEnabled); + if (requestAccessEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "requestAccessEnabled"); + } + this.requestAccessEnabled = requestAccessEnabled; return this; } @CustomType.Setter public Builder requirementsAccessLevel(String requirementsAccessLevel) { - this.requirementsAccessLevel = Objects.requireNonNull(requirementsAccessLevel); + if (requirementsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "requirementsAccessLevel"); + } + this.requirementsAccessLevel = requirementsAccessLevel; return this; } @CustomType.Setter public Builder resolveOutdatedDiffDiscussions(Boolean resolveOutdatedDiffDiscussions) { - this.resolveOutdatedDiffDiscussions = Objects.requireNonNull(resolveOutdatedDiffDiscussions); + if (resolveOutdatedDiffDiscussions == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "resolveOutdatedDiffDiscussions"); + } + this.resolveOutdatedDiffDiscussions = resolveOutdatedDiffDiscussions; return this; } @CustomType.Setter public Builder restrictUserDefinedVariables(Boolean restrictUserDefinedVariables) { - this.restrictUserDefinedVariables = Objects.requireNonNull(restrictUserDefinedVariables); + if (restrictUserDefinedVariables == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "restrictUserDefinedVariables"); + } + this.restrictUserDefinedVariables = restrictUserDefinedVariables; return this; } @CustomType.Setter public Builder runnersToken(String runnersToken) { - this.runnersToken = Objects.requireNonNull(runnersToken); + if (runnersToken == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "runnersToken"); + } + this.runnersToken = runnersToken; return this; } @CustomType.Setter public Builder securityAndComplianceAccessLevel(String securityAndComplianceAccessLevel) { - this.securityAndComplianceAccessLevel = Objects.requireNonNull(securityAndComplianceAccessLevel); + if (securityAndComplianceAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "securityAndComplianceAccessLevel"); + } + this.securityAndComplianceAccessLevel = securityAndComplianceAccessLevel; return this; } @CustomType.Setter public Builder sharedRunnersEnabled(Boolean sharedRunnersEnabled) { - this.sharedRunnersEnabled = Objects.requireNonNull(sharedRunnersEnabled); + if (sharedRunnersEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "sharedRunnersEnabled"); + } + this.sharedRunnersEnabled = sharedRunnersEnabled; return this; } @CustomType.Setter public Builder sharedWithGroups(List sharedWithGroups) { - this.sharedWithGroups = Objects.requireNonNull(sharedWithGroups); + if (sharedWithGroups == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "sharedWithGroups"); + } + this.sharedWithGroups = sharedWithGroups; return this; } public Builder sharedWithGroups(GetProjectsProjectSharedWithGroup... sharedWithGroups) { @@ -1036,42 +1283,66 @@ public Builder sharedWithGroups(GetProjectsProjectSharedWithGroup... sharedWithG } @CustomType.Setter public Builder snippetsAccessLevel(String snippetsAccessLevel) { - this.snippetsAccessLevel = Objects.requireNonNull(snippetsAccessLevel); + if (snippetsAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "snippetsAccessLevel"); + } + this.snippetsAccessLevel = snippetsAccessLevel; return this; } @CustomType.Setter public Builder snippetsEnabled(Boolean snippetsEnabled) { - this.snippetsEnabled = Objects.requireNonNull(snippetsEnabled); + if (snippetsEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "snippetsEnabled"); + } + this.snippetsEnabled = snippetsEnabled; return this; } @CustomType.Setter public Builder squashCommitTemplate(String squashCommitTemplate) { - this.squashCommitTemplate = Objects.requireNonNull(squashCommitTemplate); + if (squashCommitTemplate == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "squashCommitTemplate"); + } + this.squashCommitTemplate = squashCommitTemplate; return this; } @CustomType.Setter public Builder sshUrlToRepo(String sshUrlToRepo) { - this.sshUrlToRepo = Objects.requireNonNull(sshUrlToRepo); + if (sshUrlToRepo == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "sshUrlToRepo"); + } + this.sshUrlToRepo = sshUrlToRepo; return this; } @CustomType.Setter public Builder starCount(Integer starCount) { - this.starCount = Objects.requireNonNull(starCount); + if (starCount == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "starCount"); + } + this.starCount = starCount; return this; } @CustomType.Setter public Builder statistics(Map statistics) { - this.statistics = Objects.requireNonNull(statistics); + if (statistics == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "statistics"); + } + this.statistics = statistics; return this; } @CustomType.Setter public Builder suggestionCommitMessage(String suggestionCommitMessage) { - this.suggestionCommitMessage = Objects.requireNonNull(suggestionCommitMessage); + if (suggestionCommitMessage == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "suggestionCommitMessage"); + } + this.suggestionCommitMessage = suggestionCommitMessage; return this; } @CustomType.Setter public Builder tagLists(List tagLists) { - this.tagLists = Objects.requireNonNull(tagLists); + if (tagLists == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "tagLists"); + } + this.tagLists = tagLists; return this; } public Builder tagLists(String... tagLists) { @@ -1079,7 +1350,10 @@ public Builder tagLists(String... tagLists) { } @CustomType.Setter public Builder topics(List topics) { - this.topics = Objects.requireNonNull(topics); + if (topics == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "topics"); + } + this.topics = topics; return this; } public Builder topics(String... topics) { @@ -1087,22 +1361,34 @@ public Builder topics(String... topics) { } @CustomType.Setter public Builder visibility(String visibility) { - this.visibility = Objects.requireNonNull(visibility); + if (visibility == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "visibility"); + } + this.visibility = visibility; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "webUrl"); + } + this.webUrl = webUrl; return this; } @CustomType.Setter public Builder wikiAccessLevel(String wikiAccessLevel) { - this.wikiAccessLevel = Objects.requireNonNull(wikiAccessLevel); + if (wikiAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "wikiAccessLevel"); + } + this.wikiAccessLevel = wikiAccessLevel; return this; } @CustomType.Setter public Builder wikiEnabled(Boolean wikiEnabled) { - this.wikiEnabled = Objects.requireNonNull(wikiEnabled); + if (wikiEnabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProject", "wikiEnabled"); + } + this.wikiEnabled = wikiEnabled; return this; } public GetProjectsProject build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectContainerExpirationPolicy.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectContainerExpirationPolicy.java index 4e50403e1..f6223868e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectContainerExpirationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectContainerExpirationPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -90,42 +91,66 @@ public Builder(GetProjectsProjectContainerExpirationPolicy defaults) { @CustomType.Setter public Builder cadence(String cadence) { - this.cadence = Objects.requireNonNull(cadence); + if (cadence == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "cadence"); + } + this.cadence = cadence; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder keepN(Integer keepN) { - this.keepN = Objects.requireNonNull(keepN); + if (keepN == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "keepN"); + } + this.keepN = keepN; return this; } @CustomType.Setter public Builder nameRegex(String nameRegex) { - this.nameRegex = Objects.requireNonNull(nameRegex); + if (nameRegex == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "nameRegex"); + } + this.nameRegex = nameRegex; return this; } @CustomType.Setter public Builder nameRegexDelete(String nameRegexDelete) { - this.nameRegexDelete = Objects.requireNonNull(nameRegexDelete); + if (nameRegexDelete == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "nameRegexDelete"); + } + this.nameRegexDelete = nameRegexDelete; return this; } @CustomType.Setter public Builder nameRegexKeep(String nameRegexKeep) { - this.nameRegexKeep = Objects.requireNonNull(nameRegexKeep); + if (nameRegexKeep == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "nameRegexKeep"); + } + this.nameRegexKeep = nameRegexKeep; return this; } @CustomType.Setter public Builder nextRunAt(String nextRunAt) { - this.nextRunAt = Objects.requireNonNull(nextRunAt); + if (nextRunAt == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "nextRunAt"); + } + this.nextRunAt = nextRunAt; return this; } @CustomType.Setter public Builder olderThan(String olderThan) { - this.olderThan = Objects.requireNonNull(olderThan); + if (olderThan == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectContainerExpirationPolicy", "olderThan"); + } + this.olderThan = olderThan; return this; } public GetProjectsProjectContainerExpirationPolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectForkedFromProject.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectForkedFromProject.java index 7f898fb57..efaa1bd68 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectForkedFromProject.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectForkedFromProject.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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(GetProjectsProjectForkedFromProject defaults) { @CustomType.Setter public Builder httpUrlToRepo(String httpUrlToRepo) { - this.httpUrlToRepo = Objects.requireNonNull(httpUrlToRepo); + if (httpUrlToRepo == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "httpUrlToRepo"); + } + this.httpUrlToRepo = httpUrlToRepo; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nameWithNamespace(String nameWithNamespace) { - this.nameWithNamespace = Objects.requireNonNull(nameWithNamespace); + if (nameWithNamespace == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "nameWithNamespace"); + } + this.nameWithNamespace = nameWithNamespace; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder pathWithNamespace(String pathWithNamespace) { - this.pathWithNamespace = Objects.requireNonNull(pathWithNamespace); + if (pathWithNamespace == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "pathWithNamespace"); + } + this.pathWithNamespace = pathWithNamespace; return this; } @CustomType.Setter public Builder webUrl(String webUrl) { - this.webUrl = Objects.requireNonNull(webUrl); + if (webUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectForkedFromProject", "webUrl"); + } + this.webUrl = webUrl; return this; } public GetProjectsProjectForkedFromProject build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectNamespace.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectNamespace.java index d8694fb4b..4fb406455 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectNamespace.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectNamespace.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -59,27 +60,42 @@ public Builder(GetProjectsProjectNamespace defaults) { @CustomType.Setter public Builder fullPath(String fullPath) { - this.fullPath = Objects.requireNonNull(fullPath); + if (fullPath == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectNamespace", "fullPath"); + } + this.fullPath = fullPath; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectNamespace", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectNamespace", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectNamespace", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectNamespace", "path"); + } + this.path = path; return this; } public GetProjectsProjectNamespace build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectOwner.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectOwner.java index 21381c803..cd9da4e90 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectOwner.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectOwner.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -65,32 +66,50 @@ public Builder(GetProjectsProjectOwner defaults) { @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder websiteUrl(String websiteUrl) { - this.websiteUrl = Objects.requireNonNull(websiteUrl); + if (websiteUrl == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectOwner", "websiteUrl"); + } + this.websiteUrl = websiteUrl; return this; } public GetProjectsProjectOwner build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectPermission.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectPermission.java index 9d49039de..4961b5ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectPermission.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectPermission.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Map; @@ -42,12 +43,18 @@ public Builder(GetProjectsProjectPermission defaults) { @CustomType.Setter public Builder groupAccess(Map groupAccess) { - this.groupAccess = Objects.requireNonNull(groupAccess); + if (groupAccess == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectPermission", "groupAccess"); + } + this.groupAccess = groupAccess; return this; } @CustomType.Setter public Builder projectAccess(Map projectAccess) { - this.projectAccess = Objects.requireNonNull(projectAccess); + if (projectAccess == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectPermission", "projectAccess"); + } + this.projectAccess = projectAccess; return this; } public GetProjectsProjectPermission build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectSharedWithGroup.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectSharedWithGroup.java index e3f6ce18f..267ee7297 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectSharedWithGroup.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsProjectSharedWithGroup.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.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(GetProjectsProjectSharedWithGroup defaults) { @CustomType.Setter public Builder groupAccessLevel(String groupAccessLevel) { - this.groupAccessLevel = Objects.requireNonNull(groupAccessLevel); + if (groupAccessLevel == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectSharedWithGroup", "groupAccessLevel"); + } + this.groupAccessLevel = groupAccessLevel; return this; } @CustomType.Setter public Builder groupId(Integer groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectSharedWithGroup", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder groupName(String groupName) { - this.groupName = Objects.requireNonNull(groupName); + if (groupName == null) { + throw new MissingRequiredPropertyException("GetProjectsProjectSharedWithGroup", "groupName"); + } + this.groupName = groupName; return this; } public GetProjectsProjectSharedWithGroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsResult.java index ab5072167..a7bf2fb45 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetProjectsResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetProjectsProject; import java.lang.Boolean; import java.lang.Integer; @@ -370,62 +371,78 @@ public Builder(GetProjectsResult defaults) { @CustomType.Setter public Builder archived(@Nullable Boolean archived) { + this.archived = archived; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder includeSubgroups(@Nullable Boolean includeSubgroups) { + this.includeSubgroups = includeSubgroups; return this; } @CustomType.Setter public Builder maxQueryablePages(@Nullable Integer maxQueryablePages) { + this.maxQueryablePages = maxQueryablePages; return this; } @CustomType.Setter public Builder membership(@Nullable Boolean membership) { + this.membership = membership; return this; } @CustomType.Setter public Builder minAccessLevel(@Nullable Integer minAccessLevel) { + this.minAccessLevel = minAccessLevel; return this; } @CustomType.Setter public Builder orderBy(@Nullable String orderBy) { + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder owned(@Nullable Boolean owned) { + this.owned = owned; return this; } @CustomType.Setter public Builder page(@Nullable Integer page) { + this.page = page; return this; } @CustomType.Setter public Builder perPage(@Nullable Integer perPage) { + this.perPage = perPage; 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) { @@ -433,31 +450,37 @@ public Builder projects(GetProjectsProject... projects) { } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder simple(@Nullable Boolean simple) { + this.simple = simple; return this; } @CustomType.Setter public Builder sort(@Nullable String sort) { + this.sort = sort; return this; } @CustomType.Setter public Builder starred(@Nullable Boolean starred) { + this.starred = starred; return this; } @CustomType.Setter public Builder statistics(@Nullable Boolean statistics) { + this.statistics = statistics; return this; } @CustomType.Setter public Builder topics(@Nullable List topics) { + this.topics = topics; return this; } @@ -466,31 +489,37 @@ public Builder topics(String... topics) { } @CustomType.Setter public Builder visibility(@Nullable String visibility) { + this.visibility = visibility; return this; } @CustomType.Setter public Builder withCustomAttributes(@Nullable Boolean withCustomAttributes) { + this.withCustomAttributes = withCustomAttributes; return this; } @CustomType.Setter public Builder withIssuesEnabled(@Nullable Boolean withIssuesEnabled) { + this.withIssuesEnabled = withIssuesEnabled; return this; } @CustomType.Setter public Builder withMergeRequestsEnabled(@Nullable Boolean withMergeRequestsEnabled) { + this.withMergeRequestsEnabled = withMergeRequestsEnabled; return this; } @CustomType.Setter public Builder withProgrammingLanguage(@Nullable String withProgrammingLanguage) { + this.withProgrammingLanguage = withProgrammingLanguage; return this; } @CustomType.Setter public Builder withShared(@Nullable Boolean withShared) { + this.withShared = withShared; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinkResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinkResult.java index 0a1da8ae6..1317fbf31 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinkResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinkResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -170,52 +171,82 @@ public Builder(GetReleaseLinkResult defaults) { @CustomType.Setter public Builder directAssetUrl(String directAssetUrl) { - this.directAssetUrl = Objects.requireNonNull(directAssetUrl); + if (directAssetUrl == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "directAssetUrl"); + } + this.directAssetUrl = directAssetUrl; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder filepath(String filepath) { - this.filepath = Objects.requireNonNull(filepath); + if (filepath == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "filepath"); + } + this.filepath = filepath; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder linkId(Integer linkId) { - this.linkId = Objects.requireNonNull(linkId); + if (linkId == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "linkId"); + } + this.linkId = linkId; return this; } @CustomType.Setter public Builder linkType(String linkType) { - this.linkType = Objects.requireNonNull(linkType); + if (linkType == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "linkType"); + } + this.linkType = linkType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder tagName(String tagName) { - this.tagName = Objects.requireNonNull(tagName); + if (tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "tagName"); + } + this.tagName = tagName; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetReleaseLinkResult", "url"); + } + this.url = url; return this; } public GetReleaseLinkResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksReleaseLink.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksReleaseLink.java index 4e8e5dc10..068de47f0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksReleaseLink.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksReleaseLink.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -84,47 +85,74 @@ public Builder(GetReleaseLinksReleaseLink defaults) { @CustomType.Setter public Builder directAssetUrl(String directAssetUrl) { - this.directAssetUrl = Objects.requireNonNull(directAssetUrl); + if (directAssetUrl == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "directAssetUrl"); + } + this.directAssetUrl = directAssetUrl; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder filepath(String filepath) { - this.filepath = Objects.requireNonNull(filepath); + if (filepath == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "filepath"); + } + this.filepath = filepath; return this; } @CustomType.Setter public Builder linkId(Integer linkId) { - this.linkId = Objects.requireNonNull(linkId); + if (linkId == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "linkId"); + } + this.linkId = linkId; return this; } @CustomType.Setter public Builder linkType(String linkType) { - this.linkType = Objects.requireNonNull(linkType); + if (linkType == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "linkType"); + } + this.linkType = linkType; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder tagName(String tagName) { - this.tagName = Objects.requireNonNull(tagName); + if (tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "tagName"); + } + this.tagName = tagName; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksReleaseLink", "url"); + } + this.url = url; return this; } public GetReleaseLinksReleaseLink build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksResult.java index ab3e218fa..2d40f7a8f 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetReleaseLinksResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetReleaseLinksReleaseLink; import java.lang.String; import java.util.List; @@ -86,17 +87,26 @@ public Builder(GetReleaseLinksResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder releaseLinks(List releaseLinks) { - this.releaseLinks = Objects.requireNonNull(releaseLinks); + if (releaseLinks == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksResult", "releaseLinks"); + } + this.releaseLinks = releaseLinks; return this; } public Builder releaseLinks(GetReleaseLinksReleaseLink... releaseLinks) { @@ -104,7 +114,10 @@ public Builder releaseLinks(GetReleaseLinksReleaseLink... releaseLinks) { } @CustomType.Setter public Builder tagName(String tagName) { - this.tagName = Objects.requireNonNull(tagName); + if (tagName == null) { + throw new MissingRequiredPropertyException("GetReleaseLinksResult", "tagName"); + } + this.tagName = tagName; return this; } public GetReleaseLinksResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryFileResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryFileResult.java index 5283db5f0..13e7479ce 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryFileResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryFileResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -212,67 +213,106 @@ public Builder(GetRepositoryFileResult defaults) { @CustomType.Setter public Builder blobId(String blobId) { - this.blobId = Objects.requireNonNull(blobId); + if (blobId == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "blobId"); + } + this.blobId = blobId; return this; } @CustomType.Setter public Builder commitId(String commitId) { - this.commitId = Objects.requireNonNull(commitId); + if (commitId == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "commitId"); + } + this.commitId = commitId; return this; } @CustomType.Setter public Builder content(String content) { - this.content = Objects.requireNonNull(content); + if (content == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "content"); + } + this.content = content; return this; } @CustomType.Setter public Builder contentSha256(String contentSha256) { - this.contentSha256 = Objects.requireNonNull(contentSha256); + if (contentSha256 == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "contentSha256"); + } + this.contentSha256 = contentSha256; return this; } @CustomType.Setter public Builder encoding(String encoding) { - this.encoding = Objects.requireNonNull(encoding); + if (encoding == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "encoding"); + } + this.encoding = encoding; return this; } @CustomType.Setter public Builder executeFilemode(Boolean executeFilemode) { - this.executeFilemode = Objects.requireNonNull(executeFilemode); + if (executeFilemode == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "executeFilemode"); + } + this.executeFilemode = executeFilemode; return this; } @CustomType.Setter public Builder fileName(String fileName) { - this.fileName = Objects.requireNonNull(fileName); + if (fileName == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "fileName"); + } + this.fileName = fileName; return this; } @CustomType.Setter public Builder filePath(String filePath) { - this.filePath = Objects.requireNonNull(filePath); + if (filePath == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "filePath"); + } + this.filePath = filePath; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lastCommitId(String lastCommitId) { - this.lastCommitId = Objects.requireNonNull(lastCommitId); + if (lastCommitId == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "lastCommitId"); + } + this.lastCommitId = lastCommitId; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder ref(String ref) { - this.ref = Objects.requireNonNull(ref); + if (ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "ref"); + } + this.ref = ref; return this; } @CustomType.Setter public Builder size(Integer size) { - this.size = Objects.requireNonNull(size); + if (size == null) { + throw new MissingRequiredPropertyException("GetRepositoryFileResult", "size"); + } + this.size = size; return this; } public GetRepositoryFileResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeResult.java index d49bd445d..5f46a0647 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetRepositoryTreeTree; import java.lang.Boolean; import java.lang.String; @@ -117,32 +118,46 @@ public Builder(GetRepositoryTreeResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder project(String project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder recursive(@Nullable Boolean recursive) { + this.recursive = recursive; return this; } @CustomType.Setter public Builder ref(String ref) { - this.ref = Objects.requireNonNull(ref); + if (ref == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeResult", "ref"); + } + this.ref = ref; return this; } @CustomType.Setter public Builder trees(List trees) { - this.trees = Objects.requireNonNull(trees); + if (trees == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeResult", "trees"); + } + this.trees = trees; return this; } public Builder trees(GetRepositoryTreeTree... trees) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeTree.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeTree.java index a734ee5a8..88f179e85 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeTree.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetRepositoryTreeTree.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -58,27 +59,42 @@ public Builder(GetRepositoryTreeTree defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeTree", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeTree", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeTree", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeTree", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetRepositoryTreeTree", "type"); + } + this.type = type; return this; } public GetRepositoryTreeTree build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserResult.java index f4eda9a2c..b9ecf06cb 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -436,147 +437,234 @@ public Builder(GetUserResult defaults) { @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetUserResult", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder bio(String bio) { - this.bio = Objects.requireNonNull(bio); + if (bio == null) { + throw new MissingRequiredPropertyException("GetUserResult", "bio"); + } + this.bio = bio; return this; } @CustomType.Setter public Builder canCreateGroup(Boolean canCreateGroup) { - this.canCreateGroup = Objects.requireNonNull(canCreateGroup); + if (canCreateGroup == null) { + throw new MissingRequiredPropertyException("GetUserResult", "canCreateGroup"); + } + this.canCreateGroup = canCreateGroup; return this; } @CustomType.Setter public Builder canCreateProject(Boolean canCreateProject) { - this.canCreateProject = Objects.requireNonNull(canCreateProject); + if (canCreateProject == null) { + throw new MissingRequiredPropertyException("GetUserResult", "canCreateProject"); + } + this.canCreateProject = canCreateProject; return this; } @CustomType.Setter public Builder colorSchemeId(Integer colorSchemeId) { - this.colorSchemeId = Objects.requireNonNull(colorSchemeId); + if (colorSchemeId == null) { + throw new MissingRequiredPropertyException("GetUserResult", "colorSchemeId"); + } + this.colorSchemeId = colorSchemeId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetUserResult", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder currentSignInAt(String currentSignInAt) { - this.currentSignInAt = Objects.requireNonNull(currentSignInAt); + if (currentSignInAt == null) { + throw new MissingRequiredPropertyException("GetUserResult", "currentSignInAt"); + } + this.currentSignInAt = currentSignInAt; return this; } @CustomType.Setter public Builder email(String email) { - this.email = Objects.requireNonNull(email); + if (email == null) { + throw new MissingRequiredPropertyException("GetUserResult", "email"); + } + this.email = email; return this; } @CustomType.Setter public Builder externUid(String externUid) { - this.externUid = Objects.requireNonNull(externUid); + if (externUid == null) { + throw new MissingRequiredPropertyException("GetUserResult", "externUid"); + } + this.externUid = externUid; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetUserResult", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isAdmin(Boolean isAdmin) { - this.isAdmin = Objects.requireNonNull(isAdmin); + if (isAdmin == null) { + throw new MissingRequiredPropertyException("GetUserResult", "isAdmin"); + } + this.isAdmin = isAdmin; return this; } @CustomType.Setter public Builder lastSignInAt(String lastSignInAt) { - this.lastSignInAt = Objects.requireNonNull(lastSignInAt); + if (lastSignInAt == null) { + throw new MissingRequiredPropertyException("GetUserResult", "lastSignInAt"); + } + this.lastSignInAt = lastSignInAt; return this; } @CustomType.Setter public Builder linkedin(String linkedin) { - this.linkedin = Objects.requireNonNull(linkedin); + if (linkedin == null) { + throw new MissingRequiredPropertyException("GetUserResult", "linkedin"); + } + this.linkedin = linkedin; return this; } @CustomType.Setter public Builder location(String location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetUserResult", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetUserResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(Integer namespaceId) { - this.namespaceId = Objects.requireNonNull(namespaceId); + if (namespaceId == null) { + throw new MissingRequiredPropertyException("GetUserResult", "namespaceId"); + } + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder note(String note) { - this.note = Objects.requireNonNull(note); + if (note == null) { + throw new MissingRequiredPropertyException("GetUserResult", "note"); + } + this.note = note; return this; } @CustomType.Setter public Builder organization(String organization) { - this.organization = Objects.requireNonNull(organization); + if (organization == null) { + throw new MissingRequiredPropertyException("GetUserResult", "organization"); + } + this.organization = organization; return this; } @CustomType.Setter public Builder projectsLimit(Integer projectsLimit) { - this.projectsLimit = Objects.requireNonNull(projectsLimit); + if (projectsLimit == null) { + throw new MissingRequiredPropertyException("GetUserResult", "projectsLimit"); + } + this.projectsLimit = projectsLimit; return this; } @CustomType.Setter public Builder skype(String skype) { - this.skype = Objects.requireNonNull(skype); + if (skype == null) { + throw new MissingRequiredPropertyException("GetUserResult", "skype"); + } + this.skype = skype; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetUserResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder themeId(Integer themeId) { - this.themeId = Objects.requireNonNull(themeId); + if (themeId == null) { + throw new MissingRequiredPropertyException("GetUserResult", "themeId"); + } + this.themeId = themeId; return this; } @CustomType.Setter public Builder twitter(String twitter) { - this.twitter = Objects.requireNonNull(twitter); + if (twitter == null) { + throw new MissingRequiredPropertyException("GetUserResult", "twitter"); + } + this.twitter = twitter; return this; } @CustomType.Setter public Builder twoFactorEnabled(Boolean twoFactorEnabled) { - this.twoFactorEnabled = Objects.requireNonNull(twoFactorEnabled); + if (twoFactorEnabled == null) { + throw new MissingRequiredPropertyException("GetUserResult", "twoFactorEnabled"); + } + this.twoFactorEnabled = twoFactorEnabled; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetUserResult", "userId"); + } + this.userId = userId; return this; } @CustomType.Setter public Builder userProvider(String userProvider) { - this.userProvider = Objects.requireNonNull(userProvider); + if (userProvider == null) { + throw new MissingRequiredPropertyException("GetUserResult", "userProvider"); + } + this.userProvider = userProvider; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetUserResult", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder websiteUrl(String websiteUrl) { - this.websiteUrl = Objects.requireNonNull(websiteUrl); + if (websiteUrl == null) { + throw new MissingRequiredPropertyException("GetUserResult", "websiteUrl"); + } + this.websiteUrl = websiteUrl; return this; } public GetUserResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysKey.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysKey.java index 7b1c17f99..5afa5abb4 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysKey.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysKey.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -65,32 +66,50 @@ public Builder(GetUserSshkeysKey defaults) { @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder keyId(Integer keyId) { - this.keyId = Objects.requireNonNull(keyId); + if (keyId == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "keyId"); + } + this.keyId = keyId; return this; } @CustomType.Setter public Builder title(String title) { - this.title = Objects.requireNonNull(title); + if (title == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "title"); + } + this.title = title; return this; } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysKey", "userId"); + } + this.userId = userId; return this; } public GetUserSshkeysKey build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysResult.java index 131ae4f22..6d22c4aad 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUserSshkeysResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetUserSshkeysKey; import java.lang.Integer; import java.lang.String; @@ -87,12 +88,18 @@ public Builder(GetUserSshkeysResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder keys(List keys) { - this.keys = Objects.requireNonNull(keys); + if (keys == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysResult", "keys"); + } + this.keys = keys; return this; } public Builder keys(GetUserSshkeysKey... keys) { @@ -100,12 +107,18 @@ public Builder keys(GetUserSshkeysKey... keys) { } @CustomType.Setter public Builder userId(Integer userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysResult", "userId"); + } + this.userId = userId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetUserSshkeysResult", "username"); + } + this.username = username; return this; } public GetUserSshkeysResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersResult.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersResult.java index bfa60a8bf..ea5a6cfad 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersResult.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersResult.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.gitlab.outputs.GetUsersUser; import java.lang.Boolean; import java.lang.String; @@ -187,57 +188,72 @@ public Builder(GetUsersResult defaults) { @CustomType.Setter public Builder active(@Nullable Boolean active) { + this.active = active; return this; } @CustomType.Setter public Builder blocked(@Nullable Boolean blocked) { + this.blocked = blocked; return this; } @CustomType.Setter public Builder createdAfter(@Nullable String createdAfter) { + this.createdAfter = createdAfter; return this; } @CustomType.Setter public Builder createdBefore(@Nullable String createdBefore) { + this.createdBefore = createdBefore; return this; } @CustomType.Setter public Builder externProvider(@Nullable String externProvider) { + this.externProvider = externProvider; return this; } @CustomType.Setter public Builder externUid(@Nullable String externUid) { + this.externUid = externUid; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetUsersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder orderBy(@Nullable String orderBy) { + this.orderBy = orderBy; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder sort(@Nullable String sort) { + this.sort = sort; return this; } @CustomType.Setter public Builder users(List users) { - this.users = Objects.requireNonNull(users); + if (users == null) { + throw new MissingRequiredPropertyException("GetUsersResult", "users"); + } + this.users = users; return this; } public Builder users(GetUsersUser... users) { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersUser.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersUser.java index 4298ef2d6..7a52984e2 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersUser.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GetUsersUser.java @@ -4,6 +4,7 @@ package com.pulumi.gitlab.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -192,137 +193,218 @@ public Builder(GetUsersUser defaults) { @CustomType.Setter public Builder avatarUrl(String avatarUrl) { - this.avatarUrl = Objects.requireNonNull(avatarUrl); + if (avatarUrl == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "avatarUrl"); + } + this.avatarUrl = avatarUrl; return this; } @CustomType.Setter public Builder bio(String bio) { - this.bio = Objects.requireNonNull(bio); + if (bio == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "bio"); + } + this.bio = bio; return this; } @CustomType.Setter public Builder canCreateGroup(Boolean canCreateGroup) { - this.canCreateGroup = Objects.requireNonNull(canCreateGroup); + if (canCreateGroup == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "canCreateGroup"); + } + this.canCreateGroup = canCreateGroup; return this; } @CustomType.Setter public Builder canCreateProject(Boolean canCreateProject) { - this.canCreateProject = Objects.requireNonNull(canCreateProject); + if (canCreateProject == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "canCreateProject"); + } + this.canCreateProject = canCreateProject; return this; } @CustomType.Setter public Builder colorSchemeId(Integer colorSchemeId) { - this.colorSchemeId = Objects.requireNonNull(colorSchemeId); + if (colorSchemeId == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "colorSchemeId"); + } + this.colorSchemeId = colorSchemeId; return this; } @CustomType.Setter public Builder createdAt(String createdAt) { - this.createdAt = Objects.requireNonNull(createdAt); + if (createdAt == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "createdAt"); + } + this.createdAt = createdAt; return this; } @CustomType.Setter public Builder currentSignInAt(String currentSignInAt) { - this.currentSignInAt = Objects.requireNonNull(currentSignInAt); + if (currentSignInAt == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "currentSignInAt"); + } + this.currentSignInAt = currentSignInAt; return this; } @CustomType.Setter public Builder email(String email) { - this.email = Objects.requireNonNull(email); + if (email == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "email"); + } + this.email = email; return this; } @CustomType.Setter public Builder externUid(String externUid) { - this.externUid = Objects.requireNonNull(externUid); + if (externUid == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "externUid"); + } + this.externUid = externUid; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isAdmin(Boolean isAdmin) { - this.isAdmin = Objects.requireNonNull(isAdmin); + if (isAdmin == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "isAdmin"); + } + this.isAdmin = isAdmin; return this; } @CustomType.Setter public Builder lastSignInAt(String lastSignInAt) { - this.lastSignInAt = Objects.requireNonNull(lastSignInAt); + if (lastSignInAt == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "lastSignInAt"); + } + this.lastSignInAt = lastSignInAt; return this; } @CustomType.Setter public Builder linkedin(String linkedin) { - this.linkedin = Objects.requireNonNull(linkedin); + if (linkedin == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "linkedin"); + } + this.linkedin = linkedin; return this; } @CustomType.Setter public Builder location(String location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(Integer namespaceId) { - this.namespaceId = Objects.requireNonNull(namespaceId); + if (namespaceId == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "namespaceId"); + } + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder organization(String organization) { - this.organization = Objects.requireNonNull(organization); + if (organization == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "organization"); + } + this.organization = organization; return this; } @CustomType.Setter public Builder projectsLimit(Integer projectsLimit) { - this.projectsLimit = Objects.requireNonNull(projectsLimit); + if (projectsLimit == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "projectsLimit"); + } + this.projectsLimit = projectsLimit; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder skype(String skype) { - this.skype = Objects.requireNonNull(skype); + if (skype == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "skype"); + } + this.skype = skype; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder themeId(Integer themeId) { - this.themeId = Objects.requireNonNull(themeId); + if (themeId == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "themeId"); + } + this.themeId = themeId; return this; } @CustomType.Setter public Builder twitter(String twitter) { - this.twitter = Objects.requireNonNull(twitter); + if (twitter == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "twitter"); + } + this.twitter = twitter; return this; } @CustomType.Setter public Builder twoFactorEnabled(Boolean twoFactorEnabled) { - this.twoFactorEnabled = Objects.requireNonNull(twoFactorEnabled); + if (twoFactorEnabled == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "twoFactorEnabled"); + } + this.twoFactorEnabled = twoFactorEnabled; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder websiteUrl(String websiteUrl) { - this.websiteUrl = Objects.requireNonNull(websiteUrl); + if (websiteUrl == null) { + throw new MissingRequiredPropertyException("GetUsersUser", "websiteUrl"); + } + this.websiteUrl = websiteUrl; return this; } public GetUsersUser build() { diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupEpicBoardList.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupEpicBoardList.java index 311cd8dd3..a0538cf73 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupEpicBoardList.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupEpicBoardList.java @@ -72,16 +72,19 @@ public Builder(GroupEpicBoardList defaults) { @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder labelId(@Nullable Integer labelId) { + this.labelId = labelId; return this; } @CustomType.Setter public Builder position(@Nullable Integer position) { + this.position = position; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupIssueBoardList.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupIssueBoardList.java index 003acb5fe..e5ad8d882 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupIssueBoardList.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupIssueBoardList.java @@ -72,16 +72,19 @@ public Builder(GroupIssueBoardList defaults) { @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder labelId(@Nullable Integer labelId) { + this.labelId = labelId; return this; } @CustomType.Setter public Builder position(@Nullable Integer position) { + this.position = position; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentApprovalRule.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentApprovalRule.java index 38450d127..7ae19fa11 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentApprovalRule.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentApprovalRule.java @@ -115,31 +115,37 @@ public Builder(GroupProtectedEnvironmentApprovalRule defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder requiredApprovals(@Nullable Integer requiredApprovals) { + this.requiredApprovals = requiredApprovals; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentDeployAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentDeployAccessLevel.java index 460f09b10..a5591c7c3 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentDeployAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupProtectedEnvironmentDeployAccessLevel.java @@ -101,26 +101,31 @@ public Builder(GroupProtectedEnvironmentDeployAccessLevel defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupPushRules.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupPushRules.java index 90772aa95..8a0f986c2 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupPushRules.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/GroupPushRules.java @@ -186,56 +186,67 @@ public Builder(GroupPushRules defaults) { @CustomType.Setter public Builder authorEmailRegex(@Nullable String authorEmailRegex) { + this.authorEmailRegex = authorEmailRegex; return this; } @CustomType.Setter public Builder branchNameRegex(@Nullable String branchNameRegex) { + this.branchNameRegex = branchNameRegex; return this; } @CustomType.Setter public Builder commitCommitterCheck(@Nullable Boolean commitCommitterCheck) { + this.commitCommitterCheck = commitCommitterCheck; return this; } @CustomType.Setter public Builder commitMessageNegativeRegex(@Nullable String commitMessageNegativeRegex) { + this.commitMessageNegativeRegex = commitMessageNegativeRegex; return this; } @CustomType.Setter public Builder commitMessageRegex(@Nullable String commitMessageRegex) { + this.commitMessageRegex = commitMessageRegex; return this; } @CustomType.Setter public Builder denyDeleteTag(@Nullable Boolean denyDeleteTag) { + this.denyDeleteTag = denyDeleteTag; return this; } @CustomType.Setter public Builder fileNameRegex(@Nullable String fileNameRegex) { + this.fileNameRegex = fileNameRegex; return this; } @CustomType.Setter public Builder maxFileSize(@Nullable Integer maxFileSize) { + this.maxFileSize = maxFileSize; return this; } @CustomType.Setter public Builder memberCheck(@Nullable Boolean memberCheck) { + this.memberCheck = memberCheck; return this; } @CustomType.Setter public Builder preventSecrets(@Nullable Boolean preventSecrets) { + this.preventSecrets = preventSecrets; return this; } @CustomType.Setter public Builder rejectUnsignedCommits(@Nullable Boolean rejectUnsignedCommits) { + this.rejectUnsignedCommits = rejectUnsignedCommits; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectContainerExpirationPolicy.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectContainerExpirationPolicy.java index f2ed479a7..49a53a522 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectContainerExpirationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectContainerExpirationPolicy.java @@ -152,41 +152,49 @@ public Builder(ProjectContainerExpirationPolicy defaults) { @CustomType.Setter public Builder cadence(@Nullable String cadence) { + this.cadence = cadence; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder keepN(@Nullable Integer keepN) { + this.keepN = keepN; return this; } @CustomType.Setter public Builder nameRegex(@Nullable String nameRegex) { + this.nameRegex = nameRegex; return this; } @CustomType.Setter public Builder nameRegexDelete(@Nullable String nameRegexDelete) { + this.nameRegexDelete = nameRegexDelete; return this; } @CustomType.Setter public Builder nameRegexKeep(@Nullable String nameRegexKeep) { + this.nameRegexKeep = nameRegexKeep; return this; } @CustomType.Setter public Builder nextRunAt(@Nullable String nextRunAt) { + this.nextRunAt = nextRunAt; return this; } @CustomType.Setter public Builder olderThan(@Nullable String olderThan) { + this.olderThan = olderThan; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueBoardList.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueBoardList.java index 58d112e3b..2efc0e31e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueBoardList.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueBoardList.java @@ -114,31 +114,37 @@ public Builder(ProjectIssueBoardList defaults) { @CustomType.Setter public Builder assigneeId(@Nullable Integer assigneeId) { + this.assigneeId = assigneeId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder iterationId(@Nullable Integer iterationId) { + this.iterationId = iterationId; return this; } @CustomType.Setter public Builder labelId(@Nullable Integer labelId) { + this.labelId = labelId; return this; } @CustomType.Setter public Builder milestoneId(@Nullable Integer milestoneId) { + this.milestoneId = milestoneId; return this; } @CustomType.Setter public Builder position(@Nullable Integer position) { + this.position = position; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueTaskCompletionStatus.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueTaskCompletionStatus.java index 829a3394b..f7ff6679e 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueTaskCompletionStatus.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectIssueTaskCompletionStatus.java @@ -42,11 +42,13 @@ public Builder(ProjectIssueTaskCompletionStatus defaults) { @CustomType.Setter public Builder completedCount(@Nullable Integer completedCount) { + this.completedCount = completedCount; return this; } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentApprovalRule.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentApprovalRule.java index ce6c5bf81..fe4774809 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentApprovalRule.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentApprovalRule.java @@ -115,31 +115,37 @@ public Builder(ProjectProtectedEnvironmentApprovalRule defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder requiredApprovals(@Nullable Integer requiredApprovals) { + this.requiredApprovals = requiredApprovals; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentDeployAccessLevel.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentDeployAccessLevel.java index 8060e9278..4d7835be0 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentDeployAccessLevel.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectProtectedEnvironmentDeployAccessLevel.java @@ -101,26 +101,31 @@ public Builder(ProjectProtectedEnvironmentDeployAccessLevel defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectPushRules.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectPushRules.java index 202125c31..de015e5fe 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectPushRules.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectPushRules.java @@ -186,56 +186,67 @@ public Builder(ProjectPushRules defaults) { @CustomType.Setter public Builder authorEmailRegex(@Nullable String authorEmailRegex) { + this.authorEmailRegex = authorEmailRegex; return this; } @CustomType.Setter public Builder branchNameRegex(@Nullable String branchNameRegex) { + this.branchNameRegex = branchNameRegex; return this; } @CustomType.Setter public Builder commitCommitterCheck(@Nullable Boolean commitCommitterCheck) { + this.commitCommitterCheck = commitCommitterCheck; return this; } @CustomType.Setter public Builder commitMessageNegativeRegex(@Nullable String commitMessageNegativeRegex) { + this.commitMessageNegativeRegex = commitMessageNegativeRegex; return this; } @CustomType.Setter public Builder commitMessageRegex(@Nullable String commitMessageRegex) { + this.commitMessageRegex = commitMessageRegex; return this; } @CustomType.Setter public Builder denyDeleteTag(@Nullable Boolean denyDeleteTag) { + this.denyDeleteTag = denyDeleteTag; return this; } @CustomType.Setter public Builder fileNameRegex(@Nullable String fileNameRegex) { + this.fileNameRegex = fileNameRegex; return this; } @CustomType.Setter public Builder maxFileSize(@Nullable Integer maxFileSize) { + this.maxFileSize = maxFileSize; return this; } @CustomType.Setter public Builder memberCheck(@Nullable Boolean memberCheck) { + this.memberCheck = memberCheck; return this; } @CustomType.Setter public Builder preventSecrets(@Nullable Boolean preventSecrets) { + this.preventSecrets = preventSecrets; return this; } @CustomType.Setter public Builder rejectUnsignedCommits(@Nullable Boolean rejectUnsignedCommits) { + this.rejectUnsignedCommits = rejectUnsignedCommits; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagCommit.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagCommit.java index 2d3e6bedc..31b73baad 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagCommit.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagCommit.java @@ -97,46 +97,55 @@ public Builder(ProjectTagCommit defaults) { @CustomType.Setter public Builder authorEmail(@Nullable String authorEmail) { + this.authorEmail = authorEmail; return this; } @CustomType.Setter public Builder authorName(@Nullable String authorName) { + this.authorName = authorName; return this; } @CustomType.Setter public Builder authoredDate(@Nullable String authoredDate) { + this.authoredDate = authoredDate; return this; } @CustomType.Setter public Builder committedDate(@Nullable String committedDate) { + this.committedDate = committedDate; return this; } @CustomType.Setter public Builder committerEmail(@Nullable String committerEmail) { + this.committerEmail = committerEmail; return this; } @CustomType.Setter public Builder committerName(@Nullable String committerName) { + this.committerName = committerName; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder message(@Nullable String message) { + this.message = message; return this; } @CustomType.Setter public Builder parentIds(@Nullable List parentIds) { + this.parentIds = parentIds; return this; } @@ -145,11 +154,13 @@ public Builder parentIds(String... parentIds) { } @CustomType.Setter public Builder shortId(@Nullable String shortId) { + this.shortId = shortId; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagRelease.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagRelease.java index 374ffb7c5..1bf208d80 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagRelease.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/ProjectTagRelease.java @@ -42,11 +42,13 @@ public Builder(ProjectTagRelease defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder tagName(@Nullable String tagName) { + this.tagName = tagName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/TagProtectionAllowedToCreate.java b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/TagProtectionAllowedToCreate.java index 022694b31..8b98ca5af 100644 --- a/sdk/java/src/main/java/com/pulumi/gitlab/outputs/TagProtectionAllowedToCreate.java +++ b/sdk/java/src/main/java/com/pulumi/gitlab/outputs/TagProtectionAllowedToCreate.java @@ -87,21 +87,25 @@ public Builder(TagProtectionAllowedToCreate defaults) { @CustomType.Setter public Builder accessLevel(@Nullable String accessLevel) { + this.accessLevel = accessLevel; return this; } @CustomType.Setter public Builder accessLevelDescription(@Nullable String accessLevelDescription) { + this.accessLevelDescription = accessLevelDescription; return this; } @CustomType.Setter public Builder groupId(@Nullable Integer groupId) { + this.groupId = groupId; return this; } @CustomType.Setter public Builder userId(@Nullable Integer userId) { + this.userId = userId; return this; }