From 0106d1cada197fb23b211c1efe6498cd8ce8f5b3 Mon Sep 17 00:00:00 2001 From: Oscar Cobles Date: Tue, 9 Jul 2024 12:22:28 +0200 Subject: [PATCH 1/2] updated makefile and regenerate java sdk Signed-off-by: Oscar Cobles --- .upgrade-config.yml | 1 - Makefile | 12 +- sdk/java/build.gradle | 2 +- .../equinix/pulumi/fabric/CloudRouter.java | 26 +- .../pulumi/fabric/CloudRouterArgs.java | 25 +- .../com/equinix/pulumi/fabric/Connection.java | 56 +- .../equinix/pulumi/fabric/ConnectionArgs.java | 21 +- .../pulumi/fabric/FabricFunctions.java | 880 +++++---- .../com/equinix/pulumi/fabric/Network.java | 20 +- .../equinix/pulumi/fabric/NetworkArgs.java | 17 +- .../pulumi/fabric/RoutingProtocol.java | 22 +- .../pulumi/fabric/RoutingProtocolArgs.java | 5 +- .../equinix/pulumi/fabric/ServiceProfile.java | 34 +- .../pulumi/fabric/ServiceProfileArgs.java | 9 +- .../inputs/CloudRouterNotificationArgs.java | 9 +- .../fabric/inputs/CloudRouterPackageArgs.java | 5 +- ...ConnectionASideAccessPointProfileArgs.java | 9 +- .../inputs/ConnectionNotificationArgs.java | 9 +- ...ConnectionZSideAccessPointProfileArgs.java | 9 +- .../fabric/inputs/GetCloudRouterArgs.java | 5 +- .../inputs/GetCloudRouterPlainArgs.java | 5 +- .../fabric/inputs/GetCloudRoutersArgs.java | 5 +- .../fabric/inputs/GetCloudRoutersFilter.java | 13 +- .../inputs/GetCloudRoutersFilterArgs.java | 13 +- .../inputs/GetCloudRoutersPlainArgs.java | 5 +- .../fabric/inputs/GetConnectionArgs.java | 5 +- .../fabric/inputs/GetConnectionPlainArgs.java | 5 +- .../fabric/inputs/GetConnectionsArgs.java | 9 +- .../fabric/inputs/GetConnectionsFilter.java | 13 +- .../inputs/GetConnectionsFilterArgs.java | 13 +- .../inputs/GetConnectionsPlainArgs.java | 9 +- .../pulumi/fabric/inputs/GetNetworkArgs.java | 5 +- .../fabric/inputs/GetNetworkPlainArgs.java | 5 +- .../pulumi/fabric/inputs/GetNetworksArgs.java | 9 +- .../fabric/inputs/GetNetworksFilter.java | 13 +- .../fabric/inputs/GetNetworksFilterArgs.java | 13 +- .../fabric/inputs/GetNetworksPlainArgs.java | 9 +- .../pulumi/fabric/inputs/GetPortArgs.java | 5 +- .../fabric/inputs/GetPortPlainArgs.java | 5 +- .../pulumi/fabric/inputs/GetPortsArgs.java | 5 +- .../pulumi/fabric/inputs/GetPortsFilter.java | 5 +- .../fabric/inputs/GetPortsFilterArgs.java | 5 +- .../fabric/inputs/GetPortsPlainArgs.java | 5 +- .../fabric/inputs/GetRoutingProtocolArgs.java | 9 +- .../inputs/GetRoutingProtocolPlainArgs.java | 9 +- .../fabric/inputs/GetServiceProfileArgs.java | 5 +- .../inputs/GetServiceProfilePlainArgs.java | 5 +- .../fabric/inputs/GetServiceProfilesArgs.java | 5 +- .../inputs/GetServiceProfilesFilter.java | 13 +- .../inputs/GetServiceProfilesFilterArgs.java | 13 +- .../inputs/GetServiceProfilesPlainArgs.java | 5 +- .../inputs/NetworkNotificationArgs.java | 9 +- .../fabric/inputs/NetworkProjectArgs.java | 5 +- .../fabric/inputs/RoutingProtocolBfdArgs.java | 5 +- .../inputs/RoutingProtocolBgpIpv4Args.java | 5 +- .../inputs/RoutingProtocolBgpIpv6Args.java | 5 +- .../inputs/RoutingProtocolDirectIpv4Args.java | 5 +- ...rviceProfileAccessPointTypeConfigArgs.java | 5 +- .../inputs/ServiceProfileCustomFieldArgs.java | 13 +- .../ServiceProfileNotificationArgs.java | 9 +- .../fabric/inputs/ServiceProfilePortArgs.java | 9 +- .../ServiceProfileVirtualDeviceArgs.java | 9 +- .../fabric/outputs/CloudRouterAccount.java | 1 + .../fabric/outputs/CloudRouterChangeLog.java | 12 + .../fabric/outputs/CloudRouterLocation.java | 4 + .../outputs/CloudRouterNotification.java | 12 +- .../fabric/outputs/CloudRouterOrder.java | 4 + .../fabric/outputs/CloudRouterPackage.java | 6 +- .../fabric/outputs/CloudRouterProject.java | 2 + .../fabric/outputs/ConnectionASide.java | 3 + .../outputs/ConnectionASideAccessPoint.java | 15 + .../ConnectionASideAccessPointAccount.java | 8 + .../ConnectionASideAccessPointGateway.java | 2 + .../ConnectionASideAccessPointInterface.java | 3 + ...onnectionASideAccessPointLinkProtocol.java | 4 + .../ConnectionASideAccessPointLocation.java | 4 + .../ConnectionASideAccessPointNetwork.java | 2 + .../ConnectionASideAccessPointPort.java | 4 + ...nectionASideAccessPointPortRedundancy.java | 3 + .../ConnectionASideAccessPointProfile.java | 15 +- ...cessPointProfileAccessPointTypeConfig.java | 2 + .../ConnectionASideAccessPointRouter.java | 2 + ...nnectionASideAccessPointVirtualDevice.java | 4 + .../ConnectionASideAdditionalInfo.java | 2 + .../outputs/ConnectionASideServiceToken.java | 4 + .../fabric/outputs/ConnectionAccount.java | 8 + .../fabric/outputs/ConnectionChangeLog.java | 12 + .../outputs/ConnectionNotification.java | 12 +- .../fabric/outputs/ConnectionOperation.java | 3 + .../outputs/ConnectionOperationError.java | 6 + ...onnectionOperationErrorAdditionalInfo.java | 2 + .../fabric/outputs/ConnectionOrder.java | 4 + .../fabric/outputs/ConnectionProject.java | 2 + .../fabric/outputs/ConnectionRedundancy.java | 2 + .../fabric/outputs/ConnectionZSide.java | 3 + .../outputs/ConnectionZSideAccessPoint.java | 15 + .../ConnectionZSideAccessPointAccount.java | 8 + .../ConnectionZSideAccessPointGateway.java | 2 + .../ConnectionZSideAccessPointInterface.java | 3 + ...onnectionZSideAccessPointLinkProtocol.java | 4 + .../ConnectionZSideAccessPointLocation.java | 4 + .../ConnectionZSideAccessPointNetwork.java | 2 + .../ConnectionZSideAccessPointPort.java | 4 + ...nectionZSideAccessPointPortRedundancy.java | 3 + .../ConnectionZSideAccessPointProfile.java | 15 +- ...cessPointProfileAccessPointTypeConfig.java | 2 + .../ConnectionZSideAccessPointRouter.java | 2 + ...nnectionZSideAccessPointVirtualDevice.java | 4 + .../ConnectionZSideAdditionalInfo.java | 2 + .../outputs/ConnectionZSideServiceToken.java | 4 + .../fabric/outputs/GetCloudRouterAccount.java | 6 +- .../outputs/GetCloudRouterChangeLog.java | 61 +- .../outputs/GetCloudRouterLocation.java | 21 +- .../outputs/GetCloudRouterNotification.java | 12 +- .../fabric/outputs/GetCloudRouterOrder.java | 21 +- .../fabric/outputs/GetCloudRouterPackage.java | 6 +- .../fabric/outputs/GetCloudRouterProject.java | 11 +- .../fabric/outputs/GetCloudRouterResult.java | 101 +- .../fabric/outputs/GetCloudRoutersData.java | 96 +- .../outputs/GetCloudRoutersDataAccount.java | 6 +- .../outputs/GetCloudRoutersDataChangeLog.java | 61 +- .../outputs/GetCloudRoutersDataLocation.java | 21 +- .../GetCloudRoutersDataNotification.java | 12 +- .../outputs/GetCloudRoutersDataOrder.java | 21 +- .../outputs/GetCloudRoutersDataPackage.java | 6 +- .../outputs/GetCloudRoutersDataProject.java | 11 +- .../fabric/outputs/GetCloudRoutersFilter.java | 17 +- .../outputs/GetCloudRoutersPagination.java | 2 + .../fabric/outputs/GetCloudRoutersResult.java | 18 +- .../fabric/outputs/GetCloudRoutersSort.java | 2 + .../fabric/outputs/GetConnectionASide.java | 3 + .../GetConnectionASideAccessPoint.java | 28 +- .../GetConnectionASideAccessPointAccount.java | 41 +- .../GetConnectionASideAccessPointGateway.java | 7 +- ...etConnectionASideAccessPointInterface.java | 8 +- ...onnectionASideAccessPointLinkProtocol.java | 17 +- ...GetConnectionASideAccessPointLocation.java | 21 +- .../GetConnectionASideAccessPointNetwork.java | 7 +- .../GetConnectionASideAccessPointPort.java | 21 +- ...nectionASideAccessPointPortRedundancy.java | 16 +- .../GetConnectionASideAccessPointProfile.java | 31 +- ...cessPointProfileAccessPointTypeConfig.java | 11 +- .../GetConnectionASideAccessPointRouter.java | 7 +- ...nnectionASideAccessPointVirtualDevice.java | 9 +- .../GetConnectionASideAdditionalInfo.java | 2 + .../GetConnectionASideServiceToken.java | 13 +- .../fabric/outputs/GetConnectionAccount.java | 41 +- .../outputs/GetConnectionChangeLog.java | 61 +- .../outputs/GetConnectionNotification.java | 12 +- .../outputs/GetConnectionOperation.java | 16 +- .../outputs/GetConnectionOperationError.java | 31 +- ...onnectionOperationErrorAdditionalInfo.java | 11 +- .../fabric/outputs/GetConnectionOrder.java | 21 +- .../fabric/outputs/GetConnectionProject.java | 11 +- .../outputs/GetConnectionRedundancy.java | 11 +- .../fabric/outputs/GetConnectionResult.java | 101 +- .../fabric/outputs/GetConnectionZSide.java | 3 + .../GetConnectionZSideAccessPoint.java | 28 +- .../GetConnectionZSideAccessPointAccount.java | 41 +- .../GetConnectionZSideAccessPointGateway.java | 7 +- ...etConnectionZSideAccessPointInterface.java | 8 +- ...onnectionZSideAccessPointLinkProtocol.java | 17 +- ...GetConnectionZSideAccessPointLocation.java | 21 +- .../GetConnectionZSideAccessPointNetwork.java | 7 +- .../GetConnectionZSideAccessPointPort.java | 21 +- ...nectionZSideAccessPointPortRedundancy.java | 16 +- .../GetConnectionZSideAccessPointProfile.java | 31 +- ...cessPointProfileAccessPointTypeConfig.java | 11 +- .../GetConnectionZSideAccessPointRouter.java | 7 +- ...nnectionZSideAccessPointVirtualDevice.java | 9 +- .../GetConnectionZSideAdditionalInfo.java | 2 + .../GetConnectionZSideServiceToken.java | 13 +- .../fabric/outputs/GetConnectionsData.java | 96 +- .../outputs/GetConnectionsDataASide.java | 3 + .../GetConnectionsDataASideAccessPoint.java | 28 +- ...onnectionsDataASideAccessPointAccount.java | 41 +- ...onnectionsDataASideAccessPointGateway.java | 7 +- ...nectionsDataASideAccessPointInterface.java | 8 +- ...tionsDataASideAccessPointLinkProtocol.java | 17 +- ...nnectionsDataASideAccessPointLocation.java | 21 +- ...onnectionsDataASideAccessPointNetwork.java | 7 +- ...etConnectionsDataASideAccessPointPort.java | 21 +- ...onsDataASideAccessPointPortRedundancy.java | 16 +- ...onnectionsDataASideAccessPointProfile.java | 31 +- ...cessPointProfileAccessPointTypeConfig.java | 11 +- ...ConnectionsDataASideAccessPointRouter.java | 7 +- ...ionsDataASideAccessPointVirtualDevice.java | 9 +- ...GetConnectionsDataASideAdditionalInfo.java | 2 + .../GetConnectionsDataASideServiceToken.java | 13 +- .../outputs/GetConnectionsDataAccount.java | 41 +- .../outputs/GetConnectionsDataChangeLog.java | 61 +- .../GetConnectionsDataNotification.java | 12 +- .../outputs/GetConnectionsDataOperation.java | 16 +- .../GetConnectionsDataOperationError.java | 31 +- ...tionsDataOperationErrorAdditionalInfo.java | 11 +- .../outputs/GetConnectionsDataOrder.java | 21 +- .../outputs/GetConnectionsDataProject.java | 11 +- .../outputs/GetConnectionsDataRedundancy.java | 11 +- .../outputs/GetConnectionsDataZSide.java | 3 + .../GetConnectionsDataZSideAccessPoint.java | 28 +- ...onnectionsDataZSideAccessPointAccount.java | 41 +- ...onnectionsDataZSideAccessPointGateway.java | 7 +- ...nectionsDataZSideAccessPointInterface.java | 8 +- ...tionsDataZSideAccessPointLinkProtocol.java | 17 +- ...nnectionsDataZSideAccessPointLocation.java | 21 +- ...onnectionsDataZSideAccessPointNetwork.java | 7 +- ...etConnectionsDataZSideAccessPointPort.java | 21 +- ...onsDataZSideAccessPointPortRedundancy.java | 16 +- ...onnectionsDataZSideAccessPointProfile.java | 31 +- ...cessPointProfileAccessPointTypeConfig.java | 11 +- ...ConnectionsDataZSideAccessPointRouter.java | 7 +- ...ionsDataZSideAccessPointVirtualDevice.java | 9 +- ...GetConnectionsDataZSideAdditionalInfo.java | 2 + .../GetConnectionsDataZSideServiceToken.java | 13 +- .../fabric/outputs/GetConnectionsFilter.java | 17 +- .../outputs/GetConnectionsPagination.java | 2 + .../fabric/outputs/GetConnectionsResult.java | 23 +- .../fabric/outputs/GetConnectionsSort.java | 2 + .../fabric/outputs/GetNetworkChange.java | 16 +- .../fabric/outputs/GetNetworkChangeLog.java | 61 +- .../fabric/outputs/GetNetworkLocation.java | 21 +- .../outputs/GetNetworkNotification.java | 12 +- .../fabric/outputs/GetNetworkOperation.java | 6 +- .../fabric/outputs/GetNetworkProject.java | 6 +- .../fabric/outputs/GetNetworkResult.java | 71 +- .../fabric/outputs/GetNetworksData.java | 66 +- .../fabric/outputs/GetNetworksDataChange.java | 16 +- .../outputs/GetNetworksDataChangeLog.java | 61 +- .../outputs/GetNetworksDataLocation.java | 21 +- .../outputs/GetNetworksDataNotification.java | 12 +- .../outputs/GetNetworksDataOperation.java | 6 +- .../outputs/GetNetworksDataProject.java | 6 +- .../fabric/outputs/GetNetworksFilter.java | 17 +- .../fabric/outputs/GetNetworksPagination.java | 2 + .../fabric/outputs/GetNetworksResult.java | 23 +- .../fabric/outputs/GetNetworksSort.java | 2 + .../pulumi/fabric/outputs/GetPortAccount.java | 41 +- .../fabric/outputs/GetPortChangeLog.java | 61 +- .../pulumi/fabric/outputs/GetPortDevice.java | 11 +- .../outputs/GetPortDeviceRedundancy.java | 16 +- .../fabric/outputs/GetPortEncapsulation.java | 11 +- .../fabric/outputs/GetPortLocation.java | 21 +- .../fabric/outputs/GetPortOperation.java | 16 +- .../fabric/outputs/GetPortRedundancy.java | 16 +- .../pulumi/fabric/outputs/GetPortResult.java | 96 +- .../pulumi/fabric/outputs/GetPortsDatum.java | 91 +- .../fabric/outputs/GetPortsDatumAccount.java | 41 +- .../outputs/GetPortsDatumChangeLog.java | 61 +- .../fabric/outputs/GetPortsDatumDevice.java | 11 +- .../GetPortsDatumDeviceRedundancy.java | 16 +- .../outputs/GetPortsDatumEncapsulation.java | 11 +- .../fabric/outputs/GetPortsDatumLocation.java | 21 +- .../outputs/GetPortsDatumOperation.java | 16 +- .../outputs/GetPortsDatumRedundancy.java | 16 +- .../pulumi/fabric/outputs/GetPortsFilter.java | 6 +- .../pulumi/fabric/outputs/GetPortsResult.java | 16 +- .../fabric/outputs/GetRoutingProtocolBfd.java | 7 +- .../outputs/GetRoutingProtocolBgpIpv4.java | 12 +- .../outputs/GetRoutingProtocolBgpIpv6.java | 12 +- .../outputs/GetRoutingProtocolChange.java | 16 +- .../outputs/GetRoutingProtocolChangeLog.java | 61 +- .../outputs/GetRoutingProtocolDirectIpv4.java | 6 +- .../outputs/GetRoutingProtocolDirectIpv6.java | 1 + .../outputs/GetRoutingProtocolOperation.java | 6 +- .../GetRoutingProtocolOperationError.java | 31 +- ...gProtocolOperationErrorAdditionalInfo.java | 11 +- .../outputs/GetRoutingProtocolResult.java | 96 +- ...etServiceProfileAccessPointTypeConfig.java | 23 +- ...ProfileAccessPointTypeConfigApiConfig.java | 7 + ...ccessPointTypeConfigAuthenticationKey.java | 3 + ...cessPointTypeConfigLinkProtocolConfig.java | 3 + .../outputs/GetServiceProfileAccount.java | 41 +- .../outputs/GetServiceProfileChangeLog.java | 61 +- .../outputs/GetServiceProfileCustomField.java | 19 +- .../GetServiceProfileMarketingInfo.java | 3 + ...erviceProfileMarketingInfoProcessStep.java | 3 + .../outputs/GetServiceProfileMetro.java | 6 + .../GetServiceProfileNotification.java | 12 +- .../fabric/outputs/GetServiceProfilePort.java | 15 +- .../GetServiceProfilePortLocation.java | 21 +- .../outputs/GetServiceProfileProject.java | 11 +- .../outputs/GetServiceProfileResult.java | 111 +- .../GetServiceProfileVirtualDevice.java | 13 +- ...etServiceProfileVirtualDeviceLocation.java | 21 +- .../outputs/GetServiceProfilesDatum.java | 106 +- ...iceProfilesDatumAccessPointTypeConfig.java | 23 +- ...esDatumAccessPointTypeConfigApiConfig.java | 7 + ...ccessPointTypeConfigAuthenticationKey.java | 3 + ...cessPointTypeConfigLinkProtocolConfig.java | 3 + .../GetServiceProfilesDatumAccount.java | 41 +- .../GetServiceProfilesDatumChangeLog.java | 61 +- .../GetServiceProfilesDatumCustomField.java | 19 +- .../GetServiceProfilesDatumMarketingInfo.java | 3 + ...ProfilesDatumMarketingInfoProcessStep.java | 3 + .../outputs/GetServiceProfilesDatumMetro.java | 6 + .../GetServiceProfilesDatumNotification.java | 12 +- .../outputs/GetServiceProfilesDatumPort.java | 15 +- .../GetServiceProfilesDatumPortLocation.java | 21 +- .../GetServiceProfilesDatumProject.java | 11 +- .../GetServiceProfilesDatumVirtualDevice.java | 13 +- ...iceProfilesDatumVirtualDeviceLocation.java | 21 +- .../outputs/GetServiceProfilesFilter.java | 16 +- .../outputs/GetServiceProfilesPagination.java | 2 + .../outputs/GetServiceProfilesResult.java | 20 +- .../outputs/GetServiceProfilesSort.java | 2 + .../pulumi/fabric/outputs/NetworkChange.java | 3 + .../fabric/outputs/NetworkChangeLog.java | 12 + .../fabric/outputs/NetworkLocation.java | 4 + .../fabric/outputs/NetworkNotification.java | 12 +- .../fabric/outputs/NetworkOperation.java | 1 + .../pulumi/fabric/outputs/NetworkProject.java | 6 +- .../fabric/outputs/RoutingProtocolBfd.java | 7 +- .../outputs/RoutingProtocolBgpIpv4.java | 8 +- .../outputs/RoutingProtocolBgpIpv6.java | 8 +- .../fabric/outputs/RoutingProtocolChange.java | 3 + .../outputs/RoutingProtocolChangeLog.java | 12 + .../outputs/RoutingProtocolDirectIpv4.java | 6 +- .../outputs/RoutingProtocolDirectIpv6.java | 1 + .../outputs/RoutingProtocolOperation.java | 1 + .../RoutingProtocolOperationError.java | 6 + ...gProtocolOperationErrorAdditionalInfo.java | 2 + .../ServiceProfileAccessPointTypeConfig.java | 19 +- ...ProfileAccessPointTypeConfigApiConfig.java | 7 + ...ccessPointTypeConfigAuthenticationKey.java | 3 + ...cessPointTypeConfigLinkProtocolConfig.java | 3 + .../fabric/outputs/ServiceProfileAccount.java | 8 + .../outputs/ServiceProfileChangeLog.java | 12 + .../outputs/ServiceProfileCustomField.java | 19 +- .../outputs/ServiceProfileMarketingInfo.java | 3 + ...erviceProfileMarketingInfoProcessStep.java | 3 + .../fabric/outputs/ServiceProfileMetro.java | 6 + .../outputs/ServiceProfileNotification.java | 12 +- .../fabric/outputs/ServiceProfilePort.java | 15 +- .../outputs/ServiceProfilePortLocation.java | 4 + .../fabric/outputs/ServiceProfileProject.java | 2 + .../outputs/ServiceProfileVirtualDevice.java | 13 +- .../ServiceProfileVirtualDeviceLocation.java | 4 + .../com/equinix/pulumi/metal/BgpSession.java | 14 +- .../equinix/pulumi/metal/BgpSessionArgs.java | 9 +- .../java/com/equinix/pulumi/metal/Device.java | 22 +- .../com/equinix/pulumi/metal/DeviceArgs.java | 13 +- .../pulumi/metal/DeviceNetworkType.java | 14 +- .../pulumi/metal/DeviceNetworkTypeArgs.java | 9 +- .../com/equinix/pulumi/metal/Gateway.java | 14 +- .../com/equinix/pulumi/metal/GatewayArgs.java | 9 +- .../equinix/pulumi/metal/Interconnection.java | 28 +- .../pulumi/metal/InterconnectionArgs.java | 9 +- .../equinix/pulumi/metal/IpAttachment.java | 16 +- .../pulumi/metal/IpAttachmentArgs.java | 9 +- .../equinix/pulumi/metal/MetalFunctions.java | 1736 ++++++++++------- .../equinix/pulumi/metal/Organization.java | 22 +- .../pulumi/metal/OrganizationMember.java | 20 +- .../pulumi/metal/OrganizationMemberArgs.java | 17 +- .../java/com/equinix/pulumi/metal/Port.java | 16 +- .../com/equinix/pulumi/metal/PortArgs.java | 9 +- .../pulumi/metal/PortVlanAttachment.java | 18 +- .../pulumi/metal/PortVlanAttachmentArgs.java | 13 +- .../com/equinix/pulumi/metal/Project.java | 14 +- .../equinix/pulumi/metal/ProjectApiKey.java | 16 +- .../pulumi/metal/ProjectApiKeyArgs.java | 13 +- .../equinix/pulumi/metal/ProjectSshKey.java | 16 +- .../pulumi/metal/ProjectSshKeyArgs.java | 9 +- .../equinix/pulumi/metal/ReservedIpBlock.java | 20 +- .../pulumi/metal/ReservedIpBlockArgs.java | 5 +- .../pulumi/metal/SpotMarketRequest.java | 22 +- .../pulumi/metal/SpotMarketRequestArgs.java | 21 +- .../java/com/equinix/pulumi/metal/SshKey.java | 14 +- .../com/equinix/pulumi/metal/SshKeyArgs.java | 5 +- .../com/equinix/pulumi/metal/UserApiKey.java | 14 +- .../equinix/pulumi/metal/UserApiKeyArgs.java | 9 +- .../equinix/pulumi/metal/VirtualCircuit.java | 20 +- .../pulumi/metal/VirtualCircuitArgs.java | 13 +- .../java/com/equinix/pulumi/metal/Vlan.java | 18 +- .../com/equinix/pulumi/metal/VlanArgs.java | 5 +- .../java/com/equinix/pulumi/metal/Vrf.java | 22 +- .../com/equinix/pulumi/metal/VrfArgs.java | 9 +- .../metal/inputs/DeviceIpAddressArgs.java | 5 +- .../inputs/GetDeviceBgpNeighborsArgs.java | 5 +- .../GetDeviceBgpNeighborsPlainArgs.java | 5 +- .../pulumi/metal/inputs/GetDevicesFilter.java | 9 +- .../metal/inputs/GetDevicesFilterArgs.java | 9 +- .../pulumi/metal/inputs/GetDevicesSort.java | 5 +- .../metal/inputs/GetDevicesSortArgs.java | 5 +- .../pulumi/metal/inputs/GetFacilityArgs.java | 5 +- .../metal/inputs/GetFacilityCapacity.java | 5 +- .../metal/inputs/GetFacilityCapacityArgs.java | 5 +- .../metal/inputs/GetFacilityPlainArgs.java | 5 +- .../pulumi/metal/inputs/GetGatewayArgs.java | 5 +- .../metal/inputs/GetGatewayPlainArgs.java | 5 +- .../metal/inputs/GetInterconnectionArgs.java | 5 +- .../inputs/GetInterconnectionPlainArgs.java | 5 +- .../metal/inputs/GetIpBlockRangesArgs.java | 5 +- .../inputs/GetIpBlockRangesPlainArgs.java | 5 +- .../pulumi/metal/inputs/GetMetroArgs.java | 5 +- .../pulumi/metal/inputs/GetMetroCapacity.java | 5 +- .../metal/inputs/GetMetroCapacityArgs.java | 5 +- .../metal/inputs/GetMetroPlainArgs.java | 5 +- .../pulumi/metal/inputs/GetPlansFilter.java | 9 +- .../metal/inputs/GetPlansFilterArgs.java | 9 +- .../pulumi/metal/inputs/GetPlansSort.java | 5 +- .../pulumi/metal/inputs/GetPlansSortArgs.java | 5 +- .../inputs/GetPrecreatedIpBlockArgs.java | 13 +- .../inputs/GetPrecreatedIpBlockPlainArgs.java | 13 +- .../metal/inputs/GetProjectSshKeyArgs.java | 5 +- .../inputs/GetProjectSshKeyPlainArgs.java | 5 +- .../metal/inputs/GetSpotMarketPriceArgs.java | 5 +- .../inputs/GetSpotMarketPricePlainArgs.java | 5 +- .../inputs/GetSpotMarketRequestArgs.java | 5 +- .../inputs/GetSpotMarketRequestPlainArgs.java | 5 +- .../metal/inputs/GetVirtualCircuitArgs.java | 5 +- .../inputs/GetVirtualCircuitPlainArgs.java | 5 +- .../pulumi/metal/inputs/GetVrfArgs.java | 5 +- .../pulumi/metal/inputs/GetVrfPlainArgs.java | 5 +- .../metal/inputs/InterconnectionPortArgs.java | 29 +- .../InterconnectionServiceTokenArgs.java | 25 +- .../metal/inputs/OrganizationAddressArgs.java | 17 +- .../metal/inputs/ProjectBgpConfigArgs.java | 9 +- ...otMarketRequestInstanceParametersArgs.java | 17 +- .../pulumi/metal/outputs/DeviceBehavior.java | 1 + .../pulumi/metal/outputs/DeviceIpAddress.java | 8 +- .../pulumi/metal/outputs/DeviceNetwork.java | 5 + .../pulumi/metal/outputs/DevicePort.java | 5 + .../pulumi/metal/outputs/DeviceReinstall.java | 3 + .../pulumi/metal/outputs/GatewayTimeouts.java | 1 + .../GetDeviceBgpNeighborsBgpNeighbor.java | 47 +- ...DeviceBgpNeighborsBgpNeighborRoutesIn.java | 11 +- ...eviceBgpNeighborsBgpNeighborRoutesOut.java | 11 +- .../outputs/GetDeviceBgpNeighborsResult.java | 16 +- .../metal/outputs/GetDeviceNetwork.java | 26 +- .../pulumi/metal/outputs/GetDevicePort.java | 26 +- .../pulumi/metal/outputs/GetDeviceResult.java | 126 +- .../metal/outputs/GetDevicesDevice.java | 121 +- .../outputs/GetDevicesDeviceNetwork.java | 26 +- .../metal/outputs/GetDevicesDevicePort.java | 26 +- .../metal/outputs/GetDevicesFilter.java | 13 +- .../metal/outputs/GetDevicesResult.java | 16 +- .../pulumi/metal/outputs/GetDevicesSort.java | 7 +- .../metal/outputs/GetFacilityCapacity.java | 7 +- .../metal/outputs/GetFacilityResult.java | 28 +- .../metal/outputs/GetGatewayResult.java | 41 +- .../outputs/GetHardwareReservationResult.java | 46 +- .../metal/outputs/GetInterconnectionPort.java | 36 +- .../outputs/GetInterconnectionResult.java | 111 +- .../GetInterconnectionServiceToken.java | 31 +- .../metal/outputs/GetIpBlockRangesResult.java | 33 +- .../metal/outputs/GetMetroCapacity.java | 7 +- .../pulumi/metal/outputs/GetMetroResult.java | 22 +- .../outputs/GetOperatingSystemResult.java | 15 +- .../metal/outputs/GetOrganizationAddress.java | 26 +- .../metal/outputs/GetOrganizationResult.java | 42 +- .../pulumi/metal/outputs/GetPlansFilter.java | 13 +- .../pulumi/metal/outputs/GetPlansPlan.java | 61 +- .../pulumi/metal/outputs/GetPlansResult.java | 13 +- .../pulumi/metal/outputs/GetPlansSort.java | 7 +- .../pulumi/metal/outputs/GetPortResult.java | 68 +- .../outputs/GetPrecreatedIpBlockResult.java | 79 +- .../metal/outputs/GetProjectBgpConfig.java | 26 +- .../metal/outputs/GetProjectResult.java | 51 +- .../metal/outputs/GetProjectSshKeyResult.java | 42 +- .../outputs/GetReservedIpBlockResult.java | 92 +- .../outputs/GetSpotMarketPriceResult.java | 18 +- .../outputs/GetSpotMarketRequestResult.java | 56 +- .../outputs/GetVirtualCircuitResult.java | 101 +- .../pulumi/metal/outputs/GetVlanResult.java | 41 +- .../pulumi/metal/outputs/GetVrfResult.java | 41 +- .../metal/outputs/InterconnectionPort.java | 36 +- .../outputs/InterconnectionServiceToken.java | 31 +- .../metal/outputs/OrganizationAddress.java | 22 +- .../metal/outputs/ProjectBgpConfig.java | 14 +- .../SpotMarketRequestInstanceParameters.java | 33 +- .../pulumi/networkedge/AclTemplate.java | 34 +- .../pulumi/networkedge/AclTemplateArgs.java | 5 +- .../com/equinix/pulumi/networkedge/Bgp.java | 20 +- .../equinix/pulumi/networkedge/BgpArgs.java | 21 +- .../equinix/pulumi/networkedge/Device.java | 48 +- .../pulumi/networkedge/DeviceArgs.java | 33 +- .../pulumi/networkedge/DeviceLink.java | 38 +- .../pulumi/networkedge/DeviceLinkArgs.java | 5 +- .../pulumi/networkedge/NetworkFile.java | 22 +- .../pulumi/networkedge/NetworkFileArgs.java | 29 +- .../networkedge/NetworkedgeFunctions.java | 296 +-- .../equinix/pulumi/networkedge/SshKey.java | 14 +- .../pulumi/networkedge/SshKeyArgs.java | 5 +- .../equinix/pulumi/networkedge/SshUser.java | 16 +- .../pulumi/networkedge/SshUserArgs.java | 13 +- .../inputs/AclTemplateInboundRuleArgs.java | 13 +- .../inputs/DeviceClusterDetailsArgs.java | 13 +- .../inputs/DeviceLinkDeviceArgs.java | 5 +- .../inputs/DeviceLinkLinkArgs.java | 21 +- .../inputs/DeviceLinkMetroLinkArgs.java | 17 +- .../inputs/DeviceSecondaryDeviceArgs.java | 17 +- .../DeviceSecondaryDeviceSshKeyArgs.java | 9 +- .../networkedge/inputs/DeviceSshKeyArgs.java | 9 +- .../networkedge/inputs/GetAccountArgs.java | 5 +- .../inputs/GetAccountPlainArgs.java | 5 +- .../inputs/GetDevicePlatformArgs.java | 5 +- .../inputs/GetDevicePlatformPlainArgs.java | 5 +- .../inputs/GetDeviceSoftwareArgs.java | 5 +- .../inputs/GetDeviceSoftwarePlainArgs.java | 5 +- .../outputs/AclTemplateDeviceDetail.java | 3 + .../outputs/AclTemplateInboundRule.java | 21 +- .../outputs/DeviceClusterDetails.java | 18 +- .../outputs/DeviceClusterDetailsNode0.java | 5 + ...lusterDetailsNode0VendorConfiguration.java | 11 + .../outputs/DeviceClusterDetailsNode1.java | 5 + ...lusterDetailsNode1VendorConfiguration.java | 11 + .../networkedge/outputs/DeviceInterface.java | 8 + .../networkedge/outputs/DeviceLinkDevice.java | 10 +- .../networkedge/outputs/DeviceLinkLink.java | 28 +- .../outputs/DeviceLinkMetroLink.java | 21 +- .../outputs/DeviceSecondaryDevice.java | 45 +- .../DeviceSecondaryDeviceInterface.java | 8 + .../outputs/DeviceSecondaryDeviceSshKey.java | 11 +- .../networkedge/outputs/DeviceSshKey.java | 11 +- .../networkedge/outputs/GetAccountResult.java | 36 +- .../outputs/GetDeviceClusterDetail.java | 26 +- .../outputs/GetDeviceClusterDetailNode0.java | 26 +- ...ClusterDetailNode0VendorConfiguration.java | 56 +- .../outputs/GetDeviceClusterDetailNode1.java | 26 +- ...ClusterDetailNode1VendorConfiguration.java | 56 +- .../outputs/GetDeviceInterface.java | 41 +- .../outputs/GetDevicePlatformResult.java | 46 +- .../networkedge/outputs/GetDeviceResult.java | 227 ++- .../outputs/GetDeviceSecondaryDevice.java | 141 +- .../GetDeviceSecondaryDeviceInterface.java | 41 +- .../GetDeviceSecondaryDeviceSshKey.java | 11 +- .../outputs/GetDeviceSoftwareResult.java | 48 +- .../networkedge/outputs/GetDeviceSshKey.java | 11 +- .../outputs/GetDeviceTypeResult.java | 36 +- 529 files changed, 9159 insertions(+), 3179 deletions(-) diff --git a/.upgrade-config.yml b/.upgrade-config.yml index 9b0a1727..0ebc61ec 100644 --- a/.upgrade-config.yml +++ b/.upgrade-config.yml @@ -5,4 +5,3 @@ upstream-provider-name: terraform-provider-equinix remove-plugins: true pr-reviewers: equinix/governor-devrel-engineering -javaVersion: "v0.9.8" \ No newline at end of file diff --git a/Makefile b/Makefile index e3707c6d..ba97e2ff 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,6 @@ TFGEN := pulumi-tfgen-${PACK} PROVIDER := pulumi-resource-${PACK} VERSION := $(shell pulumictl get version) JAVA_GEN := pulumi-java-gen -JAVA_GEN_VERSION := v0.9.8 JAVA_GROUP_ID := com.${ORG}.pulumi JAVA_ARTIFACT_ID := ${PACK} TESTPARALLELISM := 4 @@ -31,18 +30,18 @@ development: install_plugins provider lint_provider build_sdks install_sdks clea build: install_plugins provider build_sdks install_sdks only_build: build -tfgen: install_plugins upstream +tfgen: cleanup install_plugins upstream (cd provider && go build -o $(WORKING_DIR)/bin/${TFGEN} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${TFGEN}) $(WORKING_DIR)/bin/${TFGEN} schema --out provider/cmd/${PROVIDER} (cd provider && VERSION=$(VERSION) go generate cmd/${PROVIDER}/main.go) -bin/pulumi-java-gen: - pulumictl download-binary -n pulumi-language-java -v $(JAVA_GEN_VERSION) -r pulumi/pulumi-java +bin/pulumi-java-gen: .pulumi-java-gen.version + pulumictl download-binary -n pulumi-language-java -v v$(shell cat .pulumi-java-gen.version) -r pulumi/pulumi-java provider: tfgen install_plugins # build the provider binary (cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION} -X github.com/equinix/terraform-provider-equinix/version.ProviderVersion=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${PROVIDER}) -build_sdks: build_nodejs build_python build_go build_dotnet build_java # build all the sdks +build_sdks: clean build_nodejs build_python build_go build_dotnet build_java # build all the sdks build_nodejs: VERSION := $(shell pulumictl get version --language javascript) build_nodejs: upstream @@ -119,7 +118,8 @@ build_java: bin/pulumi-java-gen patch_java_schema upstream rm -f build.gradle.bak cd sdk/java/ && \ printf "module fake_java_module // Exclude this directory from Go tools\n\ngo 1.17\n" > go.mod && \ - gradle --console=plain build + gradle --console=plain build && \ + gradle --console=plain javadoc patch_java_schema: echo "patch_java_schema: copy schema.json to schema-java.json " && \ diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 6b544b0c..04d0ae0c 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -46,7 +46,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.12.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouter.java index 0ce83679..19823a87 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouter.java @@ -31,7 +31,8 @@ * * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#fabric-cloud-routers * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -57,33 +58,34 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var metro = config.get("metro").orElse("FR");
- *         final var accountNum = config.get("accountNum");
- *         var router = new CloudRouter("router", CloudRouterArgs.builder()        
- *             .name("My-Fabric-Cloud-Router")
- *             .type("XF_ROUTER")
+ *         final var metro = config.get("metro").orElse("FR");
+ *         final var accountNum = config.get("accountNum");
+ *         var router = new CloudRouter("router", CloudRouterArgs.builder()        
+ *             .name("My-Fabric-Cloud-Router")
+ *             .type("XF_ROUTER")
  *             .location(CloudRouterLocationArgs.builder()
  *                 .metroCode(metro)
  *                 .build())
  *             .package_(CloudRouterPackageArgs.builder()
- *                 .code("BASIC")
+ *                 .code("BASIC")
  *                 .build())
  *             .notifications(CloudRouterNotificationArgs.builder()
- *                 .type("ALL")
- *                 .emails("example@equinix.com")
+ *                 .type("ALL")
+ *                 .emails("example{@literal @}equinix.com")
  *                 .build())
  *             .account(CloudRouterAccountArgs.builder()
  *                 .accountNumber(272010)
  *                 .build())
  *             .project(CloudRouterProjectArgs.builder()
- *                 .projectId("995072000433550")
+ *                 .projectId("995072000433550")
  *                 .build())
  *             .build());
  * 
- *         ctx.export("routerId", router.id());
+ *         ctx.export("routerId", router.id());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:fabric/cloudRouter:CloudRouter") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouterArgs.java index bf144392..3ad2e305 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/CloudRouterArgs.java @@ -11,6 +11,7 @@ import com.equinix.pulumi.fabric.inputs.CloudRouterProjectArgs; 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; @@ -463,12 +464,24 @@ public Builder uuid(String uuid) { } public CloudRouterArgs build() { - $.account = Objects.requireNonNull($.account, "expected parameter 'account' to be non-null"); - $.location = Objects.requireNonNull($.location, "expected parameter 'location' to be non-null"); - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); - $.package_ = Objects.requireNonNull($.package_, "expected parameter 'package' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.account == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "account"); + } + if ($.location == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "location"); + } + if ($.notifications == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "notifications"); + } + if ($.package_ == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "package_"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "project"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CloudRouterArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/Connection.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/Connection.java index 49d2e066..07292d81 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/Connection.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/Connection.java @@ -30,7 +30,8 @@ /** * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -60,56 +61,56 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var metro = config.get("metro").orElse("FR");
- *         final var speedInMbps = Integer.parseInt(config.get("speedInMbps").orElse("50"));
- *         final var fabricPortName = config.get("fabricPortName").get().toString();
- *         final var awsRegion = config.get("awsRegion").orElse("eu-central-1");
- *         final var awsAccountId = config.get("awsAccountId").get().toString();
- *         System.out.println(System.getProperty("java.classpath"));
+ *         final var metro = config.get("metro").orElse("FR");
+ *         final var speedInMbps = Integer.parseInt(config.get("speedInMbps").orElse("50"));
+ *         final var fabricPortName = config.get("fabricPortName").get().toString();
+ *         final var awsRegion = config.get("awsRegion").orElse("eu-central-1");
+ *         final var awsAccountId = config.get("awsAccountId").get().toString();
+ *         System.out.println(System.getProperty("java.classpath"));
  *         final var serviceProfileId = FabricFunctions.getServiceProfiles(GetServiceProfilesArgs.builder()
  *             .filter(GetServiceProfilesFilterArgs.builder()
- *                 .property("/name")
- *                 .operator("=")
- *                 .values("AWS Direct Connect")
+ *                 .property("/name")
+ *                 .operator("=")
+ *                 .values("AWS Direct Connect")
  *                 .build())
- *             .build()).applyValue(data -> data.data().get(0).uuid().get());
+ *             .build()).applyValue(data -> data.data().get(0).uuid().get());
  * 
  *         final var portId = FabricFunctions.getPorts(GetPortsArgs.builder()
  *             .filter(GetPortsFilterArgs.builder()
  *                 .name(fabricPortName)
  *                 .build())
- *             .build()).applyValue(data -> data.data().get(0).uuid().get());
+ *             .build()).applyValue(data -> data.data().get(0).uuid().get());
  * 
- *         var colo2Aws = new Connection("colo2Aws", ConnectionArgs.builder()        
- *             .name("Pulumi-colo2Aws")
- *             .type("EVPL_VC")
+ *         var colo2Aws = new Connection("colo2Aws", ConnectionArgs.builder()        
+ *             .name("Pulumi-colo2Aws")
+ *             .type("EVPL_VC")
  *             .notifications(ConnectionNotificationArgs.builder()
- *                 .type("ALL")
- *                 .emails("example@equinix.com")
+ *                 .type("ALL")
+ *                 .emails("example{@literal @}equinix.com")
  *                 .build())
  *             .bandwidth(speedInMbps)
  *             .redundancy(ConnectionRedundancyArgs.builder()
- *                 .priority("PRIMARY")
+ *                 .priority("PRIMARY")
  *                 .build())
  *             .aSide(ConnectionASideArgs.builder()
  *                 .accessPoint(ConnectionASideAccessPointArgs.builder()
- *                     .type("COLO")
+ *                     .type("COLO")
  *                     .port(ConnectionASideAccessPointPortArgs.builder()
  *                         .uuid(portId)
  *                         .build())
  *                     .linkProtocol(ConnectionASideAccessPointLinkProtocolArgs.builder()
- *                         .type("DOT1Q")
+ *                         .type("DOT1Q")
  *                         .vlanTag(1234)
  *                         .build())
  *                     .build())
  *                 .build())
  *             .zSide(ConnectionZSideArgs.builder()
  *                 .accessPoint(ConnectionZSideAccessPointArgs.builder()
- *                     .type("SP")
+ *                     .type("SP")
  *                     .authenticationKey(awsAccountId)
  *                     .sellerRegion(awsRegion)
  *                     .profile(ConnectionZSideAccessPointProfileArgs.builder()
- *                         .type("L2_PROFILE")
+ *                         .type("L2_PROFILE")
  *                         .uuid(serviceProfileId)
  *                         .build())
  *                     .location(ConnectionZSideAccessPointLocationArgs.builder()
@@ -119,13 +120,14 @@
  *                 .build())
  *             .build());
  * 
- *         ctx.export("connectionId", colo2Aws.id());
- *         ctx.export("connectionStatus", colo2Aws.operation().applyValue(operation -> operation.equinixStatus()));
- *         ctx.export("connectionProviderStatus", colo2Aws.operation().applyValue(operation -> operation.providerStatus()));
- *         ctx.export("awsDirectConnectId", colo2Aws.zSide().applyValue(zSide -> zSide.accessPoint().get().providerConnectionId()));
+ *         ctx.export("connectionId", colo2Aws.id());
+ *         ctx.export("connectionStatus", colo2Aws.operation().applyValue(operation -> operation.equinixStatus()));
+ *         ctx.export("connectionProviderStatus", colo2Aws.operation().applyValue(operation -> operation.providerStatus()));
+ *         ctx.export("awsDirectConnectId", colo2Aws.zSide().applyValue(zSide -> zSide.accessPoint().get().providerConnectionId()));
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:fabric/connection:Connection") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ConnectionArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ConnectionArgs.java index ba85a453..3b9c471b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ConnectionArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ConnectionArgs.java @@ -13,6 +13,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.Object; import java.lang.String; @@ -498,11 +499,21 @@ public Builder zSide(ConnectionZSideArgs zSide) { } public ConnectionArgs build() { - $.aSide = Objects.requireNonNull($.aSide, "expected parameter 'aSide' to be non-null"); - $.bandwidth = Objects.requireNonNull($.bandwidth, "expected parameter 'bandwidth' to be non-null"); - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.zSide = Objects.requireNonNull($.zSide, "expected parameter 'zSide' to be non-null"); + if ($.aSide == null) { + throw new MissingRequiredPropertyException("ConnectionArgs", "aSide"); + } + if ($.bandwidth == null) { + throw new MissingRequiredPropertyException("ConnectionArgs", "bandwidth"); + } + if ($.notifications == null) { + throw new MissingRequiredPropertyException("ConnectionArgs", "notifications"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ConnectionArgs", "type"); + } + if ($.zSide == null) { + throw new MissingRequiredPropertyException("ConnectionArgs", "zSide"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/FabricFunctions.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/FabricFunctions.java index 6bff52c8..cd94961f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/FabricFunctions.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/FabricFunctions.java @@ -54,7 +54,8 @@ public final class FabricFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -76,22 +77,23 @@ public final class FabricFunctions {
      * 
      *     public static void stack(Context ctx) {
      *         final var cloudRouterDataName = FabricFunctions.getCloudRouter(GetCloudRouterArgs.builder()
-     *             .uuid("<uuid_of_cloud_router>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
-     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
-     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
-     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
-     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
-     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
-     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
-     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
-     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
-     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
+     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
+     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
+     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
+     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
+     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
+     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
+     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
+     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
+     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
+     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -108,7 +110,8 @@ public static Output getCloudRouter(GetCloudRouterArgs arg * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -130,22 +133,23 @@ public static Output getCloudRouter(GetCloudRouterArgs arg
      * 
      *     public static void stack(Context ctx) {
      *         final var cloudRouterDataName = FabricFunctions.getCloudRouter(GetCloudRouterArgs.builder()
-     *             .uuid("<uuid_of_cloud_router>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
-     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
-     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
-     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
-     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
-     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
-     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
-     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
-     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
-     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
+     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
+     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
+     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
+     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
+     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
+     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
+     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
+     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
+     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
+     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -162,7 +166,8 @@ public static CompletableFuture getCloudRouterPlain(GetClo * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -184,22 +189,23 @@ public static CompletableFuture getCloudRouterPlain(GetClo
      * 
      *     public static void stack(Context ctx) {
      *         final var cloudRouterDataName = FabricFunctions.getCloudRouter(GetCloudRouterArgs.builder()
-     *             .uuid("<uuid_of_cloud_router>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
-     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
-     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
-     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
-     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
-     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
-     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
-     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
-     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
-     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
+     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
+     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
+     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
+     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
+     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
+     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
+     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
+     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
+     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
+     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -216,7 +222,8 @@ public static Output getCloudRouter(GetCloudRouterArgs arg * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -238,22 +245,23 @@ public static Output getCloudRouter(GetCloudRouterArgs arg
      * 
      *     public static void stack(Context ctx) {
      *         final var cloudRouterDataName = FabricFunctions.getCloudRouter(GetCloudRouterArgs.builder()
-     *             .uuid("<uuid_of_cloud_router>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
-     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
-     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
-     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
-     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
-     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
-     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
-     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
-     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
-     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
+     *         ctx.export("id", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.id()));
+     *         ctx.export("name", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.name()));
+     *         ctx.export("accountNumber", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.accounts()[0].accountNumber()));
+     *         ctx.export("equinixAsn", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.equinixAsn()));
+     *         ctx.export("metroCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroCode()));
+     *         ctx.export("metroName", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].metroName()));
+     *         ctx.export("region", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.locations()[0].region()));
+     *         ctx.export("packageCode", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.packages()[0].code()));
+     *         ctx.export("projectId", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.projects()[0].projectId()));
+     *         ctx.export("type", cloudRouterDataName.applyValue(getCloudRouterResult -> getCloudRouterResult.type()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -314,7 +322,8 @@ public static CompletableFuture getCloudRoutersPlain(GetC * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -336,27 +345,28 @@ public static CompletableFuture getCloudRoutersPlain(GetC
      * 
      *     public static void stack(Context ctx) {
      *         final var connectionDataName = FabricFunctions.getConnection(GetConnectionArgs.builder()
-     *             .uuid("<uuid_of_connection>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
-     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
-     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
-     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
-     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
-     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
-     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
-     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
-     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
-     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
-     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
-     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
-     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
+     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
+     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
+     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
+     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
+     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
+     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
+     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
+     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
+     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
+     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
+     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
+     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
+     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -373,7 +383,8 @@ public static Output getConnection(GetConnectionArgs args) * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -395,27 +406,28 @@ public static Output getConnection(GetConnectionArgs args)
      * 
      *     public static void stack(Context ctx) {
      *         final var connectionDataName = FabricFunctions.getConnection(GetConnectionArgs.builder()
-     *             .uuid("<uuid_of_connection>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
-     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
-     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
-     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
-     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
-     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
-     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
-     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
-     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
-     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
-     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
-     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
-     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
+     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
+     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
+     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
+     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
+     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
+     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
+     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
+     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
+     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
+     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
+     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
+     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
+     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -432,7 +444,8 @@ public static CompletableFuture getConnectionPlain(GetConne * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -454,27 +467,28 @@ public static CompletableFuture getConnectionPlain(GetConne
      * 
      *     public static void stack(Context ctx) {
      *         final var connectionDataName = FabricFunctions.getConnection(GetConnectionArgs.builder()
-     *             .uuid("<uuid_of_connection>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
-     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
-     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
-     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
-     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
-     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
-     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
-     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
-     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
-     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
-     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
-     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
-     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
+     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
+     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
+     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
+     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
+     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
+     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
+     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
+     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
+     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
+     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
+     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
+     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
+     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -491,7 +505,8 @@ public static Output getConnection(GetConnectionArgs args, * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -513,27 +528,28 @@ public static Output getConnection(GetConnectionArgs args,
      * 
      *     public static void stack(Context ctx) {
      *         final var connectionDataName = FabricFunctions.getConnection(GetConnectionArgs.builder()
-     *             .uuid("<uuid_of_connection>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
-     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
-     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
-     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
-     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
-     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
-     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
-     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
-     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
-     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
-     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
-     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
-     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
-     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
+     *         ctx.export("id", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.id()));
+     *         ctx.export("name", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("accountNumber", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.account().accountNumber()));
+     *         ctx.export("bandwidth", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.bandwidth()));
+     *         ctx.export("projectId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.project().projectId()));
+     *         ctx.export("redundancyGroup", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().group()));
+     *         ctx.export("redundancyPriority", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.redundancy().priority()));
+     *         ctx.export("state", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.state()));
+     *         ctx.export("type", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.type()));
+     *         ctx.export("accessPointType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().type()));
+     *         ctx.export("accessPointLinkProtocolType", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().type()));
+     *         ctx.export("accessPointLinkProtocolVlanTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanTag()));
+     *         ctx.export("accessPointLinkProtocolVlanCTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanCTag()));
+     *         ctx.export("accessPointLinkProtocolVlanSTag", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().linkProtocol().vlanSTag()));
+     *         ctx.export("accessPointProviderConnectionId", connectionDataName.applyValue(getConnectionResult -> getConnectionResult.aSide().accessPoint().providerConnectionId()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -594,7 +610,8 @@ public static CompletableFuture getConnectionsPlain(GetCon * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -616,17 +633,18 @@ public static CompletableFuture getConnectionsPlain(GetCon
      * 
      *     public static void stack(Context ctx) {
      *         final var networkDataName = FabricFunctions.getNetwork(GetNetworkArgs.builder()
-     *             .uuid("<uuid_of_network>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
-     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
-     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
-     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
-     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
+     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
+     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
+     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
+     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
+     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -643,7 +661,8 @@ public static Output getNetwork(GetNetworkArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -665,17 +684,18 @@ public static Output getNetwork(GetNetworkArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var networkDataName = FabricFunctions.getNetwork(GetNetworkArgs.builder()
-     *             .uuid("<uuid_of_network>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
-     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
-     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
-     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
-     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
+     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
+     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
+     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
+     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
+     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -692,7 +712,8 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -714,17 +735,18 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var networkDataName = FabricFunctions.getNetwork(GetNetworkArgs.builder()
-     *             .uuid("<uuid_of_network>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
-     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
-     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
-     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
-     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
+     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
+     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
+     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
+     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
+     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -741,7 +763,8 @@ public static Output getNetwork(GetNetworkArgs args, InvokeOpt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -763,17 +786,18 @@ public static Output getNetwork(GetNetworkArgs args, InvokeOpt
      * 
      *     public static void stack(Context ctx) {
      *         final var networkDataName = FabricFunctions.getNetwork(GetNetworkArgs.builder()
-     *             .uuid("<uuid_of_network>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
-     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
-     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
-     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
-     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
+     *         ctx.export("id", networkDataName.applyValue(getNetworkResult -> getNetworkResult.id()));
+     *         ctx.export("name", networkDataName.applyValue(getNetworkResult -> getNetworkResult.name()));
+     *         ctx.export("scope", networkDataName.applyValue(getNetworkResult -> getNetworkResult.scope()));
+     *         ctx.export("type", networkDataName.applyValue(getNetworkResult -> getNetworkResult.type()));
+     *         ctx.export("region", networkDataName.applyValue(getNetworkResult -> getNetworkResult.locations()[0].region()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -834,7 +858,8 @@ public static CompletableFuture getNetworksPlain(GetNetworksP * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -856,26 +881,27 @@ public static CompletableFuture getNetworksPlain(GetNetworksP
      * 
      *     public static void stack(Context ctx) {
      *         final var portDataName = FabricFunctions.getPort(GetPortArgs.builder()
-     *             .uuid("<uuid_of_port>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
-     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
-     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
-     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
-     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
-     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
-     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
-     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
-     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
-     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
-     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
-     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
-     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
-     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
+     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
+     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
+     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
+     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
+     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
+     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
+     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
+     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
+     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
+     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
+     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
+     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
+     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
+     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -892,7 +918,8 @@ public static Output getPort(GetPortArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -914,26 +941,27 @@ public static Output getPort(GetPortArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var portDataName = FabricFunctions.getPort(GetPortArgs.builder()
-     *             .uuid("<uuid_of_port>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
-     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
-     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
-     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
-     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
-     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
-     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
-     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
-     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
-     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
-     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
-     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
-     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
-     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
+     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
+     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
+     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
+     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
+     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
+     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
+     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
+     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
+     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
+     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
+     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
+     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
+     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
+     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -950,7 +978,8 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -972,26 +1001,27 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg
      * 
      *     public static void stack(Context ctx) {
      *         final var portDataName = FabricFunctions.getPort(GetPortArgs.builder()
-     *             .uuid("<uuid_of_port>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
-     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
-     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
-     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
-     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
-     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
-     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
-     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
-     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
-     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
-     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
-     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
-     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
-     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
+     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
+     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
+     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
+     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
+     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
+     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
+     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
+     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
+     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
+     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
+     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
+     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
+     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
+     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1008,7 +1038,8 @@ public static Output getPort(GetPortArgs args, InvokeOptions opti * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1030,26 +1061,27 @@ public static Output getPort(GetPortArgs args, InvokeOptions opti
      * 
      *     public static void stack(Context ctx) {
      *         final var portDataName = FabricFunctions.getPort(GetPortArgs.builder()
-     *             .uuid("<uuid_of_port>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
-     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
-     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
-     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
-     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
-     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
-     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
-     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
-     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
-     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
-     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
-     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
-     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
-     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
+     *         ctx.export("id", portDataName.applyValue(getPortResult -> getPortResult.id()));
+     *         ctx.export("name", portDataName.applyValue(getPortResult -> getPortResult.name()));
+     *         ctx.export("state", portDataName.applyValue(getPortResult -> getPortResult.state()));
+     *         ctx.export("accountName", portDataName.applyValue(getPortResult -> getPortResult.account().accountName()));
+     *         ctx.export("type", portDataName.applyValue(getPortResult -> getPortResult.type()));
+     *         ctx.export("bandwidth", portDataName.applyValue(getPortResult -> getPortResult.bandwidth()));
+     *         ctx.export("usedBandwidth", portDataName.applyValue(getPortResult -> getPortResult.usedBandwidth()));
+     *         ctx.export("encapsulationType", portDataName.applyValue(getPortResult -> getPortResult.encapsulation().type()));
+     *         ctx.export("ibx", portDataName.applyValue(getPortResult -> getPortResult.location().ibx()));
+     *         ctx.export("metroCode", portDataName.applyValue(getPortResult -> getPortResult.location().metroCode()));
+     *         ctx.export("metroName", portDataName.applyValue(getPortResult -> getPortResult.location().metroName()));
+     *         ctx.export("region", portDataName.applyValue(getPortResult -> getPortResult.location().region()));
+     *         ctx.export("deviceRedundancyEnabled", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].enabled()));
+     *         ctx.export("deviceRedundancyPriority", portDataName.applyValue(getPortResult -> getPortResult.device().redundancies()[0].priority()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1066,7 +1098,8 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1090,27 +1123,28 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg
      *     public static void stack(Context ctx) {
      *         final var portsDataName = FabricFunctions.getPorts(GetPortsArgs.builder()
      *             .filter(GetPortsFilterArgs.builder()
-     *                 .name("<name_of_port||port_prefix>")
+     *                 .name("")
      *                 .build())
      *             .build());
      * 
-     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
-     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
-     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
-     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
-     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
-     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
-     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
-     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
-     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
-     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
-     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
-     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
-     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
-     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
+     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
+     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
+     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
+     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
+     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
+     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
+     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
+     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
+     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
+     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
+     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
+     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
+     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
+     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1127,7 +1161,8 @@ public static Output getPorts(GetPortsArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1151,27 +1186,28 @@ public static Output getPorts(GetPortsArgs args) {
      *     public static void stack(Context ctx) {
      *         final var portsDataName = FabricFunctions.getPorts(GetPortsArgs.builder()
      *             .filter(GetPortsFilterArgs.builder()
-     *                 .name("<name_of_port||port_prefix>")
+     *                 .name("")
      *                 .build())
      *             .build());
      * 
-     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
-     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
-     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
-     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
-     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
-     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
-     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
-     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
-     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
-     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
-     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
-     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
-     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
-     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
+     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
+     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
+     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
+     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
+     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
+     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
+     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
+     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
+     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
+     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
+     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
+     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
+     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
+     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1188,7 +1224,8 @@ public static CompletableFuture getPortsPlain(GetPortsPlainArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1212,27 +1249,28 @@ public static CompletableFuture getPortsPlain(GetPortsPlainArgs
      *     public static void stack(Context ctx) {
      *         final var portsDataName = FabricFunctions.getPorts(GetPortsArgs.builder()
      *             .filter(GetPortsFilterArgs.builder()
-     *                 .name("<name_of_port||port_prefix>")
+     *                 .name("")
      *                 .build())
      *             .build());
      * 
-     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
-     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
-     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
-     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
-     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
-     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
-     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
-     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
-     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
-     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
-     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
-     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
-     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
-     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
+     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
+     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
+     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
+     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
+     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
+     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
+     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
+     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
+     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
+     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
+     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
+     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
+     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
+     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1249,7 +1287,8 @@ public static Output getPorts(GetPortsArgs args, InvokeOptions o * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1273,27 +1312,28 @@ public static Output getPorts(GetPortsArgs args, InvokeOptions o
      *     public static void stack(Context ctx) {
      *         final var portsDataName = FabricFunctions.getPorts(GetPortsArgs.builder()
      *             .filter(GetPortsFilterArgs.builder()
-     *                 .name("<name_of_port||port_prefix>")
+     *                 .name("")
      *                 .build())
      *             .build());
      * 
-     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
-     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
-     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
-     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
-     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
-     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
-     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
-     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
-     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
-     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
-     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
-     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
-     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
-     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
+     *         ctx.export("id", data.equinix_fabric_port().ports_data_name().data()[0].id());
+     *         ctx.export("name", data.equinix_fabric_port().ports_data_name().data()[0].name());
+     *         ctx.export("state", data.equinix_fabric_port().ports_data_name().data()[0].state());
+     *         ctx.export("accountName", data.equinix_fabric_port().ports_data_name().data()[0].account()[0].account_name());
+     *         ctx.export("type", data.equinix_fabric_port().ports_data_name().data()[0].type());
+     *         ctx.export("bandwidth", data.equinix_fabric_port().ports_data_name().data()[0].bandwidth());
+     *         ctx.export("usedBandwidth", data.equinix_fabric_port().ports_data_name().data()[0].used_bandwidth());
+     *         ctx.export("encapsulationType", data.equinix_fabric_port().ports_data_name().data()[0].encapsulation()[0].type());
+     *         ctx.export("ibx", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].ibx());
+     *         ctx.export("metroCode", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_code());
+     *         ctx.export("metroName", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].metro_name());
+     *         ctx.export("region", data.equinix_fabric_port().ports_data_name().data()[0].location()[0].region());
+     *         ctx.export("deviceRedundancyEnabled", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].enabled());
+     *         ctx.export("deviceRedundancyPriority", data.equinix_fabric_port().ports_data_name().data()[0].device()[0].redundancy()[0].priority());
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1312,7 +1352,8 @@ public static CompletableFuture getPortsPlain(GetPortsPlainArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1334,25 +1375,26 @@ public static CompletableFuture getPortsPlain(GetPortsPlainArgs
      * 
      *     public static void stack(Context ctx) {
      *         final var routingProtocolDataName = FabricFunctions.getRoutingProtocol(GetRoutingProtocolArgs.builder()
-     *             .connectionUuid("<uuid_of_connection_routing_protocol_is_applied_to>")
-     *             .uuid("<uuid_of_routing_protocol>")
+     *             .connectionUuid("")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
-     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
-     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
-     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
-     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
-     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
-     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
-     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
-     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
-     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
-     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
-     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
+     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
+     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
+     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
+     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
+     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
+     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
+     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
+     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
+     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
+     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
+     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
+     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1371,7 +1413,8 @@ public static Output getRoutingProtocol(GetRoutingProt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1393,25 +1436,26 @@ public static Output getRoutingProtocol(GetRoutingProt
      * 
      *     public static void stack(Context ctx) {
      *         final var routingProtocolDataName = FabricFunctions.getRoutingProtocol(GetRoutingProtocolArgs.builder()
-     *             .connectionUuid("<uuid_of_connection_routing_protocol_is_applied_to>")
-     *             .uuid("<uuid_of_routing_protocol>")
+     *             .connectionUuid("")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
-     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
-     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
-     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
-     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
-     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
-     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
-     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
-     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
-     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
-     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
-     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
+     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
+     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
+     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
+     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
+     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
+     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
+     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
+     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
+     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
+     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
+     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
+     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1430,7 +1474,8 @@ public static CompletableFuture getRoutingProtocolPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1452,25 +1497,26 @@ public static CompletableFuture getRoutingProtocolPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var routingProtocolDataName = FabricFunctions.getRoutingProtocol(GetRoutingProtocolArgs.builder()
-     *             .connectionUuid("<uuid_of_connection_routing_protocol_is_applied_to>")
-     *             .uuid("<uuid_of_routing_protocol>")
+     *             .connectionUuid("")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
-     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
-     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
-     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
-     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
-     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
-     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
-     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
-     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
-     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
-     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
-     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
+     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
+     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
+     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
+     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
+     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
+     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
+     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
+     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
+     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
+     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
+     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
+     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1489,7 +1535,8 @@ public static Output getRoutingProtocol(GetRoutingProt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1511,25 +1558,26 @@ public static Output getRoutingProtocol(GetRoutingProt
      * 
      *     public static void stack(Context ctx) {
      *         final var routingProtocolDataName = FabricFunctions.getRoutingProtocol(GetRoutingProtocolArgs.builder()
-     *             .connectionUuid("<uuid_of_connection_routing_protocol_is_applied_to>")
-     *             .uuid("<uuid_of_routing_protocol>")
+     *             .connectionUuid("")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
-     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
-     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
-     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
-     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
-     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
-     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
-     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
-     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
-     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
-     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
-     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
+     *         ctx.export("id", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.id()));
+     *         ctx.export("name", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.name()));
+     *         ctx.export("type", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.type()));
+     *         ctx.export("directIpv4", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv4().equinixIfaceIp()));
+     *         ctx.export("directIpv6", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.directIpv6().equinixIfaceIp()));
+     *         ctx.export("bgpIpv4CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().customerPeerIp()));
+     *         ctx.export("bgpIpv4EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().equinixPeerIp()));
+     *         ctx.export("bgpIpv4Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv4().enabled()));
+     *         ctx.export("bgpIpv6CustomerPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().customerPeerIp()));
+     *         ctx.export("bgpIpv6EquinixPeerIp", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().equinixPeerIp()));
+     *         ctx.export("bgpIpv6Enabled", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.bgpIpv6().enabled()));
+     *         ctx.export("customerAsn", routingProtocolDataName.applyValue(getRoutingProtocolResult -> getRoutingProtocolResult.customerAsn()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1546,7 +1594,8 @@ public static CompletableFuture getRoutingProtocolPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1568,23 +1617,24 @@ public static CompletableFuture getRoutingProtocolPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var serviceProfileDataName = FabricFunctions.getServiceProfile(GetServiceProfileArgs.builder()
-     *             .uuid("<uuid_of_service_profile>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
-     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
-     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
-     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
-     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
-     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
-     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
-     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
-     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
-     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
-     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
+     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
+     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
+     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
+     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
+     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
+     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
+     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
+     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
+     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
+     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
+     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1601,7 +1651,8 @@ public static Output getServiceProfile(GetServiceProfil * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1623,23 +1674,24 @@ public static Output getServiceProfile(GetServiceProfil
      * 
      *     public static void stack(Context ctx) {
      *         final var serviceProfileDataName = FabricFunctions.getServiceProfile(GetServiceProfileArgs.builder()
-     *             .uuid("<uuid_of_service_profile>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
-     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
-     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
-     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
-     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
-     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
-     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
-     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
-     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
-     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
-     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
+     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
+     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
+     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
+     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
+     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
+     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
+     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
+     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
+     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
+     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
+     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1656,7 +1708,8 @@ public static CompletableFuture getServiceProfilePlain( * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1678,23 +1731,24 @@ public static CompletableFuture getServiceProfilePlain(
      * 
      *     public static void stack(Context ctx) {
      *         final var serviceProfileDataName = FabricFunctions.getServiceProfile(GetServiceProfileArgs.builder()
-     *             .uuid("<uuid_of_service_profile>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
-     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
-     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
-     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
-     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
-     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
-     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
-     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
-     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
-     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
-     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
+     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
+     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
+     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
+     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
+     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
+     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
+     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
+     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
+     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
+     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
+     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1711,7 +1765,8 @@ public static Output getServiceProfile(GetServiceProfil * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1733,23 +1788,24 @@ public static Output getServiceProfile(GetServiceProfil
      * 
      *     public static void stack(Context ctx) {
      *         final var serviceProfileDataName = FabricFunctions.getServiceProfile(GetServiceProfileArgs.builder()
-     *             .uuid("<uuid_of_service_profile>")
+     *             .uuid("")
      *             .build());
      * 
-     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
-     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
-     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
-     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
-     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
-     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
-     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
-     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
-     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
-     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
-     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
+     *         ctx.export("id", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.id()));
+     *         ctx.export("name", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.name()));
+     *         ctx.export("type", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.type()));
+     *         ctx.export("visibility", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.visibility()));
+     *         ctx.export("orgName", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.account().organizationName()));
+     *         ctx.export("accessPointTypeConfigsType", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].type()));
+     *         ctx.export("allowRemoteConnections", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].allowRemoteConnections()));
+     *         ctx.export("supportedBandwidth0", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[0]));
+     *         ctx.export("supportedBandwidth1", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].supportedBandwidths()[1]));
+     *         ctx.export("redundandyRequired", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].connectionRedundancyRequired()));
+     *         ctx.export("allowOverSubscription", serviceProfileDataName.applyValue(getServiceProfileResult -> getServiceProfileResult.accessPointTypeConfigs()[0].apiConfig().allowOverSubscription()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/Network.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/Network.java index e1710706..1e5565bb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/Network.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/Network.java @@ -31,7 +31,8 @@ * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -54,23 +55,24 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var newNetwork = new Network("newNetwork", NetworkArgs.builder()
+ *         var newNetwork = new Network("newNetwork", NetworkArgs.builder()
  *             .notifications(NetworkNotificationArgs.builder()
  *                 .emails(                
- *                     "example@equinix.com",
- *                     "test1@equinix.com")
- *                 .type("ALL")
+ *                     "example{@literal @}equinix.com",
+ *                     "test1{@literal @}equinix.com")
+ *                 .type("ALL")
  *                 .build())
  *             .project(NetworkProjectArgs.builder()
- *                 .projectId("776847000642406")
+ *                 .projectId("776847000642406")
  *                 .build())
- *             .scope("GLOBAL")
- *             .type("EVPLAN")
+ *             .scope("GLOBAL")
+ *             .type("EVPLAN")
  *             .build());
  * 
  *     }
  * }
- * ```
+ * }
+ * 
* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/NetworkArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/NetworkArgs.java index 14fde953..607cba58 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/NetworkArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/NetworkArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.inputs.NetworkProjectArgs; 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; @@ -275,10 +276,18 @@ public Builder type(String type) { } public NetworkArgs build() { - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); - $.project = Objects.requireNonNull($.project, "expected parameter 'project' to be non-null"); - $.scope = Objects.requireNonNull($.scope, "expected parameter 'scope' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.notifications == null) { + throw new MissingRequiredPropertyException("NetworkArgs", "notifications"); + } + if ($.project == null) { + throw new MissingRequiredPropertyException("NetworkArgs", "project"); + } + if ($.scope == null) { + throw new MissingRequiredPropertyException("NetworkArgs", "scope"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("NetworkArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocol.java index 8e374a04..e500bd2c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocol.java @@ -31,7 +31,8 @@ * * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#routing-protocols * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -54,22 +55,23 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var connectionId = config.get("connectionId");
- *         var routingProtocol = new RoutingProtocol("routingProtocol", RoutingProtocolArgs.builder()        
+ *         final var connectionId = config.get("connectionId");
+ *         var routingProtocol = new RoutingProtocol("routingProtocol", RoutingProtocolArgs.builder()        
  *             .connectionUuid(connectionId)
- *             .name("My-Direct-route-1")
- *             .type("DIRECT")
+ *             .name("My-Direct-route-1")
+ *             .type("DIRECT")
  *             .directIpv4(RoutingProtocolDirectIpv4Args.builder()
- *                 .equinixIfaceIp("192.168.100.1/30")
+ *                 .equinixIfaceIp("192.168.100.1/30")
  *                 .build())
  *             .build());
  * 
- *         ctx.export("routingProtocolId", routingProtocol.id());
- *         ctx.export("routingProtocolState", routingProtocol.state());
- *         ctx.export("routingProtocolEquinixAsn", routingProtocol.equinixAsn());
+ *         ctx.export("routingProtocolId", routingProtocol.id());
+ *         ctx.export("routingProtocolState", routingProtocol.state());
+ *         ctx.export("routingProtocolEquinixAsn", routingProtocol.equinixAsn());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:fabric/routingProtocol:RoutingProtocol") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocolArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocolArgs.java index 514815d3..d7c58e9a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocolArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/RoutingProtocolArgs.java @@ -10,6 +10,7 @@ import com.equinix.pulumi.fabric.inputs.RoutingProtocolDirectIpv6Args; 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; @@ -489,7 +490,9 @@ public Builder uuid(String uuid) { } public RoutingProtocolArgs build() { - $.connectionUuid = Objects.requireNonNull($.connectionUuid, "expected parameter 'connectionUuid' to be non-null"); + if ($.connectionUuid == null) { + throw new MissingRequiredPropertyException("RoutingProtocolArgs", "connectionUuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfile.java index f5afdf28..f6c84789 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfile.java @@ -34,7 +34,8 @@ * * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#service-profiles * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -54,12 +55,12 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var profile = new ServiceProfile("profile", ServiceProfileArgs.builder()        
- *             .name("Example Cloud Provider")
- *             .description("50 to 500 Mbps Hosted Connection to Example Cloud")
- *             .type("L2_PROFILE")
+ *         var profile = new ServiceProfile("profile", ServiceProfileArgs.builder()        
+ *             .name("Example Cloud Provider")
+ *             .description("50 to 500 Mbps Hosted Connection to Example Cloud")
+ *             .type("L2_PROFILE")
  *             .accessPointTypeConfigs(ServiceProfileAccessPointTypeConfigArgs.builder()
- *                 .type("COLO")
+ *                 .type("COLO")
  *                 .supportedBandwidths(                
  *                     50,
  *                     100,
@@ -69,37 +70,38 @@
  *                 .allowCustomBandwidth(false)
  *                 .allowBandwidthAutoApproval(false)
  *                 .linkProtocolConfig(ServiceProfileAccessPointTypeConfigLinkProtocolConfigArgs.builder()
- *                     .encapsulationStrategy("CTAGED")
+ *                     .encapsulationStrategy("CTAGED")
  *                     .reuseVlanSTag(false)
- *                     .encapsulation("DOT1Q")
+ *                     .encapsulation("DOT1Q")
  *                     .build())
  *                 .enableAutoGenerateServiceKey(false)
  *                 .connectionRedundancyRequired(false)
  *                 .apiConfig(ServiceProfileAccessPointTypeConfigApiConfigArgs.builder()
  *                     .apiAvailable(true)
- *                     .integrationId("Example-Connect-01")
+ *                     .integrationId("Example-Connect-01")
  *                     .bandwidthFromApi(false)
  *                     .build())
- *                 .connectionLabel("Virtual Circuit Name")
+ *                 .connectionLabel("Virtual Circuit Name")
  *                 .authenticationKey(ServiceProfileAccessPointTypeConfigAuthenticationKeyArgs.builder()
  *                     .required(true)
- *                     .label("Example ACCOUNT ID")
+ *                     .label("Example ACCOUNT ID")
  *                     .build())
  *                 .build())
  *             .account(ServiceProfileAccountArgs.builder()
- *                 .organizationName("Example Cloud")
- *                 .globalOrganizationName("Example Global")
+ *                 .organizationName("Example Cloud")
+ *                 .globalOrganizationName("Example Global")
  *                 .build())
- *             .visibility("PUBLIC")
+ *             .visibility("PUBLIC")
  *             .marketingInfo(ServiceProfileMarketingInfoArgs.builder()
  *                 .promotion(true)
  *                 .build())
  *             .build());
  * 
- *         ctx.export("profileId", profile.id());
+ *         ctx.export("profileId", profile.id());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:fabric/serviceProfile:ServiceProfile") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfileArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfileArgs.java index f3425707..4bc230de 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfileArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/ServiceProfileArgs.java @@ -17,6 +17,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -822,8 +823,12 @@ public Builder visibility(ProfileVisibility visibility) { } public ServiceProfileArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("ServiceProfileArgs", "description"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceProfileArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterNotificationArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterNotificationArgs.java index e10143de..590bd5ad 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterNotificationArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterNotificationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -161,8 +162,12 @@ public Builder type(String type) { } public CloudRouterNotificationArgs build() { - $.emails = Objects.requireNonNull($.emails, "expected parameter 'emails' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.emails == null) { + throw new MissingRequiredPropertyException("CloudRouterNotificationArgs", "emails"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("CloudRouterNotificationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterPackageArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterPackageArgs.java index bf37f3ed..01d49df3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterPackageArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/CloudRouterPackageArgs.java @@ -5,6 +5,7 @@ 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 code(String code) { } public CloudRouterPackageArgs build() { - $.code = Objects.requireNonNull($.code, "expected parameter 'code' to be non-null"); + if ($.code == null) { + throw new MissingRequiredPropertyException("CloudRouterPackageArgs", "code"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionASideAccessPointProfileArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionASideAccessPointProfileArgs.java index b556e798..43158fda 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionASideAccessPointProfileArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionASideAccessPointProfileArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -295,8 +296,12 @@ public Builder uuid(String uuid) { } public ConnectionASideAccessPointProfileArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("ConnectionASideAccessPointProfileArgs", "type"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("ConnectionASideAccessPointProfileArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionNotificationArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionNotificationArgs.java index e360c5d6..98238973 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionNotificationArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionNotificationArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -183,8 +184,12 @@ public Builder type(NotificationsType type) { } public ConnectionNotificationArgs build() { - $.emails = Objects.requireNonNull($.emails, "expected parameter 'emails' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.emails == null) { + throw new MissingRequiredPropertyException("ConnectionNotificationArgs", "emails"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ConnectionNotificationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionZSideAccessPointProfileArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionZSideAccessPointProfileArgs.java index acabbdd7..be564f0a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionZSideAccessPointProfileArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ConnectionZSideAccessPointProfileArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -295,8 +296,12 @@ public Builder uuid(String uuid) { } public ConnectionZSideAccessPointProfileArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("ConnectionZSideAccessPointProfileArgs", "type"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("ConnectionZSideAccessPointProfileArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterArgs.java index 03390b9c..ca06b179 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetCloudRouterArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetCloudRouterArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterPlainArgs.java index 4b734f3a..f3913bb9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRouterPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetCloudRouterPlainArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetCloudRouterPlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersArgs.java index 8b88f8f3..c1b0fbe6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.inputs.GetCloudRoutersSortArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.List; import java.util.Objects; import java.util.Optional; @@ -163,7 +164,9 @@ public Builder sort(GetCloudRoutersSortArgs sort) { } public GetCloudRoutersArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersArgs", "filters"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilter.java index eae3b70a..f3d4c336 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -158,9 +159,15 @@ public Builder values(String... values) { } public GetCloudRoutersFilter build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilterArgs.java index 32d55312..17b5b014 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersFilterArgs.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,9 +200,15 @@ public Builder values(String... values) { } public GetCloudRoutersFilterArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilterArgs", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilterArgs", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersPlainArgs.java index c63bf04e..4dff21af 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetCloudRoutersPlainArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.inputs.GetCloudRoutersPagination; import com.equinix.pulumi.fabric.inputs.GetCloudRoutersSort; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.List; import java.util.Objects; import java.util.Optional; @@ -132,7 +133,9 @@ public Builder sort(@Nullable GetCloudRoutersSort sort) { } public GetCloudRoutersPlainArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersPlainArgs", "filters"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionArgs.java index d3dbd7da..b3b3f90d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetConnectionArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionPlainArgs.java index d49d8029..e1944c19 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetConnectionPlainArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionPlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsArgs.java index b4979657..9743012b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.inputs.GetConnectionsSortArgs; 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; @@ -211,8 +212,12 @@ public Builder sorts(GetConnectionsSortArgs... sorts) { } public GetConnectionsArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); - $.outerOperator = Objects.requireNonNull($.outerOperator, "expected parameter 'outerOperator' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetConnectionsArgs", "filters"); + } + if ($.outerOperator == null) { + throw new MissingRequiredPropertyException("GetConnectionsArgs", "outerOperator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilter.java index 81e23a45..45457f80 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -157,9 +158,15 @@ public Builder values(String... values) { } public GetConnectionsFilter build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilterArgs.java index a6066a56..3639e9af 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsFilterArgs.java @@ -5,6 +5,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; @@ -198,9 +199,15 @@ public Builder values(String... values) { } public GetConnectionsFilterArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilterArgs", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilterArgs", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsPlainArgs.java index 9a63f0fb..801f5f8b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetConnectionsPlainArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.inputs.GetConnectionsPagination; import com.equinix.pulumi.fabric.inputs.GetConnectionsSort; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -170,8 +171,12 @@ public Builder sorts(GetConnectionsSort... sorts) { } public GetConnectionsPlainArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); - $.outerOperator = Objects.requireNonNull($.outerOperator, "expected parameter 'outerOperator' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetConnectionsPlainArgs", "filters"); + } + if ($.outerOperator == null) { + throw new MissingRequiredPropertyException("GetConnectionsPlainArgs", "outerOperator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkArgs.java index 213bd1a8..998e37be 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetNetworkArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetNetworkArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkPlainArgs.java index 7bfedfa6..30d61b38 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworkPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetNetworkPlainArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetNetworkPlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksArgs.java index 7b712aaf..b0ca0bcc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.inputs.GetNetworksSortArgs; 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; @@ -211,8 +212,12 @@ public Builder sorts(GetNetworksSortArgs... sorts) { } public GetNetworksArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); - $.outerOperator = Objects.requireNonNull($.outerOperator, "expected parameter 'outerOperator' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetNetworksArgs", "filters"); + } + if ($.outerOperator == null) { + throw new MissingRequiredPropertyException("GetNetworksArgs", "outerOperator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilter.java index 47c8665f..e4c632db 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -157,9 +158,15 @@ public Builder values(String... values) { } public GetNetworksFilter build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilterArgs.java index 932cc195..b6c39710 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksFilterArgs.java @@ -5,6 +5,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; @@ -198,9 +199,15 @@ public Builder values(String... values) { } public GetNetworksFilterArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetNetworksFilterArgs", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetNetworksFilterArgs", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetNetworksFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksPlainArgs.java index 4ef4d8b2..9c25b2fe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetNetworksPlainArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.inputs.GetNetworksPagination; import com.equinix.pulumi.fabric.inputs.GetNetworksSort; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -170,8 +171,12 @@ public Builder sorts(GetNetworksSort... sorts) { } public GetNetworksPlainArgs build() { - $.filters = Objects.requireNonNull($.filters, "expected parameter 'filters' to be non-null"); - $.outerOperator = Objects.requireNonNull($.outerOperator, "expected parameter 'outerOperator' to be non-null"); + if ($.filters == null) { + throw new MissingRequiredPropertyException("GetNetworksPlainArgs", "filters"); + } + if ($.outerOperator == null) { + throw new MissingRequiredPropertyException("GetNetworksPlainArgs", "outerOperator"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortArgs.java index 0755b790..911ba8f3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetPortArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetPortArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortPlainArgs.java index e49b1fda..bbc64c78 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetPortPlainArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetPortPlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsArgs.java index 89f28c0e..cb3eb983 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.fabric.inputs.GetPortsFilterArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder filter(GetPortsFilterArgs filter) { } public GetPortsArgs build() { - $.filter = Objects.requireNonNull($.filter, "expected parameter 'filter' to be non-null"); + if ($.filter == null) { + throw new MissingRequiredPropertyException("GetPortsArgs", "filter"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilter.java index 4015fbaf..6d2bc9ae 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetPortsFilter build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPortsFilter", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilterArgs.java index 353a1510..aa598157 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsFilterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetPortsFilterArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPortsFilterArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsPlainArgs.java index c4338531..6055d0b9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetPortsPlainArgs.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.inputs.GetPortsFilter; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder filter(GetPortsFilter filter) { } public GetPortsPlainArgs build() { - $.filter = Objects.requireNonNull($.filter, "expected parameter 'filter' to be non-null"); + if ($.filter == null) { + throw new MissingRequiredPropertyException("GetPortsPlainArgs", "filter"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolArgs.java index aaa72caf..38d9e2ec 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetRoutingProtocolArgs build() { - $.connectionUuid = Objects.requireNonNull($.connectionUuid, "expected parameter 'connectionUuid' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.connectionUuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolArgs", "connectionUuid"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolPlainArgs.java index baf25494..b88a55a7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetRoutingProtocolPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetRoutingProtocolPlainArgs build() { - $.connectionUuid = Objects.requireNonNull($.connectionUuid, "expected parameter 'connectionUuid' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.connectionUuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolPlainArgs", "connectionUuid"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolPlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfileArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfileArgs.java index 22de7979..11b23752 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfileArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfileArgs.java @@ -5,6 +5,7 @@ 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 uuid(String uuid) { } public GetServiceProfileArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfileArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilePlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilePlainArgs.java index d41e66eb..a03ff7f9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilePlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilePlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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 uuid(String uuid) { } public GetServiceProfilePlainArgs build() { - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePlainArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesArgs.java index 7d0fbcfd..359d589a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.inputs.GetServiceProfilesSortArgs; 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; @@ -239,7 +240,9 @@ public Builder viewPoint(String viewPoint) { } public GetServiceProfilesArgs build() { - $.filter = Objects.requireNonNull($.filter, "expected parameter 'filter' to be non-null"); + if ($.filter == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesArgs", "filter"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilter.java index 7808dbed..6c4f74ae 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -128,9 +129,15 @@ public Builder values(String... values) { } public GetServiceProfilesFilter build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilterArgs.java index 3ee2bd43..23282ab5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesFilterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -159,9 +160,15 @@ public Builder values(String... values) { } public GetServiceProfilesFilterArgs build() { - $.operator = Objects.requireNonNull($.operator, "expected parameter 'operator' to be non-null"); - $.property = Objects.requireNonNull($.property, "expected parameter 'property' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.operator == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilterArgs", "operator"); + } + if ($.property == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilterArgs", "property"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesPlainArgs.java index 2c7ca06e..05cb72f8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/GetServiceProfilesPlainArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.inputs.GetServiceProfilesPagination; import com.equinix.pulumi.fabric.inputs.GetServiceProfilesSort; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -188,7 +189,9 @@ public Builder viewPoint(@Nullable String viewPoint) { } public GetServiceProfilesPlainArgs build() { - $.filter = Objects.requireNonNull($.filter, "expected parameter 'filter' to be non-null"); + if ($.filter == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesPlainArgs", "filter"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkNotificationArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkNotificationArgs.java index c655ee60..f36dad45 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkNotificationArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkNotificationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -161,8 +162,12 @@ public Builder type(String type) { } public NetworkNotificationArgs build() { - $.emails = Objects.requireNonNull($.emails, "expected parameter 'emails' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.emails == null) { + throw new MissingRequiredPropertyException("NetworkNotificationArgs", "emails"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("NetworkNotificationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkProjectArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkProjectArgs.java index f6b875ef..ccb0cfbd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkProjectArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/NetworkProjectArgs.java @@ -5,6 +5,7 @@ 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 NetworkProjectArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("NetworkProjectArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBfdArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBfdArgs.java index 07a7b3b9..74d56161 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBfdArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBfdArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -114,7 +115,9 @@ public Builder interval(String interval) { } public RoutingProtocolBfdArgs build() { - $.enabled = Objects.requireNonNull($.enabled, "expected parameter 'enabled' to be non-null"); + if ($.enabled == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBfdArgs", "enabled"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv4Args.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv4Args.java index 3948270d..afcf91cc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv4Args.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv4Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder equinixPeerIp(String equinixPeerIp) { } public RoutingProtocolBgpIpv4Args build() { - $.customerPeerIp = Objects.requireNonNull($.customerPeerIp, "expected parameter 'customerPeerIp' to be non-null"); + if ($.customerPeerIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBgpIpv4Args", "customerPeerIp"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv6Args.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv6Args.java index a7b28af2..9b810f30 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv6Args.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolBgpIpv6Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder equinixPeerIp(String equinixPeerIp) { } public RoutingProtocolBgpIpv6Args build() { - $.customerPeerIp = Objects.requireNonNull($.customerPeerIp, "expected parameter 'customerPeerIp' to be non-null"); + if ($.customerPeerIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBgpIpv6Args", "customerPeerIp"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolDirectIpv4Args.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolDirectIpv4Args.java index 48f4dd5a..566da7ba 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolDirectIpv4Args.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/RoutingProtocolDirectIpv4Args.java @@ -5,6 +5,7 @@ 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 equinixIfaceIp(String equinixIfaceIp) { } public RoutingProtocolDirectIpv4Args build() { - $.equinixIfaceIp = Objects.requireNonNull($.equinixIfaceIp, "expected parameter 'equinixIfaceIp' to be non-null"); + if ($.equinixIfaceIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolDirectIpv4Args", "equinixIfaceIp"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileAccessPointTypeConfigArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileAccessPointTypeConfigArgs.java index 8205161c..ef57dbf7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileAccessPointTypeConfigArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileAccessPointTypeConfigArgs.java @@ -10,6 +10,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -596,7 +597,9 @@ public Builder uuid(String uuid) { } public ServiceProfileAccessPointTypeConfigArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceProfileAccessPointTypeConfigArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileCustomFieldArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileCustomFieldArgs.java index 89ee0e21..01f382c8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileCustomFieldArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileCustomFieldArgs.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; @@ -273,9 +274,15 @@ public Builder required(Boolean required) { } public ServiceProfileCustomFieldArgs build() { - $.dataType = Objects.requireNonNull($.dataType, "expected parameter 'dataType' to be non-null"); - $.label = Objects.requireNonNull($.label, "expected parameter 'label' to be non-null"); - $.required = Objects.requireNonNull($.required, "expected parameter 'required' to be non-null"); + if ($.dataType == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomFieldArgs", "dataType"); + } + if ($.label == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomFieldArgs", "label"); + } + if ($.required == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomFieldArgs", "required"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileNotificationArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileNotificationArgs.java index 7fd58bac..3c1cfa44 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileNotificationArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileNotificationArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -183,8 +184,12 @@ public Builder type(NotificationsType type) { } public ServiceProfileNotificationArgs build() { - $.emails = Objects.requireNonNull($.emails, "expected parameter 'emails' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.emails == null) { + throw new MissingRequiredPropertyException("ServiceProfileNotificationArgs", "emails"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceProfileNotificationArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfilePortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfilePortArgs.java index aa1f4b26..a385dd93 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfilePortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfilePortArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.fabric.inputs.ServiceProfilePortLocationArgs; 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; @@ -262,8 +263,12 @@ public Builder uuid(String uuid) { } public ServiceProfilePortArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceProfilePortArgs", "type"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("ServiceProfilePortArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileVirtualDeviceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileVirtualDeviceArgs.java index 5ccd83ed..9c7b4e68 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileVirtualDeviceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/inputs/ServiceProfileVirtualDeviceArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.fabric.inputs.ServiceProfileVirtualDeviceLocationArgs; 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; @@ -188,8 +189,12 @@ public Builder uuid(String uuid) { } public ServiceProfileVirtualDeviceArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); - $.uuid = Objects.requireNonNull($.uuid, "expected parameter 'uuid' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("ServiceProfileVirtualDeviceArgs", "type"); + } + if ($.uuid == null) { + throw new MissingRequiredPropertyException("ServiceProfileVirtualDeviceArgs", "uuid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterAccount.java index fe2dce95..efb0ba7b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterAccount.java @@ -44,6 +44,7 @@ public Builder(CloudRouterAccount defaults) { @CustomType.Setter public Builder accountNumber(@Nullable Integer accountNumber) { + this.accountNumber = accountNumber; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterChangeLog.java index c9a2f74b..40aedc3f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterChangeLog.java @@ -198,61 +198,73 @@ public Builder(CloudRouterChangeLog defaults) { @CustomType.Setter public Builder createdBy(@Nullable String createdBy) { + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(@Nullable String createdByEmail) { + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(@Nullable String createdByFullName) { + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(@Nullable String createdDateTime) { + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(@Nullable String deletedBy) { + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(@Nullable String deletedByEmail) { + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(@Nullable String deletedByFullName) { + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(@Nullable String deletedDateTime) { + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(@Nullable String updatedBy) { + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(@Nullable String updatedByEmail) { + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(@Nullable String updatedByFullName) { + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(@Nullable String updatedDateTime) { + this.updatedDateTime = updatedDateTime; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterLocation.java index 02b4b20b..8424aa31 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterLocation.java @@ -86,21 +86,25 @@ public Builder(CloudRouterLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterNotification.java index 9a697820..12662752 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(CloudRouterNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("CloudRouterNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("CloudRouterNotification", "type"); + } + this.type = type; return this; } public CloudRouterNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterOrder.java index fe1e85c6..3aa9a00d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterOrder.java @@ -86,21 +86,25 @@ public Builder(CloudRouterOrder defaults) { @CustomType.Setter public Builder billingTier(@Nullable String billingTier) { + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(@Nullable String orderId) { + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(@Nullable String orderNumber) { + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(@Nullable String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterPackage.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterPackage.java index ab82f3b1..1029843e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterPackage.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterPackage.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(CloudRouterPackage defaults) { @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("CloudRouterPackage", "code"); + } + this.code = code; return this; } public CloudRouterPackage build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterProject.java index 584d7efc..85878d8e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/CloudRouterProject.java @@ -58,11 +58,13 @@ public Builder(CloudRouterProject defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASide.java index c2153f97..e56e55e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASide.java @@ -75,11 +75,13 @@ public Builder(ConnectionASide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable ConnectionASideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfo(@Nullable List additionalInfo) { + this.additionalInfo = additionalInfo; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfo(ConnectionASideAdditionalInfo... additionalInfo) { } @CustomType.Setter public Builder serviceToken(@Nullable ConnectionASideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPoint.java index 1b0511ed..6bd373ef 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPoint.java @@ -258,76 +258,91 @@ public Builder(ConnectionASideAccessPoint defaults) { @CustomType.Setter public Builder account(@Nullable ConnectionASideAccessPointAccount account) { + this.account = account; return this; } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable ConnectionASideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable ConnectionASideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable ConnectionASideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(@Nullable ConnectionASideAccessPointLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable ConnectionASideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable ConnectionASideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable ConnectionASideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(@Nullable String providerConnectionId) { + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable ConnectionASideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable ConnectionASideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointAccount.java index 8ba902c4..06c9f5fe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointAccount.java @@ -143,41 +143,49 @@ public Builder(ConnectionASideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(@Nullable Integer accountNumber) { + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(@Nullable String globalCustId) { + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(@Nullable String globalOrgId) { + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(@Nullable String globalOrganizationName) { + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(@Nullable Integer orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(@Nullable String ucmId) { + this.ucmId = ucmId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointGateway.java index 977dbaa3..70931e74 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointGateway.java @@ -58,11 +58,13 @@ public Builder(ConnectionASideAccessPointGateway defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointInterface.java index 09c3924c..a6eed809 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointInterface.java @@ -73,16 +73,19 @@ public Builder(ConnectionASideAccessPointInterface defaults) { @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLinkProtocol.java index c379331e..fe46ae6f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLinkProtocol.java @@ -87,21 +87,25 @@ public Builder(ConnectionASideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(@Nullable Integer vlanCTag) { + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(@Nullable Integer vlanSTag) { + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(@Nullable Integer vlanTag) { + this.vlanTag = vlanTag; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLocation.java index 3cb502c0..d068168e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointLocation.java @@ -86,21 +86,25 @@ public Builder(ConnectionASideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointNetwork.java index fda1a174..8ab842d3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointNetwork.java @@ -58,11 +58,13 @@ public Builder(ConnectionASideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPort.java index 0bb6c7c6..60f2e2c1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPort.java @@ -87,21 +87,25 @@ public Builder(ConnectionASideAccessPointPort defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder redundancy(@Nullable ConnectionASideAccessPointPortRedundancy redundancy) { + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPortRedundancy.java index b25d05a4..10772b56 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointPortRedundancy.java @@ -73,16 +73,19 @@ public Builder(ConnectionASideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder priority(@Nullable String priority) { + this.priority = priority; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfile.java index c8171cd1..98ba0b4c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.ConnectionASideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -116,6 +117,7 @@ public Builder(ConnectionASideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(@Nullable List accessPointTypeConfigs) { + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } @@ -124,27 +126,36 @@ public Builder accessPointTypeConfigs(ConnectionASideAccessPointProfileAccessPoi } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ConnectionASideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("ConnectionASideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public ConnectionASideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfileAccessPointTypeConfig.java index 54b4b4a8..cb592f17 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointProfileAccessPointTypeConfig.java @@ -58,11 +58,13 @@ public Builder(ConnectionASideAccessPointProfileAccessPointTypeConfig defaults) @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointRouter.java index 1e8d2a2f..661bea0f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointRouter.java @@ -58,11 +58,13 @@ public Builder(ConnectionASideAccessPointRouter defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointVirtualDevice.java index 48c96d72..42f8b08e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAccessPointVirtualDevice.java @@ -86,21 +86,25 @@ public Builder(ConnectionASideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAdditionalInfo.java index 16c10a4d..790d908a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(ConnectionASideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideServiceToken.java index f8f21f72..db06eb13 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionASideServiceToken.java @@ -86,21 +86,25 @@ public Builder(ConnectionASideServiceToken defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionAccount.java index 882dda67..fb77bbd6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionAccount.java @@ -143,41 +143,49 @@ public Builder(ConnectionAccount defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(@Nullable Integer accountNumber) { + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(@Nullable String globalCustId) { + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(@Nullable String globalOrgId) { + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(@Nullable String globalOrganizationName) { + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(@Nullable Integer orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(@Nullable String ucmId) { + this.ucmId = ucmId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionChangeLog.java index da55445c..4053fe35 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionChangeLog.java @@ -198,61 +198,73 @@ public Builder(ConnectionChangeLog defaults) { @CustomType.Setter public Builder createdBy(@Nullable String createdBy) { + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(@Nullable String createdByEmail) { + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(@Nullable String createdByFullName) { + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(@Nullable String createdDateTime) { + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(@Nullable String deletedBy) { + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(@Nullable String deletedByEmail) { + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(@Nullable String deletedByFullName) { + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(@Nullable String deletedDateTime) { + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(@Nullable String updatedBy) { + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(@Nullable String updatedByEmail) { + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(@Nullable String updatedByFullName) { + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(@Nullable String updatedDateTime) { + this.updatedDateTime = updatedDateTime; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionNotification.java index 3a162da0..96e77390 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(ConnectionNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("ConnectionNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ConnectionNotification", "type"); + } + this.type = type; return this; } public ConnectionNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperation.java index e89c34c0..0facdde9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperation.java @@ -74,11 +74,13 @@ public Builder(ConnectionOperation defaults) { @CustomType.Setter public Builder equinixStatus(@Nullable String equinixStatus) { + this.equinixStatus = equinixStatus; return this; } @CustomType.Setter public Builder errors(@Nullable List errors) { + this.errors = errors; return this; } @@ -87,6 +89,7 @@ public Builder errors(ConnectionOperationError... errors) { } @CustomType.Setter public Builder providerStatus(@Nullable String providerStatus) { + this.providerStatus = providerStatus; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationError.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationError.java index f57710b7..fd535d09 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationError.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationError.java @@ -116,6 +116,7 @@ public Builder(ConnectionOperationError defaults) { @CustomType.Setter public Builder additionalInfo(@Nullable List additionalInfo) { + this.additionalInfo = additionalInfo; return this; } @@ -124,26 +125,31 @@ public Builder additionalInfo(ConnectionOperationErrorAdditionalInfo... addition } @CustomType.Setter public Builder correlationId(@Nullable String correlationId) { + this.correlationId = correlationId; return this; } @CustomType.Setter public Builder details(@Nullable String details) { + this.details = details; return this; } @CustomType.Setter public Builder errorCode(@Nullable String errorCode) { + this.errorCode = errorCode; return this; } @CustomType.Setter public Builder errorMessage(@Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder help(@Nullable String help) { + this.help = help; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationErrorAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationErrorAdditionalInfo.java index 38c2f660..b51c108c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationErrorAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOperationErrorAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(ConnectionOperationErrorAdditionalInfo defaults) { @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOrder.java index 2449a3f8..28e81196 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionOrder.java @@ -86,21 +86,25 @@ public Builder(ConnectionOrder defaults) { @CustomType.Setter public Builder billingTier(@Nullable String billingTier) { + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(@Nullable String orderId) { + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(@Nullable String orderNumber) { + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(@Nullable String purchaseOrderNumber) { + this.purchaseOrderNumber = purchaseOrderNumber; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionProject.java index d4982b90..f43394c5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionProject.java @@ -58,11 +58,13 @@ public Builder(ConnectionProject defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionRedundancy.java index 50491c48..c60035bf 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionRedundancy.java @@ -58,11 +58,13 @@ public Builder(ConnectionRedundancy defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder priority(@Nullable String priority) { + this.priority = priority; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSide.java index 363f0902..d5ce006f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSide.java @@ -75,11 +75,13 @@ public Builder(ConnectionZSide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable ConnectionZSideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfo(@Nullable List additionalInfo) { + this.additionalInfo = additionalInfo; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfo(ConnectionZSideAdditionalInfo... additionalInfo) { } @CustomType.Setter public Builder serviceToken(@Nullable ConnectionZSideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPoint.java index dc948f20..c1ed1921 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPoint.java @@ -258,76 +258,91 @@ public Builder(ConnectionZSideAccessPoint defaults) { @CustomType.Setter public Builder account(@Nullable ConnectionZSideAccessPointAccount account) { + this.account = account; return this; } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable ConnectionZSideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable ConnectionZSideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable ConnectionZSideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(@Nullable ConnectionZSideAccessPointLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable ConnectionZSideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable ConnectionZSideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable ConnectionZSideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(@Nullable String providerConnectionId) { + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable ConnectionZSideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable ConnectionZSideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointAccount.java index 228f2662..8b944453 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointAccount.java @@ -143,41 +143,49 @@ public Builder(ConnectionZSideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(@Nullable Integer accountNumber) { + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(@Nullable String globalCustId) { + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(@Nullable String globalOrgId) { + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(@Nullable String globalOrganizationName) { + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(@Nullable Integer orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(@Nullable String ucmId) { + this.ucmId = ucmId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointGateway.java index 98a88ddb..bc36f911 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointGateway.java @@ -58,11 +58,13 @@ public Builder(ConnectionZSideAccessPointGateway defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointInterface.java index 12195e9c..c6af0975 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointInterface.java @@ -73,16 +73,19 @@ public Builder(ConnectionZSideAccessPointInterface defaults) { @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLinkProtocol.java index cc729649..d304a0c6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLinkProtocol.java @@ -87,21 +87,25 @@ public Builder(ConnectionZSideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(@Nullable Integer vlanCTag) { + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(@Nullable Integer vlanSTag) { + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(@Nullable Integer vlanTag) { + this.vlanTag = vlanTag; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLocation.java index 259846c3..2144e59e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointLocation.java @@ -86,21 +86,25 @@ public Builder(ConnectionZSideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointNetwork.java index 0cc42229..2653587d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointNetwork.java @@ -58,11 +58,13 @@ public Builder(ConnectionZSideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPort.java index a47eeb2b..7b7ecbe2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPort.java @@ -87,21 +87,25 @@ public Builder(ConnectionZSideAccessPointPort defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder redundancy(@Nullable ConnectionZSideAccessPointPortRedundancy redundancy) { + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPortRedundancy.java index 8ae97010..2545c8a3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointPortRedundancy.java @@ -73,16 +73,19 @@ public Builder(ConnectionZSideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder priority(@Nullable String priority) { + this.priority = priority; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfile.java index 25b00ee6..b3074fbe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.ConnectionZSideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -116,6 +117,7 @@ public Builder(ConnectionZSideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(@Nullable List accessPointTypeConfigs) { + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } @@ -124,27 +126,36 @@ public Builder accessPointTypeConfigs(ConnectionZSideAccessPointProfileAccessPoi } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ConnectionZSideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("ConnectionZSideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public ConnectionZSideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfileAccessPointTypeConfig.java index 066c3bfe..aba6aa16 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointProfileAccessPointTypeConfig.java @@ -58,11 +58,13 @@ public Builder(ConnectionZSideAccessPointProfileAccessPointTypeConfig defaults) @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointRouter.java index 213af2aa..074f032b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointRouter.java @@ -58,11 +58,13 @@ public Builder(ConnectionZSideAccessPointRouter defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointVirtualDevice.java index aa4118a3..eb743eb7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAccessPointVirtualDevice.java @@ -86,21 +86,25 @@ public Builder(ConnectionZSideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAdditionalInfo.java index 4271b5ce..e72ba7bc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(ConnectionZSideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideServiceToken.java index f46275ac..f6fe8eee 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ConnectionZSideServiceToken.java @@ -86,21 +86,25 @@ public Builder(ConnectionZSideServiceToken defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterAccount.java index 4558a799..7b616ac8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetCloudRouterAccount defaults) { @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRouterAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } public GetCloudRouterAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterChangeLog.java index 0b7fea4b..5f219a76 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetCloudRouterChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRouterChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetCloudRouterChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterLocation.java index 508189d7..6e04b1ff 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetCloudRouterLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetCloudRouterLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetCloudRouterLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetCloudRouterLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetCloudRouterLocation", "region"); + } + this.region = region; return this; } public GetCloudRouterLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterNotification.java index 7d29bab1..c7ace929 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetCloudRouterNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetCloudRouterNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudRouterNotification", "type"); + } + this.type = type; return this; } public GetCloudRouterNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterOrder.java index ce7d2bc7..fd19cf15 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterOrder.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetCloudRouterOrder defaults) { @CustomType.Setter public Builder billingTier(String billingTier) { - this.billingTier = Objects.requireNonNull(billingTier); + if (billingTier == null) { + throw new MissingRequiredPropertyException("GetCloudRouterOrder", "billingTier"); + } + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(String orderId) { - this.orderId = Objects.requireNonNull(orderId); + if (orderId == null) { + throw new MissingRequiredPropertyException("GetCloudRouterOrder", "orderId"); + } + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(String orderNumber) { - this.orderNumber = Objects.requireNonNull(orderNumber); + if (orderNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRouterOrder", "orderNumber"); + } + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = Objects.requireNonNull(purchaseOrderNumber); + if (purchaseOrderNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRouterOrder", "purchaseOrderNumber"); + } + this.purchaseOrderNumber = purchaseOrderNumber; return this; } public GetCloudRouterOrder build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterPackage.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterPackage.java index c1ad089f..555a5040 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterPackage.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterPackage.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetCloudRouterPackage defaults) { @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetCloudRouterPackage", "code"); + } + this.code = code; return this; } public GetCloudRouterPackage build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterProject.java index 4d6406e8..5afb6a85 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetCloudRouterProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetCloudRouterProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudRouterProject", "projectId"); + } + this.projectId = projectId; return this; } public GetCloudRouterProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterResult.java index f3627566..73f7cef2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRouterResult.java @@ -11,6 +11,7 @@ import com.equinix.pulumi.fabric.outputs.GetCloudRouterPackage; import com.equinix.pulumi.fabric.outputs.GetCloudRouterProject; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -317,7 +318,10 @@ public Builder(GetCloudRouterResult defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetCloudRouterAccount... accounts) { @@ -325,17 +329,26 @@ public Builder accounts(GetCloudRouterAccount... accounts) { } @CustomType.Setter public Builder bgpIpv4RoutesCount(Integer bgpIpv4RoutesCount) { - this.bgpIpv4RoutesCount = Objects.requireNonNull(bgpIpv4RoutesCount); + if (bgpIpv4RoutesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "bgpIpv4RoutesCount"); + } + this.bgpIpv4RoutesCount = bgpIpv4RoutesCount; return this; } @CustomType.Setter public Builder bgpIpv6RoutesCount(Integer bgpIpv6RoutesCount) { - this.bgpIpv6RoutesCount = Objects.requireNonNull(bgpIpv6RoutesCount); + if (bgpIpv6RoutesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "bgpIpv6RoutesCount"); + } + this.bgpIpv6RoutesCount = bgpIpv6RoutesCount; return this; } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetCloudRouterChangeLog... changeLogs) { @@ -343,42 +356,66 @@ public Builder changeLogs(GetCloudRouterChangeLog... changeLogs) { } @CustomType.Setter public Builder connectionsCount(Integer connectionsCount) { - this.connectionsCount = Objects.requireNonNull(connectionsCount); + if (connectionsCount == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "connectionsCount"); + } + this.connectionsCount = connectionsCount; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder distinctIpv4PrefixesCount(Integer distinctIpv4PrefixesCount) { - this.distinctIpv4PrefixesCount = Objects.requireNonNull(distinctIpv4PrefixesCount); + if (distinctIpv4PrefixesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "distinctIpv4PrefixesCount"); + } + this.distinctIpv4PrefixesCount = distinctIpv4PrefixesCount; return this; } @CustomType.Setter public Builder distinctIpv6PrefixesCount(Integer distinctIpv6PrefixesCount) { - this.distinctIpv6PrefixesCount = Objects.requireNonNull(distinctIpv6PrefixesCount); + if (distinctIpv6PrefixesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "distinctIpv6PrefixesCount"); + } + this.distinctIpv6PrefixesCount = distinctIpv6PrefixesCount; return this; } @CustomType.Setter public Builder equinixAsn(Integer equinixAsn) { - this.equinixAsn = Objects.requireNonNull(equinixAsn); + if (equinixAsn == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "equinixAsn"); + } + this.equinixAsn = equinixAsn; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "locations"); + } + this.locations = locations; return this; } public Builder locations(GetCloudRouterLocation... locations) { @@ -386,12 +423,18 @@ public Builder locations(GetCloudRouterLocation... locations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetCloudRouterNotification... notifications) { @@ -399,7 +442,10 @@ public Builder notifications(GetCloudRouterNotification... notifications) { } @CustomType.Setter public Builder orders(List orders) { - this.orders = Objects.requireNonNull(orders); + if (orders == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "orders"); + } + this.orders = orders; return this; } public Builder orders(GetCloudRouterOrder... orders) { @@ -407,7 +453,10 @@ public Builder orders(GetCloudRouterOrder... orders) { } @CustomType.Setter public Builder packages(List packages) { - this.packages = Objects.requireNonNull(packages); + if (packages == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "packages"); + } + this.packages = packages; return this; } public Builder packages(GetCloudRouterPackage... packages) { @@ -415,7 +464,10 @@ public Builder packages(GetCloudRouterPackage... packages) { } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetCloudRouterProject... projects) { @@ -423,17 +475,26 @@ public Builder projects(GetCloudRouterProject... projects) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetCloudRouterResult", "uuid"); + } + this.uuid = uuid; return this; } public GetCloudRouterResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersData.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersData.java index cc537415..29077429 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersData.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersData.java @@ -11,6 +11,7 @@ import com.equinix.pulumi.fabric.outputs.GetCloudRoutersDataPackage; import com.equinix.pulumi.fabric.outputs.GetCloudRoutersDataProject; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -303,7 +304,10 @@ public Builder(GetCloudRoutersData defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetCloudRoutersDataAccount... accounts) { @@ -311,17 +315,26 @@ public Builder accounts(GetCloudRoutersDataAccount... accounts) { } @CustomType.Setter public Builder bgpIpv4RoutesCount(Integer bgpIpv4RoutesCount) { - this.bgpIpv4RoutesCount = Objects.requireNonNull(bgpIpv4RoutesCount); + if (bgpIpv4RoutesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "bgpIpv4RoutesCount"); + } + this.bgpIpv4RoutesCount = bgpIpv4RoutesCount; return this; } @CustomType.Setter public Builder bgpIpv6RoutesCount(Integer bgpIpv6RoutesCount) { - this.bgpIpv6RoutesCount = Objects.requireNonNull(bgpIpv6RoutesCount); + if (bgpIpv6RoutesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "bgpIpv6RoutesCount"); + } + this.bgpIpv6RoutesCount = bgpIpv6RoutesCount; return this; } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetCloudRoutersDataChangeLog... changeLogs) { @@ -329,37 +342,58 @@ public Builder changeLogs(GetCloudRoutersDataChangeLog... changeLogs) { } @CustomType.Setter public Builder connectionsCount(Integer connectionsCount) { - this.connectionsCount = Objects.requireNonNull(connectionsCount); + if (connectionsCount == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "connectionsCount"); + } + this.connectionsCount = connectionsCount; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder distinctIpv4PrefixesCount(Integer distinctIpv4PrefixesCount) { - this.distinctIpv4PrefixesCount = Objects.requireNonNull(distinctIpv4PrefixesCount); + if (distinctIpv4PrefixesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "distinctIpv4PrefixesCount"); + } + this.distinctIpv4PrefixesCount = distinctIpv4PrefixesCount; return this; } @CustomType.Setter public Builder distinctIpv6PrefixesCount(Integer distinctIpv6PrefixesCount) { - this.distinctIpv6PrefixesCount = Objects.requireNonNull(distinctIpv6PrefixesCount); + if (distinctIpv6PrefixesCount == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "distinctIpv6PrefixesCount"); + } + this.distinctIpv6PrefixesCount = distinctIpv6PrefixesCount; return this; } @CustomType.Setter public Builder equinixAsn(Integer equinixAsn) { - this.equinixAsn = Objects.requireNonNull(equinixAsn); + if (equinixAsn == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "equinixAsn"); + } + this.equinixAsn = equinixAsn; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "locations"); + } + this.locations = locations; return this; } public Builder locations(GetCloudRoutersDataLocation... locations) { @@ -367,12 +401,18 @@ public Builder locations(GetCloudRoutersDataLocation... locations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetCloudRoutersDataNotification... notifications) { @@ -380,7 +420,10 @@ public Builder notifications(GetCloudRoutersDataNotification... notifications) { } @CustomType.Setter public Builder orders(List orders) { - this.orders = Objects.requireNonNull(orders); + if (orders == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "orders"); + } + this.orders = orders; return this; } public Builder orders(GetCloudRoutersDataOrder... orders) { @@ -388,7 +431,10 @@ public Builder orders(GetCloudRoutersDataOrder... orders) { } @CustomType.Setter public Builder packages(List packages) { - this.packages = Objects.requireNonNull(packages); + if (packages == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "packages"); + } + this.packages = packages; return this; } public Builder packages(GetCloudRoutersDataPackage... packages) { @@ -396,7 +442,10 @@ public Builder packages(GetCloudRoutersDataPackage... packages) { } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetCloudRoutersDataProject... projects) { @@ -404,17 +453,26 @@ public Builder projects(GetCloudRoutersDataProject... projects) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersData", "uuid"); + } + this.uuid = uuid; return this; } public GetCloudRoutersData build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataAccount.java index 061dc956..832c786b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetCloudRoutersDataAccount defaults) { @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } public GetCloudRoutersDataAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataChangeLog.java index 3c2899c7..da2397c1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetCloudRoutersDataChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetCloudRoutersDataChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataLocation.java index d48abe77..3909d167 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetCloudRoutersDataLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataLocation", "region"); + } + this.region = region; return this; } public GetCloudRoutersDataLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataNotification.java index 87c7830d..941c9434 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetCloudRoutersDataNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataNotification", "type"); + } + this.type = type; return this; } public GetCloudRoutersDataNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataOrder.java index ac6a8993..6024e8eb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataOrder.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetCloudRoutersDataOrder defaults) { @CustomType.Setter public Builder billingTier(String billingTier) { - this.billingTier = Objects.requireNonNull(billingTier); + if (billingTier == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataOrder", "billingTier"); + } + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(String orderId) { - this.orderId = Objects.requireNonNull(orderId); + if (orderId == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataOrder", "orderId"); + } + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(String orderNumber) { - this.orderNumber = Objects.requireNonNull(orderNumber); + if (orderNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataOrder", "orderNumber"); + } + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = Objects.requireNonNull(purchaseOrderNumber); + if (purchaseOrderNumber == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataOrder", "purchaseOrderNumber"); + } + this.purchaseOrderNumber = purchaseOrderNumber; return this; } public GetCloudRoutersDataOrder build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataPackage.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataPackage.java index 6ae5f325..f369b272 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataPackage.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataPackage.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetCloudRoutersDataPackage defaults) { @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataPackage", "code"); + } + this.code = code; return this; } public GetCloudRoutersDataPackage build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataProject.java index aac98f73..f8a0bd2c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersDataProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetCloudRoutersDataProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersDataProject", "projectId"); + } + this.projectId = projectId; return this; } public GetCloudRoutersDataProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersFilter.java index 2e6bcd59..2452f84e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -88,22 +89,32 @@ public Builder(GetCloudRoutersFilter defaults) { @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder or(@Nullable Boolean or) { + this.or = or; return this; } @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersPagination.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersPagination.java index 40a0e06d..fac3027e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersPagination.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersPagination.java @@ -58,11 +58,13 @@ public Builder(GetCloudRoutersPagination defaults) { @CustomType.Setter public Builder limit(@Nullable Integer limit) { + this.limit = limit; return this; } @CustomType.Setter public Builder offset(@Nullable Integer offset) { + this.offset = offset; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersResult.java index ec5cb4e6..11b2a5e7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersResult.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.outputs.GetCloudRoutersPagination; import com.equinix.pulumi.fabric.outputs.GetCloudRoutersSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -105,7 +106,10 @@ public Builder(GetCloudRoutersResult defaults) { @CustomType.Setter public Builder datas(List datas) { - this.datas = Objects.requireNonNull(datas); + if (datas == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersResult", "datas"); + } + this.datas = datas; return this; } public Builder datas(GetCloudRoutersData... datas) { @@ -113,7 +117,10 @@ public Builder datas(GetCloudRoutersData... datas) { } @CustomType.Setter public Builder filters(List filters) { - this.filters = Objects.requireNonNull(filters); + if (filters == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersResult", "filters"); + } + this.filters = filters; return this; } public Builder filters(GetCloudRoutersFilter... filters) { @@ -121,16 +128,21 @@ public Builder filters(GetCloudRoutersFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudRoutersResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder pagination(@Nullable GetCloudRoutersPagination pagination) { + this.pagination = pagination; return this; } @CustomType.Setter public Builder sort(@Nullable GetCloudRoutersSort sort) { + this.sort = sort; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersSort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersSort.java index 131bc468..3d7c296f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetCloudRoutersSort.java @@ -58,11 +58,13 @@ public Builder(GetCloudRoutersSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASide.java index 99397389..7f0e1c23 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASide.java @@ -75,11 +75,13 @@ public Builder(GetConnectionASide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable GetConnectionASideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfos(@Nullable List additionalInfos) { + this.additionalInfos = additionalInfos; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfos(GetConnectionASideAdditionalInfo... additionalInf } @CustomType.Setter public Builder serviceToken(@Nullable GetConnectionASideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPoint.java index 518bb141..1b7fc851 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPoint.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionASideAccessPointRouter; import com.equinix.pulumi.fabric.outputs.GetConnectionASideAccessPointVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -259,7 +260,10 @@ public Builder(GetConnectionASideAccessPoint defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPoint", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetConnectionASideAccessPointAccount... accounts) { @@ -267,71 +271,89 @@ public Builder accounts(GetConnectionASideAccessPointAccount... accounts) { } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable GetConnectionASideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable GetConnectionASideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable GetConnectionASideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(GetConnectionASideAccessPointLocation location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPoint", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable GetConnectionASideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable GetConnectionASideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable GetConnectionASideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(String providerConnectionId) { - this.providerConnectionId = Objects.requireNonNull(providerConnectionId); + if (providerConnectionId == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPoint", "providerConnectionId"); + } + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable GetConnectionASideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable GetConnectionASideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointAccount.java index 43e62a9c..21f61e04 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionASideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionASideAccessPointAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointGateway.java index b9c7b393..a9e7b8f4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointGateway.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionASideAccessPointGateway defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointGateway", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointInterface.java index 72fe2865..7a1aa8ef 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(GetConnectionASideAccessPointInterface defaults) { @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLinkProtocol.java index 1b2ae6e8..85627b36 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLinkProtocol.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetConnectionASideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(Integer vlanCTag) { - this.vlanCTag = Objects.requireNonNull(vlanCTag); + if (vlanCTag == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLinkProtocol", "vlanCTag"); + } + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(Integer vlanSTag) { - this.vlanSTag = Objects.requireNonNull(vlanSTag); + if (vlanSTag == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLinkProtocol", "vlanSTag"); + } + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(Integer vlanTag) { - this.vlanTag = Objects.requireNonNull(vlanTag); + if (vlanTag == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLinkProtocol", "vlanTag"); + } + this.vlanTag = vlanTag; return this; } public GetConnectionASideAccessPointLinkProtocol build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLocation.java index 4f7b4509..18c2a1b9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionASideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointLocation", "region"); + } + this.region = region; return this; } public GetConnectionASideAccessPointLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointNetwork.java index 62d1079d..456a6f42 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionASideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointNetwork", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPort.java index 51c1d26e..368c7090 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionASideAccessPointPortRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -86,17 +87,26 @@ public Builder(GetConnectionASideAccessPointPort defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPort", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPort", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetConnectionASideAccessPointPortRedundancy... redundancies) { @@ -104,7 +114,10 @@ public Builder redundancies(GetConnectionASideAccessPointPortRedundancy... redun } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPort", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionASideAccessPointPort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPortRedundancy.java index 7e584875..f3293411 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointPortRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetConnectionASideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPortRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPortRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointPortRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionASideAccessPointPortRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfile.java index 22a0f295..0f42df69 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionASideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionASideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetConnectionASideAccessPointProfileAccessPointTypeConfig... accessPointTypeConfigs) { @@ -122,27 +126,42 @@ public Builder accessPointTypeConfigs(GetConnectionASideAccessPointProfileAccess } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionASideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfileAccessPointTypeConfig.java index de060a81..b8c678eb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointProfileAccessPointTypeConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionASideAccessPointProfileAccessPointTypeConfig default @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointProfileAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionASideAccessPointProfileAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointRouter.java index ef5da1d3..cf199be1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointRouter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionASideAccessPointRouter defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointRouter", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointVirtualDevice.java index 12171881..df2cd0b8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAccessPointVirtualDevice.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetConnectionASideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideAccessPointVirtualDevice", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAdditionalInfo.java index 7ba1c878..619cf592 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(GetConnectionASideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideServiceToken.java index 1de7605b..0046532e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionASideServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,29 @@ public Builder(GetConnectionASideServiceToken defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionASideServiceToken", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionASideServiceToken", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionAccount.java index 4655ed47..38d8e367 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionChangeLog.java index 7d657c15..4c2a5c3b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetConnectionChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetConnectionChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionNotification.java index 1e5497c7..198dce03 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetConnectionNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetConnectionNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionNotification", "type"); + } + this.type = type; return this; } public GetConnectionNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperation.java index 0ff34a8c..00a79514 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperation.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionOperationError; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -72,12 +73,18 @@ public Builder(GetConnectionOperation defaults) { @CustomType.Setter public Builder equinixStatus(String equinixStatus) { - this.equinixStatus = Objects.requireNonNull(equinixStatus); + if (equinixStatus == null) { + throw new MissingRequiredPropertyException("GetConnectionOperation", "equinixStatus"); + } + this.equinixStatus = equinixStatus; return this; } @CustomType.Setter public Builder errors(List errors) { - this.errors = Objects.requireNonNull(errors); + if (errors == null) { + throw new MissingRequiredPropertyException("GetConnectionOperation", "errors"); + } + this.errors = errors; return this; } public Builder errors(GetConnectionOperationError... errors) { @@ -85,7 +92,10 @@ public Builder errors(GetConnectionOperationError... errors) { } @CustomType.Setter public Builder providerStatus(String providerStatus) { - this.providerStatus = Objects.requireNonNull(providerStatus); + if (providerStatus == null) { + throw new MissingRequiredPropertyException("GetConnectionOperation", "providerStatus"); + } + this.providerStatus = providerStatus; return this; } public GetConnectionOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationError.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationError.java index 934c6c17..f8fc0133 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationError.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationError.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionOperationErrorAdditionalInfo; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionOperationError defaults) { @CustomType.Setter public Builder additionalInfos(List additionalInfos) { - this.additionalInfos = Objects.requireNonNull(additionalInfos); + if (additionalInfos == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "additionalInfos"); + } + this.additionalInfos = additionalInfos; return this; } public Builder additionalInfos(GetConnectionOperationErrorAdditionalInfo... additionalInfos) { @@ -122,27 +126,42 @@ public Builder additionalInfos(GetConnectionOperationErrorAdditionalInfo... addi } @CustomType.Setter public Builder correlationId(String correlationId) { - this.correlationId = Objects.requireNonNull(correlationId); + if (correlationId == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "correlationId"); + } + this.correlationId = correlationId; return this; } @CustomType.Setter public Builder details(String details) { - this.details = Objects.requireNonNull(details); + if (details == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "details"); + } + this.details = details; return this; } @CustomType.Setter public Builder errorCode(String errorCode) { - this.errorCode = Objects.requireNonNull(errorCode); + if (errorCode == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "errorCode"); + } + this.errorCode = errorCode; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder help(String help) { - this.help = Objects.requireNonNull(help); + if (help == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationError", "help"); + } + this.help = help; return this; } public GetConnectionOperationError build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationErrorAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationErrorAdditionalInfo.java index e861275f..efceb08e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationErrorAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOperationErrorAdditionalInfo.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionOperationErrorAdditionalInfo defaults) { @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationErrorAdditionalInfo", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder reason(String reason) { - this.reason = Objects.requireNonNull(reason); + if (reason == null) { + throw new MissingRequiredPropertyException("GetConnectionOperationErrorAdditionalInfo", "reason"); + } + this.reason = reason; return this; } public GetConnectionOperationErrorAdditionalInfo build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOrder.java index f114b747..c323654b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionOrder.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionOrder defaults) { @CustomType.Setter public Builder billingTier(String billingTier) { - this.billingTier = Objects.requireNonNull(billingTier); + if (billingTier == null) { + throw new MissingRequiredPropertyException("GetConnectionOrder", "billingTier"); + } + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(String orderId) { - this.orderId = Objects.requireNonNull(orderId); + if (orderId == null) { + throw new MissingRequiredPropertyException("GetConnectionOrder", "orderId"); + } + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(String orderNumber) { - this.orderNumber = Objects.requireNonNull(orderNumber); + if (orderNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionOrder", "orderNumber"); + } + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = Objects.requireNonNull(purchaseOrderNumber); + if (purchaseOrderNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionOrder", "purchaseOrderNumber"); + } + this.purchaseOrderNumber = purchaseOrderNumber; return this; } public GetConnectionOrder build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionProject.java index 8d34949d..4c1d0d9a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetConnectionProject", "projectId"); + } + this.projectId = projectId; return this; } public GetConnectionProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionRedundancy.java index cf962a8f..4bc4f578 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionRedundancy defaults) { @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionResult.java index 696cecb1..d3c9d2b6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionResult.java @@ -13,6 +13,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionRedundancy; import com.equinix.pulumi.fabric.outputs.GetConnectionZSide; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -322,62 +323,98 @@ public Builder(GetConnectionResult defaults) { @CustomType.Setter public Builder aSide(GetConnectionASide aSide) { - this.aSide = Objects.requireNonNull(aSide); + if (aSide == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "aSide"); + } + this.aSide = aSide; return this; } @CustomType.Setter public Builder account(GetConnectionAccount account) { - this.account = Objects.requireNonNull(account); + if (account == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "account"); + } + this.account = account; return this; } @CustomType.Setter public Builder additionalInfo(List> additionalInfo) { - this.additionalInfo = Objects.requireNonNull(additionalInfo); + if (additionalInfo == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "additionalInfo"); + } + this.additionalInfo = additionalInfo; return this; } @CustomType.Setter public Builder bandwidth(Integer bandwidth) { - this.bandwidth = Objects.requireNonNull(bandwidth); + if (bandwidth == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "bandwidth"); + } + this.bandwidth = bandwidth; return this; } @CustomType.Setter public Builder changeLog(GetConnectionChangeLog changeLog) { - this.changeLog = Objects.requireNonNull(changeLog); + if (changeLog == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "changeLog"); + } + this.changeLog = changeLog; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder direction(String direction) { - this.direction = Objects.requireNonNull(direction); + if (direction == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "direction"); + } + this.direction = direction; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isRemote(Boolean isRemote) { - this.isRemote = Objects.requireNonNull(isRemote); + if (isRemote == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "isRemote"); + } + this.isRemote = isRemote; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetConnectionNotification... notifications) { @@ -385,42 +422,66 @@ public Builder notifications(GetConnectionNotification... notifications) { } @CustomType.Setter public Builder operation(GetConnectionOperation operation) { - this.operation = Objects.requireNonNull(operation); + if (operation == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "operation"); + } + this.operation = operation; return this; } @CustomType.Setter public Builder order(GetConnectionOrder order) { - this.order = Objects.requireNonNull(order); + if (order == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "order"); + } + this.order = order; return this; } @CustomType.Setter public Builder project(GetConnectionProject project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder redundancy(GetConnectionRedundancy redundancy) { - this.redundancy = Objects.requireNonNull(redundancy); + if (redundancy == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "redundancy"); + } + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder zSide(GetConnectionZSide zSide) { - this.zSide = Objects.requireNonNull(zSide); + if (zSide == null) { + throw new MissingRequiredPropertyException("GetConnectionResult", "zSide"); + } + this.zSide = zSide; return this; } public GetConnectionResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSide.java index 2d1b6e5a..1ea6d397 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSide.java @@ -75,11 +75,13 @@ public Builder(GetConnectionZSide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable GetConnectionZSideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfos(@Nullable List additionalInfos) { + this.additionalInfos = additionalInfos; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfos(GetConnectionZSideAdditionalInfo... additionalInf } @CustomType.Setter public Builder serviceToken(@Nullable GetConnectionZSideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPoint.java index 1664d228..5e442a3e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPoint.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionZSideAccessPointRouter; import com.equinix.pulumi.fabric.outputs.GetConnectionZSideAccessPointVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -259,7 +260,10 @@ public Builder(GetConnectionZSideAccessPoint defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPoint", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetConnectionZSideAccessPointAccount... accounts) { @@ -267,71 +271,89 @@ public Builder accounts(GetConnectionZSideAccessPointAccount... accounts) { } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable GetConnectionZSideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable GetConnectionZSideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable GetConnectionZSideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(GetConnectionZSideAccessPointLocation location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPoint", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable GetConnectionZSideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable GetConnectionZSideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable GetConnectionZSideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(String providerConnectionId) { - this.providerConnectionId = Objects.requireNonNull(providerConnectionId); + if (providerConnectionId == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPoint", "providerConnectionId"); + } + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable GetConnectionZSideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable GetConnectionZSideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointAccount.java index eba74bb8..029adc8f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionZSideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionZSideAccessPointAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointGateway.java index f72293ee..38ae0198 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointGateway.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionZSideAccessPointGateway defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointGateway", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointInterface.java index ccc3bc5d..06fc64b6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(GetConnectionZSideAccessPointInterface defaults) { @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLinkProtocol.java index b57d906b..f3b42937 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLinkProtocol.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetConnectionZSideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(Integer vlanCTag) { - this.vlanCTag = Objects.requireNonNull(vlanCTag); + if (vlanCTag == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLinkProtocol", "vlanCTag"); + } + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(Integer vlanSTag) { - this.vlanSTag = Objects.requireNonNull(vlanSTag); + if (vlanSTag == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLinkProtocol", "vlanSTag"); + } + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(Integer vlanTag) { - this.vlanTag = Objects.requireNonNull(vlanTag); + if (vlanTag == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLinkProtocol", "vlanTag"); + } + this.vlanTag = vlanTag; return this; } public GetConnectionZSideAccessPointLinkProtocol build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLocation.java index cba0bd4f..c94a2c11 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionZSideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointLocation", "region"); + } + this.region = region; return this; } public GetConnectionZSideAccessPointLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointNetwork.java index 0d364bd4..8d0a3097 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionZSideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointNetwork", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPort.java index 9a4b8810..19fa5646 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionZSideAccessPointPortRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -86,17 +87,26 @@ public Builder(GetConnectionZSideAccessPointPort defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPort", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPort", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetConnectionZSideAccessPointPortRedundancy... redundancies) { @@ -104,7 +114,10 @@ public Builder redundancies(GetConnectionZSideAccessPointPortRedundancy... redun } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPort", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionZSideAccessPointPort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPortRedundancy.java index cf055a70..196abb6f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointPortRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetConnectionZSideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPortRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPortRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointPortRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionZSideAccessPointPortRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfile.java index 74e4d4d2..6acce91c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionZSideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionZSideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetConnectionZSideAccessPointProfileAccessPointTypeConfig... accessPointTypeConfigs) { @@ -122,27 +126,42 @@ public Builder accessPointTypeConfigs(GetConnectionZSideAccessPointProfileAccess } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionZSideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfileAccessPointTypeConfig.java index e7306709..1df5b1a0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointProfileAccessPointTypeConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionZSideAccessPointProfileAccessPointTypeConfig default @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointProfileAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionZSideAccessPointProfileAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointRouter.java index 297c3f78..08900d7f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointRouter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionZSideAccessPointRouter defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointRouter", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointVirtualDevice.java index 311927a8..44a69b61 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAccessPointVirtualDevice.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetConnectionZSideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideAccessPointVirtualDevice", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAdditionalInfo.java index 99d832ac..adabd7c5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(GetConnectionZSideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideServiceToken.java index cd66f5c0..4585958b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionZSideServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,29 @@ public Builder(GetConnectionZSideServiceToken defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideServiceToken", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionZSideServiceToken", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsData.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsData.java index 1d5d3fc0..2aeaed84 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsData.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsData.java @@ -13,6 +13,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataRedundancy; import com.equinix.pulumi.fabric.outputs.GetConnectionsDataZSide; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -308,7 +309,10 @@ public Builder(GetConnectionsData defaults) { @CustomType.Setter public Builder aSides(List aSides) { - this.aSides = Objects.requireNonNull(aSides); + if (aSides == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "aSides"); + } + this.aSides = aSides; return this; } public Builder aSides(GetConnectionsDataASide... aSides) { @@ -316,7 +320,10 @@ public Builder aSides(GetConnectionsDataASide... aSides) { } @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetConnectionsDataAccount... accounts) { @@ -324,17 +331,26 @@ public Builder accounts(GetConnectionsDataAccount... accounts) { } @CustomType.Setter public Builder additionalInfos(List> additionalInfos) { - this.additionalInfos = Objects.requireNonNull(additionalInfos); + if (additionalInfos == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "additionalInfos"); + } + this.additionalInfos = additionalInfos; return this; } @CustomType.Setter public Builder bandwidth(Integer bandwidth) { - this.bandwidth = Objects.requireNonNull(bandwidth); + if (bandwidth == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "bandwidth"); + } + this.bandwidth = bandwidth; return this; } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetConnectionsDataChangeLog... changeLogs) { @@ -342,32 +358,50 @@ public Builder changeLogs(GetConnectionsDataChangeLog... changeLogs) { } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder direction(String direction) { - this.direction = Objects.requireNonNull(direction); + if (direction == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "direction"); + } + this.direction = direction; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder isRemote(Boolean isRemote) { - this.isRemote = Objects.requireNonNull(isRemote); + if (isRemote == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "isRemote"); + } + this.isRemote = isRemote; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetConnectionsDataNotification... notifications) { @@ -375,7 +409,10 @@ public Builder notifications(GetConnectionsDataNotification... notifications) { } @CustomType.Setter public Builder operations(List operations) { - this.operations = Objects.requireNonNull(operations); + if (operations == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "operations"); + } + this.operations = operations; return this; } public Builder operations(GetConnectionsDataOperation... operations) { @@ -383,7 +420,10 @@ public Builder operations(GetConnectionsDataOperation... operations) { } @CustomType.Setter public Builder orders(List orders) { - this.orders = Objects.requireNonNull(orders); + if (orders == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "orders"); + } + this.orders = orders; return this; } public Builder orders(GetConnectionsDataOrder... orders) { @@ -391,7 +431,10 @@ public Builder orders(GetConnectionsDataOrder... orders) { } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetConnectionsDataProject... projects) { @@ -399,7 +442,10 @@ public Builder projects(GetConnectionsDataProject... projects) { } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetConnectionsDataRedundancy... redundancies) { @@ -407,22 +453,34 @@ public Builder redundancies(GetConnectionsDataRedundancy... redundancies) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder zSides(List zSides) { - this.zSides = Objects.requireNonNull(zSides); + if (zSides == null) { + throw new MissingRequiredPropertyException("GetConnectionsData", "zSides"); + } + this.zSides = zSides; return this; } public Builder zSides(GetConnectionsDataZSide... zSides) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASide.java index aa8c35a0..b81bd8e0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASide.java @@ -75,11 +75,13 @@ public Builder(GetConnectionsDataASide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable GetConnectionsDataASideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfos(@Nullable List additionalInfos) { + this.additionalInfos = additionalInfos; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfos(GetConnectionsDataASideAdditionalInfo... addition } @CustomType.Setter public Builder serviceToken(@Nullable GetConnectionsDataASideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPoint.java index e0926e3c..05193a1a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPoint.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataASideAccessPointRouter; import com.equinix.pulumi.fabric.outputs.GetConnectionsDataASideAccessPointVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -259,7 +260,10 @@ public Builder(GetConnectionsDataASideAccessPoint defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPoint", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetConnectionsDataASideAccessPointAccount... accounts) { @@ -267,71 +271,89 @@ public Builder accounts(GetConnectionsDataASideAccessPointAccount... accounts) { } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable GetConnectionsDataASideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable GetConnectionsDataASideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable GetConnectionsDataASideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(GetConnectionsDataASideAccessPointLocation location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPoint", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable GetConnectionsDataASideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable GetConnectionsDataASideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable GetConnectionsDataASideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(String providerConnectionId) { - this.providerConnectionId = Objects.requireNonNull(providerConnectionId); + if (providerConnectionId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPoint", "providerConnectionId"); + } + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable GetConnectionsDataASideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable GetConnectionsDataASideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointAccount.java index 01eb2408..f3e4f68e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionsDataASideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionsDataASideAccessPointAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointGateway.java index f885831f..ec6789f0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointGateway.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataASideAccessPointGateway defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointGateway", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointInterface.java index 1cb6b9c1..b6241db7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(GetConnectionsDataASideAccessPointInterface defaults) { @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLinkProtocol.java index 7a92ec90..3a2eb6ba 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLinkProtocol.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetConnectionsDataASideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(Integer vlanCTag) { - this.vlanCTag = Objects.requireNonNull(vlanCTag); + if (vlanCTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLinkProtocol", "vlanCTag"); + } + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(Integer vlanSTag) { - this.vlanSTag = Objects.requireNonNull(vlanSTag); + if (vlanSTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLinkProtocol", "vlanSTag"); + } + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(Integer vlanTag) { - this.vlanTag = Objects.requireNonNull(vlanTag); + if (vlanTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLinkProtocol", "vlanTag"); + } + this.vlanTag = vlanTag; return this; } public GetConnectionsDataASideAccessPointLinkProtocol build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLocation.java index 9891d552..35eef73e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionsDataASideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointLocation", "region"); + } + this.region = region; return this; } public GetConnectionsDataASideAccessPointLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointNetwork.java index fb51d670..32bd0e08 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataASideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointNetwork", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPort.java index 31d20902..5321ced0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataASideAccessPointPortRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -86,17 +87,26 @@ public Builder(GetConnectionsDataASideAccessPointPort defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPort", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPort", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetConnectionsDataASideAccessPointPortRedundancy... redundancies) { @@ -104,7 +114,10 @@ public Builder redundancies(GetConnectionsDataASideAccessPointPortRedundancy... } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPort", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataASideAccessPointPort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPortRedundancy.java index 501a560f..acac79b7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointPortRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetConnectionsDataASideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPortRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPortRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointPortRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionsDataASideAccessPointPortRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfile.java index 5ca6480a..96fd0cf0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionsDataASideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig... accessPointTypeConfigs) { @@ -122,27 +126,42 @@ public Builder accessPointTypeConfigs(GetConnectionsDataASideAccessPointProfileA } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataASideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig.java index 38794734..1a15e37a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig de @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataASideAccessPointProfileAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointRouter.java index 8ed519b4..40877c1e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointRouter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataASideAccessPointRouter defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointRouter", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointVirtualDevice.java index f192ec41..b1ca046d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAccessPointVirtualDevice.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetConnectionsDataASideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideAccessPointVirtualDevice", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAdditionalInfo.java index 4e11b846..12e8524c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(GetConnectionsDataASideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideServiceToken.java index 7ff99f3a..2f6de88e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataASideServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,29 @@ public Builder(GetConnectionsDataASideServiceToken defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideServiceToken", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataASideServiceToken", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataAccount.java index 5a8382c7..a8662bcf 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionsDataAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionsDataAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataChangeLog.java index b9022faa..0c8989e2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetConnectionsDataChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetConnectionsDataChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataNotification.java index ade7adda..4e152d30 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetConnectionsDataNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataNotification", "type"); + } + this.type = type; return this; } public GetConnectionsDataNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperation.java index 0589be11..31b20fa6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperation.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataOperationError; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -72,12 +73,18 @@ public Builder(GetConnectionsDataOperation defaults) { @CustomType.Setter public Builder equinixStatus(String equinixStatus) { - this.equinixStatus = Objects.requireNonNull(equinixStatus); + if (equinixStatus == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperation", "equinixStatus"); + } + this.equinixStatus = equinixStatus; return this; } @CustomType.Setter public Builder errors(List errors) { - this.errors = Objects.requireNonNull(errors); + if (errors == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperation", "errors"); + } + this.errors = errors; return this; } public Builder errors(GetConnectionsDataOperationError... errors) { @@ -85,7 +92,10 @@ public Builder errors(GetConnectionsDataOperationError... errors) { } @CustomType.Setter public Builder providerStatus(String providerStatus) { - this.providerStatus = Objects.requireNonNull(providerStatus); + if (providerStatus == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperation", "providerStatus"); + } + this.providerStatus = providerStatus; return this; } public GetConnectionsDataOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationError.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationError.java index 9d80f900..4546134f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationError.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationError.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataOperationErrorAdditionalInfo; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionsDataOperationError defaults) { @CustomType.Setter public Builder additionalInfos(List additionalInfos) { - this.additionalInfos = Objects.requireNonNull(additionalInfos); + if (additionalInfos == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "additionalInfos"); + } + this.additionalInfos = additionalInfos; return this; } public Builder additionalInfos(GetConnectionsDataOperationErrorAdditionalInfo... additionalInfos) { @@ -122,27 +126,42 @@ public Builder additionalInfos(GetConnectionsDataOperationErrorAdditionalInfo... } @CustomType.Setter public Builder correlationId(String correlationId) { - this.correlationId = Objects.requireNonNull(correlationId); + if (correlationId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "correlationId"); + } + this.correlationId = correlationId; return this; } @CustomType.Setter public Builder details(String details) { - this.details = Objects.requireNonNull(details); + if (details == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "details"); + } + this.details = details; return this; } @CustomType.Setter public Builder errorCode(String errorCode) { - this.errorCode = Objects.requireNonNull(errorCode); + if (errorCode == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "errorCode"); + } + this.errorCode = errorCode; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder help(String help) { - this.help = Objects.requireNonNull(help); + if (help == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationError", "help"); + } + this.help = help; return this; } public GetConnectionsDataOperationError build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationErrorAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationErrorAdditionalInfo.java index 960b54e5..958419c1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationErrorAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOperationErrorAdditionalInfo.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionsDataOperationErrorAdditionalInfo defaults) { @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationErrorAdditionalInfo", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder reason(String reason) { - this.reason = Objects.requireNonNull(reason); + if (reason == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOperationErrorAdditionalInfo", "reason"); + } + this.reason = reason; return this; } public GetConnectionsDataOperationErrorAdditionalInfo build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOrder.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOrder.java index 0e15640c..12f6a95f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOrder.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataOrder.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionsDataOrder defaults) { @CustomType.Setter public Builder billingTier(String billingTier) { - this.billingTier = Objects.requireNonNull(billingTier); + if (billingTier == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOrder", "billingTier"); + } + this.billingTier = billingTier; return this; } @CustomType.Setter public Builder orderId(String orderId) { - this.orderId = Objects.requireNonNull(orderId); + if (orderId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOrder", "orderId"); + } + this.orderId = orderId; return this; } @CustomType.Setter public Builder orderNumber(String orderNumber) { - this.orderNumber = Objects.requireNonNull(orderNumber); + if (orderNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOrder", "orderNumber"); + } + this.orderNumber = orderNumber; return this; } @CustomType.Setter public Builder purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = Objects.requireNonNull(purchaseOrderNumber); + if (purchaseOrderNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataOrder", "purchaseOrderNumber"); + } + this.purchaseOrderNumber = purchaseOrderNumber; return this; } public GetConnectionsDataOrder build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataProject.java index 611f23db..7043fda9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionsDataProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataProject", "projectId"); + } + this.projectId = projectId; return this; } public GetConnectionsDataProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataRedundancy.java index df8992e0..c181bd8c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionsDataRedundancy defaults) { @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionsDataRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSide.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSide.java index 40df52d5..c4f4c1a2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSide.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSide.java @@ -75,11 +75,13 @@ public Builder(GetConnectionsDataZSide defaults) { @CustomType.Setter public Builder accessPoint(@Nullable GetConnectionsDataZSideAccessPoint accessPoint) { + this.accessPoint = accessPoint; return this; } @CustomType.Setter public Builder additionalInfos(@Nullable List additionalInfos) { + this.additionalInfos = additionalInfos; return this; } @@ -88,6 +90,7 @@ public Builder additionalInfos(GetConnectionsDataZSideAdditionalInfo... addition } @CustomType.Setter public Builder serviceToken(@Nullable GetConnectionsDataZSideServiceToken serviceToken) { + this.serviceToken = serviceToken; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPoint.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPoint.java index dd6ce3a4..e49f0437 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPoint.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPoint.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataZSideAccessPointRouter; import com.equinix.pulumi.fabric.outputs.GetConnectionsDataZSideAccessPointVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -259,7 +260,10 @@ public Builder(GetConnectionsDataZSideAccessPoint defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPoint", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetConnectionsDataZSideAccessPointAccount... accounts) { @@ -267,71 +271,89 @@ public Builder accounts(GetConnectionsDataZSideAccessPointAccount... accounts) { } @CustomType.Setter public Builder authenticationKey(@Nullable String authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder gateway(@Nullable GetConnectionsDataZSideAccessPointGateway gateway) { + this.gateway = gateway; return this; } @CustomType.Setter("interface") public Builder interface_(@Nullable GetConnectionsDataZSideAccessPointInterface interface_) { + this.interface_ = interface_; return this; } @CustomType.Setter public Builder linkProtocol(@Nullable GetConnectionsDataZSideAccessPointLinkProtocol linkProtocol) { + this.linkProtocol = linkProtocol; return this; } @CustomType.Setter public Builder location(GetConnectionsDataZSideAccessPointLocation location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPoint", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder network(@Nullable GetConnectionsDataZSideAccessPointNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder peeringType(@Nullable String peeringType) { + this.peeringType = peeringType; return this; } @CustomType.Setter public Builder port(@Nullable GetConnectionsDataZSideAccessPointPort port) { + this.port = port; return this; } @CustomType.Setter public Builder profile(@Nullable GetConnectionsDataZSideAccessPointProfile profile) { + this.profile = profile; return this; } @CustomType.Setter public Builder providerConnectionId(String providerConnectionId) { - this.providerConnectionId = Objects.requireNonNull(providerConnectionId); + if (providerConnectionId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPoint", "providerConnectionId"); + } + this.providerConnectionId = providerConnectionId; return this; } @CustomType.Setter public Builder router(@Nullable GetConnectionsDataZSideAccessPointRouter router) { + this.router = router; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder virtualDevice(@Nullable GetConnectionsDataZSideAccessPointVirtualDevice virtualDevice) { + this.virtualDevice = virtualDevice; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointAccount.java index 37d94c4f..70c12194 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetConnectionsDataZSideAccessPointAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetConnectionsDataZSideAccessPointAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointGateway.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointGateway.java index 2ac02ee3..1960e9ad 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointGateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointGateway.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataZSideAccessPointGateway defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointGateway", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointInterface.java index 93db5e6c..d4c336dd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(GetConnectionsDataZSideAccessPointInterface defaults) { @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLinkProtocol.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLinkProtocol.java index 05ac4377..545e5cd8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLinkProtocol.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLinkProtocol.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetConnectionsDataZSideAccessPointLinkProtocol defaults) { @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder vlanCTag(Integer vlanCTag) { - this.vlanCTag = Objects.requireNonNull(vlanCTag); + if (vlanCTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLinkProtocol", "vlanCTag"); + } + this.vlanCTag = vlanCTag; return this; } @CustomType.Setter public Builder vlanSTag(Integer vlanSTag) { - this.vlanSTag = Objects.requireNonNull(vlanSTag); + if (vlanSTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLinkProtocol", "vlanSTag"); + } + this.vlanSTag = vlanSTag; return this; } @CustomType.Setter public Builder vlanTag(Integer vlanTag) { - this.vlanTag = Objects.requireNonNull(vlanTag); + if (vlanTag == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLinkProtocol", "vlanTag"); + } + this.vlanTag = vlanTag; return this; } public GetConnectionsDataZSideAccessPointLinkProtocol build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLocation.java index ca829334..e6ca078a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetConnectionsDataZSideAccessPointLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointLocation", "region"); + } + this.region = region; return this; } public GetConnectionsDataZSideAccessPointLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointNetwork.java index c1ac1008..de86ff49 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataZSideAccessPointNetwork defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointNetwork", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPort.java index 378e54d2..be443f19 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataZSideAccessPointPortRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -86,17 +87,26 @@ public Builder(GetConnectionsDataZSideAccessPointPort defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPort", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPort", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetConnectionsDataZSideAccessPointPortRedundancy... redundancies) { @@ -104,7 +114,10 @@ public Builder redundancies(GetConnectionsDataZSideAccessPointPortRedundancy... } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPort", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataZSideAccessPointPort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPortRedundancy.java index 14e8be21..2e8d432d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointPortRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetConnectionsDataZSideAccessPointPortRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPortRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPortRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointPortRedundancy", "priority"); + } + this.priority = priority; return this; } public GetConnectionsDataZSideAccessPointPortRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfile.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfile.java index 922d2c3e..2062e59e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfile.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetConnectionsDataZSideAccessPointProfile defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig... accessPointTypeConfigs) { @@ -122,27 +126,42 @@ public Builder accessPointTypeConfigs(GetConnectionsDataZSideAccessPointProfileA } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfile", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataZSideAccessPointProfile build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig.java index fd14adc3..881b5031 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig de @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetConnectionsDataZSideAccessPointProfileAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointRouter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointRouter.java index 4d32934a..31959a04 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointRouter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointRouter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetConnectionsDataZSideAccessPointRouter defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointRouter", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointVirtualDevice.java index 8f294f58..2adec033 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAccessPointVirtualDevice.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(GetConnectionsDataZSideAccessPointVirtualDevice defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideAccessPointVirtualDevice", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAdditionalInfo.java index c894f418..736bd8d6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(GetConnectionsDataZSideAdditionalInfo defaults) { @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideServiceToken.java index bfb8abbd..c7f17f21 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsDataZSideServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,29 @@ public Builder(GetConnectionsDataZSideServiceToken defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideServiceToken", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetConnectionsDataZSideServiceToken", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsFilter.java index 6f0635c9..881fc042 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetConnectionsFilter defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetConnectionsFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsPagination.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsPagination.java index 73bb2c27..d2fe5524 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsPagination.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsPagination.java @@ -58,11 +58,13 @@ public Builder(GetConnectionsPagination defaults) { @CustomType.Setter public Builder limit(@Nullable Integer limit) { + this.limit = limit; return this; } @CustomType.Setter public Builder offset(@Nullable Integer offset) { + this.offset = offset; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsResult.java index 93ba11ad..3c952aab 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsResult.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.outputs.GetConnectionsPagination; import com.equinix.pulumi.fabric.outputs.GetConnectionsSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -119,7 +120,10 @@ public Builder(GetConnectionsResult defaults) { @CustomType.Setter public Builder datas(List datas) { - this.datas = Objects.requireNonNull(datas); + if (datas == null) { + throw new MissingRequiredPropertyException("GetConnectionsResult", "datas"); + } + this.datas = datas; return this; } public Builder datas(GetConnectionsData... datas) { @@ -127,7 +131,10 @@ public Builder datas(GetConnectionsData... datas) { } @CustomType.Setter public Builder filters(List filters) { - this.filters = Objects.requireNonNull(filters); + if (filters == null) { + throw new MissingRequiredPropertyException("GetConnectionsResult", "filters"); + } + this.filters = filters; return this; } public Builder filters(GetConnectionsFilter... filters) { @@ -135,21 +142,29 @@ public Builder filters(GetConnectionsFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConnectionsResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder outerOperator(String outerOperator) { - this.outerOperator = Objects.requireNonNull(outerOperator); + if (outerOperator == null) { + throw new MissingRequiredPropertyException("GetConnectionsResult", "outerOperator"); + } + this.outerOperator = outerOperator; return this; } @CustomType.Setter public Builder pagination(@Nullable GetConnectionsPagination pagination) { + this.pagination = pagination; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsSort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsSort.java index 065bb3a8..ad7a0914 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetConnectionsSort.java @@ -58,11 +58,13 @@ public Builder(GetConnectionsSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChange.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChange.java index 8cc05e80..ca5bc882 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChange.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChange.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,17 +73,26 @@ public Builder(GetNetworkChange defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetNetworkChange", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworkChange", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetNetworkChange", "uuid"); + } + this.uuid = uuid; return this; } public GetNetworkChange build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChangeLog.java index 779ef312..0fdf8dca 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetNetworkChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworkChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetNetworkChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkLocation.java index 67e9c960..79e4473e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetNetworkLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetNetworkLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetNetworkLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetNetworkLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetNetworkLocation", "region"); + } + this.region = region; return this; } public GetNetworkLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkNotification.java index 5d6f2122..69636bfe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetNetworkNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetNetworkNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworkNotification", "type"); + } + this.type = type; return this; } public GetNetworkNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkOperation.java index 6f5460b1..81033bb9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkOperation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetNetworkOperation defaults) { @CustomType.Setter public Builder equinixStatus(String equinixStatus) { - this.equinixStatus = Objects.requireNonNull(equinixStatus); + if (equinixStatus == null) { + throw new MissingRequiredPropertyException("GetNetworkOperation", "equinixStatus"); + } + this.equinixStatus = equinixStatus; return this; } public GetNetworkOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkProject.java index 02edda59..4d69c8dd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetNetworkProject defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworkProject", "projectId"); + } + this.projectId = projectId; return this; } public GetNetworkProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkResult.java index 94d2d395..8ac1c7cd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworkResult.java @@ -10,6 +10,7 @@ import com.equinix.pulumi.fabric.outputs.GetNetworkOperation; import com.equinix.pulumi.fabric.outputs.GetNetworkProject; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -232,32 +233,50 @@ public Builder(GetNetworkResult defaults) { @CustomType.Setter public Builder change(GetNetworkChange change) { - this.change = Objects.requireNonNull(change); + if (change == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "change"); + } + this.change = change; return this; } @CustomType.Setter public Builder changeLog(GetNetworkChangeLog changeLog) { - this.changeLog = Objects.requireNonNull(changeLog); + if (changeLog == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "changeLog"); + } + this.changeLog = changeLog; return this; } @CustomType.Setter public Builder connectionsCount(Integer connectionsCount) { - this.connectionsCount = Objects.requireNonNull(connectionsCount); + if (connectionsCount == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "connectionsCount"); + } + this.connectionsCount = connectionsCount; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "locations"); + } + this.locations = locations; return this; } public Builder locations(GetNetworkLocation... locations) { @@ -265,12 +284,18 @@ public Builder locations(GetNetworkLocation... locations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetNetworkNotification... notifications) { @@ -278,32 +303,50 @@ public Builder notifications(GetNetworkNotification... notifications) { } @CustomType.Setter public Builder operation(GetNetworkOperation operation) { - this.operation = Objects.requireNonNull(operation); + if (operation == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "operation"); + } + this.operation = operation; return this; } @CustomType.Setter public Builder project(GetNetworkProject project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder scope(String scope) { - this.scope = Objects.requireNonNull(scope); + if (scope == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "scope"); + } + this.scope = scope; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetNetworkResult", "uuid"); + } + this.uuid = uuid; return this; } public GetNetworkResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksData.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksData.java index 6ad7580b..e6581aa2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksData.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksData.java @@ -10,6 +10,7 @@ import com.equinix.pulumi.fabric.outputs.GetNetworksDataOperation; import com.equinix.pulumi.fabric.outputs.GetNetworksDataProject; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -218,7 +219,10 @@ public Builder(GetNetworksData defaults) { @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetNetworksDataChangeLog... changeLogs) { @@ -226,7 +230,10 @@ public Builder changeLogs(GetNetworksDataChangeLog... changeLogs) { } @CustomType.Setter public Builder changes(List changes) { - this.changes = Objects.requireNonNull(changes); + if (changes == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "changes"); + } + this.changes = changes; return this; } public Builder changes(GetNetworksDataChange... changes) { @@ -234,17 +241,26 @@ public Builder changes(GetNetworksDataChange... changes) { } @CustomType.Setter public Builder connectionsCount(Integer connectionsCount) { - this.connectionsCount = Objects.requireNonNull(connectionsCount); + if (connectionsCount == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "connectionsCount"); + } + this.connectionsCount = connectionsCount; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "locations"); + } + this.locations = locations; return this; } public Builder locations(GetNetworksDataLocation... locations) { @@ -252,12 +268,18 @@ public Builder locations(GetNetworksDataLocation... locations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetNetworksDataNotification... notifications) { @@ -265,7 +287,10 @@ public Builder notifications(GetNetworksDataNotification... notifications) { } @CustomType.Setter public Builder operations(List operations) { - this.operations = Objects.requireNonNull(operations); + if (operations == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "operations"); + } + this.operations = operations; return this; } public Builder operations(GetNetworksDataOperation... operations) { @@ -273,7 +298,10 @@ public Builder operations(GetNetworksDataOperation... operations) { } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetNetworksDataProject... projects) { @@ -281,22 +309,34 @@ public Builder projects(GetNetworksDataProject... projects) { } @CustomType.Setter public Builder scope(String scope) { - this.scope = Objects.requireNonNull(scope); + if (scope == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "scope"); + } + this.scope = scope; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetNetworksData", "uuid"); + } + this.uuid = uuid; return this; } public GetNetworksData build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChange.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChange.java index ef888184..45e5046f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChange.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChange.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,17 +73,26 @@ public Builder(GetNetworksDataChange defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChange", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChange", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChange", "uuid"); + } + this.uuid = uuid; return this; } public GetNetworksDataChange build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChangeLog.java index d1bdc98d..6ca836b8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetNetworksDataChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetNetworksDataChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetNetworksDataChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataLocation.java index 13f91df7..2f464c9d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetNetworksDataLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetNetworksDataLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetNetworksDataLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetNetworksDataLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetNetworksDataLocation", "region"); + } + this.region = region; return this; } public GetNetworksDataLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataNotification.java index 01b61cd8..88edcb9a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetNetworksDataNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetNetworksDataNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetNetworksDataNotification", "type"); + } + this.type = type; return this; } public GetNetworksDataNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataOperation.java index 3992eda0..30f72054 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataOperation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetNetworksDataOperation defaults) { @CustomType.Setter public Builder equinixStatus(String equinixStatus) { - this.equinixStatus = Objects.requireNonNull(equinixStatus); + if (equinixStatus == null) { + throw new MissingRequiredPropertyException("GetNetworksDataOperation", "equinixStatus"); + } + this.equinixStatus = equinixStatus; return this; } public GetNetworksDataOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataProject.java index 711da093..af274cd6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksDataProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetNetworksDataProject defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNetworksDataProject", "projectId"); + } + this.projectId = projectId; return this; } public GetNetworksDataProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksFilter.java index 57b43390..9ebd510c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -87,22 +88,32 @@ public Builder(GetNetworksFilter defaults) { @CustomType.Setter public Builder group(@Nullable String group) { + this.group = group; return this; } @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetNetworksFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksPagination.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksPagination.java index 17086410..28de69a2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksPagination.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksPagination.java @@ -58,11 +58,13 @@ public Builder(GetNetworksPagination defaults) { @CustomType.Setter public Builder limit(@Nullable Integer limit) { + this.limit = limit; return this; } @CustomType.Setter public Builder offset(@Nullable Integer offset) { + this.offset = offset; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksResult.java index d34d0062..d4b1a835 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksResult.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.outputs.GetNetworksPagination; import com.equinix.pulumi.fabric.outputs.GetNetworksSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -119,7 +120,10 @@ public Builder(GetNetworksResult defaults) { @CustomType.Setter public Builder datas(List datas) { - this.datas = Objects.requireNonNull(datas); + if (datas == null) { + throw new MissingRequiredPropertyException("GetNetworksResult", "datas"); + } + this.datas = datas; return this; } public Builder datas(GetNetworksData... datas) { @@ -127,7 +131,10 @@ public Builder datas(GetNetworksData... datas) { } @CustomType.Setter public Builder filters(List filters) { - this.filters = Objects.requireNonNull(filters); + if (filters == null) { + throw new MissingRequiredPropertyException("GetNetworksResult", "filters"); + } + this.filters = filters; return this; } public Builder filters(GetNetworksFilter... filters) { @@ -135,21 +142,29 @@ public Builder filters(GetNetworksFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNetworksResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder outerOperator(String outerOperator) { - this.outerOperator = Objects.requireNonNull(outerOperator); + if (outerOperator == null) { + throw new MissingRequiredPropertyException("GetNetworksResult", "outerOperator"); + } + this.outerOperator = outerOperator; return this; } @CustomType.Setter public Builder pagination(@Nullable GetNetworksPagination pagination) { + this.pagination = pagination; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksSort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksSort.java index 638ca059..f145ec55 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetNetworksSort.java @@ -58,11 +58,13 @@ public Builder(GetNetworksSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortAccount.java index 2d75400d..1a73cb29 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetPortAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetPortAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetPortAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortChangeLog.java index 7c29d2a0..9b4936da 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetPortChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetPortChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetPortChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDevice.java index 13757628..73eb2ebd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDevice.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetPortDeviceRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -58,12 +59,18 @@ public Builder(GetPortDevice defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortDevice", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetPortDevice", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetPortDeviceRedundancy... redundancies) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDeviceRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDeviceRedundancy.java index 860ac52d..c9d31581 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDeviceRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortDeviceRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetPortDeviceRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetPortDeviceRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetPortDeviceRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetPortDeviceRedundancy", "priority"); + } + this.priority = priority; return this; } public GetPortDeviceRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortEncapsulation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortEncapsulation.java index 5d78fd66..59d808aa 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortEncapsulation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortEncapsulation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetPortEncapsulation defaults) { @CustomType.Setter public Builder tagProtocolId(String tagProtocolId) { - this.tagProtocolId = Objects.requireNonNull(tagProtocolId); + if (tagProtocolId == null) { + throw new MissingRequiredPropertyException("GetPortEncapsulation", "tagProtocolId"); + } + this.tagProtocolId = tagProtocolId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPortEncapsulation", "type"); + } + this.type = type; return this; } public GetPortEncapsulation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortLocation.java index ed0c3e20..f6e476f4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetPortLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetPortLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetPortLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetPortLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetPortLocation", "region"); + } + this.region = region; return this; } public GetPortLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortOperation.java index 2fb96f0d..973b58c7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortOperation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -71,17 +72,26 @@ public Builder(GetPortOperation defaults) { @CustomType.Setter public Builder connectionCount(Integer connectionCount) { - this.connectionCount = Objects.requireNonNull(connectionCount); + if (connectionCount == null) { + throw new MissingRequiredPropertyException("GetPortOperation", "connectionCount"); + } + this.connectionCount = connectionCount; return this; } @CustomType.Setter public Builder opStatusChangedAt(String opStatusChangedAt) { - this.opStatusChangedAt = Objects.requireNonNull(opStatusChangedAt); + if (opStatusChangedAt == null) { + throw new MissingRequiredPropertyException("GetPortOperation", "opStatusChangedAt"); + } + this.opStatusChangedAt = opStatusChangedAt; return this; } @CustomType.Setter public Builder operationalStatus(String operationalStatus) { - this.operationalStatus = Objects.requireNonNull(operationalStatus); + if (operationalStatus == null) { + throw new MissingRequiredPropertyException("GetPortOperation", "operationalStatus"); + } + this.operationalStatus = operationalStatus; return this; } public GetPortOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortRedundancy.java index 02fc117e..0b6379c0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetPortRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetPortRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetPortRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetPortRedundancy", "priority"); + } + this.priority = priority; return this; } public GetPortRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortResult.java index 0b837fee..5d3fee21 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortResult.java @@ -11,6 +11,7 @@ import com.equinix.pulumi.fabric.outputs.GetPortOperation; import com.equinix.pulumi.fabric.outputs.GetPortRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -303,97 +304,154 @@ public Builder(GetPortResult defaults) { @CustomType.Setter public Builder account(GetPortAccount account) { - this.account = Objects.requireNonNull(account); + if (account == null) { + throw new MissingRequiredPropertyException("GetPortResult", "account"); + } + this.account = account; return this; } @CustomType.Setter public Builder availableBandwidth(Integer availableBandwidth) { - this.availableBandwidth = Objects.requireNonNull(availableBandwidth); + if (availableBandwidth == null) { + throw new MissingRequiredPropertyException("GetPortResult", "availableBandwidth"); + } + this.availableBandwidth = availableBandwidth; return this; } @CustomType.Setter public Builder bandwidth(Integer bandwidth) { - this.bandwidth = Objects.requireNonNull(bandwidth); + if (bandwidth == null) { + throw new MissingRequiredPropertyException("GetPortResult", "bandwidth"); + } + this.bandwidth = bandwidth; return this; } @CustomType.Setter public Builder changeLog(GetPortChangeLog changeLog) { - this.changeLog = Objects.requireNonNull(changeLog); + if (changeLog == null) { + throw new MissingRequiredPropertyException("GetPortResult", "changeLog"); + } + this.changeLog = changeLog; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetPortResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder device(GetPortDevice device) { - this.device = Objects.requireNonNull(device); + if (device == null) { + throw new MissingRequiredPropertyException("GetPortResult", "device"); + } + this.device = device; return this; } @CustomType.Setter public Builder encapsulation(GetPortEncapsulation encapsulation) { - this.encapsulation = Objects.requireNonNull(encapsulation); + if (encapsulation == null) { + throw new MissingRequiredPropertyException("GetPortResult", "encapsulation"); + } + this.encapsulation = encapsulation; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetPortResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPortResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder lagEnabled(Boolean lagEnabled) { - this.lagEnabled = Objects.requireNonNull(lagEnabled); + if (lagEnabled == null) { + throw new MissingRequiredPropertyException("GetPortResult", "lagEnabled"); + } + this.lagEnabled = lagEnabled; return this; } @CustomType.Setter public Builder location(GetPortLocation location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetPortResult", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder operation(GetPortOperation operation) { - this.operation = Objects.requireNonNull(operation); + if (operation == null) { + throw new MissingRequiredPropertyException("GetPortResult", "operation"); + } + this.operation = operation; return this; } @CustomType.Setter public Builder redundancy(GetPortRedundancy redundancy) { - this.redundancy = Objects.requireNonNull(redundancy); + if (redundancy == null) { + throw new MissingRequiredPropertyException("GetPortResult", "redundancy"); + } + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder serviceType(String serviceType) { - this.serviceType = Objects.requireNonNull(serviceType); + if (serviceType == null) { + throw new MissingRequiredPropertyException("GetPortResult", "serviceType"); + } + this.serviceType = serviceType; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetPortResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPortResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder usedBandwidth(Integer usedBandwidth) { - this.usedBandwidth = Objects.requireNonNull(usedBandwidth); + if (usedBandwidth == null) { + throw new MissingRequiredPropertyException("GetPortResult", "usedBandwidth"); + } + this.usedBandwidth = usedBandwidth; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetPortResult", "uuid"); + } + this.uuid = uuid; return this; } public GetPortResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatum.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatum.java index 8cf068b1..9130e8eb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatum.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatum.java @@ -11,6 +11,7 @@ import com.equinix.pulumi.fabric.outputs.GetPortsDatumOperation; import com.equinix.pulumi.fabric.outputs.GetPortsDatumRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -290,7 +291,10 @@ public Builder(GetPortsDatum defaults) { @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetPortsDatumAccount... accounts) { @@ -298,17 +302,26 @@ public Builder accounts(GetPortsDatumAccount... accounts) { } @CustomType.Setter public Builder availableBandwidth(Integer availableBandwidth) { - this.availableBandwidth = Objects.requireNonNull(availableBandwidth); + if (availableBandwidth == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "availableBandwidth"); + } + this.availableBandwidth = availableBandwidth; return this; } @CustomType.Setter public Builder bandwidth(Integer bandwidth) { - this.bandwidth = Objects.requireNonNull(bandwidth); + if (bandwidth == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "bandwidth"); + } + this.bandwidth = bandwidth; return this; } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetPortsDatumChangeLog... changeLogs) { @@ -316,12 +329,18 @@ public Builder changeLogs(GetPortsDatumChangeLog... changeLogs) { } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder devices(List devices) { - this.devices = Objects.requireNonNull(devices); + if (devices == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "devices"); + } + this.devices = devices; return this; } public Builder devices(GetPortsDatumDevice... devices) { @@ -329,7 +348,10 @@ public Builder devices(GetPortsDatumDevice... devices) { } @CustomType.Setter public Builder encapsulations(List encapsulations) { - this.encapsulations = Objects.requireNonNull(encapsulations); + if (encapsulations == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "encapsulations"); + } + this.encapsulations = encapsulations; return this; } public Builder encapsulations(GetPortsDatumEncapsulation... encapsulations) { @@ -337,17 +359,26 @@ public Builder encapsulations(GetPortsDatumEncapsulation... encapsulations) { } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder lagEnabled(Boolean lagEnabled) { - this.lagEnabled = Objects.requireNonNull(lagEnabled); + if (lagEnabled == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "lagEnabled"); + } + this.lagEnabled = lagEnabled; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "locations"); + } + this.locations = locations; return this; } public Builder locations(GetPortsDatumLocation... locations) { @@ -355,12 +386,18 @@ public Builder locations(GetPortsDatumLocation... locations) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder operations(List operations) { - this.operations = Objects.requireNonNull(operations); + if (operations == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "operations"); + } + this.operations = operations; return this; } public Builder operations(GetPortsDatumOperation... operations) { @@ -368,7 +405,10 @@ public Builder operations(GetPortsDatumOperation... operations) { } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetPortsDatumRedundancy... redundancies) { @@ -376,27 +416,42 @@ public Builder redundancies(GetPortsDatumRedundancy... redundancies) { } @CustomType.Setter public Builder serviceType(String serviceType) { - this.serviceType = Objects.requireNonNull(serviceType); + if (serviceType == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "serviceType"); + } + this.serviceType = serviceType; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder usedBandwidth(Integer usedBandwidth) { - this.usedBandwidth = Objects.requireNonNull(usedBandwidth); + if (usedBandwidth == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "usedBandwidth"); + } + this.usedBandwidth = usedBandwidth; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetPortsDatum", "uuid"); + } + this.uuid = uuid; return this; } public GetPortsDatum build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumAccount.java index 5d68754b..c830d660 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetPortsDatumAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetPortsDatumAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetPortsDatumAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumChangeLog.java index 46b77161..6326a724 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetPortsDatumChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetPortsDatumChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetPortsDatumChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDevice.java index 29868ff1..01b70ebd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDevice.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetPortsDatumDeviceRedundancy; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -58,12 +59,18 @@ public Builder(GetPortsDatumDevice defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortsDatumDevice", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder redundancies(List redundancies) { - this.redundancies = Objects.requireNonNull(redundancies); + if (redundancies == null) { + throw new MissingRequiredPropertyException("GetPortsDatumDevice", "redundancies"); + } + this.redundancies = redundancies; return this; } public Builder redundancies(GetPortsDatumDeviceRedundancy... redundancies) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDeviceRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDeviceRedundancy.java index 3e052715..2e8c09d6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDeviceRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumDeviceRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetPortsDatumDeviceRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetPortsDatumDeviceRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetPortsDatumDeviceRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetPortsDatumDeviceRedundancy", "priority"); + } + this.priority = priority; return this; } public GetPortsDatumDeviceRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumEncapsulation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumEncapsulation.java index 80b070db..c1a301a0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumEncapsulation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumEncapsulation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetPortsDatumEncapsulation defaults) { @CustomType.Setter public Builder tagProtocolId(String tagProtocolId) { - this.tagProtocolId = Objects.requireNonNull(tagProtocolId); + if (tagProtocolId == null) { + throw new MissingRequiredPropertyException("GetPortsDatumEncapsulation", "tagProtocolId"); + } + this.tagProtocolId = tagProtocolId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPortsDatumEncapsulation", "type"); + } + this.type = type; return this; } public GetPortsDatumEncapsulation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumLocation.java index 29832e40..b59b04ef 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetPortsDatumLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetPortsDatumLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetPortsDatumLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetPortsDatumLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetPortsDatumLocation", "region"); + } + this.region = region; return this; } public GetPortsDatumLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumOperation.java index 081fc068..fcdcc1df 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumOperation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -71,17 +72,26 @@ public Builder(GetPortsDatumOperation defaults) { @CustomType.Setter public Builder connectionCount(Integer connectionCount) { - this.connectionCount = Objects.requireNonNull(connectionCount); + if (connectionCount == null) { + throw new MissingRequiredPropertyException("GetPortsDatumOperation", "connectionCount"); + } + this.connectionCount = connectionCount; return this; } @CustomType.Setter public Builder opStatusChangedAt(String opStatusChangedAt) { - this.opStatusChangedAt = Objects.requireNonNull(opStatusChangedAt); + if (opStatusChangedAt == null) { + throw new MissingRequiredPropertyException("GetPortsDatumOperation", "opStatusChangedAt"); + } + this.opStatusChangedAt = opStatusChangedAt; return this; } @CustomType.Setter public Builder operationalStatus(String operationalStatus) { - this.operationalStatus = Objects.requireNonNull(operationalStatus); + if (operationalStatus == null) { + throw new MissingRequiredPropertyException("GetPortsDatumOperation", "operationalStatus"); + } + this.operationalStatus = operationalStatus; return this; } public GetPortsDatumOperation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumRedundancy.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumRedundancy.java index 67fb4c0e..4d65beac 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumRedundancy.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsDatumRedundancy.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.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(GetPortsDatumRedundancy defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetPortsDatumRedundancy", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder group(String group) { - this.group = Objects.requireNonNull(group); + if (group == null) { + throw new MissingRequiredPropertyException("GetPortsDatumRedundancy", "group"); + } + this.group = group; return this; } @CustomType.Setter public Builder priority(String priority) { - this.priority = Objects.requireNonNull(priority); + if (priority == null) { + throw new MissingRequiredPropertyException("GetPortsDatumRedundancy", "priority"); + } + this.priority = priority; return this; } public GetPortsDatumRedundancy build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsFilter.java index 03276653..cd328b9e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetPortsFilter defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortsFilter", "name"); + } + this.name = name; return this; } public GetPortsFilter build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsResult.java index a1548138..74390339 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetPortsResult.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.fabric.outputs.GetPortsDatum; import com.equinix.pulumi.fabric.outputs.GetPortsFilter; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetPortsResult defaults) { @CustomType.Setter public Builder data(List data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetPortsResult", "data"); + } + this.data = data; return this; } public Builder data(GetPortsDatum... data) { @@ -81,12 +85,18 @@ public Builder data(GetPortsDatum... data) { } @CustomType.Setter public Builder filter(GetPortsFilter filter) { - this.filter = Objects.requireNonNull(filter); + if (filter == null) { + throw new MissingRequiredPropertyException("GetPortsResult", "filter"); + } + this.filter = filter; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPortsResult", "id"); + } + this.id = id; return this; } public GetPortsResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBfd.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBfd.java index cadcd5da..60602f82 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBfd.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBfd.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -59,11 +60,15 @@ public Builder(GetRoutingProtocolBfd defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolBfd", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder interval(@Nullable String interval) { + this.interval = interval; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv4.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv4.java index 31b200bf..9c50804a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv4.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv4.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,17 +74,24 @@ public Builder(GetRoutingProtocolBgpIpv4 defaults) { @CustomType.Setter public Builder customerPeerIp(String customerPeerIp) { - this.customerPeerIp = Objects.requireNonNull(customerPeerIp); + if (customerPeerIp == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolBgpIpv4", "customerPeerIp"); + } + this.customerPeerIp = customerPeerIp; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder equinixPeerIp(String equinixPeerIp) { - this.equinixPeerIp = Objects.requireNonNull(equinixPeerIp); + if (equinixPeerIp == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolBgpIpv4", "equinixPeerIp"); + } + this.equinixPeerIp = equinixPeerIp; return this; } public GetRoutingProtocolBgpIpv4 build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv6.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv6.java index 9d083856..c52e970d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv6.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolBgpIpv6.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,17 +74,24 @@ public Builder(GetRoutingProtocolBgpIpv6 defaults) { @CustomType.Setter public Builder customerPeerIp(String customerPeerIp) { - this.customerPeerIp = Objects.requireNonNull(customerPeerIp); + if (customerPeerIp == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolBgpIpv6", "customerPeerIp"); + } + this.customerPeerIp = customerPeerIp; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder equinixPeerIp(String equinixPeerIp) { - this.equinixPeerIp = Objects.requireNonNull(equinixPeerIp); + if (equinixPeerIp == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolBgpIpv6", "equinixPeerIp"); + } + this.equinixPeerIp = equinixPeerIp; return this; } public GetRoutingProtocolBgpIpv6 build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChange.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChange.java index 49e61a3e..ab480aa9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChange.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChange.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(GetRoutingProtocolChange defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChange", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChange", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChange", "uuid"); + } + this.uuid = uuid; return this; } public GetRoutingProtocolChange build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChangeLog.java index 34ef919e..ab5f4a5a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetRoutingProtocolChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetRoutingProtocolChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv4.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv4.java index ea75869f..2d7626bb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv4.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv4.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetRoutingProtocolDirectIpv4 defaults) { @CustomType.Setter public Builder equinixIfaceIp(String equinixIfaceIp) { - this.equinixIfaceIp = Objects.requireNonNull(equinixIfaceIp); + if (equinixIfaceIp == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolDirectIpv4", "equinixIfaceIp"); + } + this.equinixIfaceIp = equinixIfaceIp; return this; } public GetRoutingProtocolDirectIpv4 build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv6.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv6.java index 5908d203..45a153be 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv6.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolDirectIpv6.java @@ -44,6 +44,7 @@ public Builder(GetRoutingProtocolDirectIpv6 defaults) { @CustomType.Setter public Builder equinixIfaceIp(@Nullable String equinixIfaceIp) { + this.equinixIfaceIp = equinixIfaceIp; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperation.java index f9fb7e5d..477e1b4e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperation.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetRoutingProtocolOperationError; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.util.List; import java.util.Objects; @@ -43,7 +44,10 @@ public Builder(GetRoutingProtocolOperation defaults) { @CustomType.Setter public Builder errors(List errors) { - this.errors = Objects.requireNonNull(errors); + if (errors == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperation", "errors"); + } + this.errors = errors; return this; } public Builder errors(GetRoutingProtocolOperationError... errors) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationError.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationError.java index 090ac74e..2dd50cd5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationError.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationError.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetRoutingProtocolOperationErrorAdditionalInfo; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -114,7 +115,10 @@ public Builder(GetRoutingProtocolOperationError defaults) { @CustomType.Setter public Builder additionalInfos(List additionalInfos) { - this.additionalInfos = Objects.requireNonNull(additionalInfos); + if (additionalInfos == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "additionalInfos"); + } + this.additionalInfos = additionalInfos; return this; } public Builder additionalInfos(GetRoutingProtocolOperationErrorAdditionalInfo... additionalInfos) { @@ -122,27 +126,42 @@ public Builder additionalInfos(GetRoutingProtocolOperationErrorAdditionalInfo... } @CustomType.Setter public Builder correlationId(String correlationId) { - this.correlationId = Objects.requireNonNull(correlationId); + if (correlationId == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "correlationId"); + } + this.correlationId = correlationId; return this; } @CustomType.Setter public Builder details(String details) { - this.details = Objects.requireNonNull(details); + if (details == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "details"); + } + this.details = details; return this; } @CustomType.Setter public Builder errorCode(String errorCode) { - this.errorCode = Objects.requireNonNull(errorCode); + if (errorCode == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "errorCode"); + } + this.errorCode = errorCode; return this; } @CustomType.Setter public Builder errorMessage(String errorMessage) { - this.errorMessage = Objects.requireNonNull(errorMessage); + if (errorMessage == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "errorMessage"); + } + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder help(String help) { - this.help = Objects.requireNonNull(help); + if (help == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationError", "help"); + } + this.help = help; return this; } public GetRoutingProtocolOperationError build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationErrorAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationErrorAdditionalInfo.java index 04acb56e..6389f7aa 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationErrorAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolOperationErrorAdditionalInfo.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetRoutingProtocolOperationErrorAdditionalInfo defaults) { @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationErrorAdditionalInfo", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder reason(String reason) { - this.reason = Objects.requireNonNull(reason); + if (reason == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolOperationErrorAdditionalInfo", "reason"); + } + this.reason = reason; return this; } public GetRoutingProtocolOperationErrorAdditionalInfo build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolResult.java index 146166a2..f793e618 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetRoutingProtocolResult.java @@ -12,6 +12,7 @@ import com.equinix.pulumi.fabric.outputs.GetRoutingProtocolDirectIpv6; import com.equinix.pulumi.fabric.outputs.GetRoutingProtocolOperation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -304,27 +305,42 @@ public Builder(GetRoutingProtocolResult defaults) { @CustomType.Setter public Builder bfd(GetRoutingProtocolBfd bfd) { - this.bfd = Objects.requireNonNull(bfd); + if (bfd == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "bfd"); + } + this.bfd = bfd; return this; } @CustomType.Setter public Builder bgpAuthKey(String bgpAuthKey) { - this.bgpAuthKey = Objects.requireNonNull(bgpAuthKey); + if (bgpAuthKey == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "bgpAuthKey"); + } + this.bgpAuthKey = bgpAuthKey; return this; } @CustomType.Setter public Builder bgpIpv4(GetRoutingProtocolBgpIpv4 bgpIpv4) { - this.bgpIpv4 = Objects.requireNonNull(bgpIpv4); + if (bgpIpv4 == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "bgpIpv4"); + } + this.bgpIpv4 = bgpIpv4; return this; } @CustomType.Setter public Builder bgpIpv6(GetRoutingProtocolBgpIpv6 bgpIpv6) { - this.bgpIpv6 = Objects.requireNonNull(bgpIpv6); + if (bgpIpv6 == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "bgpIpv6"); + } + this.bgpIpv6 = bgpIpv6; return this; } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetRoutingProtocolChangeLog... changeLogs) { @@ -332,7 +348,10 @@ public Builder changeLogs(GetRoutingProtocolChangeLog... changeLogs) { } @CustomType.Setter public Builder changes(List changes) { - this.changes = Objects.requireNonNull(changes); + if (changes == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "changes"); + } + this.changes = changes; return this; } public Builder changes(GetRoutingProtocolChange... changes) { @@ -340,52 +359,82 @@ public Builder changes(GetRoutingProtocolChange... changes) { } @CustomType.Setter public Builder connectionUuid(String connectionUuid) { - this.connectionUuid = Objects.requireNonNull(connectionUuid); + if (connectionUuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "connectionUuid"); + } + this.connectionUuid = connectionUuid; return this; } @CustomType.Setter public Builder customerAsn(Integer customerAsn) { - this.customerAsn = Objects.requireNonNull(customerAsn); + if (customerAsn == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "customerAsn"); + } + this.customerAsn = customerAsn; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder directIpv4(GetRoutingProtocolDirectIpv4 directIpv4) { - this.directIpv4 = Objects.requireNonNull(directIpv4); + if (directIpv4 == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "directIpv4"); + } + this.directIpv4 = directIpv4; return this; } @CustomType.Setter public Builder directIpv6(GetRoutingProtocolDirectIpv6 directIpv6) { - this.directIpv6 = Objects.requireNonNull(directIpv6); + if (directIpv6 == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "directIpv6"); + } + this.directIpv6 = directIpv6; return this; } @CustomType.Setter public Builder equinixAsn(Integer equinixAsn) { - this.equinixAsn = Objects.requireNonNull(equinixAsn); + if (equinixAsn == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "equinixAsn"); + } + this.equinixAsn = equinixAsn; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder operations(List operations) { - this.operations = Objects.requireNonNull(operations); + if (operations == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "operations"); + } + this.operations = operations; return this; } public Builder operations(GetRoutingProtocolOperation... operations) { @@ -393,17 +442,26 @@ public Builder operations(GetRoutingProtocolOperation... operations) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetRoutingProtocolResult", "uuid"); + } + this.uuid = uuid; return this; } public GetRoutingProtocolResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfig.java index a8e43909..ce8e0c74 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfig.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfileAccessPointTypeConfigAuthenticationKey; import com.equinix.pulumi.fabric.outputs.GetServiceProfileAccessPointTypeConfigLinkProtocolConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -233,61 +234,73 @@ public Builder(GetServiceProfileAccessPointTypeConfig defaults) { @CustomType.Setter public Builder allowBandwidthAutoApproval(@Nullable Boolean allowBandwidthAutoApproval) { + this.allowBandwidthAutoApproval = allowBandwidthAutoApproval; return this; } @CustomType.Setter public Builder allowBandwidthUpgrade(@Nullable Boolean allowBandwidthUpgrade) { + this.allowBandwidthUpgrade = allowBandwidthUpgrade; return this; } @CustomType.Setter public Builder allowCustomBandwidth(@Nullable Boolean allowCustomBandwidth) { + this.allowCustomBandwidth = allowCustomBandwidth; return this; } @CustomType.Setter public Builder allowRemoteConnections(@Nullable Boolean allowRemoteConnections) { + this.allowRemoteConnections = allowRemoteConnections; return this; } @CustomType.Setter public Builder apiConfig(@Nullable GetServiceProfileAccessPointTypeConfigApiConfig apiConfig) { + this.apiConfig = apiConfig; return this; } @CustomType.Setter public Builder authenticationKey(@Nullable GetServiceProfileAccessPointTypeConfigAuthenticationKey authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder bandwidthAlertThreshold(@Nullable Double bandwidthAlertThreshold) { + this.bandwidthAlertThreshold = bandwidthAlertThreshold; return this; } @CustomType.Setter public Builder connectionLabel(@Nullable String connectionLabel) { + this.connectionLabel = connectionLabel; return this; } @CustomType.Setter public Builder connectionRedundancyRequired(@Nullable Boolean connectionRedundancyRequired) { + this.connectionRedundancyRequired = connectionRedundancyRequired; return this; } @CustomType.Setter public Builder enableAutoGenerateServiceKey(@Nullable Boolean enableAutoGenerateServiceKey) { + this.enableAutoGenerateServiceKey = enableAutoGenerateServiceKey; return this; } @CustomType.Setter public Builder linkProtocolConfig(@Nullable GetServiceProfileAccessPointTypeConfigLinkProtocolConfig linkProtocolConfig) { + this.linkProtocolConfig = linkProtocolConfig; return this; } @CustomType.Setter public Builder supportedBandwidths(@Nullable List supportedBandwidths) { + this.supportedBandwidths = supportedBandwidths; return this; } @@ -296,12 +309,18 @@ public Builder supportedBandwidths(Integer... supportedBandwidths) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfileAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigApiConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigApiConfig.java index bca2d429..804ff829 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigApiConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigApiConfig.java @@ -130,36 +130,43 @@ public Builder(GetServiceProfileAccessPointTypeConfigApiConfig defaults) { @CustomType.Setter public Builder allowOverSubscription(@Nullable Boolean allowOverSubscription) { + this.allowOverSubscription = allowOverSubscription; return this; } @CustomType.Setter public Builder apiAvailable(@Nullable Boolean apiAvailable) { + this.apiAvailable = apiAvailable; return this; } @CustomType.Setter public Builder bandwidthFromApi(@Nullable Boolean bandwidthFromApi) { + this.bandwidthFromApi = bandwidthFromApi; return this; } @CustomType.Setter public Builder equinixManagedPort(@Nullable Boolean equinixManagedPort) { + this.equinixManagedPort = equinixManagedPort; return this; } @CustomType.Setter public Builder equinixManagedVlan(@Nullable Boolean equinixManagedVlan) { + this.equinixManagedVlan = equinixManagedVlan; return this; } @CustomType.Setter public Builder integrationId(@Nullable String integrationId) { + this.integrationId = integrationId; return this; } @CustomType.Setter public Builder overSubscriptionLimit(@Nullable Integer overSubscriptionLimit) { + this.overSubscriptionLimit = overSubscriptionLimit; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigAuthenticationKey.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigAuthenticationKey.java index ec507189..df35035d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigAuthenticationKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigAuthenticationKey.java @@ -73,16 +73,19 @@ public Builder(GetServiceProfileAccessPointTypeConfigAuthenticationKey defaults) @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigLinkProtocolConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigLinkProtocolConfig.java index 1198e4ca..4b74f61e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigLinkProtocolConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccessPointTypeConfigLinkProtocolConfig.java @@ -73,16 +73,19 @@ public Builder(GetServiceProfileAccessPointTypeConfigLinkProtocolConfig defaults @CustomType.Setter public Builder encapsulation(@Nullable String encapsulation) { + this.encapsulation = encapsulation; return this; } @CustomType.Setter public Builder encapsulationStrategy(@Nullable String encapsulationStrategy) { + this.encapsulationStrategy = encapsulationStrategy; return this; } @CustomType.Setter public Builder reuseVlanSTag(@Nullable Boolean reuseVlanSTag) { + this.reuseVlanSTag = reuseVlanSTag; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccount.java index 3f733c17..8648cf78 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetServiceProfileAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetServiceProfileAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetServiceProfileAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileChangeLog.java index c2dd24c5..5a7e19fd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetServiceProfileChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfileChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetServiceProfileChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileCustomField.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileCustomField.java index ddf059d4..9d235704 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileCustomField.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileCustomField.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -116,26 +117,35 @@ public Builder(GetServiceProfileCustomField defaults) { @CustomType.Setter public Builder captureInEmail(@Nullable Boolean captureInEmail) { + this.captureInEmail = captureInEmail; return this; } @CustomType.Setter public Builder dataType(String dataType) { - this.dataType = Objects.requireNonNull(dataType); + if (dataType == null) { + throw new MissingRequiredPropertyException("GetServiceProfileCustomField", "dataType"); + } + this.dataType = dataType; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(String label) { - this.label = Objects.requireNonNull(label); + if (label == null) { + throw new MissingRequiredPropertyException("GetServiceProfileCustomField", "label"); + } + this.label = label; return this; } @CustomType.Setter public Builder options(@Nullable List options) { + this.options = options; return this; } @@ -144,7 +154,10 @@ public Builder options(String... options) { } @CustomType.Setter public Builder required(Boolean required) { - this.required = Objects.requireNonNull(required); + if (required == null) { + throw new MissingRequiredPropertyException("GetServiceProfileCustomField", "required"); + } + this.required = required; return this; } public GetServiceProfileCustomField build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfo.java index 851f5a73..d36eef06 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfo.java @@ -75,11 +75,13 @@ public Builder(GetServiceProfileMarketingInfo defaults) { @CustomType.Setter public Builder logo(@Nullable String logo) { + this.logo = logo; return this; } @CustomType.Setter public Builder processSteps(@Nullable List processSteps) { + this.processSteps = processSteps; return this; } @@ -88,6 +90,7 @@ public Builder processSteps(GetServiceProfileMarketingInfoProcessStep... process } @CustomType.Setter public Builder promotion(@Nullable Boolean promotion) { + this.promotion = promotion; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfoProcessStep.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfoProcessStep.java index e0b8d6e4..95e41a6c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfoProcessStep.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMarketingInfoProcessStep.java @@ -72,16 +72,19 @@ public Builder(GetServiceProfileMarketingInfoProcessStep defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder subTitle(@Nullable String subTitle) { + this.subTitle = subTitle; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMetro.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMetro.java index 618c06f4..9aebe698 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMetro.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileMetro.java @@ -117,16 +117,19 @@ public Builder(GetServiceProfileMetro defaults) { @CustomType.Setter public Builder code(@Nullable String code) { + this.code = code; return this; } @CustomType.Setter public Builder displayName(@Nullable String displayName) { + this.displayName = displayName; return this; } @CustomType.Setter public Builder ibxs(@Nullable List ibxs) { + this.ibxs = ibxs; return this; } @@ -135,16 +138,19 @@ public Builder ibxs(String... ibxs) { } @CustomType.Setter public Builder inTrail(@Nullable Boolean inTrail) { + this.inTrail = inTrail; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder sellerRegions(@Nullable Map sellerRegions) { + this.sellerRegions = sellerRegions; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileNotification.java index 75e7482d..512300c0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetServiceProfileNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetServiceProfileNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfileNotification", "type"); + } + this.type = type; return this; } public GetServiceProfileNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePort.java index d8cc4e4c..488af440 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilePortLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -115,32 +116,42 @@ public Builder(GetServiceProfilePort defaults) { @CustomType.Setter public Builder crossConnectId(@Nullable String crossConnectId) { + this.crossConnectId = crossConnectId; return this; } @CustomType.Setter public Builder location(@Nullable GetServiceProfilePortLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder sellerRegionDescription(@Nullable String sellerRegionDescription) { + this.sellerRegionDescription = sellerRegionDescription; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePort", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePort", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfilePort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePortLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePortLocation.java index 1b328060..4b601bb2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePortLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilePortLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetServiceProfilePortLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePortLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePortLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePortLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetServiceProfilePortLocation", "region"); + } + this.region = region; return this; } public GetServiceProfilePortLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileProject.java index abae2252..5bc3d4f6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetServiceProfileProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServiceProfileProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetServiceProfileProject", "projectId"); + } + this.projectId = projectId; return this; } public GetServiceProfileProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileResult.java index 5bf6ca15..35ba9b38 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileResult.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfileProject; import com.equinix.pulumi.fabric.outputs.GetServiceProfileVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -340,7 +341,10 @@ public Builder(GetServiceProfileResult defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetServiceProfileAccessPointTypeConfig... accessPointTypeConfigs) { @@ -348,12 +352,18 @@ public Builder accessPointTypeConfigs(GetServiceProfileAccessPointTypeConfig... } @CustomType.Setter public Builder account(GetServiceProfileAccount account) { - this.account = Objects.requireNonNull(account); + if (account == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "account"); + } + this.account = account; return this; } @CustomType.Setter public Builder allowedEmails(List allowedEmails) { - this.allowedEmails = Objects.requireNonNull(allowedEmails); + if (allowedEmails == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "allowedEmails"); + } + this.allowedEmails = allowedEmails; return this; } public Builder allowedEmails(String... allowedEmails) { @@ -361,12 +371,18 @@ public Builder allowedEmails(String... allowedEmails) { } @CustomType.Setter public Builder changeLog(GetServiceProfileChangeLog changeLog) { - this.changeLog = Objects.requireNonNull(changeLog); + if (changeLog == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "changeLog"); + } + this.changeLog = changeLog; return this; } @CustomType.Setter public Builder customFields(List customFields) { - this.customFields = Objects.requireNonNull(customFields); + if (customFields == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "customFields"); + } + this.customFields = customFields; return this; } public Builder customFields(GetServiceProfileCustomField... customFields) { @@ -374,27 +390,42 @@ public Builder customFields(GetServiceProfileCustomField... customFields) { } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder marketingInfo(GetServiceProfileMarketingInfo marketingInfo) { - this.marketingInfo = Objects.requireNonNull(marketingInfo); + if (marketingInfo == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "marketingInfo"); + } + this.marketingInfo = marketingInfo; return this; } @CustomType.Setter public Builder metros(List metros) { - this.metros = Objects.requireNonNull(metros); + if (metros == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "metros"); + } + this.metros = metros; return this; } public Builder metros(GetServiceProfileMetro... metros) { @@ -402,12 +433,18 @@ public Builder metros(GetServiceProfileMetro... metros) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetServiceProfileNotification... notifications) { @@ -415,7 +452,10 @@ public Builder notifications(GetServiceProfileNotification... notifications) { } @CustomType.Setter public Builder ports(List ports) { - this.ports = Objects.requireNonNull(ports); + if (ports == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "ports"); + } + this.ports = ports; return this; } public Builder ports(GetServiceProfilePort... ports) { @@ -423,22 +463,34 @@ public Builder ports(GetServiceProfilePort... ports) { } @CustomType.Setter public Builder project(GetServiceProfileProject project) { - this.project = Objects.requireNonNull(project); + if (project == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "project"); + } + this.project = project; return this; } @CustomType.Setter public Builder selfProfile(Boolean selfProfile) { - this.selfProfile = Objects.requireNonNull(selfProfile); + if (selfProfile == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "selfProfile"); + } + this.selfProfile = selfProfile; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -446,22 +498,34 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder viewPoint(String viewPoint) { - this.viewPoint = Objects.requireNonNull(viewPoint); + if (viewPoint == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "viewPoint"); + } + this.viewPoint = viewPoint; return this; } @CustomType.Setter public Builder virtualDevices(List virtualDevices) { - this.virtualDevices = Objects.requireNonNull(virtualDevices); + if (virtualDevices == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "virtualDevices"); + } + this.virtualDevices = virtualDevices; return this; } public Builder virtualDevices(GetServiceProfileVirtualDevice... virtualDevices) { @@ -469,7 +533,10 @@ public Builder virtualDevices(GetServiceProfileVirtualDevice... virtualDevices) } @CustomType.Setter public Builder visibility(String visibility) { - this.visibility = Objects.requireNonNull(visibility); + if (visibility == null) { + throw new MissingRequiredPropertyException("GetServiceProfileResult", "visibility"); + } + this.visibility = visibility; return this; } public GetServiceProfileResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDevice.java index 3a311e92..27b5de44 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDevice.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfileVirtualDeviceLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -87,22 +88,30 @@ public Builder(GetServiceProfileVirtualDevice defaults) { @CustomType.Setter public Builder interfaceUuid(@Nullable String interfaceUuid) { + this.interfaceUuid = interfaceUuid; return this; } @CustomType.Setter public Builder location(@Nullable GetServiceProfileVirtualDeviceLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDevice", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDevice", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfileVirtualDevice build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDeviceLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDeviceLocation.java index c6614390..b1a392c8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDeviceLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfileVirtualDeviceLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetServiceProfileVirtualDeviceLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDeviceLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDeviceLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDeviceLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetServiceProfileVirtualDeviceLocation", "region"); + } + this.region = region; return this; } public GetServiceProfileVirtualDeviceLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatum.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatum.java index 1210902b..2c84c7f1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatum.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatum.java @@ -14,6 +14,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumProject; import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumVirtualDevice; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -334,7 +335,10 @@ public Builder(GetServiceProfilesDatum defaults) { @CustomType.Setter public Builder accessPointTypeConfigs(List accessPointTypeConfigs) { - this.accessPointTypeConfigs = Objects.requireNonNull(accessPointTypeConfigs); + if (accessPointTypeConfigs == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "accessPointTypeConfigs"); + } + this.accessPointTypeConfigs = accessPointTypeConfigs; return this; } public Builder accessPointTypeConfigs(GetServiceProfilesDatumAccessPointTypeConfig... accessPointTypeConfigs) { @@ -342,7 +346,10 @@ public Builder accessPointTypeConfigs(GetServiceProfilesDatumAccessPointTypeConf } @CustomType.Setter public Builder accounts(List accounts) { - this.accounts = Objects.requireNonNull(accounts); + if (accounts == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "accounts"); + } + this.accounts = accounts; return this; } public Builder accounts(GetServiceProfilesDatumAccount... accounts) { @@ -350,7 +357,10 @@ public Builder accounts(GetServiceProfilesDatumAccount... accounts) { } @CustomType.Setter public Builder allowedEmails(List allowedEmails) { - this.allowedEmails = Objects.requireNonNull(allowedEmails); + if (allowedEmails == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "allowedEmails"); + } + this.allowedEmails = allowedEmails; return this; } public Builder allowedEmails(String... allowedEmails) { @@ -358,7 +368,10 @@ public Builder allowedEmails(String... allowedEmails) { } @CustomType.Setter public Builder changeLogs(List changeLogs) { - this.changeLogs = Objects.requireNonNull(changeLogs); + if (changeLogs == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "changeLogs"); + } + this.changeLogs = changeLogs; return this; } public Builder changeLogs(GetServiceProfilesDatumChangeLog... changeLogs) { @@ -366,7 +379,10 @@ public Builder changeLogs(GetServiceProfilesDatumChangeLog... changeLogs) { } @CustomType.Setter public Builder customFields(List customFields) { - this.customFields = Objects.requireNonNull(customFields); + if (customFields == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "customFields"); + } + this.customFields = customFields; return this; } public Builder customFields(GetServiceProfilesDatumCustomField... customFields) { @@ -374,17 +390,26 @@ public Builder customFields(GetServiceProfilesDatumCustomField... customFields) } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder marketingInfos(List marketingInfos) { - this.marketingInfos = Objects.requireNonNull(marketingInfos); + if (marketingInfos == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "marketingInfos"); + } + this.marketingInfos = marketingInfos; return this; } public Builder marketingInfos(GetServiceProfilesDatumMarketingInfo... marketingInfos) { @@ -392,7 +417,10 @@ public Builder marketingInfos(GetServiceProfilesDatumMarketingInfo... marketingI } @CustomType.Setter public Builder metros(List metros) { - this.metros = Objects.requireNonNull(metros); + if (metros == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "metros"); + } + this.metros = metros; return this; } public Builder metros(GetServiceProfilesDatumMetro... metros) { @@ -400,12 +428,18 @@ public Builder metros(GetServiceProfilesDatumMetro... metros) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(GetServiceProfilesDatumNotification... notifications) { @@ -413,7 +447,10 @@ public Builder notifications(GetServiceProfilesDatumNotification... notification } @CustomType.Setter public Builder ports(List ports) { - this.ports = Objects.requireNonNull(ports); + if (ports == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "ports"); + } + this.ports = ports; return this; } public Builder ports(GetServiceProfilesDatumPort... ports) { @@ -421,7 +458,10 @@ public Builder ports(GetServiceProfilesDatumPort... ports) { } @CustomType.Setter public Builder projects(List projects) { - this.projects = Objects.requireNonNull(projects); + if (projects == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "projects"); + } + this.projects = projects; return this; } public Builder projects(GetServiceProfilesDatumProject... projects) { @@ -429,17 +469,26 @@ public Builder projects(GetServiceProfilesDatumProject... projects) { } @CustomType.Setter public Builder selfProfile(Boolean selfProfile) { - this.selfProfile = Objects.requireNonNull(selfProfile); + if (selfProfile == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "selfProfile"); + } + this.selfProfile = selfProfile; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -447,22 +496,34 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder viewPoint(String viewPoint) { - this.viewPoint = Objects.requireNonNull(viewPoint); + if (viewPoint == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "viewPoint"); + } + this.viewPoint = viewPoint; return this; } @CustomType.Setter public Builder virtualDevices(List virtualDevices) { - this.virtualDevices = Objects.requireNonNull(virtualDevices); + if (virtualDevices == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "virtualDevices"); + } + this.virtualDevices = virtualDevices; return this; } public Builder virtualDevices(GetServiceProfilesDatumVirtualDevice... virtualDevices) { @@ -470,7 +531,10 @@ public Builder virtualDevices(GetServiceProfilesDatumVirtualDevice... virtualDev } @CustomType.Setter public Builder visibility(String visibility) { - this.visibility = Objects.requireNonNull(visibility); + if (visibility == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatum", "visibility"); + } + this.visibility = visibility; return this; } public GetServiceProfilesDatum build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfig.java index 33c84117..3fcb0355 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfig.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey; import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -233,61 +234,73 @@ public Builder(GetServiceProfilesDatumAccessPointTypeConfig defaults) { @CustomType.Setter public Builder allowBandwidthAutoApproval(@Nullable Boolean allowBandwidthAutoApproval) { + this.allowBandwidthAutoApproval = allowBandwidthAutoApproval; return this; } @CustomType.Setter public Builder allowBandwidthUpgrade(@Nullable Boolean allowBandwidthUpgrade) { + this.allowBandwidthUpgrade = allowBandwidthUpgrade; return this; } @CustomType.Setter public Builder allowCustomBandwidth(@Nullable Boolean allowCustomBandwidth) { + this.allowCustomBandwidth = allowCustomBandwidth; return this; } @CustomType.Setter public Builder allowRemoteConnections(@Nullable Boolean allowRemoteConnections) { + this.allowRemoteConnections = allowRemoteConnections; return this; } @CustomType.Setter public Builder apiConfig(@Nullable GetServiceProfilesDatumAccessPointTypeConfigApiConfig apiConfig) { + this.apiConfig = apiConfig; return this; } @CustomType.Setter public Builder authenticationKey(@Nullable GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder bandwidthAlertThreshold(@Nullable Double bandwidthAlertThreshold) { + this.bandwidthAlertThreshold = bandwidthAlertThreshold; return this; } @CustomType.Setter public Builder connectionLabel(@Nullable String connectionLabel) { + this.connectionLabel = connectionLabel; return this; } @CustomType.Setter public Builder connectionRedundancyRequired(@Nullable Boolean connectionRedundancyRequired) { + this.connectionRedundancyRequired = connectionRedundancyRequired; return this; } @CustomType.Setter public Builder enableAutoGenerateServiceKey(@Nullable Boolean enableAutoGenerateServiceKey) { + this.enableAutoGenerateServiceKey = enableAutoGenerateServiceKey; return this; } @CustomType.Setter public Builder linkProtocolConfig(@Nullable GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig linkProtocolConfig) { + this.linkProtocolConfig = linkProtocolConfig; return this; } @CustomType.Setter public Builder supportedBandwidths(@Nullable List supportedBandwidths) { + this.supportedBandwidths = supportedBandwidths; return this; } @@ -296,12 +309,18 @@ public Builder supportedBandwidths(Integer... supportedBandwidths) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccessPointTypeConfig", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfilesDatumAccessPointTypeConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigApiConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigApiConfig.java index 0af3607c..3e85a3e7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigApiConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigApiConfig.java @@ -130,36 +130,43 @@ public Builder(GetServiceProfilesDatumAccessPointTypeConfigApiConfig defaults) { @CustomType.Setter public Builder allowOverSubscription(@Nullable Boolean allowOverSubscription) { + this.allowOverSubscription = allowOverSubscription; return this; } @CustomType.Setter public Builder apiAvailable(@Nullable Boolean apiAvailable) { + this.apiAvailable = apiAvailable; return this; } @CustomType.Setter public Builder bandwidthFromApi(@Nullable Boolean bandwidthFromApi) { + this.bandwidthFromApi = bandwidthFromApi; return this; } @CustomType.Setter public Builder equinixManagedPort(@Nullable Boolean equinixManagedPort) { + this.equinixManagedPort = equinixManagedPort; return this; } @CustomType.Setter public Builder equinixManagedVlan(@Nullable Boolean equinixManagedVlan) { + this.equinixManagedVlan = equinixManagedVlan; return this; } @CustomType.Setter public Builder integrationId(@Nullable String integrationId) { + this.integrationId = integrationId; return this; } @CustomType.Setter public Builder overSubscriptionLimit(@Nullable Integer overSubscriptionLimit) { + this.overSubscriptionLimit = overSubscriptionLimit; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey.java index 20bf5d6d..80425a7f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey.java @@ -73,16 +73,19 @@ public Builder(GetServiceProfilesDatumAccessPointTypeConfigAuthenticationKey def @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig.java index eb8db50d..07b60c80 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig.java @@ -73,16 +73,19 @@ public Builder(GetServiceProfilesDatumAccessPointTypeConfigLinkProtocolConfig de @CustomType.Setter public Builder encapsulation(@Nullable String encapsulation) { + this.encapsulation = encapsulation; return this; } @CustomType.Setter public Builder encapsulationStrategy(@Nullable String encapsulationStrategy) { + this.encapsulationStrategy = encapsulationStrategy; return this; } @CustomType.Setter public Builder reuseVlanSTag(@Nullable Boolean reuseVlanSTag) { + this.reuseVlanSTag = reuseVlanSTag; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccount.java index 3903e712..3824d0d1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumAccount.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -141,42 +142,66 @@ public Builder(GetServiceProfilesDatumAccount defaults) { @CustomType.Setter public Builder accountName(String accountName) { - this.accountName = Objects.requireNonNull(accountName); + if (accountName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "accountName"); + } + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(Integer accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(String globalCustId) { - this.globalCustId = Objects.requireNonNull(globalCustId); + if (globalCustId == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "globalCustId"); + } + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(String globalOrgId) { - this.globalOrgId = Objects.requireNonNull(globalOrgId); + if (globalOrgId == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "globalOrgId"); + } + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(String globalOrganizationName) { - this.globalOrganizationName = Objects.requireNonNull(globalOrganizationName); + if (globalOrganizationName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "globalOrganizationName"); + } + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(Integer orgId) { - this.orgId = Objects.requireNonNull(orgId); + if (orgId == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "orgId"); + } + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(String organizationName) { - this.organizationName = Objects.requireNonNull(organizationName); + if (organizationName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "organizationName"); + } + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumAccount", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetServiceProfilesDatumAccount build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumChangeLog.java index 7a3e0965..0a46a0d3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumChangeLog.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -196,62 +197,98 @@ public Builder(GetServiceProfilesDatumChangeLog defaults) { @CustomType.Setter public Builder createdBy(String createdBy) { - this.createdBy = Objects.requireNonNull(createdBy); + if (createdBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "createdBy"); + } + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(String createdByEmail) { - this.createdByEmail = Objects.requireNonNull(createdByEmail); + if (createdByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "createdByEmail"); + } + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(String createdByFullName) { - this.createdByFullName = Objects.requireNonNull(createdByFullName); + if (createdByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "createdByFullName"); + } + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(String createdDateTime) { - this.createdDateTime = Objects.requireNonNull(createdDateTime); + if (createdDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "createdDateTime"); + } + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(String deletedBy) { - this.deletedBy = Objects.requireNonNull(deletedBy); + if (deletedBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "deletedBy"); + } + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(String deletedByEmail) { - this.deletedByEmail = Objects.requireNonNull(deletedByEmail); + if (deletedByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "deletedByEmail"); + } + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(String deletedByFullName) { - this.deletedByFullName = Objects.requireNonNull(deletedByFullName); + if (deletedByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "deletedByFullName"); + } + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(String deletedDateTime) { - this.deletedDateTime = Objects.requireNonNull(deletedDateTime); + if (deletedDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "deletedDateTime"); + } + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(String updatedBy) { - this.updatedBy = Objects.requireNonNull(updatedBy); + if (updatedBy == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "updatedBy"); + } + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(String updatedByEmail) { - this.updatedByEmail = Objects.requireNonNull(updatedByEmail); + if (updatedByEmail == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "updatedByEmail"); + } + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(String updatedByFullName) { - this.updatedByFullName = Objects.requireNonNull(updatedByFullName); + if (updatedByFullName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "updatedByFullName"); + } + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(String updatedDateTime) { - this.updatedDateTime = Objects.requireNonNull(updatedDateTime); + if (updatedDateTime == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumChangeLog", "updatedDateTime"); + } + this.updatedDateTime = updatedDateTime; return this; } public GetServiceProfilesDatumChangeLog build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumCustomField.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumCustomField.java index 4562ab8a..38d02ea9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumCustomField.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumCustomField.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -116,26 +117,35 @@ public Builder(GetServiceProfilesDatumCustomField defaults) { @CustomType.Setter public Builder captureInEmail(@Nullable Boolean captureInEmail) { + this.captureInEmail = captureInEmail; return this; } @CustomType.Setter public Builder dataType(String dataType) { - this.dataType = Objects.requireNonNull(dataType); + if (dataType == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumCustomField", "dataType"); + } + this.dataType = dataType; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(String label) { - this.label = Objects.requireNonNull(label); + if (label == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumCustomField", "label"); + } + this.label = label; return this; } @CustomType.Setter public Builder options(@Nullable List options) { + this.options = options; return this; } @@ -144,7 +154,10 @@ public Builder options(String... options) { } @CustomType.Setter public Builder required(Boolean required) { - this.required = Objects.requireNonNull(required); + if (required == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumCustomField", "required"); + } + this.required = required; return this; } public GetServiceProfilesDatumCustomField build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfo.java index c657da7e..22728ad9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfo.java @@ -75,11 +75,13 @@ public Builder(GetServiceProfilesDatumMarketingInfo defaults) { @CustomType.Setter public Builder logo(@Nullable String logo) { + this.logo = logo; return this; } @CustomType.Setter public Builder processSteps(@Nullable List processSteps) { + this.processSteps = processSteps; return this; } @@ -88,6 +90,7 @@ public Builder processSteps(GetServiceProfilesDatumMarketingInfoProcessStep... p } @CustomType.Setter public Builder promotion(@Nullable Boolean promotion) { + this.promotion = promotion; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfoProcessStep.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfoProcessStep.java index 4a481d0a..bebea364 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfoProcessStep.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMarketingInfoProcessStep.java @@ -72,16 +72,19 @@ public Builder(GetServiceProfilesDatumMarketingInfoProcessStep defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder subTitle(@Nullable String subTitle) { + this.subTitle = subTitle; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMetro.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMetro.java index 7ed90ffd..ea12a5c1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMetro.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumMetro.java @@ -117,16 +117,19 @@ public Builder(GetServiceProfilesDatumMetro defaults) { @CustomType.Setter public Builder code(@Nullable String code) { + this.code = code; return this; } @CustomType.Setter public Builder displayName(@Nullable String displayName) { + this.displayName = displayName; return this; } @CustomType.Setter public Builder ibxs(@Nullable List ibxs) { + this.ibxs = ibxs; return this; } @@ -135,16 +138,19 @@ public Builder ibxs(String... ibxs) { } @CustomType.Setter public Builder inTrail(@Nullable Boolean inTrail) { + this.inTrail = inTrail; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder sellerRegions(@Nullable Map sellerRegions) { + this.sellerRegions = sellerRegions; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumNotification.java index 17ec319c..4c0482cd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(GetServiceProfilesDatumNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumNotification", "type"); + } + this.type = type; return this; } public GetServiceProfilesDatumNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPort.java index 7cf003ea..ce22acd6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumPortLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -115,32 +116,42 @@ public Builder(GetServiceProfilesDatumPort defaults) { @CustomType.Setter public Builder crossConnectId(@Nullable String crossConnectId) { + this.crossConnectId = crossConnectId; return this; } @CustomType.Setter public Builder location(@Nullable GetServiceProfilesDatumPortLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder sellerRegionDescription(@Nullable String sellerRegionDescription) { + this.sellerRegionDescription = sellerRegionDescription; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPort", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPort", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfilesDatumPort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPortLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPortLocation.java index 7682aae2..6642f223 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPortLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumPortLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetServiceProfilesDatumPortLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPortLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPortLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPortLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumPortLocation", "region"); + } + this.region = region; return this; } public GetServiceProfilesDatumPortLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumProject.java index 39760891..31fd458a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetServiceProfilesDatumProject defaults) { @CustomType.Setter public Builder href(String href) { - this.href = Objects.requireNonNull(href); + if (href == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumProject", "href"); + } + this.href = href; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumProject", "projectId"); + } + this.projectId = projectId; return this; } public GetServiceProfilesDatumProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDevice.java index 7051320e..a0aeedea 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDevice.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilesDatumVirtualDeviceLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -87,22 +88,30 @@ public Builder(GetServiceProfilesDatumVirtualDevice defaults) { @CustomType.Setter public Builder interfaceUuid(@Nullable String interfaceUuid) { + this.interfaceUuid = interfaceUuid; return this; } @CustomType.Setter public Builder location(@Nullable GetServiceProfilesDatumVirtualDeviceLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDevice", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDevice", "uuid"); + } + this.uuid = uuid; return this; } public GetServiceProfilesDatumVirtualDevice build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDeviceLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDeviceLocation.java index b942b7e4..ba04e073 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDeviceLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesDatumVirtualDeviceLocation.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(GetServiceProfilesDatumVirtualDeviceLocation defaults) { @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDeviceLocation", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDeviceLocation", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(String metroName) { - this.metroName = Objects.requireNonNull(metroName); + if (metroName == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDeviceLocation", "metroName"); + } + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesDatumVirtualDeviceLocation", "region"); + } + this.region = region; return this; } public GetServiceProfilesDatumVirtualDeviceLocation build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesFilter.java index ff79fe0f..bc4634e4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -71,17 +72,26 @@ public Builder(GetServiceProfilesFilter defaults) { @CustomType.Setter public Builder operator(String operator) { - this.operator = Objects.requireNonNull(operator); + if (operator == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "operator"); + } + this.operator = operator; return this; } @CustomType.Setter public Builder property(String property) { - this.property = Objects.requireNonNull(property); + if (property == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "property"); + } + this.property = property; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesPagination.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesPagination.java index 37ff13da..0ffa27e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesPagination.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesPagination.java @@ -58,11 +58,13 @@ public Builder(GetServiceProfilesPagination defaults) { @CustomType.Setter public Builder limit(@Nullable Integer limit) { + this.limit = limit; return this; } @CustomType.Setter public Builder offset(@Nullable Integer offset) { + this.offset = offset; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesResult.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesResult.java index 06fea0a6..4e2dc6bc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesResult.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.fabric.outputs.GetServiceProfilesPagination; import com.equinix.pulumi.fabric.outputs.GetServiceProfilesSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -134,12 +135,16 @@ public Builder(GetServiceProfilesResult defaults) { @CustomType.Setter public Builder andFilters(@Nullable Boolean andFilters) { + this.andFilters = andFilters; return this; } @CustomType.Setter public Builder data(List data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesResult", "data"); + } + this.data = data; return this; } public Builder data(GetServiceProfilesDatum... data) { @@ -147,21 +152,29 @@ public Builder data(GetServiceProfilesDatum... data) { } @CustomType.Setter public Builder filter(GetServiceProfilesFilter filter) { - this.filter = Objects.requireNonNull(filter); + if (filter == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesResult", "filter"); + } + this.filter = filter; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetServiceProfilesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder pagination(@Nullable GetServiceProfilesPagination pagination) { + this.pagination = pagination; return this; } @CustomType.Setter public Builder sort(@Nullable List sort) { + this.sort = sort; return this; } @@ -170,6 +183,7 @@ public Builder sort(GetServiceProfilesSort... sort) { } @CustomType.Setter public Builder viewPoint(@Nullable String viewPoint) { + this.viewPoint = viewPoint; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesSort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesSort.java index 1be0d1c2..d8f4ae0f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/GetServiceProfilesSort.java @@ -58,11 +58,13 @@ public Builder(GetServiceProfilesSort defaults) { @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChange.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChange.java index 417eaf98..3e32b627 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChange.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChange.java @@ -74,16 +74,19 @@ public Builder(NetworkChange defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChangeLog.java index 588b486a..32ad6c94 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkChangeLog.java @@ -198,61 +198,73 @@ public Builder(NetworkChangeLog defaults) { @CustomType.Setter public Builder createdBy(@Nullable String createdBy) { + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(@Nullable String createdByEmail) { + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(@Nullable String createdByFullName) { + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(@Nullable String createdDateTime) { + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(@Nullable String deletedBy) { + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(@Nullable String deletedByEmail) { + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(@Nullable String deletedByFullName) { + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(@Nullable String deletedDateTime) { + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(@Nullable String updatedBy) { + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(@Nullable String updatedByEmail) { + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(@Nullable String updatedByFullName) { + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(@Nullable String updatedDateTime) { + this.updatedDateTime = updatedDateTime; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkLocation.java index 7ecd46b3..7c50c705 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkLocation.java @@ -86,21 +86,25 @@ public Builder(NetworkLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkNotification.java index 4a32e896..c2a2a88e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(NetworkNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("NetworkNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("NetworkNotification", "type"); + } + this.type = type; return this; } public NetworkNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkOperation.java index 2394e712..7e023cbc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkOperation.java @@ -44,6 +44,7 @@ public Builder(NetworkOperation defaults) { @CustomType.Setter public Builder equinixStatus(@Nullable String equinixStatus) { + this.equinixStatus = equinixStatus; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkProject.java index 866d58d1..339c57b1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/NetworkProject.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(NetworkProject defaults) { @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("NetworkProject", "projectId"); + } + this.projectId = projectId; return this; } public NetworkProject build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBfd.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBfd.java index 44691318..329b965d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBfd.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBfd.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -59,11 +60,15 @@ public Builder(RoutingProtocolBfd defaults) { @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBfd", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder interval(@Nullable String interval) { + this.interval = interval; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv4.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv4.java index 4fcfc7c7..c8b33dbe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv4.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv4.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(RoutingProtocolBgpIpv4 defaults) { @CustomType.Setter public Builder customerPeerIp(String customerPeerIp) { - this.customerPeerIp = Objects.requireNonNull(customerPeerIp); + if (customerPeerIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBgpIpv4", "customerPeerIp"); + } + this.customerPeerIp = customerPeerIp; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder equinixPeerIp(@Nullable String equinixPeerIp) { + this.equinixPeerIp = equinixPeerIp; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv6.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv6.java index b2db06a8..fe0b96d7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv6.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolBgpIpv6.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(RoutingProtocolBgpIpv6 defaults) { @CustomType.Setter public Builder customerPeerIp(String customerPeerIp) { - this.customerPeerIp = Objects.requireNonNull(customerPeerIp); + if (customerPeerIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolBgpIpv6", "customerPeerIp"); + } + this.customerPeerIp = customerPeerIp; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder equinixPeerIp(@Nullable String equinixPeerIp) { + this.equinixPeerIp = equinixPeerIp; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChange.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChange.java index fe3bbe92..20c55510 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChange.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChange.java @@ -72,16 +72,19 @@ public Builder(RoutingProtocolChange defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChangeLog.java index 90630801..456f83a9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolChangeLog.java @@ -198,61 +198,73 @@ public Builder(RoutingProtocolChangeLog defaults) { @CustomType.Setter public Builder createdBy(@Nullable String createdBy) { + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(@Nullable String createdByEmail) { + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(@Nullable String createdByFullName) { + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(@Nullable String createdDateTime) { + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(@Nullable String deletedBy) { + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(@Nullable String deletedByEmail) { + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(@Nullable String deletedByFullName) { + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(@Nullable String deletedDateTime) { + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(@Nullable String updatedBy) { + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(@Nullable String updatedByEmail) { + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(@Nullable String updatedByFullName) { + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(@Nullable String updatedDateTime) { + this.updatedDateTime = updatedDateTime; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv4.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv4.java index 4bacfe99..f4ea76f3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv4.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv4.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(RoutingProtocolDirectIpv4 defaults) { @CustomType.Setter public Builder equinixIfaceIp(String equinixIfaceIp) { - this.equinixIfaceIp = Objects.requireNonNull(equinixIfaceIp); + if (equinixIfaceIp == null) { + throw new MissingRequiredPropertyException("RoutingProtocolDirectIpv4", "equinixIfaceIp"); + } + this.equinixIfaceIp = equinixIfaceIp; return this; } public RoutingProtocolDirectIpv4 build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv6.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv6.java index 5d8224a1..16ddae34 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv6.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolDirectIpv6.java @@ -44,6 +44,7 @@ public Builder(RoutingProtocolDirectIpv6 defaults) { @CustomType.Setter public Builder equinixIfaceIp(@Nullable String equinixIfaceIp) { + this.equinixIfaceIp = equinixIfaceIp; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperation.java index 0605499f..37cf2e81 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperation.java @@ -44,6 +44,7 @@ public Builder(RoutingProtocolOperation defaults) { @CustomType.Setter public Builder errors(@Nullable List errors) { + this.errors = errors; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationError.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationError.java index 47059e29..73d9428a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationError.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationError.java @@ -116,6 +116,7 @@ public Builder(RoutingProtocolOperationError defaults) { @CustomType.Setter public Builder additionalInfos(@Nullable List additionalInfos) { + this.additionalInfos = additionalInfos; return this; } @@ -124,26 +125,31 @@ public Builder additionalInfos(RoutingProtocolOperationErrorAdditionalInfo... ad } @CustomType.Setter public Builder correlationId(@Nullable String correlationId) { + this.correlationId = correlationId; return this; } @CustomType.Setter public Builder details(@Nullable String details) { + this.details = details; return this; } @CustomType.Setter public Builder errorCode(@Nullable String errorCode) { + this.errorCode = errorCode; return this; } @CustomType.Setter public Builder errorMessage(@Nullable String errorMessage) { + this.errorMessage = errorMessage; return this; } @CustomType.Setter public Builder help(@Nullable String help) { + this.help = help; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationErrorAdditionalInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationErrorAdditionalInfo.java index 04aa7c12..3515b20e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationErrorAdditionalInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/RoutingProtocolOperationErrorAdditionalInfo.java @@ -58,11 +58,13 @@ public Builder(RoutingProtocolOperationErrorAdditionalInfo defaults) { @CustomType.Setter public Builder property(@Nullable String property) { + this.property = property; return this; } @CustomType.Setter public Builder reason(@Nullable String reason) { + this.reason = reason; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfig.java index 00913532..1bfeea3a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfig.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.fabric.outputs.ServiceProfileAccessPointTypeConfigAuthenticationKey; import com.equinix.pulumi.fabric.outputs.ServiceProfileAccessPointTypeConfigLinkProtocolConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -233,61 +234,73 @@ public Builder(ServiceProfileAccessPointTypeConfig defaults) { @CustomType.Setter public Builder allowBandwidthAutoApproval(@Nullable Boolean allowBandwidthAutoApproval) { + this.allowBandwidthAutoApproval = allowBandwidthAutoApproval; return this; } @CustomType.Setter public Builder allowBandwidthUpgrade(@Nullable Boolean allowBandwidthUpgrade) { + this.allowBandwidthUpgrade = allowBandwidthUpgrade; return this; } @CustomType.Setter public Builder allowCustomBandwidth(@Nullable Boolean allowCustomBandwidth) { + this.allowCustomBandwidth = allowCustomBandwidth; return this; } @CustomType.Setter public Builder allowRemoteConnections(@Nullable Boolean allowRemoteConnections) { + this.allowRemoteConnections = allowRemoteConnections; return this; } @CustomType.Setter public Builder apiConfig(@Nullable ServiceProfileAccessPointTypeConfigApiConfig apiConfig) { + this.apiConfig = apiConfig; return this; } @CustomType.Setter public Builder authenticationKey(@Nullable ServiceProfileAccessPointTypeConfigAuthenticationKey authenticationKey) { + this.authenticationKey = authenticationKey; return this; } @CustomType.Setter public Builder bandwidthAlertThreshold(@Nullable Double bandwidthAlertThreshold) { + this.bandwidthAlertThreshold = bandwidthAlertThreshold; return this; } @CustomType.Setter public Builder connectionLabel(@Nullable String connectionLabel) { + this.connectionLabel = connectionLabel; return this; } @CustomType.Setter public Builder connectionRedundancyRequired(@Nullable Boolean connectionRedundancyRequired) { + this.connectionRedundancyRequired = connectionRedundancyRequired; return this; } @CustomType.Setter public Builder enableAutoGenerateServiceKey(@Nullable Boolean enableAutoGenerateServiceKey) { + this.enableAutoGenerateServiceKey = enableAutoGenerateServiceKey; return this; } @CustomType.Setter public Builder linkProtocolConfig(@Nullable ServiceProfileAccessPointTypeConfigLinkProtocolConfig linkProtocolConfig) { + this.linkProtocolConfig = linkProtocolConfig; return this; } @CustomType.Setter public Builder supportedBandwidths(@Nullable List supportedBandwidths) { + this.supportedBandwidths = supportedBandwidths; return this; } @@ -296,11 +309,15 @@ public Builder supportedBandwidths(Integer... supportedBandwidths) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceProfileAccessPointTypeConfig", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigApiConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigApiConfig.java index 0398932e..b1ad07ff 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigApiConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigApiConfig.java @@ -130,36 +130,43 @@ public Builder(ServiceProfileAccessPointTypeConfigApiConfig defaults) { @CustomType.Setter public Builder allowOverSubscription(@Nullable Boolean allowOverSubscription) { + this.allowOverSubscription = allowOverSubscription; return this; } @CustomType.Setter public Builder apiAvailable(@Nullable Boolean apiAvailable) { + this.apiAvailable = apiAvailable; return this; } @CustomType.Setter public Builder bandwidthFromApi(@Nullable Boolean bandwidthFromApi) { + this.bandwidthFromApi = bandwidthFromApi; return this; } @CustomType.Setter public Builder equinixManagedPort(@Nullable Boolean equinixManagedPort) { + this.equinixManagedPort = equinixManagedPort; return this; } @CustomType.Setter public Builder equinixManagedVlan(@Nullable Boolean equinixManagedVlan) { + this.equinixManagedVlan = equinixManagedVlan; return this; } @CustomType.Setter public Builder integrationId(@Nullable String integrationId) { + this.integrationId = integrationId; return this; } @CustomType.Setter public Builder overSubscriptionLimit(@Nullable Integer overSubscriptionLimit) { + this.overSubscriptionLimit = overSubscriptionLimit; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigAuthenticationKey.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigAuthenticationKey.java index b9e375e9..3296b798 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigAuthenticationKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigAuthenticationKey.java @@ -73,16 +73,19 @@ public Builder(ServiceProfileAccessPointTypeConfigAuthenticationKey defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigLinkProtocolConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigLinkProtocolConfig.java index 202a6b6a..4f300cd6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigLinkProtocolConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccessPointTypeConfigLinkProtocolConfig.java @@ -73,16 +73,19 @@ public Builder(ServiceProfileAccessPointTypeConfigLinkProtocolConfig defaults) { @CustomType.Setter public Builder encapsulation(@Nullable String encapsulation) { + this.encapsulation = encapsulation; return this; } @CustomType.Setter public Builder encapsulationStrategy(@Nullable String encapsulationStrategy) { + this.encapsulationStrategy = encapsulationStrategy; return this; } @CustomType.Setter public Builder reuseVlanSTag(@Nullable Boolean reuseVlanSTag) { + this.reuseVlanSTag = reuseVlanSTag; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccount.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccount.java index ff75441a..848212e0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccount.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileAccount.java @@ -143,41 +143,49 @@ public Builder(ServiceProfileAccount defaults) { @CustomType.Setter public Builder accountName(@Nullable String accountName) { + this.accountName = accountName; return this; } @CustomType.Setter public Builder accountNumber(@Nullable Integer accountNumber) { + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder globalCustId(@Nullable String globalCustId) { + this.globalCustId = globalCustId; return this; } @CustomType.Setter public Builder globalOrgId(@Nullable String globalOrgId) { + this.globalOrgId = globalOrgId; return this; } @CustomType.Setter public Builder globalOrganizationName(@Nullable String globalOrganizationName) { + this.globalOrganizationName = globalOrganizationName; return this; } @CustomType.Setter public Builder orgId(@Nullable Integer orgId) { + this.orgId = orgId; return this; } @CustomType.Setter public Builder organizationName(@Nullable String organizationName) { + this.organizationName = organizationName; return this; } @CustomType.Setter public Builder ucmId(@Nullable String ucmId) { + this.ucmId = ucmId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileChangeLog.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileChangeLog.java index be5a7e7c..bd1e3791 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileChangeLog.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileChangeLog.java @@ -198,61 +198,73 @@ public Builder(ServiceProfileChangeLog defaults) { @CustomType.Setter public Builder createdBy(@Nullable String createdBy) { + this.createdBy = createdBy; return this; } @CustomType.Setter public Builder createdByEmail(@Nullable String createdByEmail) { + this.createdByEmail = createdByEmail; return this; } @CustomType.Setter public Builder createdByFullName(@Nullable String createdByFullName) { + this.createdByFullName = createdByFullName; return this; } @CustomType.Setter public Builder createdDateTime(@Nullable String createdDateTime) { + this.createdDateTime = createdDateTime; return this; } @CustomType.Setter public Builder deletedBy(@Nullable String deletedBy) { + this.deletedBy = deletedBy; return this; } @CustomType.Setter public Builder deletedByEmail(@Nullable String deletedByEmail) { + this.deletedByEmail = deletedByEmail; return this; } @CustomType.Setter public Builder deletedByFullName(@Nullable String deletedByFullName) { + this.deletedByFullName = deletedByFullName; return this; } @CustomType.Setter public Builder deletedDateTime(@Nullable String deletedDateTime) { + this.deletedDateTime = deletedDateTime; return this; } @CustomType.Setter public Builder updatedBy(@Nullable String updatedBy) { + this.updatedBy = updatedBy; return this; } @CustomType.Setter public Builder updatedByEmail(@Nullable String updatedByEmail) { + this.updatedByEmail = updatedByEmail; return this; } @CustomType.Setter public Builder updatedByFullName(@Nullable String updatedByFullName) { + this.updatedByFullName = updatedByFullName; return this; } @CustomType.Setter public Builder updatedDateTime(@Nullable String updatedDateTime) { + this.updatedDateTime = updatedDateTime; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileCustomField.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileCustomField.java index 6246011e..34727246 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileCustomField.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileCustomField.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -116,26 +117,35 @@ public Builder(ServiceProfileCustomField defaults) { @CustomType.Setter public Builder captureInEmail(@Nullable Boolean captureInEmail) { + this.captureInEmail = captureInEmail; return this; } @CustomType.Setter public Builder dataType(String dataType) { - this.dataType = Objects.requireNonNull(dataType); + if (dataType == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomField", "dataType"); + } + this.dataType = dataType; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder label(String label) { - this.label = Objects.requireNonNull(label); + if (label == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomField", "label"); + } + this.label = label; return this; } @CustomType.Setter public Builder options(@Nullable List options) { + this.options = options; return this; } @@ -144,7 +154,10 @@ public Builder options(String... options) { } @CustomType.Setter public Builder required(Boolean required) { - this.required = Objects.requireNonNull(required); + if (required == null) { + throw new MissingRequiredPropertyException("ServiceProfileCustomField", "required"); + } + this.required = required; return this; } public ServiceProfileCustomField build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfo.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfo.java index e1792fd0..7b410f6b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfo.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfo.java @@ -75,11 +75,13 @@ public Builder(ServiceProfileMarketingInfo defaults) { @CustomType.Setter public Builder logo(@Nullable String logo) { + this.logo = logo; return this; } @CustomType.Setter public Builder processSteps(@Nullable List processSteps) { + this.processSteps = processSteps; return this; } @@ -88,6 +90,7 @@ public Builder processSteps(ServiceProfileMarketingInfoProcessStep... processSte } @CustomType.Setter public Builder promotion(@Nullable Boolean promotion) { + this.promotion = promotion; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfoProcessStep.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfoProcessStep.java index 0cd24713..d4b9879e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfoProcessStep.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMarketingInfoProcessStep.java @@ -72,16 +72,19 @@ public Builder(ServiceProfileMarketingInfoProcessStep defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder subTitle(@Nullable String subTitle) { + this.subTitle = subTitle; return this; } @CustomType.Setter public Builder title(@Nullable String title) { + this.title = title; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMetro.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMetro.java index c60bac6d..e4eb2086 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMetro.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileMetro.java @@ -117,16 +117,19 @@ public Builder(ServiceProfileMetro defaults) { @CustomType.Setter public Builder code(@Nullable String code) { + this.code = code; return this; } @CustomType.Setter public Builder displayName(@Nullable String displayName) { + this.displayName = displayName; return this; } @CustomType.Setter public Builder ibxs(@Nullable List ibxs) { + this.ibxs = ibxs; return this; } @@ -135,16 +138,19 @@ public Builder ibxs(String... ibxs) { } @CustomType.Setter public Builder inTrail(@Nullable Boolean inTrail) { + this.inTrail = inTrail; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder sellerRegions(@Nullable Map sellerRegions) { + this.sellerRegions = sellerRegions; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileNotification.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileNotification.java index 4f41f254..ce08babe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileNotification.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileNotification.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.fabric.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -73,7 +74,10 @@ public Builder(ServiceProfileNotification defaults) { @CustomType.Setter public Builder emails(List emails) { - this.emails = Objects.requireNonNull(emails); + if (emails == null) { + throw new MissingRequiredPropertyException("ServiceProfileNotification", "emails"); + } + this.emails = emails; return this; } public Builder emails(String... emails) { @@ -81,12 +85,16 @@ public Builder emails(String... emails) { } @CustomType.Setter public Builder sendInterval(@Nullable String sendInterval) { + this.sendInterval = sendInterval; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceProfileNotification", "type"); + } + this.type = type; return this; } public ServiceProfileNotification build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePort.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePort.java index fd18fcc6..81673961 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePort.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.ServiceProfilePortLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -115,32 +116,42 @@ public Builder(ServiceProfilePort defaults) { @CustomType.Setter public Builder crossConnectId(@Nullable String crossConnectId) { + this.crossConnectId = crossConnectId; return this; } @CustomType.Setter public Builder location(@Nullable ServiceProfilePortLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder sellerRegion(@Nullable String sellerRegion) { + this.sellerRegion = sellerRegion; return this; } @CustomType.Setter public Builder sellerRegionDescription(@Nullable String sellerRegionDescription) { + this.sellerRegionDescription = sellerRegionDescription; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceProfilePort", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("ServiceProfilePort", "uuid"); + } + this.uuid = uuid; return this; } public ServiceProfilePort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePortLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePortLocation.java index de6c51c4..06e408f4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePortLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfilePortLocation.java @@ -86,21 +86,25 @@ public Builder(ServiceProfilePortLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileProject.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileProject.java index 21a26ad9..8077ce0d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileProject.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileProject.java @@ -58,11 +58,13 @@ public Builder(ServiceProfileProject defaults) { @CustomType.Setter public Builder href(@Nullable String href) { + this.href = href; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDevice.java index 1683769c..0b6369ec 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDevice.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.fabric.outputs.ServiceProfileVirtualDeviceLocation; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -87,22 +88,30 @@ public Builder(ServiceProfileVirtualDevice defaults) { @CustomType.Setter public Builder interfaceUuid(@Nullable String interfaceUuid) { + this.interfaceUuid = interfaceUuid; return this; } @CustomType.Setter public Builder location(@Nullable ServiceProfileVirtualDeviceLocation location) { + this.location = location; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("ServiceProfileVirtualDevice", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("ServiceProfileVirtualDevice", "uuid"); + } + this.uuid = uuid; return this; } public ServiceProfileVirtualDevice build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDeviceLocation.java b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDeviceLocation.java index eae0f377..16f325d9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDeviceLocation.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/fabric/outputs/ServiceProfileVirtualDeviceLocation.java @@ -86,21 +86,25 @@ public Builder(ServiceProfileVirtualDeviceLocation defaults) { @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder metroCode(@Nullable String metroCode) { + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder metroName(@Nullable String metroName) { + this.metroName = metroName; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSession.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSession.java index 665a298c..31dcdb16 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSession.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSession.java @@ -23,7 +23,8 @@ * BGP session must be linked to a device running [BIRD](https://bird.network.cz) or other BGP routing daemon which will control route advertisements via the session to Equinix Metal's upstream routers. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -38,16 +39,17 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var deviceId = config.get("deviceId").get();
- *         var bgp = new BgpSession("bgp", BgpSessionArgs.builder()        
+ *         final var deviceId = config.get("deviceId").get();
+ *         var bgp = new BgpSession("bgp", BgpSessionArgs.builder()        
  *             .deviceId(deviceId)
- *             .addressFamily("ipv4")
+ *             .addressFamily("ipv4")
  *             .build());
  * 
- *         ctx.export("bgpSessionStatus", bgp.status());
+ *         ctx.export("bgpSessionStatus", bgp.status());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/bgpSession:BgpSession") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSessionArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSessionArgs.java index 80d64fdb..c4e5c748 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSessionArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/BgpSessionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,8 +152,12 @@ public Builder deviceId(String deviceId) { } public BgpSessionArgs build() { - $.addressFamily = Objects.requireNonNull($.addressFamily, "expected parameter 'addressFamily' to be non-null"); - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); + if ($.addressFamily == null) { + throw new MissingRequiredPropertyException("BgpSessionArgs", "addressFamily"); + } + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("BgpSessionArgs", "deviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Device.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Device.java index 3380ce3e..0ea44552 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Device.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Device.java @@ -27,7 +27,8 @@ * > **NOTE:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -42,20 +43,21 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         var web = new Device("web", DeviceArgs.builder()        
- *             .hostname("webserver1")
- *             .plan("c3.small.x86")
- *             .operatingSystem("ubuntu_20_04")
- *             .metro("sv")
- *             .billingCycle("hourly")
+ *         final var projectId = config.get("projectId").get();
+ *         var web = new Device("web", DeviceArgs.builder()        
+ *             .hostname("webserver1")
+ *             .plan("c3.small.x86")
+ *             .operatingSystem("ubuntu_20_04")
+ *             .metro("sv")
+ *             .billingCycle("hourly")
  *             .projectId(projectId)
  *             .build());
  * 
- *         ctx.export("webPublicIp", web.accessPublicIpv4().applyValue(accessPublicIpv4 -> String.format("http://%s", accessPublicIpv4)));
+ *         ctx.export("webPublicIp", web.accessPublicIpv4().applyValue(accessPublicIpv4 -> String.format("http://%s", accessPublicIpv4)));
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/device:Device") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceArgs.java index 8360d2e1..d55b7623 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceArgs.java @@ -13,6 +13,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -1027,9 +1028,15 @@ public Builder waitForReservationDeprovision(Boolean waitForReservationDeprovisi } public DeviceArgs build() { - $.operatingSystem = Objects.requireNonNull($.operatingSystem, "expected parameter 'operatingSystem' to be non-null"); - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.operatingSystem == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "operatingSystem"); + } + if ($.plan == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "plan"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkType.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkType.java index 3a015ea6..25afe087 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkType.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkType.java @@ -15,7 +15,8 @@ /** * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -30,17 +31,18 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var deviceId = config.get("deviceId").get();
- *         final var networkType = config.get("networkType").orElse("hybrid");
- *         var deviceNetwork = new DeviceNetworkType("deviceNetwork", DeviceNetworkTypeArgs.builder()        
+ *         final var deviceId = config.get("deviceId").get();
+ *         final var networkType = config.get("networkType").orElse("hybrid");
+ *         var deviceNetwork = new DeviceNetworkType("deviceNetwork", DeviceNetworkTypeArgs.builder()        
  *             .deviceId(deviceId)
  *             .type(networkType)
  *             .build());
  * 
- *         ctx.export("deviceNetworkId", deviceNetwork.id());
+ *         ctx.export("deviceNetworkId", deviceNetwork.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkTypeArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkTypeArgs.java index bc3db7cc..bbbe70d1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkTypeArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/DeviceNetworkTypeArgs.java @@ -5,6 +5,7 @@ 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 type(String type) { } public DeviceNetworkTypeArgs build() { - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("DeviceNetworkTypeArgs", "deviceId"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("DeviceNetworkTypeArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Gateway.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Gateway.java index ee8552f5..98b11c0a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Gateway.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Gateway.java @@ -22,7 +22,8 @@ * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -37,18 +38,19 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var vlanId = config.get("vlanId").get();
- *         var gateway = new Gateway("gateway", GatewayArgs.builder()        
+ *         final var projectId = config.get("projectId").get();
+ *         final var vlanId = config.get("vlanId").get();
+ *         var gateway = new Gateway("gateway", GatewayArgs.builder()        
  *             .projectId(projectId)
  *             .vlanId(vlanId)
  *             .privateIpv4SubnetSize(8)
  *             .build());
  * 
- *         ctx.export("gatewayState", gateway.state());
+ *         ctx.export("gatewayState", gateway.state());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/gateway:Gateway") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/GatewayArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/GatewayArgs.java index e6a90c26..df7a8cfe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/GatewayArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/GatewayArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.inputs.GatewayTimeoutsArgs; 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; @@ -206,8 +207,12 @@ public Builder vlanId(String vlanId) { } public GatewayArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.vlanId = Objects.requireNonNull($.vlanId, "expected parameter 'vlanId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GatewayArgs", "projectId"); + } + if ($.vlanId == null) { + throw new MissingRequiredPropertyException("GatewayArgs", "vlanId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Interconnection.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Interconnection.java index 295db222..a627e2a7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Interconnection.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Interconnection.java @@ -24,7 +24,8 @@ * > Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -46,24 +47,25 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var metro = config.get("metro").orElse("SV");
- *         final var speedInMbps = Integer.parseInt(config.get("speedInMbps").orElse("200"));
- *         var connection = new Interconnection("connection", InterconnectionArgs.builder()        
- *             .name("fabric-port-to-metal")
+ *         final var projectId = config.get("projectId").get();
+ *         final var metro = config.get("metro").orElse("SV");
+ *         final var speedInMbps = Integer.parseInt(config.get("speedInMbps").orElse("200"));
+ *         var connection = new Interconnection("connection", InterconnectionArgs.builder()        
+ *             .name("fabric-port-to-metal")
  *             .projectId(projectId)
- *             .type("shared")
- *             .redundancy("primary")
+ *             .type("shared")
+ *             .redundancy("primary")
  *             .metro(metro)
- *             .speed(String.format("%sMbps", speedInMbps))
- *             .serviceTokenType("z_side")
+ *             .speed(String.format("%sMbps", speedInMbps))
+ *             .serviceTokenType("z_side")
  *             .build());
  * 
- *         ctx.export("connectionStatus", connection.status());
- *         ctx.export("connectionTokens", connection.serviceTokens());
+ *         ctx.export("connectionStatus", connection.status());
+ *         ctx.export("connectionTokens", connection.serviceTokens());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/interconnection:Interconnection") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/InterconnectionArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/InterconnectionArgs.java index 24e00bb3..2fafb445 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/InterconnectionArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/InterconnectionArgs.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; @@ -647,8 +648,12 @@ public Builder vrfs(String... vrfs) { } public InterconnectionArgs build() { - $.redundancy = Objects.requireNonNull($.redundancy, "expected parameter 'redundancy' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.redundancy == null) { + throw new MissingRequiredPropertyException("InterconnectionArgs", "redundancy"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("InterconnectionArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachment.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachment.java index 17db9b9c..174ae5e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachment.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachment.java @@ -25,7 +25,8 @@ * Device and reserved block must be in the same metro. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -40,18 +41,19 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var deviceId = config.get("deviceId").get();
- *         final var subnetCidr = config.get("subnetCidr").orElse("147.229.10.152/31");
- *         var ipAttachResource = new IpAttachment("ipAttachResource", IpAttachmentArgs.builder()        
+ *         final var deviceId = config.get("deviceId").get();
+ *         final var subnetCidr = config.get("subnetCidr").orElse("147.229.10.152/31");
+ *         var ipAttachResource = new IpAttachment("ipAttachResource", IpAttachmentArgs.builder()        
  *             .deviceId(deviceId)
  *             .cidrNotation(subnetCidr)
  *             .build());
  * 
- *         ctx.export("ipAttach", ipAttachResource.id());
- *         ctx.export("ipNetmask", ipAttachResource.netmask());
+ *         ctx.export("ipAttach", ipAttachResource.id());
+ *         ctx.export("ipNetmask", ipAttachResource.netmask());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/ipAttachment:IpAttachment") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachmentArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachmentArgs.java index c7ff7621..6d53ce34 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachmentArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/IpAttachmentArgs.java @@ -5,6 +5,7 @@ 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 deviceId(String deviceId) { } public IpAttachmentArgs build() { - $.cidrNotation = Objects.requireNonNull($.cidrNotation, "expected parameter 'cidrNotation' to be non-null"); - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); + if ($.cidrNotation == null) { + throw new MissingRequiredPropertyException("IpAttachmentArgs", "cidrNotation"); + } + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("IpAttachmentArgs", "deviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/MetalFunctions.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/MetalFunctions.java index b872c7e4..29084cf1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/MetalFunctions.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/MetalFunctions.java @@ -87,7 +87,8 @@ public final class MetalFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -110,17 +111,19 @@ public final class MetalFunctions {
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -142,13 +145,14 @@ public final class MetalFunctions {
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -165,7 +169,8 @@ public static Output getDevice() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -188,17 +193,19 @@ public static Output getDevice() {
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -220,13 +227,14 @@ public static Output getDevice() {
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -243,7 +251,8 @@ public static CompletableFuture getDevicePlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -266,17 +275,19 @@ public static CompletableFuture getDevicePlain() {
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -298,13 +309,14 @@ public static CompletableFuture getDevicePlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -321,7 +333,8 @@ public static Output getDevice(GetDeviceArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -344,17 +357,19 @@ public static Output getDevice(GetDeviceArgs args) {
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -376,13 +391,14 @@ public static Output getDevice(GetDeviceArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -399,7 +415,8 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -422,17 +439,19 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -454,13 +473,14 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -477,7 +497,8 @@ public static Output getDevice(GetDeviceArgs args, InvokeOption * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -500,17 +521,19 @@ public static Output getDevice(GetDeviceArgs args, InvokeOption
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
      *             .projectId(local.project_id())
-     *             .hostname("mydevice")
+     *             .hostname("mydevice")
      *             .build());
      * 
-     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
+     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -532,13 +555,14 @@ public static Output getDevice(GetDeviceArgs args, InvokeOption
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDevice(GetDeviceArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
+     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -555,7 +579,8 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -577,13 +602,14 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
+     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -600,7 +626,8 @@ public static Output getDeviceBgpNeighbors(GetDevic * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -622,13 +649,14 @@ public static Output getDeviceBgpNeighbors(GetDevic
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
+     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -645,7 +673,8 @@ public static CompletableFuture getDeviceBgpNeighbo * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -667,13 +696,14 @@ public static CompletableFuture getDeviceBgpNeighbo
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
+     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -690,7 +720,8 @@ public static Output getDeviceBgpNeighbors(GetDevic * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -712,13 +743,14 @@ public static Output getDeviceBgpNeighbors(GetDevic
      * 
      *     public static void stack(Context ctx) {
      *         final var test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
-     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
+     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
      *             .build());
      * 
-     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
+     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -733,7 +765,8 @@ public static CompletableFuture getDeviceBgpNeighbo * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -758,25 +791,27 @@ public static CompletableFuture getDeviceBgpNeighbo
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -798,13 +833,14 @@ public static CompletableFuture getDeviceBgpNeighbo
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -823,7 +859,8 @@ public static Output getDevices() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -848,25 +885,27 @@ public static Output getDevices() {
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -888,13 +927,14 @@ public static Output getDevices() {
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -913,7 +953,8 @@ public static CompletableFuture getDevicesPlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -938,25 +979,27 @@ public static CompletableFuture getDevicesPlain() {
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -978,13 +1021,14 @@ public static CompletableFuture getDevicesPlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -1003,7 +1047,8 @@ public static Output getDevices(GetDevicesArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1028,25 +1073,27 @@ public static Output getDevices(GetDevicesArgs args) {
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1068,13 +1115,14 @@ public static Output getDevices(GetDevicesArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -1093,7 +1141,8 @@ public static CompletableFuture getDevicesPlain(GetDevicesPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1118,25 +1167,27 @@ public static CompletableFuture getDevicesPlain(GetDevicesPlai
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1158,13 +1209,14 @@ public static CompletableFuture getDevicesPlain(GetDevicesPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -1183,7 +1235,8 @@ public static Output getDevices(GetDevicesArgs args, InvokeOpt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1208,25 +1261,27 @@ public static Output getDevices(GetDevicesArgs args, InvokeOpt
      *             .projectId(local.project_id())
      *             .filters(            
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("plan")
-     *                     .values("c3.small.x86")
+     *                     .attribute("plan")
+     *                     .values("c3.small.x86")
      *                     .build(),
      *                 GetDevicesFilterArgs.builder()
-     *                     .attribute("metro")
+     *                     .attribute("metro")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1248,13 +1303,14 @@ public static Output getDevices(GetDevicesArgs args, InvokeOpt
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getDevices(GetDevicesArgs.builder()
-     *             .search("database")
+     *             .search("database")
      *             .build());
      * 
-     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
+     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter @@ -1273,7 +1329,8 @@ public static CompletableFuture getDevicesPlain(GetDevicesPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1295,13 +1352,14 @@ public static CompletableFuture getDevicesPlain(GetDevicesPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
-     *             .code("ny5")
+     *             .code("ny5")
      *             .build());
      * 
-     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
+     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1316,7 +1374,8 @@ public static Output getFacility(GetFacilityArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1338,13 +1397,14 @@ public static Output getFacility(GetFacilityArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
-     *             .code("ny5")
+     *             .code("ny5")
      *             .build());
      * 
-     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
+     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1359,7 +1419,8 @@ public static CompletableFuture getFacilityPlain(GetFacilityP * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1381,13 +1442,14 @@ public static CompletableFuture getFacilityPlain(GetFacilityP
      * 
      *     public static void stack(Context ctx) {
      *         final var ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
-     *             .code("ny5")
+     *             .code("ny5")
      *             .build());
      * 
-     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
+     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1402,7 +1464,8 @@ public static Output getFacility(GetFacilityArgs args, Invoke * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1424,13 +1487,14 @@ public static Output getFacility(GetFacilityArgs args, Invoke
      * 
      *     public static void stack(Context ctx) {
      *         final var ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
-     *             .code("ny5")
+     *             .code("ny5")
      *             .build());
      * 
-     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
+     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1445,7 +1509,8 @@ public static CompletableFuture getFacilityPlain(GetFacilityP * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1469,9 +1534,9 @@ public static CompletableFuture getFacilityPlain(GetFacilityP
      * 
      *     public static void stack(Context ctx) {
      *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
-     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
-     *             .description("test VLAN in SV")
-     *             .metro("sv")
+     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
+     *             .description("test VLAN in SV")
+     *             .metro("sv")
      *             .projectId(local.project_id())
      *             .build());
      * 
@@ -1481,7 +1546,8 @@ public static CompletableFuture getFacilityPlain(GetFacilityP
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1496,7 +1562,8 @@ public static Output getGateway(GetGatewayArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1520,9 +1587,9 @@ public static Output getGateway(GetGatewayArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
-     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
-     *             .description("test VLAN in SV")
-     *             .metro("sv")
+     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
+     *             .description("test VLAN in SV")
+     *             .metro("sv")
      *             .projectId(local.project_id())
      *             .build());
      * 
@@ -1532,7 +1599,8 @@ public static Output getGateway(GetGatewayArgs args) {
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1547,7 +1615,8 @@ public static CompletableFuture getGatewayPlain(GetGatewayPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1571,9 +1640,9 @@ public static CompletableFuture getGatewayPlain(GetGatewayPlai
      * 
      *     public static void stack(Context ctx) {
      *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
-     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
-     *             .description("test VLAN in SV")
-     *             .metro("sv")
+     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
+     *             .description("test VLAN in SV")
+     *             .metro("sv")
      *             .projectId(local.project_id())
      *             .build());
      * 
@@ -1583,7 +1652,8 @@ public static CompletableFuture getGatewayPlain(GetGatewayPlai
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1598,7 +1668,8 @@ public static Output getGateway(GetGatewayArgs args, InvokeOpt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1622,9 +1693,9 @@ public static Output getGateway(GetGatewayArgs args, InvokeOpt
      * 
      *     public static void stack(Context ctx) {
      *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
-     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
-     *             .description("test VLAN in SV")
-     *             .metro("sv")
+     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
+     *             .description("test VLAN in SV")
+     *             .metro("sv")
      *             .projectId(local.project_id())
      *             .build());
      * 
@@ -1634,7 +1705,8 @@ public static Output getGateway(GetGatewayArgs args, InvokeOpt
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1649,7 +1721,8 @@ public static CompletableFuture getGatewayPlain(GetGatewayPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1671,16 +1744,17 @@ public static CompletableFuture getGatewayPlain(GetGatewayPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1695,7 +1769,8 @@ public static Output getHardwareReservation() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1717,16 +1792,17 @@ public static Output getHardwareReservation() {
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1741,7 +1817,8 @@ public static CompletableFuture getHardwareReserva * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1763,16 +1840,17 @@ public static CompletableFuture getHardwareReserva
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1787,7 +1865,8 @@ public static Output getHardwareReservation(GetHar * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1809,16 +1888,17 @@ public static Output getHardwareReservation(GetHar
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1833,7 +1913,8 @@ public static CompletableFuture getHardwareReserva * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1855,16 +1936,17 @@ public static CompletableFuture getHardwareReserva
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1879,7 +1961,8 @@ public static Output getHardwareReservation(GetHar * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1901,16 +1984,17 @@ public static Output getHardwareReservation(GetHar
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
+     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
      *             .build());
      * 
      *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
-     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
+     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1925,7 +2009,8 @@ public static CompletableFuture getHardwareReserva * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1947,12 +2032,13 @@ public static CompletableFuture getHardwareReserva
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
-     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
+     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1967,7 +2053,8 @@ public static Output getInterconnection(GetInterconnec * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1989,12 +2076,13 @@ public static Output getInterconnection(GetInterconnec
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
-     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
+     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2009,7 +2097,8 @@ public static CompletableFuture getInterconnectionPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2031,12 +2120,13 @@ public static CompletableFuture getInterconnectionPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
-     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
+     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2051,7 +2141,8 @@ public static Output getInterconnection(GetInterconnec * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2073,12 +2164,13 @@ public static Output getInterconnection(GetInterconnec
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
-     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
+     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2095,7 +2187,8 @@ public static CompletableFuture getInterconnectionPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2116,16 +2209,17 @@ public static CompletableFuture getInterconnectionPlai
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
+     *         final var projectId = "";
      * 
      *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
      *             .projectId(projectId)
      *             .build());
      * 
-     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
+     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2142,7 +2236,8 @@ public static Output getIpBlockRanges(GetIpBlockRangesAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2163,16 +2258,17 @@ public static Output getIpBlockRanges(GetIpBlockRangesAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
+     *         final var projectId = "";
      * 
      *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
      *             .projectId(projectId)
      *             .build());
      * 
-     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
+     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2189,7 +2285,8 @@ public static CompletableFuture getIpBlockRangesPlain(Ge * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2210,16 +2307,17 @@ public static CompletableFuture getIpBlockRangesPlain(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
+     *         final var projectId = "";
      * 
      *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
      *             .projectId(projectId)
      *             .build());
      * 
-     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
+     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2236,7 +2334,8 @@ public static Output getIpBlockRanges(GetIpBlockRangesAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2257,16 +2356,17 @@ public static Output getIpBlockRanges(GetIpBlockRangesAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
+     *         final var projectId = "";
      * 
      *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
      *             .projectId(projectId)
      *             .build());
      * 
-     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
+     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2279,7 +2379,8 @@ public static CompletableFuture getIpBlockRangesPlain(Ge * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2301,13 +2402,14 @@ public static CompletableFuture getIpBlockRangesPlain(Ge
      * 
      *     public static void stack(Context ctx) {
      *         final var sv = MetalFunctions.getMetro(GetMetroArgs.builder()
-     *             .code("sv")
+     *             .code("sv")
      *             .build());
      * 
-     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
+     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2320,7 +2422,8 @@ public static Output getMetro(GetMetroArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2342,13 +2445,14 @@ public static Output getMetro(GetMetroArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var sv = MetalFunctions.getMetro(GetMetroArgs.builder()
-     *             .code("sv")
+     *             .code("sv")
      *             .build());
      * 
-     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
+     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2361,7 +2465,8 @@ public static CompletableFuture getMetroPlain(GetMetroPlainArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2383,13 +2488,14 @@ public static CompletableFuture getMetroPlain(GetMetroPlainArgs
      * 
      *     public static void stack(Context ctx) {
      *         final var sv = MetalFunctions.getMetro(GetMetroArgs.builder()
-     *             .code("sv")
+     *             .code("sv")
      *             .build());
      * 
-     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
+     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2402,7 +2508,8 @@ public static Output getMetro(GetMetroArgs args, InvokeOptions o * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2424,13 +2531,14 @@ public static Output getMetro(GetMetroArgs args, InvokeOptions o
      * 
      *     public static void stack(Context ctx) {
      *         final var sv = MetalFunctions.getMetro(GetMetroArgs.builder()
-     *             .code("sv")
+     *             .code("sv")
      *             .build());
      * 
-     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
+     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2443,7 +2551,8 @@ public static CompletableFuture getMetroPlain(GetMetroPlainArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2467,23 +2576,24 @@ public static CompletableFuture getMetroPlain(GetMetroPlainArgs
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2496,7 +2606,8 @@ public static Output getOperatingSystem() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2520,23 +2631,24 @@ public static Output getOperatingSystem() {
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2549,7 +2661,8 @@ public static CompletableFuture getOperatingSystemPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2573,23 +2686,24 @@ public static CompletableFuture getOperatingSystemPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2602,7 +2716,8 @@ public static Output getOperatingSystem(GetOperatingSy * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2626,23 +2741,24 @@ public static Output getOperatingSystem(GetOperatingSy
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2655,7 +2771,8 @@ public static CompletableFuture getOperatingSystemPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2679,23 +2796,24 @@ public static CompletableFuture getOperatingSystemPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2708,7 +2826,8 @@ public static Output getOperatingSystem(GetOperatingSy * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2732,23 +2851,24 @@ public static Output getOperatingSystem(GetOperatingSy
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
-     *             .distro("ubuntu")
-     *             .version("20.04")
-     *             .provisionableOn("c3.medium.x86")
+     *             .distro("ubuntu")
+     *             .version("20.04")
+     *             .provisionableOn("c3.medium.x86")
      *             .build());
      * 
-     *         var server = new Device("server", DeviceArgs.builder()
-     *             .hostname("tf.ubuntu")
-     *             .plan("c3.medium.x86")
-     *             .metro("ny")
-     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
-     *             .billingCycle("hourly")
+     *         var server = new Device("server", DeviceArgs.builder()
+     *             .hostname("tf.ubuntu")
+     *             .plan("c3.medium.x86")
+     *             .metro("ny")
+     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
+     *             .billingCycle("hourly")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2761,7 +2881,8 @@ public static CompletableFuture getOperatingSystemPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2786,10 +2907,11 @@ public static CompletableFuture getOperatingSystemPlai
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2802,7 +2924,8 @@ public static Output getOrganization() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2827,10 +2950,11 @@ public static Output getOrganization() {
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2843,7 +2967,8 @@ public static CompletableFuture getOrganizationPlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2868,10 +2993,11 @@ public static CompletableFuture getOrganizationPlain() {
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2884,7 +3010,8 @@ public static Output getOrganization(GetOrganizationArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2909,10 +3036,11 @@ public static Output getOrganization(GetOrganizationArgs
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2925,7 +3053,8 @@ public static CompletableFuture getOrganizationPlain(GetO * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2950,10 +3079,11 @@ public static CompletableFuture getOrganizationPlain(GetO
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -2966,7 +3096,8 @@ public static Output getOrganization(GetOrganizationArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -2991,10 +3122,11 @@ public static Output getOrganization(GetOrganizationArgs
      *             .organizationId(local.org_id())
      *             .build());
      * 
-     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
+     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -3007,7 +3139,8 @@ public static CompletableFuture getOrganizationPlain(GetO * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3030,31 +3163,33 @@ public static CompletableFuture getOrganizationPlain(GetO
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3078,27 +3213,28 @@ public static CompletableFuture getOrganizationPlain(GetO
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -3108,7 +3244,8 @@ public static CompletableFuture getOrganizationPlain(GetO * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3133,43 +3270,45 @@ public static CompletableFuture getOrganizationPlain(GetO
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3192,15 +3331,16 @@ public static CompletableFuture getOrganizationPlain(GetO
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -3213,7 +3353,8 @@ public static Output getPlans() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3236,31 +3377,33 @@ public static Output getPlans() {
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3284,27 +3427,28 @@ public static Output getPlans() {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -3314,7 +3458,8 @@ public static Output getPlans() { * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3339,43 +3484,45 @@ public static Output getPlans() {
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3398,15 +3545,16 @@ public static Output getPlans() {
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -3419,7 +3567,8 @@ public static CompletableFuture getPlansPlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3442,31 +3591,33 @@ public static CompletableFuture getPlansPlain() {
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3490,27 +3641,28 @@ public static CompletableFuture getPlansPlain() {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -3520,7 +3672,8 @@ public static CompletableFuture getPlansPlain() { * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3545,43 +3698,45 @@ public static CompletableFuture getPlansPlain() {
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3604,15 +3759,16 @@ public static CompletableFuture getPlansPlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -3625,7 +3781,8 @@ public static Output getPlans(GetPlansArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3648,31 +3805,33 @@ public static Output getPlans(GetPlansArgs args) {
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3696,27 +3855,28 @@ public static Output getPlans(GetPlansArgs args) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -3726,7 +3886,8 @@ public static Output getPlans(GetPlansArgs args) { * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3751,43 +3912,45 @@ public static Output getPlans(GetPlansArgs args) {
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3810,15 +3973,16 @@ public static Output getPlans(GetPlansArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -3831,7 +3995,8 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3854,31 +4019,33 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3902,27 +4069,28 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -3932,7 +4100,8 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -3957,43 +4126,45 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4016,15 +4187,16 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4037,7 +4209,8 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4060,31 +4233,33 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("pricing_hour")
+     *                     .attribute("pricing_hour")
      *                     .values(2.5)
-     *                     .matchBy("less_than")
+     *                     .matchBy("less_than")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4108,27 +4283,28 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o
      *         final var example = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("class")
-     *                     .values("large")
-     *                     .matchBy("substring")
+     *                     .attribute("class")
+     *                     .values("large")
+     *                     .matchBy("substring")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("deployment_types")
-     *                     .values("spot_market")
+     *                     .attribute("deployment_types")
+     *                     .values("spot_market")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
+     *                     .attribute("available_in_metros")
      *                     .values(                    
-     *                         "da",
-     *                         "sv")
+     *                         "da",
+     *                         "sv")
      *                     .all(true)
      *                     .build())
      *             .build());
      * 
-     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
+     *         ctx.export("plans", example.applyValue(getPlansResult -> getPlansResult.plans()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * ### Ignoring Changes to Plans/Metro @@ -4138,7 +4314,8 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o * As described in the `data-resource-behavior` feature as shown in the example below. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4163,43 +4340,45 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o
      *     public static void stack(Context ctx) {
      *         final var examplePlans = MetalFunctions.getPlans(GetPlansArgs.builder()
      *             .sorts(GetPlansSortArgs.builder()
-     *                 .attribute("pricing_hour")
-     *                 .direction("asc")
+     *                 .attribute("pricing_hour")
+     *                 .direction("asc")
      *                 .build())
      *             .filters(            
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("name")
+     *                     .attribute("name")
      *                     .values(                    
-     *                         "c3.small.x86",
-     *                         "c3.medium.x86",
-     *                         "m3.large.x86")
+     *                         "c3.small.x86",
+     *                         "c3.medium.x86",
+     *                         "m3.large.x86")
      *                     .build(),
      *                 GetPlansFilterArgs.builder()
-     *                     .attribute("available_in_metros")
-     *                     .values("sv")
+     *                     .attribute("available_in_metros")
+     *                     .values("sv")
      *                     .build())
      *             .build());
      * 
      *         // This equinix_metal_device will use the first returned plan and the first metro in which that plan is available
      *         // It will ignore future changes on plan and metro
-     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
-     *             .hostname("example")
-     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
-     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         var exampleDevice = new Device("exampleDevice", DeviceArgs.builder()
+     *             .hostname("example")
+     *             .plan(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].name()))
+     *             .metro(examplePlans.applyValue(getPlansResult -> getPlansResult.plans()[0].availableInMetros()[0]))
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(var_.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * If your use case requires dynamic changes of a device plan or metro you can define the lifecycle with a condition. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4222,15 +4401,16 @@ public static Output getPlans(GetPlansArgs args, InvokeOptions o
      * 
      *     public static void stack(Context ctx) {
      *         final var config = ctx.config();
-     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
+     *         final var ignorePlansMetrosChanges = config.get("ignorePlansMetrosChanges").orElse(false);
      *         final var examplePlans = MetalFunctions.getPlans();
      * 
      *         // required device arguments
-     *         var exampleDevice = new Device("exampleDevice");
+     *         var exampleDevice = new Device("exampleDevice");
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4245,7 +4425,8 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4268,25 +4449,26 @@ public static CompletableFuture getPlansPlain(GetPlansPlainArgs
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4301,7 +4483,8 @@ public static Output getPort() { * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4324,25 +4507,26 @@ public static Output getPort() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4357,7 +4541,8 @@ public static CompletableFuture getPortPlain() { * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4380,25 +4565,26 @@ public static CompletableFuture getPortPlain() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4413,7 +4599,8 @@ public static Output getPort(GetPortArgs args) { * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4436,25 +4623,26 @@ public static Output getPort(GetPortArgs args) {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4469,7 +4657,8 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4492,25 +4681,26 @@ public static CompletableFuture getPortPlain(GetPortPlainArgs arg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4525,7 +4715,8 @@ public static Output getPort(GetPortArgs args, InvokeOptions opti * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4548,25 +4739,26 @@ public static Output getPort(GetPortArgs args, InvokeOptions opti
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var projectId = "<UUID_of_your_project>";
-     * 
-     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
-     *             .hostname("tfacc-test-device-port")
-     *             .plan("c3.medium.x86")
-     *             .metro("sv")
-     *             .operatingSystem("ubuntu_20_04")
-     *             .billingCycle("hourly")
+     *         final var projectId = "";
+     * 
+     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
+     *             .hostname("tfacc-test-device-port")
+     *             .plan("c3.medium.x86")
+     *             .metro("sv")
+     *             .operatingSystem("ubuntu_20_04")
+     *             .billingCycle("hourly")
      *             .projectId(projectId)
      *             .build());
      * 
      *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
      *             .deviceId(testDevice.id())
-     *             .name("eth0")
+     *             .name("eth0")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4631,7 +4823,8 @@ public static CompletableFuture getPrecreatedIpBlock * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4653,13 +4846,14 @@ public static CompletableFuture getPrecreatedIpBlock
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4672,7 +4866,8 @@ public static Output getProject() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4694,13 +4889,14 @@ public static Output getProject() {
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4713,7 +4909,8 @@ public static CompletableFuture getProjectPlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4735,13 +4932,14 @@ public static CompletableFuture getProjectPlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4754,7 +4952,8 @@ public static Output getProject(GetProjectArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4776,13 +4975,14 @@ public static Output getProject(GetProjectArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4795,7 +4995,8 @@ public static CompletableFuture getProjectPlain(GetProjectPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4817,13 +5018,14 @@ public static CompletableFuture getProjectPlain(GetProjectPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4836,7 +5038,8 @@ public static Output getProject(GetProjectArgs args, InvokeOpt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4858,13 +5061,14 @@ public static Output getProject(GetProjectArgs args, InvokeOpt
      * 
      *     public static void stack(Context ctx) {
      *         final var tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
-     *             .name("Terraform Fun")
+     *             .name("Terraform Fun")
      *             .build());
      * 
-     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
+     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4877,7 +5081,8 @@ public static CompletableFuture getProjectPlain(GetProjectPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4899,13 +5104,14 @@ public static CompletableFuture getProjectPlain(GetProjectPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
-     *             .search("username@hostname")
+     *             .search("username{@literal @}hostname")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4918,7 +5124,8 @@ public static Output getProjectSshKey(GetProjectSshKeyAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4940,13 +5147,14 @@ public static Output getProjectSshKey(GetProjectSshKeyAr
      * 
      *     public static void stack(Context ctx) {
      *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
-     *             .search("username@hostname")
+     *             .search("username{@literal @}hostname")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -4959,7 +5167,8 @@ public static CompletableFuture getProjectSshKeyPlain(Ge * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -4981,13 +5190,14 @@ public static CompletableFuture getProjectSshKeyPlain(Ge
      * 
      *     public static void stack(Context ctx) {
      *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
-     *             .search("username@hostname")
+     *             .search("username{@literal @}hostname")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5000,7 +5210,8 @@ public static Output getProjectSshKey(GetProjectSshKeyAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5022,13 +5233,14 @@ public static Output getProjectSshKey(GetProjectSshKeyAr
      * 
      *     public static void stack(Context ctx) {
      *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
-     *             .search("username@hostname")
+     *             .search("username{@literal @}hostname")
      *             .projectId(local.project_id())
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5109,7 +5321,8 @@ public static CompletableFuture getReservedIpBlockPlai * Lookup by metro: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5131,13 +5344,14 @@ public static CompletableFuture getReservedIpBlockPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
-     *             .metro("sv")
-     *             .plan("c3.small.x86")
+     *             .metro("sv")
+     *             .plan("c3.small.x86")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5152,7 +5366,8 @@ public static Output getSpotMarketPrice(GetSpotMarketP * Lookup by metro: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5174,13 +5389,14 @@ public static Output getSpotMarketPrice(GetSpotMarketP
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
-     *             .metro("sv")
-     *             .plan("c3.small.x86")
+     *             .metro("sv")
+     *             .plan("c3.small.x86")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5195,7 +5411,8 @@ public static CompletableFuture getSpotMarketPricePlai * Lookup by metro: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5217,13 +5434,14 @@ public static CompletableFuture getSpotMarketPricePlai
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
-     *             .metro("sv")
-     *             .plan("c3.small.x86")
+     *             .metro("sv")
+     *             .plan("c3.small.x86")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5238,7 +5456,8 @@ public static Output getSpotMarketPrice(GetSpotMarketP * Lookup by metro: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5260,13 +5479,14 @@ public static Output getSpotMarketPrice(GetSpotMarketP
      * 
      *     public static void stack(Context ctx) {
      *         final var example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
-     *             .metro("sv")
-     *             .plan("c3.small.x86")
+     *             .metro("sv")
+     *             .plan("c3.small.x86")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5329,7 +5549,8 @@ public static CompletableFuture getVirtualCircuitPlain( * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5352,9 +5573,9 @@ public static CompletableFuture getVirtualCircuitPlain(
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5364,13 +5585,15 @@ public static CompletableFuture getVirtualCircuitPlain(
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5394,12 +5617,13 @@ public static CompletableFuture getVirtualCircuitPlain(
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5414,7 +5638,8 @@ public static Output getVlan() { * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5437,9 +5662,9 @@ public static Output getVlan() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5449,13 +5674,15 @@ public static Output getVlan() {
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5479,12 +5706,13 @@ public static Output getVlan() {
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5499,7 +5727,8 @@ public static CompletableFuture getVlanPlain() { * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5522,9 +5751,9 @@ public static CompletableFuture getVlanPlain() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5534,13 +5763,15 @@ public static CompletableFuture getVlanPlain() {
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5564,12 +5795,13 @@ public static CompletableFuture getVlanPlain() {
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5584,7 +5816,8 @@ public static Output getVlan(GetVlanArgs args) { * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5607,9 +5840,9 @@ public static Output getVlan(GetVlanArgs args) {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5619,13 +5852,15 @@ public static Output getVlan(GetVlanArgs args) {
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5649,12 +5884,13 @@ public static Output getVlan(GetVlanArgs args) {
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5669,7 +5905,8 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5692,9 +5929,9 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5704,13 +5941,15 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5734,12 +5973,13 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5754,7 +5994,8 @@ public static Output getVlan(GetVlanArgs args, InvokeOptions opti * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5777,9 +6018,9 @@ public static Output getVlan(GetVlanArgs args, InvokeOptions opti
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
+     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
      *             .projectId(local.project_id())
-     *             .metro("sv")
+     *             .metro("sv")
      *             .vxlan(5)
      *             .build());
      * 
@@ -5789,13 +6030,15 @@ public static Output getVlan(GetVlanArgs args, InvokeOptions opti
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5819,12 +6062,13 @@ public static Output getVlan(GetVlanArgs args, InvokeOptions opti
      *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
      *             .projectId(local.project_id())
      *             .vxlan(5)
-     *             .metro("sv")
+     *             .metro("sv")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5839,7 +6083,8 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5861,12 +6106,13 @@ public static CompletableFuture getVlanPlain(GetVlanPlainArgs arg
      * 
      *     public static void stack(Context ctx) {
      *         final var exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
-     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
+     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5881,7 +6127,8 @@ public static Output getVrf(GetVrfArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5903,12 +6150,13 @@ public static Output getVrf(GetVrfArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
-     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
+     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5923,7 +6171,8 @@ public static CompletableFuture getVrfPlain(GetVrfPlainArgs args) * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5945,12 +6194,13 @@ public static CompletableFuture getVrfPlain(GetVrfPlainArgs args)
      * 
      *     public static void stack(Context ctx) {
      *         final var exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
-     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
+     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -5965,7 +6215,8 @@ public static Output getVrf(GetVrfArgs args, InvokeOptions options * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -5987,12 +6238,13 @@ public static Output getVrf(GetVrfArgs args, InvokeOptions options
      * 
      *     public static void stack(Context ctx) {
      *         final var exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
-     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
+     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Organization.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Organization.java index 0d3d0521..78081def 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Organization.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Organization.java @@ -19,7 +19,8 @@ * Provides a resource to manage organization resource in Equinix Metal. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -41,21 +42,22 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var orgResource = new Organization("orgResource", OrganizationArgs.builder()        
- *             .name("Foo Organization")
+ *         var orgResource = new Organization("orgResource", OrganizationArgs.builder()        
+ *             .name("Foo Organization")
  *             .address(OrganizationAddressArgs.builder()
- *                 .address("org street")
- *                 .city("london")
- *                 .country("GB")
- *                 .zipCode("12345")
+ *                 .address("org street")
+ *                 .city("london")
+ *                 .country("GB")
+ *                 .zipCode("12345")
  *                 .build())
- *             .description("An organization")
+ *             .description("An organization")
  *             .build());
  * 
- *         ctx.export("org", orgResource.id());
+ *         ctx.export("org", orgResource.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMember.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMember.java index f4b93a7e..80552188 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMember.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMember.java @@ -19,7 +19,8 @@ * Manage the membership of existing and new invitees within an Equinix Metal organization and its projects. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -34,21 +35,22 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var organizationId = config.get("organizationId").get();
- *         final var projectId = config.get("projectId").get();
- *         final var userEmailAddress = config.get("userEmailAddress").get();
- *         var member = new OrganizationMember("member", OrganizationMemberArgs.builder()        
+ *         final var organizationId = config.get("organizationId").get();
+ *         final var projectId = config.get("projectId").get();
+ *         final var userEmailAddress = config.get("userEmailAddress").get();
+ *         var member = new OrganizationMember("member", OrganizationMemberArgs.builder()        
  *             .invitee(userEmailAddress)
- *             .roles("limited_collaborator")
+ *             .roles("limited_collaborator")
  *             .projectsIds(projectId)
  *             .organizationId(organizationId)
  *             .build());
  * 
- *         ctx.export("memberId", member.id());
- *         ctx.export("memberState", member.state());
+ *         ctx.export("memberId", member.id());
+ *         ctx.export("memberState", member.state());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMemberArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMemberArgs.java index 53a600d9..7abae0d7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMemberArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/OrganizationMemberArgs.java @@ -5,6 +5,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; @@ -245,10 +246,18 @@ public Builder roles(String... roles) { } public OrganizationMemberArgs build() { - $.invitee = Objects.requireNonNull($.invitee, "expected parameter 'invitee' to be non-null"); - $.organizationId = Objects.requireNonNull($.organizationId, "expected parameter 'organizationId' to be non-null"); - $.projectsIds = Objects.requireNonNull($.projectsIds, "expected parameter 'projectsIds' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); + if ($.invitee == null) { + throw new MissingRequiredPropertyException("OrganizationMemberArgs", "invitee"); + } + if ($.organizationId == null) { + throw new MissingRequiredPropertyException("OrganizationMemberArgs", "organizationId"); + } + if ($.projectsIds == null) { + throw new MissingRequiredPropertyException("OrganizationMemberArgs", "projectsIds"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("OrganizationMemberArgs", "roles"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Port.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Port.java index 21cf12b4..f97cb81d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Port.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Port.java @@ -19,7 +19,8 @@ /** * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -41,20 +42,21 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var portId = config.get("portId").get();
- *         final var vlanId = config.get("vlanId").get();
- *         var port = new Port("port", PortArgs.builder()        
+ *         final var portId = config.get("portId").get();
+ *         final var vlanId = config.get("vlanId").get();
+ *         var port = new Port("port", PortArgs.builder()        
  *             .portId(portId)
  *             .bonded(true)
  *             .layer2(false)
  *             .vlanIds(vlanId)
  *             .build());
  * 
- *         ctx.export("portType", port.type());
- *         ctx.export("portBondedNetworkType", port.networkType());
+ *         ctx.export("portType", port.type());
+ *         ctx.export("portBondedNetworkType", port.networkType());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/port:Port") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortArgs.java index db15671d..57be139d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortArgs.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; @@ -321,8 +322,12 @@ public Builder vxlanIds(Integer... vxlanIds) { } public PortArgs build() { - $.bonded = Objects.requireNonNull($.bonded, "expected parameter 'bonded' to be non-null"); - $.portId = Objects.requireNonNull($.portId, "expected parameter 'portId' to be non-null"); + if ($.bonded == null) { + throw new MissingRequiredPropertyException("PortArgs", "bonded"); + } + if ($.portId == null) { + throw new MissingRequiredPropertyException("PortArgs", "portId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachment.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachment.java index b3a0cbef..43f1db1f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachment.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachment.java @@ -37,7 +37,8 @@ * * `port_id` - UUID of device port. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -52,21 +53,22 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var deviceId = config.get("deviceId").get();
- *         final var portName = config.get("portName").orElse("eth1");
- *         final var vxlanId = Integer.parseInt(config.get("vxlanId").orElse("1004"));
+ *         final var deviceId = config.get("deviceId").get();
+ *         final var portName = config.get("portName").orElse("eth1");
+ *         final var vxlanId = Integer.parseInt(config.get("vxlanId").orElse("1004"));
  * 
- *         var attach = new PortVlanAttachment("attach", PortVlanAttachmentArgs.builder()        
+ *         var attach = new PortVlanAttachment("attach", PortVlanAttachmentArgs.builder()        
  *             .deviceId(deviceId)
  *             .portName(portName)
  *             .vlanVnid(vxlanId)
  *             .build());
  * 
- *         ctx.export("attachId", attach.id());
- *         ctx.export("portId", attach.portId());
+ *         ctx.export("attachId", attach.id());
+ *         ctx.export("portId", attach.portId());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/portVlanAttachment:PortVlanAttachment") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachmentArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachmentArgs.java index 0cc08682..bdfc0eac 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachmentArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/PortVlanAttachmentArgs.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; @@ -226,9 +227,15 @@ public Builder vlanVnid(Integer vlanVnid) { } public PortVlanAttachmentArgs build() { - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); - $.portName = Objects.requireNonNull($.portName, "expected parameter 'portName' to be non-null"); - $.vlanVnid = Objects.requireNonNull($.vlanVnid, "expected parameter 'vlanVnid' to be non-null"); + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("PortVlanAttachmentArgs", "deviceId"); + } + if ($.portName == null) { + throw new MissingRequiredPropertyException("PortVlanAttachmentArgs", "portName"); + } + if ($.vlanVnid == null) { + throw new MissingRequiredPropertyException("PortVlanAttachmentArgs", "vlanVnid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Project.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Project.java index 99c59373..942db9d2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Project.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Project.java @@ -22,7 +22,8 @@ * > **NOTE:** Keep in mind that Equinix Metal invoicing is per project, so creating many `equinix.metal.Project` resources will affect the rendered invoice. If you want to keep your Equinix Metal bill simple and easy to review, please re-use your existing projects. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -37,17 +38,18 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var organizationId = config.get("organizationId").get();
- *         final var name = config.get("name").orElse("Default Project");
- *         var projectResource = new Project("projectResource", ProjectArgs.builder()        
+ *         final var organizationId = config.get("organizationId").get();
+ *         final var name = config.get("name").orElse("Default Project");
+ *         var projectResource = new Project("projectResource", ProjectArgs.builder()        
  *             .name(name)
  *             .organizationId(organizationId)
  *             .build());
  * 
- *         ctx.export("projectId", projectResource.id());
+ *         ctx.export("projectId", projectResource.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKey.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKey.java index 546b9810..716644f6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKey.java @@ -21,7 +21,8 @@ * Read-only keys only allow to list and view existing resources, read-write keys can also be used to create resources. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -36,18 +37,19 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var readOnly = config.getBoolean("readOnly").orElse(false);
- *         var apiKey = new ProjectApiKey("apiKey", ProjectApiKeyArgs.builder()        
+ *         final var projectId = config.get("projectId").get();
+ *         final var readOnly = config.getBoolean("readOnly").orElse(false);
+ *         var apiKey = new ProjectApiKey("apiKey", ProjectApiKeyArgs.builder()        
  *             .projectId(projectId)
- *             .description("A project level API Key")
+ *             .description("A project level API Key")
  *             .readOnly(readOnly)
  *             .build());
  * 
- *         ctx.export("apiKeyToken", apiKey.token());
+ *         ctx.export("apiKeyToken", apiKey.token());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/projectApiKey:ProjectApiKey") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKeyArgs.java index 2b2b622e..c463be9b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectApiKeyArgs.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; @@ -153,9 +154,15 @@ public Builder readOnly(Boolean readOnly) { } public ProjectApiKeyArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.readOnly = Objects.requireNonNull($.readOnly, "expected parameter 'readOnly' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyArgs", "description"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyArgs", "projectId"); + } + if ($.readOnly == null) { + throw new MissingRequiredPropertyException("ProjectApiKeyArgs", "readOnly"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKey.java index 35a09efd..d6ac3735 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKey.java @@ -17,7 +17,8 @@ * Provides an Equinix Metal project SSH key resource to manage project-specific SSH keys. Project SSH keys will only be populated onto servers that belong to that project, in contrast to User SSH Keys. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -36,25 +37,26 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
+ *         final var projectId = config.get("projectId").get();
  * 
  *         String content = null;
  *         try {
- *             content = Files.readString(Paths.get("/Users/John/.ssh/metal_rsa.pub"));
+ *             content = Files.readString(Paths.get("/Users/John/.ssh/metal_rsa.pub"));
  *         } catch (IOException e) {
  *             e.printStackTrace();
  *         }
  * 
- *         var sshKey = new ProjectSshKey("sshKey", ProjectSshKeyArgs.builder()        
+ *         var sshKey = new ProjectSshKey("sshKey", ProjectSshKeyArgs.builder()        
  *             .projectId(projectId)
- *             .name("johnKent")
+ *             .name("johnKent")
  *             .publicKey(content)
  *             .build());
  * 
- *         ctx.export("sshKeyId", sshKey.id());
+ *         ctx.export("sshKeyId", sshKey.id());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/projectSshKey:ProjectSshKey") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKeyArgs.java index 7bcaaa81..ba1e1482 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ProjectSshKeyArgs.java @@ -5,6 +5,7 @@ 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 publicKey(String publicKey) { } public ProjectSshKeyArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.publicKey = Objects.requireNonNull($.publicKey, "expected parameter 'publicKey' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectSshKeyArgs", "projectId"); + } + if ($.publicKey == null) { + throw new MissingRequiredPropertyException("ProjectSshKeyArgs", "publicKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlock.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlock.java index 81cf8e06..7b65ec7b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlock.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlock.java @@ -31,7 +31,8 @@ * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -46,22 +47,23 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var metro = config.get("metro").orElse("FR");
- *         final var type = config.get("type").orElse("public_ipv4");
- *         final var quantity = Integer.parseInt(config.get("quantity").orElse("1"));
- *         var ipBlock = new ReservedIpBlock("ipBlock", ReservedIpBlockArgs.builder()        
+ *         final var projectId = config.get("projectId").get();
+ *         final var metro = config.get("metro").orElse("FR");
+ *         final var type = config.get("type").orElse("public_ipv4");
+ *         final var quantity = Integer.parseInt(config.get("quantity").orElse("1"));
+ *         var ipBlock = new ReservedIpBlock("ipBlock", ReservedIpBlockArgs.builder()        
  *             .projectId(projectId)
  *             .type(type)
  *             .quantity(quantity)
  *             .metro(metro)
  *             .build());
  * 
- *         ctx.export("ipBlockId", ipBlock.id());
- *         ctx.export("ipBlockSubent", ipBlock.cidrNotation());
+ *         ctx.export("ipBlockId", ipBlock.id());
+ *         ctx.export("ipBlockSubent", ipBlock.cidrNotation());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlockArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlockArgs.java index 5e3cb400..c121bf5e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlockArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/ReservedIpBlockArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -518,7 +519,9 @@ public Builder waitForState(String waitForState) { } public ReservedIpBlockArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ReservedIpBlockArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequest.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequest.java index 0c8cbd40..59b0f99e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequest.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequest.java @@ -23,7 +23,8 @@ * Provides an Equinix Metal Spot Market Request resource to allow you to manage spot market requests on your account. For more detail on Spot Market, see [this article in Equinix Metal documentation](https://metal.equinix.com/developers/docs/deploy/spot-market/). * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -39,26 +40,27 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var metro = config.get("metro").orElse("FR");
- *         var request = new SpotMarketRequest("request", SpotMarketRequestArgs.builder()        
+ *         final var projectId = config.get("projectId").get();
+ *         final var metro = config.get("metro").orElse("FR");
+ *         var request = new SpotMarketRequest("request", SpotMarketRequestArgs.builder()        
  *             .projectId(projectId)
  *             .metro(metro)
  *             .maxBidPrice(0.75)
  *             .devicesMin(1)
  *             .devicesMax(1)
  *             .instanceParameters(SpotMarketRequestInstanceParametersArgs.builder()
- *                 .hostname("testspot")
- *                 .billingCycle("hourly")
- *                 .operatingSystem("ubuntu_20_04")
- *                 .plan("c3.small.x86")
+ *                 .hostname("testspot")
+ *                 .billingCycle("hourly")
+ *                 .operatingSystem("ubuntu_20_04")
+ *                 .plan("c3.small.x86")
  *                 .build())
  *             .build());
  * 
- *         ctx.export("requestId", request.id());
+ *         ctx.export("requestId", request.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequestArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequestArgs.java index 663cc44c..25144c0b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequestArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/SpotMarketRequestArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.inputs.SpotMarketRequestInstanceParametersArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.Integer; @@ -370,11 +371,21 @@ public Builder waitForDevices(Boolean waitForDevices) { } public SpotMarketRequestArgs build() { - $.devicesMax = Objects.requireNonNull($.devicesMax, "expected parameter 'devicesMax' to be non-null"); - $.devicesMin = Objects.requireNonNull($.devicesMin, "expected parameter 'devicesMin' to be non-null"); - $.instanceParameters = Objects.requireNonNull($.instanceParameters, "expected parameter 'instanceParameters' to be non-null"); - $.maxBidPrice = Objects.requireNonNull($.maxBidPrice, "expected parameter 'maxBidPrice' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.devicesMax == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestArgs", "devicesMax"); + } + if ($.devicesMin == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestArgs", "devicesMin"); + } + if ($.instanceParameters == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestArgs", "instanceParameters"); + } + if ($.maxBidPrice == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestArgs", "maxBidPrice"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKey.java index 6a5e4e81..8bb67118 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKey.java @@ -19,7 +19,8 @@ * The link between User SSH key and device is implicit. If you want to make sure that a key will be copied to a device, you must ensure that the device resource `depends_on` the key resource. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -39,20 +40,21 @@
  *     public static void stack(Context ctx) {
  *         String content = null;
  *         try {
- *             content = Files.readString(Paths.get("/Users/John/.ssh/metal_rsa.pub"));
+ *             content = Files.readString(Paths.get("/Users/John/.ssh/metal_rsa.pub"));
  *         } catch (IOException e) {
  *             e.printStackTrace();
  *         }
  * 
- *         var sshKey = new SshKey("sshKey", SshKeyArgs.builder()        
- *             .name("johnKent")
+ *         var sshKey = new SshKey("sshKey", SshKeyArgs.builder()        
+ *             .name("johnKent")
  *             .publicKey(content)
  *             .build());
  * 
- *         ctx.export("sshKeyId", sshKey.id());
+ *         ctx.export("sshKeyId", sshKey.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKeyArgs.java index 3be7d697..e09af9e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/SshKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder publicKey(String publicKey) { } public SshKeyArgs build() { - $.publicKey = Objects.requireNonNull($.publicKey, "expected parameter 'publicKey' to be non-null"); + if ($.publicKey == null) { + throw new MissingRequiredPropertyException("SshKeyArgs", "publicKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKey.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKey.java index 2c423284..390206e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKey.java @@ -21,7 +21,8 @@ * Read-only keys only allow to list and view existing resources, read-write keys can also be used to create resources. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -36,17 +37,18 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var description = config.get("description").orElse("An user level API Key");
- *         final var readOnly = config.getBoolean("readOnly").orElse(false);
- *         var apiKey = new UserApiKey("apiKey", UserApiKeyArgs.builder()        
+ *         final var description = config.get("description").orElse("An user level API Key");
+ *         final var readOnly = config.getBoolean("readOnly").orElse(false);
+ *         var apiKey = new UserApiKey("apiKey", UserApiKeyArgs.builder()        
  *             .description(description)
  *             .readOnly(readOnly)
  *             .build());
  * 
- *         ctx.export("apiKeyToken", apiKey.token());
+ *         ctx.export("apiKeyToken", apiKey.token());
  *     }
  * }
- * ```
+ * }
+ * 
* */ @ResourceType(type="equinix:metal/userApiKey:UserApiKey") diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKeyArgs.java index b7c10652..153422f7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/UserApiKeyArgs.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; @@ -116,8 +117,12 @@ public Builder readOnly(Boolean readOnly) { } public UserApiKeyArgs build() { - $.description = Objects.requireNonNull($.description, "expected parameter 'description' to be non-null"); - $.readOnly = Objects.requireNonNull($.readOnly, "expected parameter 'readOnly' to be non-null"); + if ($.description == null) { + throw new MissingRequiredPropertyException("UserApiKeyArgs", "description"); + } + if ($.readOnly == null) { + throw new MissingRequiredPropertyException("UserApiKeyArgs", "readOnly"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuit.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuit.java index c57b591c..4f2488d2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuit.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuit.java @@ -22,7 +22,8 @@ * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -39,14 +40,14 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var connectionId = config.get("connectionId").get();
- *         final var vlanId = config.get("vlanId").get();
+ *         final var projectId = config.get("projectId").get();
+ *         final var connectionId = config.get("connectionId").get();
+ *         final var vlanId = config.get("vlanId").get();
  *         final var portId = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
  *             .connectionId(connectionId)
- *             .build()).applyValue(data -> data.ports().get(0).id());
+ *             .build()).applyValue(data -> data.ports().get(0).id());
  * 
- *         var vc = new VirtualCircuit("vc", VirtualCircuitArgs.builder()        
+ *         var vc = new VirtualCircuit("vc", VirtualCircuitArgs.builder()        
  *             .connectionId(connectionId)
  *             .projectId(projectId)
  *             .portId(portId)
@@ -54,11 +55,12 @@
  *             .nniVlan(1056)
  *             .build());
  * 
- *         ctx.export("vcStatus", vc.status());
- *         ctx.export("vcVnid", vc.vnid());
+ *         ctx.export("vcStatus", vc.status());
+ *         ctx.export("vcVnid", vc.vnid());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuitArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuitArgs.java index da49d6a3..ac57254c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuitArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/VirtualCircuitArgs.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; @@ -614,9 +615,15 @@ public Builder vrfId(String vrfId) { } public VirtualCircuitArgs build() { - $.connectionId = Objects.requireNonNull($.connectionId, "expected parameter 'connectionId' to be non-null"); - $.portId = Objects.requireNonNull($.portId, "expected parameter 'portId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.connectionId == null) { + throw new MissingRequiredPropertyException("VirtualCircuitArgs", "connectionId"); + } + if ($.portId == null) { + throw new MissingRequiredPropertyException("VirtualCircuitArgs", "portId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("VirtualCircuitArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Vlan.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Vlan.java index 574375a0..da75dd90 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Vlan.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Vlan.java @@ -24,7 +24,8 @@ * * https://metal.equinix.com/developers/docs/networking/layer2-configs/ * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -39,20 +40,21 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var metro = config.get("metro").orElse("DA");
- *         final var vxlan = Integer.parseInt(config.get("vxlan").get());
- *         var vlan = new Vlan("vlan", VlanArgs.builder()        
- *             .description("VLAN in Dallas")
+ *         final var projectId = config.get("projectId").get();
+ *         final var metro = config.get("metro").orElse("DA");
+ *         final var vxlan = Integer.parseInt(config.get("vxlan").get());
+ *         var vlan = new Vlan("vlan", VlanArgs.builder()        
+ *             .description("VLAN in Dallas")
  *             .projectId(projectId)
  *             .metro(metro)
  *             .vxlan(vxlan)
  *             .build());
  * 
- *         ctx.export("vlanId", vlan.id());
+ *         ctx.export("vlanId", vlan.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/VlanArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/VlanArgs.java index 683b130a..b037bd83 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/VlanArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/VlanArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -271,7 +272,9 @@ public Builder vxlan(Integer vxlan) { } public VlanArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("VlanArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/Vrf.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/Vrf.java index eb1b261a..64f62721 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/Vrf.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/Vrf.java @@ -22,7 +22,8 @@ * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -37,23 +38,24 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var projectId = config.get("projectId").get();
- *         final var metro = config.get("metro").orElse("DA");
- *         var vrf = new Vrf("vrf", VrfArgs.builder()        
- *             .description("VRF with ASN 65000 and a pool of address space")
- *             .name("example-vrf")
+ *         final var projectId = config.get("projectId").get();
+ *         final var metro = config.get("metro").orElse("DA");
+ *         var vrf = new Vrf("vrf", VrfArgs.builder()        
+ *             .description("VRF with ASN 65000 and a pool of address space")
+ *             .name("example-vrf")
  *             .metro(metro)
  *             .localAsn(65000)
  *             .ipRanges(            
- *                 "192.168.100.0/25",
- *                 "192.168.200.0/25")
+ *                 "192.168.100.0/25",
+ *                 "192.168.200.0/25")
  *             .projectId(projectId)
  *             .build());
  * 
- *         ctx.export("vrfId", vrf.id());
+ *         ctx.export("vrfId", vrf.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/VrfArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/VrfArgs.java index b6ab0b89..cba1fa4e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/VrfArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/VrfArgs.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; @@ -273,8 +274,12 @@ public Builder projectId(String projectId) { } public VrfArgs build() { - $.metro = Objects.requireNonNull($.metro, "expected parameter 'metro' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.metro == null) { + throw new MissingRequiredPropertyException("VrfArgs", "metro"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("VrfArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/DeviceIpAddressArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/DeviceIpAddressArgs.java index 3a815bcc..fe5d7409 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/DeviceIpAddressArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/DeviceIpAddressArgs.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; @@ -162,7 +163,9 @@ public Builder type(String type) { } public DeviceIpAddressArgs build() { - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.type == null) { + throw new MissingRequiredPropertyException("DeviceIpAddressArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsArgs.java index b04a2fb9..ba4f4930 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsArgs.java @@ -5,6 +5,7 @@ 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 deviceId(String deviceId) { } public GetDeviceBgpNeighborsArgs build() { - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsArgs", "deviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsPlainArgs.java index 6a48db1e..20e654df 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDeviceBgpNeighborsPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 deviceId(String deviceId) { } public GetDeviceBgpNeighborsPlainArgs build() { - $.deviceId = Objects.requireNonNull($.deviceId, "expected parameter 'deviceId' to be non-null"); + if ($.deviceId == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsPlainArgs", "deviceId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilter.java index e34d1dc4..5d682fc9 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -164,8 +165,12 @@ public Builder values(String... values) { } public GetDevicesFilter build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesFilter", "attribute"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDevicesFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilterArgs.java index b37c78b7..a6cebca2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesFilterArgs.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; @@ -207,8 +208,12 @@ public Builder values(String... values) { } public GetDevicesFilterArgs build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesFilterArgs", "attribute"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetDevicesFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSort.java index 9fe2a18c..1b9866dc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder direction(@Nullable String direction) { } public GetDevicesSort build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesSort", "attribute"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSortArgs.java index 09146e00..89fd1f25 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetDevicesSortArgs.java @@ -5,6 +5,7 @@ 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 direction(String direction) { } public GetDevicesSortArgs build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesSortArgs", "attribute"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityArgs.java index a8cb6fff..d85a3bb0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.inputs.GetFacilityCapacityArgs; 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; @@ -172,7 +173,9 @@ public Builder featuresRequireds(String... featuresRequireds) { } public GetFacilityArgs build() { - $.code = Objects.requireNonNull($.code, "expected parameter 'code' to be non-null"); + if ($.code == null) { + throw new MissingRequiredPropertyException("GetFacilityArgs", "code"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacity.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacity.java index cce8c635..71a1bc0e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacity.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacity.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -93,7 +94,9 @@ public Builder quantity(@Nullable Integer quantity) { } public GetFacilityCapacity build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetFacilityCapacity", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacityArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacityArgs.java index 8d1a6d43..64532e76 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacityArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityCapacityArgs.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 quantity(Integer quantity) { } public GetFacilityCapacityArgs build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetFacilityCapacityArgs", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityPlainArgs.java index 795152a1..27daffc1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetFacilityPlainArgs.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.inputs.GetFacilityCapacity; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -141,7 +142,9 @@ public Builder featuresRequireds(String... featuresRequireds) { } public GetFacilityPlainArgs build() { - $.code = Objects.requireNonNull($.code, "expected parameter 'code' to be non-null"); + if ($.code == null) { + throw new MissingRequiredPropertyException("GetFacilityPlainArgs", "code"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayArgs.java index 517df30f..ceaec211 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayArgs.java @@ -5,6 +5,7 @@ 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 gatewayId(String gatewayId) { } public GetGatewayArgs build() { - $.gatewayId = Objects.requireNonNull($.gatewayId, "expected parameter 'gatewayId' to be non-null"); + if ($.gatewayId == null) { + throw new MissingRequiredPropertyException("GetGatewayArgs", "gatewayId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayPlainArgs.java index aa9e0325..3022d162 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetGatewayPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 gatewayId(String gatewayId) { } public GetGatewayPlainArgs build() { - $.gatewayId = Objects.requireNonNull($.gatewayId, "expected parameter 'gatewayId' to be non-null"); + if ($.gatewayId == null) { + throw new MissingRequiredPropertyException("GetGatewayPlainArgs", "gatewayId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionArgs.java index 9e7d3e22..34142c55 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionArgs.java @@ -5,6 +5,7 @@ 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 connectionId(String connectionId) { } public GetInterconnectionArgs build() { - $.connectionId = Objects.requireNonNull($.connectionId, "expected parameter 'connectionId' to be non-null"); + if ($.connectionId == null) { + throw new MissingRequiredPropertyException("GetInterconnectionArgs", "connectionId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionPlainArgs.java index 9d94e2e3..a09241cd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetInterconnectionPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 connectionId(String connectionId) { } public GetInterconnectionPlainArgs build() { - $.connectionId = Objects.requireNonNull($.connectionId, "expected parameter 'connectionId' to be non-null"); + if ($.connectionId == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPlainArgs", "connectionId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesArgs.java index 1dc87a42..612cba4e 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesArgs.java @@ -5,6 +5,7 @@ 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; @@ -166,7 +167,9 @@ public Builder projectId(String projectId) { } public GetIpBlockRangesArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesPlainArgs.java index 62705908..5b0bbf2a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetIpBlockRangesPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -131,7 +132,9 @@ public Builder projectId(String projectId) { } public GetIpBlockRangesPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroArgs.java index dad9aed8..d600b1fe 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.inputs.GetMetroCapacityArgs; 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; @@ -125,7 +126,9 @@ public Builder code(String code) { } public GetMetroArgs build() { - $.code = Objects.requireNonNull($.code, "expected parameter 'code' to be non-null"); + if ($.code == null) { + throw new MissingRequiredPropertyException("GetMetroArgs", "code"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacity.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacity.java index a0938e96..f2f1cb94 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacity.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacity.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -93,7 +94,9 @@ public Builder quantity(@Nullable Integer quantity) { } public GetMetroCapacity build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetMetroCapacity", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacityArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacityArgs.java index d36cfe51..da99ee9a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacityArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroCapacityArgs.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 quantity(Integer quantity) { } public GetMetroCapacityArgs build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetMetroCapacityArgs", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroPlainArgs.java index f8d28c01..3d214e47 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetMetroPlainArgs.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.inputs.GetMetroCapacity; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -104,7 +105,9 @@ public Builder code(String code) { } public GetMetroPlainArgs build() { - $.code = Objects.requireNonNull($.code, "expected parameter 'code' to be non-null"); + if ($.code == null) { + throw new MissingRequiredPropertyException("GetMetroPlainArgs", "code"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilter.java index 0d41ea47..e0dfd767 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -164,8 +165,12 @@ public Builder values(String... values) { } public GetPlansFilter build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetPlansFilter", "attribute"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetPlansFilter", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilterArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilterArgs.java index e197527e..302de0fc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilterArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansFilterArgs.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; @@ -207,8 +208,12 @@ public Builder values(String... values) { } public GetPlansFilterArgs build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); - $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetPlansFilterArgs", "attribute"); + } + if ($.values == null) { + throw new MissingRequiredPropertyException("GetPlansFilterArgs", "values"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSort.java index 5d55edc4..33830b2b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder direction(@Nullable String direction) { } public GetPlansSort build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetPlansSort", "attribute"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSortArgs.java index 23d71f2e..8708ba15 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPlansSortArgs.java @@ -5,6 +5,7 @@ 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 direction(String direction) { } public GetPlansSortArgs build() { - $.attribute = Objects.requireNonNull($.attribute, "expected parameter 'attribute' to be non-null"); + if ($.attribute == null) { + throw new MissingRequiredPropertyException("GetPlansSortArgs", "attribute"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockArgs.java index 4e798993..187e4613 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockArgs.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 public_(Boolean public_) { } public GetPrecreatedIpBlockArgs build() { - $.addressFamily = Objects.requireNonNull($.addressFamily, "expected parameter 'addressFamily' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.public_ = Objects.requireNonNull($.public_, "expected parameter 'public' to be non-null"); + if ($.addressFamily == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockArgs", "addressFamily"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockArgs", "projectId"); + } + if ($.public_ == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockArgs", "public_"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockPlainArgs.java index c91ff620..52b0b2d1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetPrecreatedIpBlockPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -202,9 +203,15 @@ public Builder public_(Boolean public_) { } public GetPrecreatedIpBlockPlainArgs build() { - $.addressFamily = Objects.requireNonNull($.addressFamily, "expected parameter 'addressFamily' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.public_ = Objects.requireNonNull($.public_, "expected parameter 'public' to be non-null"); + if ($.addressFamily == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockPlainArgs", "addressFamily"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockPlainArgs", "projectId"); + } + if ($.public_ == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockPlainArgs", "public_"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyArgs.java index 5ccccf95..968eb8da 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyArgs.java @@ -5,6 +5,7 @@ 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; @@ -158,7 +159,9 @@ public Builder search(String search) { } public GetProjectSshKeyArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyPlainArgs.java index 529250f8..dc4f605b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetProjectSshKeyPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -125,7 +126,9 @@ public Builder search(@Nullable String search) { } public GetProjectSshKeyPlainArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPriceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPriceArgs.java index a8a96bbf..d648e4c6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPriceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPriceArgs.java @@ -5,6 +5,7 @@ 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; @@ -166,7 +167,9 @@ public Builder plan(String plan) { } public GetSpotMarketPriceArgs build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetSpotMarketPriceArgs", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPricePlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPricePlainArgs.java index de36a353..0be665a6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPricePlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketPricePlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -131,7 +132,9 @@ public Builder plan(String plan) { } public GetSpotMarketPricePlainArgs build() { - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.plan == null) { + throw new MissingRequiredPropertyException("GetSpotMarketPricePlainArgs", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestArgs.java index 0a62aec9..dad27f70 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestArgs.java @@ -5,6 +5,7 @@ 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 requestId(String requestId) { } public GetSpotMarketRequestArgs build() { - $.requestId = Objects.requireNonNull($.requestId, "expected parameter 'requestId' to be non-null"); + if ($.requestId == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestArgs", "requestId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestPlainArgs.java index ad28ad43..eda80ca6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetSpotMarketRequestPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 requestId(String requestId) { } public GetSpotMarketRequestPlainArgs build() { - $.requestId = Objects.requireNonNull($.requestId, "expected parameter 'requestId' to be non-null"); + if ($.requestId == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestPlainArgs", "requestId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitArgs.java index 5a3454a6..833ca814 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitArgs.java @@ -5,6 +5,7 @@ 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 virtualCircuitId(String virtualCircuitId) { } public GetVirtualCircuitArgs build() { - $.virtualCircuitId = Objects.requireNonNull($.virtualCircuitId, "expected parameter 'virtualCircuitId' to be non-null"); + if ($.virtualCircuitId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitArgs", "virtualCircuitId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitPlainArgs.java index bdaa8022..f8f4d910 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVirtualCircuitPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 virtualCircuitId(String virtualCircuitId) { } public GetVirtualCircuitPlainArgs build() { - $.virtualCircuitId = Objects.requireNonNull($.virtualCircuitId, "expected parameter 'virtualCircuitId' to be non-null"); + if ($.virtualCircuitId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitPlainArgs", "virtualCircuitId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfArgs.java index 85ea8c9c..5039c8c2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfArgs.java @@ -5,6 +5,7 @@ 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 vrfId(String vrfId) { } public GetVrfArgs build() { - $.vrfId = Objects.requireNonNull($.vrfId, "expected parameter 'vrfId' to be non-null"); + if ($.vrfId == null) { + throw new MissingRequiredPropertyException("GetVrfArgs", "vrfId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfPlainArgs.java index a5658088..2d8a154c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/GetVrfPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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 vrfId(String vrfId) { } public GetVrfPlainArgs build() { - $.vrfId = Objects.requireNonNull($.vrfId, "expected parameter 'vrfId' to be non-null"); + if ($.vrfId == null) { + throw new MissingRequiredPropertyException("GetVrfPlainArgs", "vrfId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionPortArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionPortArgs.java index 5edd6677..27448a85 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionPortArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionPortArgs.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; @@ -222,13 +223,27 @@ public Builder virtualCircuitIds(String... virtualCircuitIds) { } public InterconnectionPortArgs build() { - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.linkStatus = Objects.requireNonNull($.linkStatus, "expected parameter 'linkStatus' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.role = Objects.requireNonNull($.role, "expected parameter 'role' to be non-null"); - $.speed = Objects.requireNonNull($.speed, "expected parameter 'speed' to be non-null"); - $.status = Objects.requireNonNull($.status, "expected parameter 'status' to be non-null"); - $.virtualCircuitIds = Objects.requireNonNull($.virtualCircuitIds, "expected parameter 'virtualCircuitIds' to be non-null"); + if ($.id == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "id"); + } + if ($.linkStatus == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "linkStatus"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "name"); + } + if ($.role == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "role"); + } + if ($.speed == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "speed"); + } + if ($.status == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "status"); + } + if ($.virtualCircuitIds == null) { + throw new MissingRequiredPropertyException("InterconnectionPortArgs", "virtualCircuitIds"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionServiceTokenArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionServiceTokenArgs.java index 0e86b91f..06957980 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionServiceTokenArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/InterconnectionServiceTokenArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -159,12 +160,24 @@ public Builder type(String type) { } public InterconnectionServiceTokenArgs build() { - $.expiresAt = Objects.requireNonNull($.expiresAt, "expected parameter 'expiresAt' to be non-null"); - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); - $.maxAllowedSpeed = Objects.requireNonNull($.maxAllowedSpeed, "expected parameter 'maxAllowedSpeed' to be non-null"); - $.role = Objects.requireNonNull($.role, "expected parameter 'role' to be non-null"); - $.state = Objects.requireNonNull($.state, "expected parameter 'state' to be non-null"); - $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null"); + if ($.expiresAt == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "expiresAt"); + } + if ($.id == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "id"); + } + if ($.maxAllowedSpeed == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "maxAllowedSpeed"); + } + if ($.role == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "role"); + } + if ($.state == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "state"); + } + if ($.type == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceTokenArgs", "type"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/OrganizationAddressArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/OrganizationAddressArgs.java index 3fccc503..c63347e4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/OrganizationAddressArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/OrganizationAddressArgs.java @@ -5,6 +5,7 @@ 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; @@ -224,10 +225,18 @@ public Builder zipCode(String zipCode) { } public OrganizationAddressArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.city = Objects.requireNonNull($.city, "expected parameter 'city' to be non-null"); - $.country = Objects.requireNonNull($.country, "expected parameter 'country' to be non-null"); - $.zipCode = Objects.requireNonNull($.zipCode, "expected parameter 'zipCode' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("OrganizationAddressArgs", "address"); + } + if ($.city == null) { + throw new MissingRequiredPropertyException("OrganizationAddressArgs", "city"); + } + if ($.country == null) { + throw new MissingRequiredPropertyException("OrganizationAddressArgs", "country"); + } + if ($.zipCode == null) { + throw new MissingRequiredPropertyException("OrganizationAddressArgs", "zipCode"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/ProjectBgpConfigArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/ProjectBgpConfigArgs.java index b40ad054..69b399bc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/ProjectBgpConfigArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/ProjectBgpConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,8 +226,12 @@ public Builder status(String status) { } public ProjectBgpConfigArgs build() { - $.asn = Objects.requireNonNull($.asn, "expected parameter 'asn' to be non-null"); - $.deploymentType = Objects.requireNonNull($.deploymentType, "expected parameter 'deploymentType' to be non-null"); + if ($.asn == null) { + throw new MissingRequiredPropertyException("ProjectBgpConfigArgs", "asn"); + } + if ($.deploymentType == null) { + throw new MissingRequiredPropertyException("ProjectBgpConfigArgs", "deploymentType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/SpotMarketRequestInstanceParametersArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/SpotMarketRequestInstanceParametersArgs.java index 404f24e3..2652155a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/SpotMarketRequestInstanceParametersArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/inputs/SpotMarketRequestInstanceParametersArgs.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; @@ -377,10 +378,18 @@ public Builder userdata(String userdata) { } public SpotMarketRequestInstanceParametersArgs build() { - $.billingCycle = Objects.requireNonNull($.billingCycle, "expected parameter 'billingCycle' to be non-null"); - $.hostname = Objects.requireNonNull($.hostname, "expected parameter 'hostname' to be non-null"); - $.operatingSystem = Objects.requireNonNull($.operatingSystem, "expected parameter 'operatingSystem' to be non-null"); - $.plan = Objects.requireNonNull($.plan, "expected parameter 'plan' to be non-null"); + if ($.billingCycle == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParametersArgs", "billingCycle"); + } + if ($.hostname == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParametersArgs", "hostname"); + } + if ($.operatingSystem == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParametersArgs", "operatingSystem"); + } + if ($.plan == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParametersArgs", "plan"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceBehavior.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceBehavior.java index e68ae8c1..84b9d8fd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceBehavior.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceBehavior.java @@ -44,6 +44,7 @@ public Builder(DeviceBehavior defaults) { @CustomType.Setter public Builder allowChanges(@Nullable List allowChanges) { + this.allowChanges = allowChanges; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceIpAddress.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceIpAddress.java index 85ee1357..beafe2a2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceIpAddress.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceIpAddress.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -74,11 +75,13 @@ public Builder(DeviceIpAddress defaults) { @CustomType.Setter public Builder cidr(@Nullable Integer cidr) { + this.cidr = cidr; return this; } @CustomType.Setter public Builder reservationIds(@Nullable List reservationIds) { + this.reservationIds = reservationIds; return this; } @@ -87,7 +90,10 @@ public Builder reservationIds(String... reservationIds) { } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("DeviceIpAddress", "type"); + } + this.type = type; return this; } public DeviceIpAddress build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceNetwork.java index f67ef0be..0ae09988 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceNetwork.java @@ -102,26 +102,31 @@ public Builder(DeviceNetwork defaults) { @CustomType.Setter public Builder address(@Nullable String address) { + this.address = address; return this; } @CustomType.Setter public Builder cidr(@Nullable Integer cidr) { + this.cidr = cidr; return this; } @CustomType.Setter public Builder family(@Nullable Integer family) { + this.family = family; return this; } @CustomType.Setter public Builder gateway(@Nullable String gateway) { + this.gateway = gateway; 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/equinix/pulumi/metal/outputs/DevicePort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DevicePort.java index 718ce26b..2c0d7d2f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DevicePort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DevicePort.java @@ -101,26 +101,31 @@ public Builder(DevicePort defaults) { @CustomType.Setter public Builder bonded(@Nullable Boolean bonded) { + this.bonded = bonded; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder mac(@Nullable String mac) { + this.mac = mac; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceReinstall.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceReinstall.java index ead845b5..901e69d4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceReinstall.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/DeviceReinstall.java @@ -72,16 +72,19 @@ public Builder(DeviceReinstall defaults) { @CustomType.Setter public Builder deprovisionFast(@Nullable Boolean deprovisionFast) { + this.deprovisionFast = deprovisionFast; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder preserveData(@Nullable Boolean preserveData) { + this.preserveData = preserveData; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GatewayTimeouts.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GatewayTimeouts.java index b284ce8c..ad33d228 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GatewayTimeouts.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GatewayTimeouts.java @@ -44,6 +44,7 @@ public Builder(GatewayTimeouts defaults) { @CustomType.Setter public Builder delete(@Nullable String delete) { + this.delete = delete; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighbor.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighbor.java index c3d73f90..5facf466 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighbor.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighbor.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsBgpNeighborRoutesIn; import com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsBgpNeighborRoutesOut; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -174,41 +175,63 @@ public Builder(GetDeviceBgpNeighborsBgpNeighbor defaults) { @CustomType.Setter public Builder addressFamily(Integer addressFamily) { - this.addressFamily = Objects.requireNonNull(addressFamily); + if (addressFamily == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "addressFamily"); + } + this.addressFamily = addressFamily; return this; } @CustomType.Setter public Builder customerAs(Integer customerAs) { - this.customerAs = Objects.requireNonNull(customerAs); + if (customerAs == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "customerAs"); + } + this.customerAs = customerAs; return this; } @CustomType.Setter public Builder customerIp(String customerIp) { - this.customerIp = Objects.requireNonNull(customerIp); + if (customerIp == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "customerIp"); + } + this.customerIp = customerIp; return this; } @CustomType.Setter public Builder md5Enabled(Boolean md5Enabled) { - this.md5Enabled = Objects.requireNonNull(md5Enabled); + if (md5Enabled == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "md5Enabled"); + } + this.md5Enabled = md5Enabled; return this; } @CustomType.Setter public Builder md5Password(String md5Password) { - this.md5Password = Objects.requireNonNull(md5Password); + if (md5Password == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "md5Password"); + } + this.md5Password = md5Password; return this; } @CustomType.Setter public Builder multihop(Boolean multihop) { - this.multihop = Objects.requireNonNull(multihop); + if (multihop == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "multihop"); + } + this.multihop = multihop; return this; } @CustomType.Setter public Builder peerAs(Integer peerAs) { - this.peerAs = Objects.requireNonNull(peerAs); + if (peerAs == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "peerAs"); + } + this.peerAs = peerAs; return this; } @CustomType.Setter public Builder peerIps(@Nullable List peerIps) { + this.peerIps = peerIps; return this; } @@ -217,7 +240,10 @@ public Builder peerIps(String... peerIps) { } @CustomType.Setter public Builder routesIns(List routesIns) { - this.routesIns = Objects.requireNonNull(routesIns); + if (routesIns == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "routesIns"); + } + this.routesIns = routesIns; return this; } public Builder routesIns(GetDeviceBgpNeighborsBgpNeighborRoutesIn... routesIns) { @@ -225,7 +251,10 @@ public Builder routesIns(GetDeviceBgpNeighborsBgpNeighborRoutesIn... routesIns) } @CustomType.Setter public Builder routesOuts(List routesOuts) { - this.routesOuts = Objects.requireNonNull(routesOuts); + if (routesOuts == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighbor", "routesOuts"); + } + this.routesOuts = routesOuts; return this; } public Builder routesOuts(GetDeviceBgpNeighborsBgpNeighborRoutesOut... routesOuts) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesIn.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesIn.java index 292d3434..8544e005 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesIn.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesIn.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetDeviceBgpNeighborsBgpNeighborRoutesIn defaults) { @CustomType.Setter public Builder exact(Boolean exact) { - this.exact = Objects.requireNonNull(exact); + if (exact == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighborRoutesIn", "exact"); + } + this.exact = exact; return this; } @CustomType.Setter public Builder route(String route) { - this.route = Objects.requireNonNull(route); + if (route == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighborRoutesIn", "route"); + } + this.route = route; return this; } public GetDeviceBgpNeighborsBgpNeighborRoutesIn build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesOut.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesOut.java index 41886dc3..0507bd2d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesOut.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsBgpNeighborRoutesOut.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(GetDeviceBgpNeighborsBgpNeighborRoutesOut defaults) { @CustomType.Setter public Builder exact(Boolean exact) { - this.exact = Objects.requireNonNull(exact); + if (exact == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighborRoutesOut", "exact"); + } + this.exact = exact; return this; } @CustomType.Setter public Builder route(String route) { - this.route = Objects.requireNonNull(route); + if (route == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsBgpNeighborRoutesOut", "route"); + } + this.route = route; return this; } public GetDeviceBgpNeighborsBgpNeighborRoutesOut build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsResult.java index 202d838e..1a9d31d3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceBgpNeighborsResult.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsBgpNeighbor; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -64,7 +65,10 @@ public Builder(GetDeviceBgpNeighborsResult defaults) { @CustomType.Setter public Builder bgpNeighbors(List bgpNeighbors) { - this.bgpNeighbors = Objects.requireNonNull(bgpNeighbors); + if (bgpNeighbors == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "bgpNeighbors"); + } + this.bgpNeighbors = bgpNeighbors; return this; } public Builder bgpNeighbors(GetDeviceBgpNeighborsBgpNeighbor... bgpNeighbors) { @@ -72,12 +76,18 @@ public Builder bgpNeighbors(GetDeviceBgpNeighborsBgpNeighbor... bgpNeighbors) { } @CustomType.Setter public Builder deviceId(String deviceId) { - this.deviceId = Objects.requireNonNull(deviceId); + if (deviceId == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "deviceId"); + } + this.deviceId = deviceId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "id"); + } + this.id = id; return this; } public GetDeviceBgpNeighborsResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceNetwork.java index 74ae9321..e2727455 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -100,27 +101,42 @@ public Builder(GetDeviceNetwork defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetDeviceNetwork", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder cidr(Integer cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("GetDeviceNetwork", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder family(Integer family) { - this.family = Objects.requireNonNull(family); + if (family == null) { + throw new MissingRequiredPropertyException("GetDeviceNetwork", "family"); + } + this.family = family; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("GetDeviceNetwork", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter("public") public Builder public_(Boolean public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetDeviceNetwork", "public_"); + } + this.public_ = public_; return this; } public GetDeviceNetwork build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicePort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicePort.java index b1030690..0c11552f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicePort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicePort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetDevicePort defaults) { @CustomType.Setter public Builder bonded(Boolean bonded) { - this.bonded = Objects.requireNonNull(bonded); + if (bonded == null) { + throw new MissingRequiredPropertyException("GetDevicePort", "bonded"); + } + this.bonded = bonded; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDevicePort", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mac(String mac) { - this.mac = Objects.requireNonNull(mac); + if (mac == null) { + throw new MissingRequiredPropertyException("GetDevicePort", "mac"); + } + this.mac = mac; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDevicePort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDevicePort", "type"); + } + this.type = type; return this; } public GetDevicePort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceResult.java index a4c727a6..3f092025 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDeviceResult.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.outputs.GetDeviceNetwork; import com.equinix.pulumi.metal.outputs.GetDevicePort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -366,77 +367,122 @@ public Builder(GetDeviceResult defaults) { @CustomType.Setter public Builder accessPrivateIpv4(String accessPrivateIpv4) { - this.accessPrivateIpv4 = Objects.requireNonNull(accessPrivateIpv4); + if (accessPrivateIpv4 == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "accessPrivateIpv4"); + } + this.accessPrivateIpv4 = accessPrivateIpv4; return this; } @CustomType.Setter public Builder accessPublicIpv4(String accessPublicIpv4) { - this.accessPublicIpv4 = Objects.requireNonNull(accessPublicIpv4); + if (accessPublicIpv4 == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "accessPublicIpv4"); + } + this.accessPublicIpv4 = accessPublicIpv4; return this; } @CustomType.Setter public Builder accessPublicIpv6(String accessPublicIpv6) { - this.accessPublicIpv6 = Objects.requireNonNull(accessPublicIpv6); + if (accessPublicIpv6 == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "accessPublicIpv6"); + } + this.accessPublicIpv6 = accessPublicIpv6; return this; } @CustomType.Setter public Builder alwaysPxe(Boolean alwaysPxe) { - this.alwaysPxe = Objects.requireNonNull(alwaysPxe); + if (alwaysPxe == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "alwaysPxe"); + } + this.alwaysPxe = alwaysPxe; return this; } @CustomType.Setter public Builder billingCycle(String billingCycle) { - this.billingCycle = Objects.requireNonNull(billingCycle); + if (billingCycle == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "billingCycle"); + } + this.billingCycle = billingCycle; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder deviceId(String deviceId) { - this.deviceId = Objects.requireNonNull(deviceId); + if (deviceId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "deviceId"); + } + this.deviceId = deviceId; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder hardwareReservationId(String hardwareReservationId) { - this.hardwareReservationId = Objects.requireNonNull(hardwareReservationId); + if (hardwareReservationId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "hardwareReservationId"); + } + this.hardwareReservationId = hardwareReservationId; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipxeScriptUrl(String ipxeScriptUrl) { - this.ipxeScriptUrl = Objects.requireNonNull(ipxeScriptUrl); + if (ipxeScriptUrl == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "ipxeScriptUrl"); + } + this.ipxeScriptUrl = ipxeScriptUrl; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder networkType(String networkType) { - this.networkType = Objects.requireNonNull(networkType); + if (networkType == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "networkType"); + } + this.networkType = networkType; return this; } @CustomType.Setter public Builder networks(List networks) { - this.networks = Objects.requireNonNull(networks); + if (networks == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "networks"); + } + this.networks = networks; return this; } public Builder networks(GetDeviceNetwork... networks) { @@ -444,17 +490,26 @@ public Builder networks(GetDeviceNetwork... networks) { } @CustomType.Setter public Builder operatingSystem(String operatingSystem) { - this.operatingSystem = Objects.requireNonNull(operatingSystem); + if (operatingSystem == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "operatingSystem"); + } + this.operatingSystem = operatingSystem; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder ports(List ports) { - this.ports = Objects.requireNonNull(ports); + if (ports == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "ports"); + } + this.ports = ports; return this; } public Builder ports(GetDevicePort... ports) { @@ -462,22 +517,34 @@ public Builder ports(GetDevicePort... ports) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder rootPassword(String rootPassword) { - this.rootPassword = Objects.requireNonNull(rootPassword); + if (rootPassword == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "rootPassword"); + } + this.rootPassword = rootPassword; return this; } @CustomType.Setter public Builder sosHostname(String sosHostname) { - this.sosHostname = Objects.requireNonNull(sosHostname); + if (sosHostname == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "sosHostname"); + } + this.sosHostname = sosHostname; return this; } @CustomType.Setter public Builder sshKeyIds(List sshKeyIds) { - this.sshKeyIds = Objects.requireNonNull(sshKeyIds); + if (sshKeyIds == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "sshKeyIds"); + } + this.sshKeyIds = sshKeyIds; return this; } public Builder sshKeyIds(String... sshKeyIds) { @@ -485,17 +552,26 @@ public Builder sshKeyIds(String... sshKeyIds) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder storage(String storage) { - this.storage = Objects.requireNonNull(storage); + if (storage == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "storage"); + } + this.storage = storage; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevice.java index 6c04fe62..7e19635b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevice.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.outputs.GetDevicesDeviceNetwork; import com.equinix.pulumi.metal.outputs.GetDevicesDevicePort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -352,72 +353,114 @@ public Builder(GetDevicesDevice defaults) { @CustomType.Setter public Builder accessPrivateIpv4(String accessPrivateIpv4) { - this.accessPrivateIpv4 = Objects.requireNonNull(accessPrivateIpv4); + if (accessPrivateIpv4 == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "accessPrivateIpv4"); + } + this.accessPrivateIpv4 = accessPrivateIpv4; return this; } @CustomType.Setter public Builder accessPublicIpv4(String accessPublicIpv4) { - this.accessPublicIpv4 = Objects.requireNonNull(accessPublicIpv4); + if (accessPublicIpv4 == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "accessPublicIpv4"); + } + this.accessPublicIpv4 = accessPublicIpv4; return this; } @CustomType.Setter public Builder accessPublicIpv6(String accessPublicIpv6) { - this.accessPublicIpv6 = Objects.requireNonNull(accessPublicIpv6); + if (accessPublicIpv6 == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "accessPublicIpv6"); + } + this.accessPublicIpv6 = accessPublicIpv6; return this; } @CustomType.Setter public Builder alwaysPxe(Boolean alwaysPxe) { - this.alwaysPxe = Objects.requireNonNull(alwaysPxe); + if (alwaysPxe == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "alwaysPxe"); + } + this.alwaysPxe = alwaysPxe; return this; } @CustomType.Setter public Builder billingCycle(String billingCycle) { - this.billingCycle = Objects.requireNonNull(billingCycle); + if (billingCycle == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "billingCycle"); + } + this.billingCycle = billingCycle; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder deviceId(String deviceId) { - this.deviceId = Objects.requireNonNull(deviceId); + if (deviceId == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "deviceId"); + } + this.deviceId = deviceId; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder hardwareReservationId(String hardwareReservationId) { - this.hardwareReservationId = Objects.requireNonNull(hardwareReservationId); + if (hardwareReservationId == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "hardwareReservationId"); + } + this.hardwareReservationId = hardwareReservationId; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder ipxeScriptUrl(String ipxeScriptUrl) { - this.ipxeScriptUrl = Objects.requireNonNull(ipxeScriptUrl); + if (ipxeScriptUrl == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "ipxeScriptUrl"); + } + this.ipxeScriptUrl = ipxeScriptUrl; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder networkType(String networkType) { - this.networkType = Objects.requireNonNull(networkType); + if (networkType == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "networkType"); + } + this.networkType = networkType; return this; } @CustomType.Setter public Builder networks(List networks) { - this.networks = Objects.requireNonNull(networks); + if (networks == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "networks"); + } + this.networks = networks; return this; } public Builder networks(GetDevicesDeviceNetwork... networks) { @@ -425,17 +468,26 @@ public Builder networks(GetDevicesDeviceNetwork... networks) { } @CustomType.Setter public Builder operatingSystem(String operatingSystem) { - this.operatingSystem = Objects.requireNonNull(operatingSystem); + if (operatingSystem == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "operatingSystem"); + } + this.operatingSystem = operatingSystem; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder ports(List ports) { - this.ports = Objects.requireNonNull(ports); + if (ports == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "ports"); + } + this.ports = ports; return this; } public Builder ports(GetDevicesDevicePort... ports) { @@ -443,22 +495,34 @@ public Builder ports(GetDevicesDevicePort... ports) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder rootPassword(String rootPassword) { - this.rootPassword = Objects.requireNonNull(rootPassword); + if (rootPassword == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "rootPassword"); + } + this.rootPassword = rootPassword; return this; } @CustomType.Setter public Builder sosHostname(String sosHostname) { - this.sosHostname = Objects.requireNonNull(sosHostname); + if (sosHostname == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "sosHostname"); + } + this.sosHostname = sosHostname; return this; } @CustomType.Setter public Builder sshKeyIds(List sshKeyIds) { - this.sshKeyIds = Objects.requireNonNull(sshKeyIds); + if (sshKeyIds == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "sshKeyIds"); + } + this.sshKeyIds = sshKeyIds; return this; } public Builder sshKeyIds(String... sshKeyIds) { @@ -466,17 +530,26 @@ public Builder sshKeyIds(String... sshKeyIds) { } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder storage(String storage) { - this.storage = Objects.requireNonNull(storage); + if (storage == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "storage"); + } + this.storage = storage; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetDevicesDevice", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDeviceNetwork.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDeviceNetwork.java index 4c6deb37..da1801ec 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDeviceNetwork.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDeviceNetwork.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -100,27 +101,42 @@ public Builder(GetDevicesDeviceNetwork defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetDevicesDeviceNetwork", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder cidr(Integer cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("GetDevicesDeviceNetwork", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder family(Integer family) { - this.family = Objects.requireNonNull(family); + if (family == null) { + throw new MissingRequiredPropertyException("GetDevicesDeviceNetwork", "family"); + } + this.family = family; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("GetDevicesDeviceNetwork", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter("public") public Builder public_(Boolean public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetDevicesDeviceNetwork", "public_"); + } + this.public_ = public_; return this; } public GetDevicesDeviceNetwork build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevicePort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevicePort.java index 2c1a3748..19859565 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevicePort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesDevicePort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetDevicesDevicePort defaults) { @CustomType.Setter public Builder bonded(Boolean bonded) { - this.bonded = Objects.requireNonNull(bonded); + if (bonded == null) { + throw new MissingRequiredPropertyException("GetDevicesDevicePort", "bonded"); + } + this.bonded = bonded; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDevicesDevicePort", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder mac(String mac) { - this.mac = Objects.requireNonNull(mac); + if (mac == null) { + throw new MissingRequiredPropertyException("GetDevicesDevicePort", "mac"); + } + this.mac = mac; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDevicesDevicePort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDevicesDevicePort", "type"); + } + this.type = type; return this; } public GetDevicesDevicePort build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesFilter.java index 13d01058..a2c17fb3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -92,22 +93,30 @@ public Builder(GetDevicesFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder attribute(String attribute) { - this.attribute = Objects.requireNonNull(attribute); + if (attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesFilter", "attribute"); + } + this.attribute = attribute; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetDevicesFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesResult.java index a1831b91..7bd07311 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesResult.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.metal.outputs.GetDevicesFilter; import com.equinix.pulumi.metal.outputs.GetDevicesSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -92,7 +93,10 @@ public Builder(GetDevicesResult defaults) { @CustomType.Setter public Builder devices(List devices) { - this.devices = Objects.requireNonNull(devices); + if (devices == null) { + throw new MissingRequiredPropertyException("GetDevicesResult", "devices"); + } + this.devices = devices; return this; } public Builder devices(GetDevicesDevice... devices) { @@ -100,6 +104,7 @@ public Builder devices(GetDevicesDevice... devices) { } @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -108,26 +113,33 @@ public Builder filters(GetDevicesFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDevicesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder organizationId(@Nullable String organizationId) { + this.organizationId = organizationId; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesSort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesSort.java index 23aeaee5..6e83b0c7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetDevicesSort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetDevicesSort defaults) { @CustomType.Setter public Builder attribute(String attribute) { - this.attribute = Objects.requireNonNull(attribute); + if (attribute == null) { + throw new MissingRequiredPropertyException("GetDevicesSort", "attribute"); + } + this.attribute = attribute; return this; } @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityCapacity.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityCapacity.java index aa58bd8f..385f08c2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityCapacity.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityCapacity.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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,11 +60,15 @@ public Builder(GetFacilityCapacity defaults) { @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetFacilityCapacity", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder quantity(@Nullable Integer quantity) { + this.quantity = quantity; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityResult.java index 933adc49..18735fd1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetFacilityResult.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.outputs.GetFacilityCapacity; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -105,6 +106,7 @@ public Builder(GetFacilityResult defaults) { @CustomType.Setter public Builder capacities(@Nullable List capacities) { + this.capacities = capacities; return this; } @@ -113,12 +115,18 @@ public Builder capacities(GetFacilityCapacity... capacities) { } @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetFacilityResult", "code"); + } + this.code = code; return this; } @CustomType.Setter public Builder features(List features) { - this.features = Objects.requireNonNull(features); + if (features == null) { + throw new MissingRequiredPropertyException("GetFacilityResult", "features"); + } + this.features = features; return this; } public Builder features(String... features) { @@ -126,6 +134,7 @@ public Builder features(String... features) { } @CustomType.Setter public Builder featuresRequireds(@Nullable List featuresRequireds) { + this.featuresRequireds = featuresRequireds; return this; } @@ -134,17 +143,26 @@ public Builder featuresRequireds(String... featuresRequireds) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetFacilityResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetFacilityResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetFacilityResult", "name"); + } + this.name = name; return this; } public GetFacilityResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetGatewayResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetGatewayResult.java index 16b23618..5c7bbe8b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetGatewayResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetGatewayResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -125,42 +126,66 @@ public Builder(GetGatewayResult defaults) { @CustomType.Setter public Builder gatewayId(String gatewayId) { - this.gatewayId = Objects.requireNonNull(gatewayId); + if (gatewayId == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "gatewayId"); + } + this.gatewayId = gatewayId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipReservationId(String ipReservationId) { - this.ipReservationId = Objects.requireNonNull(ipReservationId); + if (ipReservationId == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "ipReservationId"); + } + this.ipReservationId = ipReservationId; return this; } @CustomType.Setter public Builder privateIpv4SubnetSize(Integer privateIpv4SubnetSize) { - this.privateIpv4SubnetSize = Objects.requireNonNull(privateIpv4SubnetSize); + if (privateIpv4SubnetSize == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "privateIpv4SubnetSize"); + } + this.privateIpv4SubnetSize = privateIpv4SubnetSize; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder vlanId(String vlanId) { - this.vlanId = Objects.requireNonNull(vlanId); + if (vlanId == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "vlanId"); + } + this.vlanId = vlanId; return this; } @CustomType.Setter public Builder vrfId(String vrfId) { - this.vrfId = Objects.requireNonNull(vrfId); + if (vrfId == null) { + throw new MissingRequiredPropertyException("GetGatewayResult", "vrfId"); + } + this.vrfId = vrfId; return this; } public GetGatewayResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetHardwareReservationResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetHardwareReservationResult.java index 77075633..799f35fc 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetHardwareReservationResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetHardwareReservationResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -163,47 +164,74 @@ public Builder(GetHardwareReservationResult defaults) { @CustomType.Setter public Builder deviceId(String deviceId) { - this.deviceId = Objects.requireNonNull(deviceId); + if (deviceId == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "deviceId"); + } + this.deviceId = deviceId; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder provisionable(Boolean provisionable) { - this.provisionable = Objects.requireNonNull(provisionable); + if (provisionable == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "provisionable"); + } + this.provisionable = provisionable; return this; } @CustomType.Setter public Builder shortId(String shortId) { - this.shortId = Objects.requireNonNull(shortId); + if (shortId == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "shortId"); + } + this.shortId = shortId; return this; } @CustomType.Setter public Builder spare(Boolean spare) { - this.spare = Objects.requireNonNull(spare); + if (spare == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "spare"); + } + this.spare = spare; return this; } @CustomType.Setter public Builder switchUuid(String switchUuid) { - this.switchUuid = Objects.requireNonNull(switchUuid); + if (switchUuid == null) { + throw new MissingRequiredPropertyException("GetHardwareReservationResult", "switchUuid"); + } + this.switchUuid = switchUuid; return this; } public GetHardwareReservationResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionPort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionPort.java index b0442ce2..2194c2e2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionPort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -128,37 +129,58 @@ public Builder(GetInterconnectionPort defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder linkStatus(String linkStatus) { - this.linkStatus = Objects.requireNonNull(linkStatus); + if (linkStatus == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "linkStatus"); + } + this.linkStatus = linkStatus; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "role"); + } + this.role = role; return this; } @CustomType.Setter public Builder speed(Integer speed) { - this.speed = Objects.requireNonNull(speed); + if (speed == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "speed"); + } + this.speed = speed; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder virtualCircuitIds(List virtualCircuitIds) { - this.virtualCircuitIds = Objects.requireNonNull(virtualCircuitIds); + if (virtualCircuitIds == null) { + throw new MissingRequiredPropertyException("GetInterconnectionPort", "virtualCircuitIds"); + } + this.virtualCircuitIds = virtualCircuitIds; return this; } public Builder virtualCircuitIds(String... virtualCircuitIds) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionResult.java index 2fc58b44..827cd9d2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionResult.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.metal.outputs.GetInterconnectionPort; import com.equinix.pulumi.metal.outputs.GetInterconnectionServiceToken; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -332,57 +333,90 @@ public Builder(GetInterconnectionResult defaults) { @CustomType.Setter public Builder authorizationCode(String authorizationCode) { - this.authorizationCode = Objects.requireNonNull(authorizationCode); + if (authorizationCode == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "authorizationCode"); + } + this.authorizationCode = authorizationCode; return this; } @CustomType.Setter public Builder connectionId(String connectionId) { - this.connectionId = Objects.requireNonNull(connectionId); + if (connectionId == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "connectionId"); + } + this.connectionId = connectionId; return this; } @CustomType.Setter public Builder contactEmail(String contactEmail) { - this.contactEmail = Objects.requireNonNull(contactEmail); + if (contactEmail == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "contactEmail"); + } + this.contactEmail = contactEmail; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder mode(String mode) { - this.mode = Objects.requireNonNull(mode); + if (mode == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "mode"); + } + this.mode = mode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder organizationId(String organizationId) { - this.organizationId = Objects.requireNonNull(organizationId); + if (organizationId == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "organizationId"); + } + this.organizationId = organizationId; return this; } @CustomType.Setter public Builder ports(List ports) { - this.ports = Objects.requireNonNull(ports); + if (ports == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "ports"); + } + this.ports = ports; return this; } public Builder ports(GetInterconnectionPort... ports) { @@ -390,22 +424,34 @@ public Builder ports(GetInterconnectionPort... ports) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder redundancy(String redundancy) { - this.redundancy = Objects.requireNonNull(redundancy); + if (redundancy == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "redundancy"); + } + this.redundancy = redundancy; return this; } @CustomType.Setter public Builder serviceTokenType(String serviceTokenType) { - this.serviceTokenType = Objects.requireNonNull(serviceTokenType); + if (serviceTokenType == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "serviceTokenType"); + } + this.serviceTokenType = serviceTokenType; return this; } @CustomType.Setter public Builder serviceTokens(List serviceTokens) { - this.serviceTokens = Objects.requireNonNull(serviceTokens); + if (serviceTokens == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "serviceTokens"); + } + this.serviceTokens = serviceTokens; return this; } public Builder serviceTokens(GetInterconnectionServiceToken... serviceTokens) { @@ -413,17 +459,26 @@ public Builder serviceTokens(GetInterconnectionServiceToken... serviceTokens) { } @CustomType.Setter public Builder speed(String speed) { - this.speed = Objects.requireNonNull(speed); + if (speed == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "speed"); + } + this.speed = speed; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -431,17 +486,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder vlans(List vlans) { - this.vlans = Objects.requireNonNull(vlans); + if (vlans == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "vlans"); + } + this.vlans = vlans; return this; } public Builder vlans(Integer... vlans) { @@ -449,7 +513,10 @@ public Builder vlans(Integer... vlans) { } @CustomType.Setter public Builder vrfs(List vrfs) { - this.vrfs = Objects.requireNonNull(vrfs); + if (vrfs == null) { + throw new MissingRequiredPropertyException("GetInterconnectionResult", "vrfs"); + } + this.vrfs = vrfs; return this; } public Builder vrfs(String... vrfs) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionServiceToken.java index e46df6f4..aafd48da 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetInterconnectionServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -104,32 +105,50 @@ public Builder(GetInterconnectionServiceToken defaults) { @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder maxAllowedSpeed(String maxAllowedSpeed) { - this.maxAllowedSpeed = Objects.requireNonNull(maxAllowedSpeed); + if (maxAllowedSpeed == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "maxAllowedSpeed"); + } + this.maxAllowedSpeed = maxAllowedSpeed; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "role"); + } + this.role = role; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetInterconnectionServiceToken", "type"); + } + this.type = type; return this; } public GetInterconnectionServiceToken build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetIpBlockRangesResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetIpBlockRangesResult.java index 50da27c8..5966b3e1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetIpBlockRangesResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetIpBlockRangesResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -131,12 +132,16 @@ public Builder(GetIpBlockRangesResult defaults) { @CustomType.Setter public Builder facility(@Nullable String facility) { + this.facility = facility; return this; } @CustomType.Setter public Builder globalIpv4s(List globalIpv4s) { - this.globalIpv4s = Objects.requireNonNull(globalIpv4s); + if (globalIpv4s == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "globalIpv4s"); + } + this.globalIpv4s = globalIpv4s; return this; } public Builder globalIpv4s(String... globalIpv4s) { @@ -144,12 +149,18 @@ public Builder globalIpv4s(String... globalIpv4s) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipv6s(List ipv6s) { - this.ipv6s = Objects.requireNonNull(ipv6s); + if (ipv6s == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "ipv6s"); + } + this.ipv6s = ipv6s; return this; } public Builder ipv6s(String... ipv6s) { @@ -157,12 +168,16 @@ public Builder ipv6s(String... ipv6s) { } @CustomType.Setter public Builder metro(@Nullable String metro) { + this.metro = metro; return this; } @CustomType.Setter public Builder privateIpv4s(List privateIpv4s) { - this.privateIpv4s = Objects.requireNonNull(privateIpv4s); + if (privateIpv4s == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "privateIpv4s"); + } + this.privateIpv4s = privateIpv4s; return this; } public Builder privateIpv4s(String... privateIpv4s) { @@ -170,12 +185,18 @@ public Builder privateIpv4s(String... privateIpv4s) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder publicIpv4s(List publicIpv4s) { - this.publicIpv4s = Objects.requireNonNull(publicIpv4s); + if (publicIpv4s == null) { + throw new MissingRequiredPropertyException("GetIpBlockRangesResult", "publicIpv4s"); + } + this.publicIpv4s = publicIpv4s; return this; } public Builder publicIpv4s(String... publicIpv4s) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroCapacity.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroCapacity.java index 8701c317..489323a7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroCapacity.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroCapacity.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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,11 +60,15 @@ public Builder(GetMetroCapacity defaults) { @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetMetroCapacity", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder quantity(@Nullable Integer quantity) { + this.quantity = quantity; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroResult.java index ce7cf1aa..473a58e2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetMetroResult.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.outputs.GetMetroCapacity; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -85,6 +86,7 @@ public Builder(GetMetroResult defaults) { @CustomType.Setter public Builder capacities(@Nullable List capacities) { + this.capacities = capacities; return this; } @@ -93,22 +95,34 @@ public Builder capacities(GetMetroCapacity... capacities) { } @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetMetroResult", "code"); + } + this.code = code; return this; } @CustomType.Setter public Builder country(String country) { - this.country = Objects.requireNonNull(country); + if (country == null) { + throw new MissingRequiredPropertyException("GetMetroResult", "country"); + } + this.country = country; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetMetroResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetMetroResult", "name"); + } + this.name = name; return this; } public GetMetroResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOperatingSystemResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOperatingSystemResult.java index beb6557f..b61855a8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOperatingSystemResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOperatingSystemResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -82,31 +83,41 @@ public Builder(GetOperatingSystemResult defaults) { @CustomType.Setter public Builder distro(@Nullable String distro) { + this.distro = distro; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOperatingSystemResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder provisionableOn(@Nullable String provisionableOn) { + this.provisionableOn = provisionableOn; return this; } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetOperatingSystemResult", "slug"); + } + this.slug = slug; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationAddress.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationAddress.java index bbbb3d8f..cd39d3c6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationAddress.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationAddress.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -98,27 +99,42 @@ public Builder(GetOrganizationAddress defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetOrganizationAddress", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder city(String city) { - this.city = Objects.requireNonNull(city); + if (city == null) { + throw new MissingRequiredPropertyException("GetOrganizationAddress", "city"); + } + this.city = city; return this; } @CustomType.Setter public Builder country(String country) { - this.country = Objects.requireNonNull(country); + if (country == null) { + throw new MissingRequiredPropertyException("GetOrganizationAddress", "country"); + } + this.country = country; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetOrganizationAddress", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder zipCode(String zipCode) { - this.zipCode = Objects.requireNonNull(zipCode); + if (zipCode == null) { + throw new MissingRequiredPropertyException("GetOrganizationAddress", "zipCode"); + } + this.zipCode = zipCode; return this; } public GetOrganizationAddress build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationResult.java index 816b214c..f65d6ca1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetOrganizationResult.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.outputs.GetOrganizationAddress; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -134,37 +135,56 @@ public Builder(GetOrganizationResult defaults) { @CustomType.Setter public Builder address(GetOrganizationAddress address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder logo(String logo) { - this.logo = Objects.requireNonNull(logo); + if (logo == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "logo"); + } + this.logo = logo; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder organizationId(String organizationId) { - this.organizationId = Objects.requireNonNull(organizationId); + if (organizationId == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "organizationId"); + } + this.organizationId = organizationId; return this; } @CustomType.Setter public Builder projectIds(List projectIds) { - this.projectIds = Objects.requireNonNull(projectIds); + if (projectIds == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "projectIds"); + } + this.projectIds = projectIds; return this; } public Builder projectIds(String... projectIds) { @@ -172,12 +192,18 @@ public Builder projectIds(String... projectIds) { } @CustomType.Setter public Builder twitter(String twitter) { - this.twitter = Objects.requireNonNull(twitter); + if (twitter == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "twitter"); + } + this.twitter = twitter; return this; } @CustomType.Setter public Builder website(String website) { - this.website = Objects.requireNonNull(website); + if (website == null) { + throw new MissingRequiredPropertyException("GetOrganizationResult", "website"); + } + this.website = website; return this; } public GetOrganizationResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansFilter.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansFilter.java index 0179bd63..397b9240 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansFilter.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansFilter.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -92,22 +93,30 @@ public Builder(GetPlansFilter defaults) { @CustomType.Setter public Builder all(@Nullable Boolean all) { + this.all = all; return this; } @CustomType.Setter public Builder attribute(String attribute) { - this.attribute = Objects.requireNonNull(attribute); + if (attribute == null) { + throw new MissingRequiredPropertyException("GetPlansFilter", "attribute"); + } + this.attribute = attribute; return this; } @CustomType.Setter public Builder matchBy(@Nullable String matchBy) { + this.matchBy = matchBy; return this; } @CustomType.Setter public Builder values(List values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetPlansFilter", "values"); + } + this.values = values; return this; } public Builder values(String... values) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansPlan.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansPlan.java index 181b42fc..3fb1f71d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansPlan.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansPlan.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Double; import java.lang.String; @@ -207,7 +208,10 @@ public Builder(GetPlansPlan defaults) { @CustomType.Setter public Builder availableInMetros(List availableInMetros) { - this.availableInMetros = Objects.requireNonNull(availableInMetros); + if (availableInMetros == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "availableInMetros"); + } + this.availableInMetros = availableInMetros; return this; } public Builder availableInMetros(String... availableInMetros) { @@ -215,7 +219,10 @@ public Builder availableInMetros(String... availableInMetros) { } @CustomType.Setter public Builder availableIns(List availableIns) { - this.availableIns = Objects.requireNonNull(availableIns); + if (availableIns == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "availableIns"); + } + this.availableIns = availableIns; return this; } public Builder availableIns(String... availableIns) { @@ -223,12 +230,18 @@ public Builder availableIns(String... availableIns) { } @CustomType.Setter("class") public Builder class_(String class_) { - this.class_ = Objects.requireNonNull(class_); + if (class_ == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "class_"); + } + this.class_ = class_; return this; } @CustomType.Setter public Builder deploymentTypes(List deploymentTypes) { - this.deploymentTypes = Objects.requireNonNull(deploymentTypes); + if (deploymentTypes == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "deploymentTypes"); + } + this.deploymentTypes = deploymentTypes; return this; } public Builder deploymentTypes(String... deploymentTypes) { @@ -236,42 +249,66 @@ public Builder deploymentTypes(String... deploymentTypes) { } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder legacy(Boolean legacy) { - this.legacy = Objects.requireNonNull(legacy); + if (legacy == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "legacy"); + } + this.legacy = legacy; return this; } @CustomType.Setter public Builder line(String line) { - this.line = Objects.requireNonNull(line); + if (line == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "line"); + } + this.line = line; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder pricingHour(Double pricingHour) { - this.pricingHour = Objects.requireNonNull(pricingHour); + if (pricingHour == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "pricingHour"); + } + this.pricingHour = pricingHour; return this; } @CustomType.Setter public Builder pricingMonth(Double pricingMonth) { - this.pricingMonth = Objects.requireNonNull(pricingMonth); + if (pricingMonth == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "pricingMonth"); + } + this.pricingMonth = pricingMonth; return this; } @CustomType.Setter public Builder slug(String slug) { - this.slug = Objects.requireNonNull(slug); + if (slug == null) { + throw new MissingRequiredPropertyException("GetPlansPlan", "slug"); + } + this.slug = slug; return this; } public GetPlansPlan build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansResult.java index 91a0f1e9..a23c34b5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansResult.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.metal.outputs.GetPlansPlan; import com.equinix.pulumi.metal.outputs.GetPlansSort; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -65,6 +66,7 @@ public Builder(GetPlansResult defaults) { @CustomType.Setter public Builder filters(@Nullable List filters) { + this.filters = filters; return this; } @@ -73,12 +75,18 @@ public Builder filters(GetPlansFilter... filters) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPlansResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder plans(List plans) { - this.plans = Objects.requireNonNull(plans); + if (plans == null) { + throw new MissingRequiredPropertyException("GetPlansResult", "plans"); + } + this.plans = plans; return this; } public Builder plans(GetPlansPlan... plans) { @@ -86,6 +94,7 @@ public Builder plans(GetPlansPlan... plans) { } @CustomType.Setter public Builder sorts(@Nullable List sorts) { + this.sorts = sorts; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansSort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansSort.java index e351bde3..90f39393 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansSort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPlansSort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(GetPlansSort defaults) { @CustomType.Setter public Builder attribute(String attribute) { - this.attribute = Objects.requireNonNull(attribute); + if (attribute == null) { + throw new MissingRequiredPropertyException("GetPlansSort", "attribute"); + } + this.attribute = attribute; return this; } @CustomType.Setter public Builder direction(@Nullable String direction) { + this.direction = direction; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPortResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPortResult.java index e2821ff0..4677effd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPortResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPortResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -211,72 +212,110 @@ public Builder(GetPortResult defaults) { @CustomType.Setter public Builder bondId(String bondId) { - this.bondId = Objects.requireNonNull(bondId); + if (bondId == null) { + throw new MissingRequiredPropertyException("GetPortResult", "bondId"); + } + this.bondId = bondId; return this; } @CustomType.Setter public Builder bondName(String bondName) { - this.bondName = Objects.requireNonNull(bondName); + if (bondName == null) { + throw new MissingRequiredPropertyException("GetPortResult", "bondName"); + } + this.bondName = bondName; return this; } @CustomType.Setter public Builder bonded(Boolean bonded) { - this.bonded = Objects.requireNonNull(bonded); + if (bonded == null) { + throw new MissingRequiredPropertyException("GetPortResult", "bonded"); + } + this.bonded = bonded; return this; } @CustomType.Setter public Builder deviceId(@Nullable String deviceId) { + this.deviceId = deviceId; return this; } @CustomType.Setter public Builder disbondSupported(Boolean disbondSupported) { - this.disbondSupported = Objects.requireNonNull(disbondSupported); + if (disbondSupported == null) { + throw new MissingRequiredPropertyException("GetPortResult", "disbondSupported"); + } + this.disbondSupported = disbondSupported; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPortResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder layer2(Boolean layer2) { - this.layer2 = Objects.requireNonNull(layer2); + if (layer2 == null) { + throw new MissingRequiredPropertyException("GetPortResult", "layer2"); + } + this.layer2 = layer2; return this; } @CustomType.Setter public Builder mac(String mac) { - this.mac = Objects.requireNonNull(mac); + if (mac == null) { + throw new MissingRequiredPropertyException("GetPortResult", "mac"); + } + this.mac = mac; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPortResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nativeVlanId(String nativeVlanId) { - this.nativeVlanId = Objects.requireNonNull(nativeVlanId); + if (nativeVlanId == null) { + throw new MissingRequiredPropertyException("GetPortResult", "nativeVlanId"); + } + this.nativeVlanId = nativeVlanId; return this; } @CustomType.Setter public Builder networkType(String networkType) { - this.networkType = Objects.requireNonNull(networkType); + if (networkType == null) { + throw new MissingRequiredPropertyException("GetPortResult", "networkType"); + } + this.networkType = networkType; return this; } @CustomType.Setter public Builder portId(@Nullable String portId) { + this.portId = portId; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPortResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder vlanIds(List vlanIds) { - this.vlanIds = Objects.requireNonNull(vlanIds); + if (vlanIds == null) { + throw new MissingRequiredPropertyException("GetPortResult", "vlanIds"); + } + this.vlanIds = vlanIds; return this; } public Builder vlanIds(String... vlanIds) { @@ -284,7 +323,10 @@ public Builder vlanIds(String... vlanIds) { } @CustomType.Setter public Builder vxlanIds(List vxlanIds) { - this.vxlanIds = Objects.requireNonNull(vxlanIds); + if (vxlanIds == null) { + throw new MissingRequiredPropertyException("GetPortResult", "vxlanIds"); + } + this.vxlanIds = vxlanIds; return this; } public Builder vxlanIds(Integer... vxlanIds) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPrecreatedIpBlockResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPrecreatedIpBlockResult.java index cd86cc01..e4ea7ab2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPrecreatedIpBlockResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetPrecreatedIpBlockResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.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,92 +157,140 @@ public Builder(GetPrecreatedIpBlockResult defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder addressFamily(Integer addressFamily) { - this.addressFamily = Objects.requireNonNull(addressFamily); + if (addressFamily == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "addressFamily"); + } + this.addressFamily = addressFamily; return this; } @CustomType.Setter public Builder cidr(Integer cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder cidrNotation(String cidrNotation) { - this.cidrNotation = Objects.requireNonNull(cidrNotation); + if (cidrNotation == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "cidrNotation"); + } + this.cidrNotation = cidrNotation; return this; } @CustomType.Setter public Builder facility(@Nullable String facility) { + this.facility = facility; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter public Builder global(@Nullable Boolean global) { + this.global = global; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder manageable(Boolean manageable) { - this.manageable = Objects.requireNonNull(manageable); + if (manageable == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "manageable"); + } + this.manageable = manageable; return this; } @CustomType.Setter public Builder management(Boolean management) { - this.management = Objects.requireNonNull(management); + if (management == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "management"); + } + this.management = management; return this; } @CustomType.Setter public Builder metro(@Nullable String metro) { + this.metro = metro; return this; } @CustomType.Setter public Builder netmask(String netmask) { - this.netmask = Objects.requireNonNull(netmask); + if (netmask == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "netmask"); + } + this.netmask = netmask; return this; } @CustomType.Setter public Builder network(String network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter("public") public Builder public_(Boolean public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "public_"); + } + this.public_ = public_; return this; } @CustomType.Setter public Builder quantity(Integer quantity) { - this.quantity = Objects.requireNonNull(quantity); + if (quantity == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "quantity"); + } + this.quantity = quantity; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder vrfId(String vrfId) { - this.vrfId = Objects.requireNonNull(vrfId); + if (vrfId == null) { + throw new MissingRequiredPropertyException("GetPrecreatedIpBlockResult", "vrfId"); + } + this.vrfId = vrfId; return this; } public GetPrecreatedIpBlockResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectBgpConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectBgpConfig.java index 864d9236..82c6d92b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectBgpConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectBgpConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -99,27 +100,42 @@ public Builder(GetProjectBgpConfig defaults) { @CustomType.Setter public Builder asn(Integer asn) { - this.asn = Objects.requireNonNull(asn); + if (asn == null) { + throw new MissingRequiredPropertyException("GetProjectBgpConfig", "asn"); + } + this.asn = asn; return this; } @CustomType.Setter public Builder deploymentType(String deploymentType) { - this.deploymentType = Objects.requireNonNull(deploymentType); + if (deploymentType == null) { + throw new MissingRequiredPropertyException("GetProjectBgpConfig", "deploymentType"); + } + this.deploymentType = deploymentType; return this; } @CustomType.Setter public Builder maxPrefix(Integer maxPrefix) { - this.maxPrefix = Objects.requireNonNull(maxPrefix); + if (maxPrefix == null) { + throw new MissingRequiredPropertyException("GetProjectBgpConfig", "maxPrefix"); + } + this.maxPrefix = maxPrefix; return this; } @CustomType.Setter public Builder md5(String md5) { - this.md5 = Objects.requireNonNull(md5); + if (md5 == null) { + throw new MissingRequiredPropertyException("GetProjectBgpConfig", "md5"); + } + this.md5 = md5; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetProjectBgpConfig", "status"); + } + this.status = status; return this; } public GetProjectBgpConfig build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectResult.java index 09e92035..a27b2f9c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectResult.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.metal.outputs.GetProjectBgpConfig; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -147,52 +148,82 @@ public Builder(GetProjectResult defaults) { @CustomType.Setter public Builder backendTransfer(Boolean backendTransfer) { - this.backendTransfer = Objects.requireNonNull(backendTransfer); + if (backendTransfer == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "backendTransfer"); + } + this.backendTransfer = backendTransfer; return this; } @CustomType.Setter public Builder bgpConfig(GetProjectBgpConfig bgpConfig) { - this.bgpConfig = Objects.requireNonNull(bgpConfig); + if (bgpConfig == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "bgpConfig"); + } + this.bgpConfig = bgpConfig; return this; } @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder 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 organizationId(String organizationId) { - this.organizationId = Objects.requireNonNull(organizationId); + if (organizationId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "organizationId"); + } + this.organizationId = organizationId; return this; } @CustomType.Setter public Builder paymentMethodId(String paymentMethodId) { - this.paymentMethodId = Objects.requireNonNull(paymentMethodId); + if (paymentMethodId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "paymentMethodId"); + } + this.paymentMethodId = paymentMethodId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder updated(String updated) { - this.updated = Objects.requireNonNull(updated); + if (updated == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "updated"); + } + this.updated = updated; return this; } @CustomType.Setter public Builder userIds(List userIds) { - this.userIds = Objects.requireNonNull(userIds); + if (userIds == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "userIds"); + } + this.userIds = userIds; return this; } public Builder userIds(String... userIds) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectSshKeyResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectSshKeyResult.java index 96d292e0..7f251304 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectSshKeyResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetProjectSshKeyResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -148,47 +149,72 @@ public Builder(GetProjectSshKeyResult defaults) { @CustomType.Setter public Builder created(String created) { - this.created = Objects.requireNonNull(created); + if (created == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "created"); + } + this.created = created; return this; } @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder ownerId(String ownerId) { - this.ownerId = Objects.requireNonNull(ownerId); + if (ownerId == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "ownerId"); + } + this.ownerId = ownerId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder publicKey(String publicKey) { - this.publicKey = Objects.requireNonNull(publicKey); + if (publicKey == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "publicKey"); + } + this.publicKey = publicKey; return this; } @CustomType.Setter public Builder search(@Nullable String search) { + this.search = search; return this; } @CustomType.Setter public Builder updated(String updated) { - this.updated = Objects.requireNonNull(updated); + if (updated == null) { + throw new MissingRequiredPropertyException("GetProjectSshKeyResult", "updated"); + } + this.updated = updated; return this; } public GetProjectSshKeyResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetReservedIpBlockResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetReservedIpBlockResult.java index d7f94e98..00cb66f8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetReservedIpBlockResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetReservedIpBlockResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -166,97 +167,152 @@ public Builder(GetReservedIpBlockResult defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder addressFamily(Integer addressFamily) { - this.addressFamily = Objects.requireNonNull(addressFamily); + if (addressFamily == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "addressFamily"); + } + this.addressFamily = addressFamily; return this; } @CustomType.Setter public Builder cidr(Integer cidr) { - this.cidr = Objects.requireNonNull(cidr); + if (cidr == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "cidr"); + } + this.cidr = cidr; return this; } @CustomType.Setter public Builder cidrNotation(String cidrNotation) { - this.cidrNotation = Objects.requireNonNull(cidrNotation); + if (cidrNotation == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "cidrNotation"); + } + this.cidrNotation = cidrNotation; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder gateway(String gateway) { - this.gateway = Objects.requireNonNull(gateway); + if (gateway == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "gateway"); + } + this.gateway = gateway; return this; } @CustomType.Setter public Builder global(Boolean global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder manageable(Boolean manageable) { - this.manageable = Objects.requireNonNull(manageable); + if (manageable == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "manageable"); + } + this.manageable = manageable; return this; } @CustomType.Setter public Builder management(Boolean management) { - this.management = Objects.requireNonNull(management); + if (management == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "management"); + } + this.management = management; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder netmask(String netmask) { - this.netmask = Objects.requireNonNull(netmask); + if (netmask == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "netmask"); + } + this.netmask = netmask; return this; } @CustomType.Setter public Builder network(String network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter("public") public Builder public_(Boolean public_) { - this.public_ = Objects.requireNonNull(public_); + if (public_ == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "public_"); + } + this.public_ = public_; return this; } @CustomType.Setter public Builder quantity(Integer quantity) { - this.quantity = Objects.requireNonNull(quantity); + if (quantity == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "quantity"); + } + this.quantity = quantity; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "type"); + } + this.type = type; return this; } @CustomType.Setter public Builder vrfId(Integer vrfId) { - this.vrfId = Objects.requireNonNull(vrfId); + if (vrfId == null) { + throw new MissingRequiredPropertyException("GetReservedIpBlockResult", "vrfId"); + } + this.vrfId = vrfId; return this; } public GetReservedIpBlockResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketPriceResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketPriceResult.java index f2b085be..dc914e18 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketPriceResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketPriceResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -89,27 +90,38 @@ public Builder(GetSpotMarketPriceResult defaults) { @CustomType.Setter public Builder facility(@Nullable String facility) { + this.facility = facility; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpotMarketPriceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metro(@Nullable String metro) { + this.metro = metro; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetSpotMarketPriceResult", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder price(Double price) { - this.price = Objects.requireNonNull(price); + if (price == null) { + throw new MissingRequiredPropertyException("GetSpotMarketPriceResult", "price"); + } + this.price = price; return this; } public GetSpotMarketPriceResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketRequestResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketRequestResult.java index 80e133f8..baec2bf3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketRequestResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetSpotMarketRequestResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.Integer; import java.lang.String; @@ -185,7 +186,10 @@ public Builder(GetSpotMarketRequestResult defaults) { @CustomType.Setter public Builder deviceIds(List deviceIds) { - this.deviceIds = Objects.requireNonNull(deviceIds); + if (deviceIds == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "deviceIds"); + } + this.deviceIds = deviceIds; return this; } public Builder deviceIds(String... deviceIds) { @@ -193,22 +197,34 @@ public Builder deviceIds(String... deviceIds) { } @CustomType.Setter public Builder devicesMax(Integer devicesMax) { - this.devicesMax = Objects.requireNonNull(devicesMax); + if (devicesMax == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "devicesMax"); + } + this.devicesMax = devicesMax; return this; } @CustomType.Setter public Builder devicesMin(Integer devicesMin) { - this.devicesMin = Objects.requireNonNull(devicesMin); + if (devicesMin == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "devicesMin"); + } + this.devicesMin = devicesMin; return this; } @CustomType.Setter public Builder endAt(String endAt) { - this.endAt = Objects.requireNonNull(endAt); + if (endAt == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "endAt"); + } + this.endAt = endAt; return this; } @CustomType.Setter public Builder facilities(List facilities) { - this.facilities = Objects.requireNonNull(facilities); + if (facilities == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "facilities"); + } + this.facilities = facilities; return this; } public Builder facilities(String... facilities) { @@ -216,32 +232,50 @@ public Builder facilities(String... facilities) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder maxBidPrice(Double maxBidPrice) { - this.maxBidPrice = Objects.requireNonNull(maxBidPrice); + if (maxBidPrice == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "maxBidPrice"); + } + this.maxBidPrice = maxBidPrice; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder requestId(String requestId) { - this.requestId = Objects.requireNonNull(requestId); + if (requestId == null) { + throw new MissingRequiredPropertyException("GetSpotMarketRequestResult", "requestId"); + } + this.requestId = requestId; return this; } public GetSpotMarketRequestResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVirtualCircuitResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVirtualCircuitResult.java index e986b394..9bedd9d6 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVirtualCircuitResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVirtualCircuitResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -282,82 +283,130 @@ public Builder(GetVirtualCircuitResult defaults) { @CustomType.Setter public Builder connectionId(String connectionId) { - this.connectionId = Objects.requireNonNull(connectionId); + if (connectionId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "connectionId"); + } + this.connectionId = connectionId; return this; } @CustomType.Setter public Builder customerIp(String customerIp) { - this.customerIp = Objects.requireNonNull(customerIp); + if (customerIp == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "customerIp"); + } + this.customerIp = customerIp; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder md5(String md5) { - this.md5 = Objects.requireNonNull(md5); + if (md5 == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "md5"); + } + this.md5 = md5; return this; } @CustomType.Setter public Builder metalIp(String metalIp) { - this.metalIp = Objects.requireNonNull(metalIp); + if (metalIp == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "metalIp"); + } + this.metalIp = metalIp; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nniVlan(Integer nniVlan) { - this.nniVlan = Objects.requireNonNull(nniVlan); + if (nniVlan == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "nniVlan"); + } + this.nniVlan = nniVlan; return this; } @CustomType.Setter public Builder nniVnid(Integer nniVnid) { - this.nniVnid = Objects.requireNonNull(nniVnid); + if (nniVnid == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "nniVnid"); + } + this.nniVnid = nniVnid; return this; } @CustomType.Setter public Builder peerAsn(Integer peerAsn) { - this.peerAsn = Objects.requireNonNull(peerAsn); + if (peerAsn == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "peerAsn"); + } + this.peerAsn = peerAsn; return this; } @CustomType.Setter public Builder portId(String portId) { - this.portId = Objects.requireNonNull(portId); + if (portId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "portId"); + } + this.portId = portId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder speed(String speed) { - this.speed = Objects.requireNonNull(speed); + if (speed == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "speed"); + } + this.speed = speed; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder subnet(String subnet) { - this.subnet = Objects.requireNonNull(subnet); + if (subnet == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "subnet"); + } + this.subnet = subnet; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -365,22 +414,34 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder virtualCircuitId(String virtualCircuitId) { - this.virtualCircuitId = Objects.requireNonNull(virtualCircuitId); + if (virtualCircuitId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "virtualCircuitId"); + } + this.virtualCircuitId = virtualCircuitId; return this; } @CustomType.Setter public Builder vlanId(String vlanId) { - this.vlanId = Objects.requireNonNull(vlanId); + if (vlanId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "vlanId"); + } + this.vlanId = vlanId; return this; } @CustomType.Setter public Builder vnid(Integer vnid) { - this.vnid = Objects.requireNonNull(vnid); + if (vnid == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "vnid"); + } + this.vnid = vnid; return this; } @CustomType.Setter public Builder vrfId(String vrfId) { - this.vrfId = Objects.requireNonNull(vrfId); + if (vrfId == null) { + throw new MissingRequiredPropertyException("GetVirtualCircuitResult", "vrfId"); + } + this.vrfId = vrfId; return this; } public GetVirtualCircuitResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVlanResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVlanResult.java index f55986df..f8219740 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVlanResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVlanResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -106,7 +107,10 @@ public Builder(GetVlanResult defaults) { @CustomType.Setter public Builder assignedDevicesIds(List assignedDevicesIds) { - this.assignedDevicesIds = Objects.requireNonNull(assignedDevicesIds); + if (assignedDevicesIds == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "assignedDevicesIds"); + } + this.assignedDevicesIds = assignedDevicesIds; return this; } public Builder assignedDevicesIds(String... assignedDevicesIds) { @@ -114,37 +118,58 @@ public Builder assignedDevicesIds(String... assignedDevicesIds) { } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder facility(String facility) { - this.facility = Objects.requireNonNull(facility); + if (facility == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "facility"); + } + this.facility = facility; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder vlanId(String vlanId) { - this.vlanId = Objects.requireNonNull(vlanId); + if (vlanId == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "vlanId"); + } + this.vlanId = vlanId; return this; } @CustomType.Setter public Builder vxlan(Integer vxlan) { - this.vxlan = Objects.requireNonNull(vxlan); + if (vxlan == null) { + throw new MissingRequiredPropertyException("GetVlanResult", "vxlan"); + } + this.vxlan = vxlan; return this; } public GetVlanResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVrfResult.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVrfResult.java index 7ba702de..54e973b8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVrfResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/GetVrfResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -134,17 +135,26 @@ public Builder(GetVrfResult defaults) { @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipRanges(List ipRanges) { - this.ipRanges = Objects.requireNonNull(ipRanges); + if (ipRanges == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "ipRanges"); + } + this.ipRanges = ipRanges; return this; } public Builder ipRanges(String... ipRanges) { @@ -152,27 +162,42 @@ public Builder ipRanges(String... ipRanges) { } @CustomType.Setter public Builder localAsn(Integer localAsn) { - this.localAsn = Objects.requireNonNull(localAsn); + if (localAsn == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "localAsn"); + } + this.localAsn = localAsn; return this; } @CustomType.Setter public Builder metro(String metro) { - this.metro = Objects.requireNonNull(metro); + if (metro == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "metro"); + } + this.metro = metro; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder vrfId(String vrfId) { - this.vrfId = Objects.requireNonNull(vrfId); + if (vrfId == null) { + throw new MissingRequiredPropertyException("GetVrfResult", "vrfId"); + } + this.vrfId = vrfId; return this; } public GetVrfResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionPort.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionPort.java index 56a8dab2..796631a7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionPort.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionPort.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -96,37 +97,58 @@ public Builder(InterconnectionPort defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder linkStatus(String linkStatus) { - this.linkStatus = Objects.requireNonNull(linkStatus); + if (linkStatus == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "linkStatus"); + } + this.linkStatus = linkStatus; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "role"); + } + this.role = role; return this; } @CustomType.Setter public Builder speed(Integer speed) { - this.speed = Objects.requireNonNull(speed); + if (speed == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "speed"); + } + this.speed = speed; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder virtualCircuitIds(List virtualCircuitIds) { - this.virtualCircuitIds = Objects.requireNonNull(virtualCircuitIds); + if (virtualCircuitIds == null) { + throw new MissingRequiredPropertyException("InterconnectionPort", "virtualCircuitIds"); + } + this.virtualCircuitIds = virtualCircuitIds; return this; } public Builder virtualCircuitIds(String... virtualCircuitIds) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionServiceToken.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionServiceToken.java index 04a3942e..7fcc52fd 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionServiceToken.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/InterconnectionServiceToken.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -72,32 +73,50 @@ public Builder(InterconnectionServiceToken defaults) { @CustomType.Setter public Builder expiresAt(String expiresAt) { - this.expiresAt = Objects.requireNonNull(expiresAt); + if (expiresAt == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "expiresAt"); + } + this.expiresAt = expiresAt; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder maxAllowedSpeed(String maxAllowedSpeed) { - this.maxAllowedSpeed = Objects.requireNonNull(maxAllowedSpeed); + if (maxAllowedSpeed == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "maxAllowedSpeed"); + } + this.maxAllowedSpeed = maxAllowedSpeed; return this; } @CustomType.Setter public Builder role(String role) { - this.role = Objects.requireNonNull(role); + if (role == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "role"); + } + this.role = role; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "state"); + } + this.state = state; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("InterconnectionServiceToken", "type"); + } + this.type = type; return this; } public InterconnectionServiceToken build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/OrganizationAddress.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/OrganizationAddress.java index df01ac67..48ccdc9f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/OrganizationAddress.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/OrganizationAddress.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,27 +101,40 @@ public Builder(OrganizationAddress defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("OrganizationAddress", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder city(String city) { - this.city = Objects.requireNonNull(city); + if (city == null) { + throw new MissingRequiredPropertyException("OrganizationAddress", "city"); + } + this.city = city; return this; } @CustomType.Setter public Builder country(String country) { - this.country = Objects.requireNonNull(country); + if (country == null) { + throw new MissingRequiredPropertyException("OrganizationAddress", "country"); + } + this.country = country; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } @CustomType.Setter public Builder zipCode(String zipCode) { - this.zipCode = Objects.requireNonNull(zipCode); + if (zipCode == null) { + throw new MissingRequiredPropertyException("OrganizationAddress", "zipCode"); + } + this.zipCode = zipCode; return this; } public OrganizationAddress build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/ProjectBgpConfig.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/ProjectBgpConfig.java index 4643b278..b04d65cb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/ProjectBgpConfig.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/ProjectBgpConfig.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,35 @@ public Builder(ProjectBgpConfig defaults) { @CustomType.Setter public Builder asn(Integer asn) { - this.asn = Objects.requireNonNull(asn); + if (asn == null) { + throw new MissingRequiredPropertyException("ProjectBgpConfig", "asn"); + } + this.asn = asn; return this; } @CustomType.Setter public Builder deploymentType(String deploymentType) { - this.deploymentType = Objects.requireNonNull(deploymentType); + if (deploymentType == null) { + throw new MissingRequiredPropertyException("ProjectBgpConfig", "deploymentType"); + } + this.deploymentType = deploymentType; return this; } @CustomType.Setter public Builder maxPrefix(@Nullable Integer maxPrefix) { + this.maxPrefix = maxPrefix; return this; } @CustomType.Setter public Builder md5(@Nullable String md5) { + this.md5 = md5; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/SpotMarketRequestInstanceParameters.java b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/SpotMarketRequestInstanceParameters.java index e0fe6156..6b73d0e7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/SpotMarketRequestInstanceParameters.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/metal/outputs/SpotMarketRequestInstanceParameters.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.metal.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -148,26 +149,33 @@ public Builder(SpotMarketRequestInstanceParameters defaults) { @CustomType.Setter public Builder alwaysPxe(@Nullable Boolean alwaysPxe) { + this.alwaysPxe = alwaysPxe; return this; } @CustomType.Setter public Builder billingCycle(String billingCycle) { - this.billingCycle = Objects.requireNonNull(billingCycle); + if (billingCycle == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParameters", "billingCycle"); + } + this.billingCycle = billingCycle; return this; } @CustomType.Setter public Builder customdata(@Nullable String customdata) { + this.customdata = customdata; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder features(@Nullable List features) { + this.features = features; return this; } @@ -176,31 +184,43 @@ public Builder features(String... features) { } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParameters", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder ipxeScriptUrl(@Nullable String ipxeScriptUrl) { + this.ipxeScriptUrl = ipxeScriptUrl; return this; } @CustomType.Setter public Builder locked(@Nullable Boolean locked) { + this.locked = locked; return this; } @CustomType.Setter public Builder operatingSystem(String operatingSystem) { - this.operatingSystem = Objects.requireNonNull(operatingSystem); + if (operatingSystem == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParameters", "operatingSystem"); + } + this.operatingSystem = operatingSystem; return this; } @CustomType.Setter public Builder plan(String plan) { - this.plan = Objects.requireNonNull(plan); + if (plan == null) { + throw new MissingRequiredPropertyException("SpotMarketRequestInstanceParameters", "plan"); + } + this.plan = plan; return this; } @CustomType.Setter public Builder projectSshKeys(@Nullable List projectSshKeys) { + this.projectSshKeys = projectSshKeys; return this; } @@ -209,6 +229,7 @@ public Builder projectSshKeys(String... projectSshKeys) { } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -217,16 +238,19 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder terminationTime(@Nullable String terminationTime) { + this.terminationTime = terminationTime; return this; } @CustomType.Setter public Builder termintationTime(@Nullable String termintationTime) { + this.termintationTime = termintationTime; return this; } @CustomType.Setter public Builder userSshKeys(@Nullable List userSshKeys) { + this.userSshKeys = userSshKeys; return this; } @@ -235,6 +259,7 @@ public Builder userSshKeys(String... userSshKeys) { } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplate.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplate.java index 719d3851..51f0c467 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplate.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplate.java @@ -23,7 +23,8 @@ * Device ACL templates give possibility to define set of rules will allowed inbound traffic. Templates can be assigned to the network devices. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -45,30 +46,31 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var aclTemplate = new AclTemplate("aclTemplate", AclTemplateArgs.builder()        
- *             .name("test")
- *             .description("Test ACL template")
+ *         var aclTemplate = new AclTemplate("aclTemplate", AclTemplateArgs.builder()        
+ *             .name("test")
+ *             .description("Test ACL template")
  *             .inboundRules(            
  *                 AclTemplateInboundRuleArgs.builder()
- *                     .subnet("1.1.1.1/32")
- *                     .protocol("IP")
- *                     .srcPort("any")
- *                     .dstPort("any")
- *                     .description("inbound rule description")
+ *                     .subnet("1.1.1.1/32")
+ *                     .protocol("IP")
+ *                     .srcPort("any")
+ *                     .dstPort("any")
+ *                     .description("inbound rule description")
  *                     .build(),
  *                 AclTemplateInboundRuleArgs.builder()
- *                     .subnet("2.2.2.2/28")
- *                     .protocol("TCP")
- *                     .srcPort("any")
- *                     .dstPort("any")
- *                     .description("inbound rule description")
+ *                     .subnet("2.2.2.2/28")
+ *                     .protocol("TCP")
+ *                     .srcPort("any")
+ *                     .dstPort("any")
+ *                     .description("inbound rule description")
  *                     .build())
  *             .build());
  * 
- *         ctx.export("templateId", aclTemplate.id());
+ *         ctx.export("templateId", aclTemplate.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplateArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplateArgs.java index bc6c3721..f3b8e079 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplateArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/AclTemplateArgs.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.networkedge.inputs.AclTemplateInboundRuleArgs; 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; @@ -262,7 +263,9 @@ public Builder projectId(String projectId) { } public AclTemplateArgs build() { - $.inboundRules = Objects.requireNonNull($.inboundRules, "expected parameter 'inboundRules' to be non-null"); + if ($.inboundRules == null) { + throw new MissingRequiredPropertyException("AclTemplateArgs", "inboundRules"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Bgp.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Bgp.java index 45a2666e..d878800d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Bgp.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Bgp.java @@ -20,7 +20,8 @@ * Resource `equinix.networkedge.Bgp` allows creation and management of Equinix Network Edge BGP peering configurations. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -41,20 +42,21 @@
  *     }
  * 
  *     public static void stack(Context ctx) {
- *         var bgp = new Bgp("bgp", BgpArgs.builder()        
- *             .connectionId("54014acf-9730-4b55-a791-459283d05fb1")
- *             .localIpAddress("10.1.1.1/30")
+ *         var bgp = new Bgp("bgp", BgpArgs.builder()        
+ *             .connectionId("54014acf-9730-4b55-a791-459283d05fb1")
+ *             .localIpAddress("10.1.1.1/30")
  *             .localAsn(12345)
- *             .remoteIpAddress("10.1.1.2")
+ *             .remoteIpAddress("10.1.1.2")
  *             .remoteAsn(66123)
- *             .authenticationKey("secret")
+ *             .authenticationKey("secret")
  *             .build());
  * 
- *         ctx.export("state", bgp.state());
- *         ctx.export("provisioningStatus", bgp.provisioningStatus());
+ *         ctx.export("state", bgp.state());
+ *         ctx.export("provisioningStatus", bgp.provisioningStatus());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/BgpArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/BgpArgs.java index b8989a2b..05a6ccb8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/BgpArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/BgpArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -262,11 +263,21 @@ public Builder remoteIpAddress(String remoteIpAddress) { } public BgpArgs build() { - $.connectionId = Objects.requireNonNull($.connectionId, "expected parameter 'connectionId' to be non-null"); - $.localAsn = Objects.requireNonNull($.localAsn, "expected parameter 'localAsn' to be non-null"); - $.localIpAddress = Objects.requireNonNull($.localIpAddress, "expected parameter 'localIpAddress' to be non-null"); - $.remoteAsn = Objects.requireNonNull($.remoteAsn, "expected parameter 'remoteAsn' to be non-null"); - $.remoteIpAddress = Objects.requireNonNull($.remoteIpAddress, "expected parameter 'remoteIpAddress' to be non-null"); + if ($.connectionId == null) { + throw new MissingRequiredPropertyException("BgpArgs", "connectionId"); + } + if ($.localAsn == null) { + throw new MissingRequiredPropertyException("BgpArgs", "localAsn"); + } + if ($.localIpAddress == null) { + throw new MissingRequiredPropertyException("BgpArgs", "localIpAddress"); + } + if ($.remoteAsn == null) { + throw new MissingRequiredPropertyException("BgpArgs", "remoteAsn"); + } + if ($.remoteIpAddress == null) { + throw new MissingRequiredPropertyException("BgpArgs", "remoteIpAddress"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Device.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Device.java index 13034080..085b5c06 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Device.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/Device.java @@ -36,7 +36,8 @@ * * **BYOL** - [bring your own license] Where customer brings his own, already procured device software license. There are no charges associated with such license. It is the only licensing mode for `self-configured` devices. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -61,31 +62,31 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var accountName = config.get("accountName").get();
- *         final var licenseToken = config.get("licenseToken").get();
- *         final var sshUserName = config.get("sshUserName").get();
- *         final var sshKeyName = config.get("sshKeyName").get();
- *         final var aclTemplateId = config.get("aclTemplateId").get();
- *         final var metro = config.get("metro").orElse("SV");
- *         final var devicePackageCode = config.get("devicePackageCode").orElse("network-essentials");
- *         final var deviceVersion = config.get("deviceVersion").orElse("17.06.01a");
- *         final var sizeInCores = Integer.parseInt(config.get("sizeInCores").orElse("2"));
- *         final var termLength = Integer.parseInt(config.get("termLength").orElse("6"));
- *         final var additionalBandwidth = Integer.parseInt(config.get("additionalBandwidth").orElse("5"));
+ *         final var accountName = config.get("accountName").get();
+ *         final var licenseToken = config.get("licenseToken").get();
+ *         final var sshUserName = config.get("sshUserName").get();
+ *         final var sshKeyName = config.get("sshKeyName").get();
+ *         final var aclTemplateId = config.get("aclTemplateId").get();
+ *         final var metro = config.get("metro").orElse("SV");
+ *         final var devicePackageCode = config.get("devicePackageCode").orElse("network-essentials");
+ *         final var deviceVersion = config.get("deviceVersion").orElse("17.06.01a");
+ *         final var sizeInCores = Integer.parseInt(config.get("sizeInCores").orElse("2"));
+ *         final var termLength = Integer.parseInt(config.get("termLength").orElse("6"));
+ *         final var additionalBandwidth = Integer.parseInt(config.get("additionalBandwidth").orElse("5"));
  *         final var accountNum = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
  *             .name(accountName)
  *             .metroCode(metro)
- *             .build()).applyValue(account -> account.number());
+ *             .build()).applyValue(account -> account.number());
  * 
- *         var c8KRouter = new Device("c8KRouter", DeviceArgs.builder()        
- *             .name("catalystRouter")
+ *         var c8KRouter = new Device("c8KRouter", DeviceArgs.builder()        
+ *             .name("catalystRouter")
  *             .metroCode(metro)
- *             .typeCode("C8000V")
+ *             .typeCode("C8000V")
  *             .selfManaged(true)
  *             .byol(true)
  *             .packageCode(devicePackageCode)
- *             .notifications("example@equinix.com")
- *             .hostname("C8KV")
+ *             .notifications("example{@literal @}equinix.com")
+ *             .hostname("C8KV")
  *             .accountNumber(accountNum)
  *             .version(deviceVersion)
  *             .coreCount(sizeInCores)
@@ -99,13 +100,14 @@
  *             .aclTemplateId(aclTemplateId)
  *             .build());
  * 
- *         ctx.export("routerId", c8KRouter.id());
- *         ctx.export("provisionStatus", c8KRouter.status());
- *         ctx.export("licenseStatus", c8KRouter.licenseStatus());
- *         ctx.export("sshIpAddress", c8KRouter.sshIpAddress());
+ *         ctx.export("routerId", c8KRouter.id());
+ *         ctx.export("provisionStatus", c8KRouter.status());
+ *         ctx.export("licenseStatus", c8KRouter.licenseStatus());
+ *         ctx.export("sshIpAddress", c8KRouter.sshIpAddress());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceArgs.java index ee11787d..4f3593f3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceArgs.java @@ -10,6 +10,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -1266,14 +1267,30 @@ public Builder wanInterfaceId(String wanInterfaceId) { } public DeviceArgs build() { - $.accountNumber = Objects.requireNonNull($.accountNumber, "expected parameter 'accountNumber' to be non-null"); - $.coreCount = Objects.requireNonNull($.coreCount, "expected parameter 'coreCount' to be non-null"); - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); - $.packageCode = Objects.requireNonNull($.packageCode, "expected parameter 'packageCode' to be non-null"); - $.termLength = Objects.requireNonNull($.termLength, "expected parameter 'termLength' to be non-null"); - $.typeCode = Objects.requireNonNull($.typeCode, "expected parameter 'typeCode' to be non-null"); - $.version = Objects.requireNonNull($.version, "expected parameter 'version' to be non-null"); + if ($.accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "accountNumber"); + } + if ($.coreCount == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "coreCount"); + } + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "metroCode"); + } + if ($.notifications == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "notifications"); + } + if ($.packageCode == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "packageCode"); + } + if ($.termLength == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "termLength"); + } + if ($.typeCode == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "typeCode"); + } + if ($.version == null) { + throw new MissingRequiredPropertyException("DeviceArgs", "version"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLink.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLink.java index 45f70302..ccec11a3 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLink.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLink.java @@ -22,7 +22,8 @@ * Resource `equinix.networkedge.DeviceLink` allows creation and management of Equinix Network Edge virtual network device links. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -49,34 +50,34 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var accountName = config.get("accountName").get();
- *         final var accountMetro = config.get("accountMetro").get();
- *         final var device1Id = config.get("device1Id").get();
- *         final var device2Id = config.get("device2Id").get();
+ *         final var accountName = config.get("accountName").get();
+ *         final var accountMetro = config.get("accountMetro").get();
+ *         final var device1Id = config.get("device1Id").get();
+ *         final var device2Id = config.get("device2Id").get();
  *         final var accountfNum = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
  *             .name(accountName)
  *             .metroCode(accountMetro)
- *             .build()).applyValue(account -> account.number());
+ *             .build()).applyValue(account -> account.number());
  * 
  *         final var device1Metro = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
  *             .uuid(device1Id)
- *             .build()).applyValue(device -> device.metroCode());
+ *             .build()).applyValue(device -> device.metroCode());
  * 
  *         final var device2Metro = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
  *             .uuid(device2Id)
- *             .build()).applyValue(device -> device.metroCode());
+ *             .build()).applyValue(device -> device.metroCode());
  * 
- *         var deviceLink = new DeviceLink("deviceLink", DeviceLinkArgs.builder()        
- *             .name("test-link")
- *             .subnet("192.168.40.64/27")
+ *         var deviceLink = new DeviceLink("deviceLink", DeviceLinkArgs.builder()        
+ *             .name("test-link")
+ *             .subnet("192.168.40.64/27")
  *             .devices(            
  *                 DeviceLinkDeviceArgs.builder()
- *                     .id("device1Id")
+ *                     .id("device1Id")
  *                     .asn(22111)
  *                     .interfaceId(6)
  *                     .build(),
  *                 DeviceLinkDeviceArgs.builder()
- *                     .id("device2Id")
+ *                     .id("device2Id")
  *                     .asn(22333)
  *                     .interfaceId(7)
  *                     .build())
@@ -84,16 +85,17 @@
  *                 .accountNumber(accountfNum)
  *                 .srcMetroCode(device1Metro)
  *                 .dstMetroCode(device2Metro)
- *                 .throughput("50")
- *                 .throughputUnit("Mbps")
+ *                 .throughput("50")
+ *                 .throughputUnit("Mbps")
  *                 .build())
  *             .build());
  * 
- *         ctx.export("status", deviceLink.status());
- *         ctx.export("devices", deviceLink.devices());
+ *         ctx.export("status", deviceLink.status());
+ *         ctx.export("devices", deviceLink.devices());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLinkArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLinkArgs.java index cef7ec6e..8624fda8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLinkArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/DeviceLinkArgs.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.networkedge.inputs.DeviceLinkMetroLinkArgs; 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; @@ -352,7 +353,9 @@ public Builder subnet(String subnet) { } public DeviceLinkArgs build() { - $.devices = Objects.requireNonNull($.devices, "expected parameter 'devices' to be non-null"); + if ($.devices == null) { + throw new MissingRequiredPropertyException("DeviceLinkArgs", "devices"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFile.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFile.java index 4cd55398..b6313c02 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFile.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFile.java @@ -19,7 +19,8 @@ * Resource `equinix.networkedge.NetworkFile` allows creation and management of Equinix Network Edge files. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -42,30 +43,31 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var metro = config.get("metro").orElse("SV");
+ *         final var metro = config.get("metro").orElse("SV");
  * 
  *         String content = null;
  *         try {
- *             content = Files.readString(Paths.get("./../assets/aviatrix-cloud-init.txt"));
+ *             content = Files.readString(Paths.get("./../assets/aviatrix-cloud-init.txt"));
  *         } catch (IOException e) {
  *             e.printStackTrace();
  *         }
  * 
- *         var networkFile = new NetworkFile("networkFile", NetworkFileArgs.builder()        
- *             .fileName("Aviatrix-ZTP-file")
+ *         var networkFile = new NetworkFile("networkFile", NetworkFileArgs.builder()        
+ *             .fileName("Aviatrix-ZTP-file")
  *             .content(content)
  *             .metroCode(metro)
- *             .deviceTypeCode("AVIATRIX_EDGE")
- *             .processType("CLOUD_INIT")
+ *             .deviceTypeCode("AVIATRIX_EDGE")
+ *             .processType("CLOUD_INIT")
  *             .selfManaged(true)
  *             .byol(true)
  *             .build());
  * 
- *         ctx.export("networkFileId", networkFile.id());
- *         ctx.export("networkFileStatus", networkFile.status());
+ *         ctx.export("networkFileId", networkFile.id());
+ *         ctx.export("networkFileStatus", networkFile.status());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFileArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFileArgs.java index a51be70a..353acbff 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFileArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkFileArgs.java @@ -8,6 +8,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -340,13 +341,27 @@ public Builder selfManaged(Boolean selfManaged) { } public NetworkFileArgs build() { - $.byol = Objects.requireNonNull($.byol, "expected parameter 'byol' to be non-null"); - $.content = Objects.requireNonNull($.content, "expected parameter 'content' to be non-null"); - $.deviceTypeCode = Objects.requireNonNull($.deviceTypeCode, "expected parameter 'deviceTypeCode' to be non-null"); - $.fileName = Objects.requireNonNull($.fileName, "expected parameter 'fileName' to be non-null"); - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); - $.processType = Objects.requireNonNull($.processType, "expected parameter 'processType' to be non-null"); - $.selfManaged = Objects.requireNonNull($.selfManaged, "expected parameter 'selfManaged' to be non-null"); + if ($.byol == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "byol"); + } + if ($.content == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "content"); + } + if ($.deviceTypeCode == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "deviceTypeCode"); + } + if ($.fileName == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "fileName"); + } + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "metroCode"); + } + if ($.processType == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "processType"); + } + if ($.selfManaged == null) { + throw new MissingRequiredPropertyException("NetworkFileArgs", "selfManaged"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkedgeFunctions.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkedgeFunctions.java index 7aef6deb..f5c88408 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkedgeFunctions.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/NetworkedgeFunctions.java @@ -34,7 +34,8 @@ public final class NetworkedgeFunctions { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -56,15 +57,16 @@ public final class NetworkedgeFunctions {
      * 
      *     public static void stack(Context ctx) {
      *         final var dc = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
-     *             .metroCode("DC")
-     *             .status("Active")
-     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
+     *             .metroCode("DC")
+     *             .status("Active")
+     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
      *             .build());
      * 
-     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
+     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -79,7 +81,8 @@ public static Output getAccount(GetAccountArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -101,15 +104,16 @@ public static Output getAccount(GetAccountArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var dc = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
-     *             .metroCode("DC")
-     *             .status("Active")
-     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
+     *             .metroCode("DC")
+     *             .status("Active")
+     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
      *             .build());
      * 
-     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
+     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -124,7 +128,8 @@ public static CompletableFuture getAccountPlain(GetAccountPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -146,15 +151,16 @@ public static CompletableFuture getAccountPlain(GetAccountPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var dc = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
-     *             .metroCode("DC")
-     *             .status("Active")
-     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
+     *             .metroCode("DC")
+     *             .status("Active")
+     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
      *             .build());
      * 
-     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
+     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -169,7 +175,8 @@ public static Output getAccount(GetAccountArgs args, InvokeOpt * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -191,15 +198,16 @@ public static Output getAccount(GetAccountArgs args, InvokeOpt
      * 
      *     public static void stack(Context ctx) {
      *         final var dc = NetworkedgeFunctions.getAccount(GetAccountArgs.builder()
-     *             .metroCode("DC")
-     *             .status("Active")
-     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
+     *             .metroCode("DC")
+     *             .status("Active")
+     *             .projectId("a86d7112-d740-4758-9c9c-31e66373746b")
      *             .build());
      * 
-     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
+     *         ctx.export("number", dc.applyValue(getAccountResult -> getAccountResult.number()));
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -212,7 +220,8 @@ public static CompletableFuture getAccountPlain(GetAccountPlai * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -234,16 +243,17 @@ public static CompletableFuture getAccountPlain(GetAccountPlai
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -256,7 +266,8 @@ public static Output getDevice() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -278,16 +289,17 @@ public static Output getDevice() {
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -300,7 +312,8 @@ public static CompletableFuture getDevicePlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -322,16 +335,17 @@ public static CompletableFuture getDevicePlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -344,7 +358,8 @@ public static Output getDevice(GetDeviceArgs args) { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -366,16 +381,17 @@ public static Output getDevice(GetDeviceArgs args) {
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -388,7 +404,8 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -410,16 +427,17 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -432,7 +450,8 @@ public static Output getDevice(GetDeviceArgs args, InvokeOption * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -454,16 +473,17 @@ public static Output getDevice(GetDeviceArgs args, InvokeOption
      * 
      *     public static void stack(Context ctx) {
      *         final var byUuid = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
+     *             .uuid("f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee")
      *             .build());
      * 
      *         final var byName = NetworkedgeFunctions.getDevice(GetDeviceArgs.builder()
-     *             .name("Arcus-Gateway-A1")
+     *             .name("Arcus-Gateway-A1")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -476,7 +496,8 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -498,14 +519,15 @@ public static CompletableFuture getDevicePlain(GetDevicePlainAr
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLarge = NetworkedgeFunctions.getDevicePlatform(GetDevicePlatformArgs.builder()
-     *             .deviceType("CSR1000V")
-     *             .flavor("large")
-     *             .packages("IPBASE")
+     *             .deviceType("CSR1000V")
+     *             .flavor("large")
+     *             .packages("IPBASE")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -518,7 +540,8 @@ public static Output getDevicePlatform(GetDevicePlatfor * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -540,14 +563,15 @@ public static Output getDevicePlatform(GetDevicePlatfor
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLarge = NetworkedgeFunctions.getDevicePlatform(GetDevicePlatformArgs.builder()
-     *             .deviceType("CSR1000V")
-     *             .flavor("large")
-     *             .packages("IPBASE")
+     *             .deviceType("CSR1000V")
+     *             .flavor("large")
+     *             .packages("IPBASE")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -560,7 +584,8 @@ public static CompletableFuture getDevicePlatformPlain( * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -582,14 +607,15 @@ public static CompletableFuture getDevicePlatformPlain(
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLarge = NetworkedgeFunctions.getDevicePlatform(GetDevicePlatformArgs.builder()
-     *             .deviceType("CSR1000V")
-     *             .flavor("large")
-     *             .packages("IPBASE")
+     *             .deviceType("CSR1000V")
+     *             .flavor("large")
+     *             .packages("IPBASE")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -602,7 +628,8 @@ public static Output getDevicePlatform(GetDevicePlatfor * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -624,14 +651,15 @@ public static Output getDevicePlatform(GetDevicePlatfor
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLarge = NetworkedgeFunctions.getDevicePlatform(GetDevicePlatformArgs.builder()
-     *             .deviceType("CSR1000V")
-     *             .flavor("large")
-     *             .packages("IPBASE")
+     *             .deviceType("CSR1000V")
+     *             .flavor("large")
+     *             .packages("IPBASE")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -644,7 +672,8 @@ public static CompletableFuture getDevicePlatformPlain( * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -666,15 +695,16 @@ public static CompletableFuture getDevicePlatformPlain(
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLatest1609 = NetworkedgeFunctions.getDeviceSoftware(GetDeviceSoftwareArgs.builder()
-     *             .deviceType("CSR1000V")
+     *             .deviceType("CSR1000V")
      *             .mostRecent(true)
-     *             .packages("IPBASE")
-     *             .versionRegex("^16.09.+")
+     *             .packages("IPBASE")
+     *             .versionRegex("^16.09.+")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -687,7 +717,8 @@ public static Output getDeviceSoftware(GetDeviceSoftwar * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -709,15 +740,16 @@ public static Output getDeviceSoftware(GetDeviceSoftwar
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLatest1609 = NetworkedgeFunctions.getDeviceSoftware(GetDeviceSoftwareArgs.builder()
-     *             .deviceType("CSR1000V")
+     *             .deviceType("CSR1000V")
      *             .mostRecent(true)
-     *             .packages("IPBASE")
-     *             .versionRegex("^16.09.+")
+     *             .packages("IPBASE")
+     *             .versionRegex("^16.09.+")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -730,7 +762,8 @@ public static CompletableFuture getDeviceSoftwarePlain( * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -752,15 +785,16 @@ public static CompletableFuture getDeviceSoftwarePlain(
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLatest1609 = NetworkedgeFunctions.getDeviceSoftware(GetDeviceSoftwareArgs.builder()
-     *             .deviceType("CSR1000V")
+     *             .deviceType("CSR1000V")
      *             .mostRecent(true)
-     *             .packages("IPBASE")
-     *             .versionRegex("^16.09.+")
+     *             .packages("IPBASE")
+     *             .versionRegex("^16.09.+")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -773,7 +807,8 @@ public static Output getDeviceSoftware(GetDeviceSoftwar * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -795,15 +830,16 @@ public static Output getDeviceSoftware(GetDeviceSoftwar
      * 
      *     public static void stack(Context ctx) {
      *         final var csrLatest1609 = NetworkedgeFunctions.getDeviceSoftware(GetDeviceSoftwareArgs.builder()
-     *             .deviceType("CSR1000V")
+     *             .deviceType("CSR1000V")
      *             .mostRecent(true)
-     *             .packages("IPBASE")
-     *             .versionRegex("^16.09.+")
+     *             .packages("IPBASE")
+     *             .versionRegex("^16.09.+")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -816,7 +852,8 @@ public static CompletableFuture getDeviceSoftwarePlain( * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -838,16 +875,17 @@ public static CompletableFuture getDeviceSoftwarePlain(
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -860,7 +898,8 @@ public static Output getDeviceType() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -882,16 +921,17 @@ public static Output getDeviceType() {
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -904,7 +944,8 @@ public static CompletableFuture getDeviceTypePlain() { * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -926,16 +967,17 @@ public static CompletableFuture getDeviceTypePlain() {
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -948,7 +990,8 @@ public static Output getDeviceType(GetDeviceTypeArgs args) * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -970,16 +1013,17 @@ public static Output getDeviceType(GetDeviceTypeArgs args)
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -992,7 +1036,8 @@ public static CompletableFuture getDeviceTypePlain(GetDevic * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1014,16 +1059,17 @@ public static CompletableFuture getDeviceTypePlain(GetDevic
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1036,7 +1082,8 @@ public static Output getDeviceType(GetDeviceTypeArgs args, * ## Example Usage * * <!--Start PulumiCodeChooser --> - * ```java + *
+     * {@code
      * package generated_program;
      * 
      * import com.pulumi.Context;
@@ -1058,16 +1105,17 @@ public static Output getDeviceType(GetDeviceTypeArgs args,
      * 
      *     public static void stack(Context ctx) {
      *         final var ciscoRouter = NetworkedgeFunctions.getDeviceType(GetDeviceTypeArgs.builder()
-     *             .category("Router")
+     *             .category("Router")
      *             .metroCodes(            
-     *                 "DC",
-     *                 "SV")
-     *             .vendor("Cisco")
+     *                 "DC",
+     *                 "SV")
+     *             .vendor("Cisco")
      *             .build());
      * 
      *     }
      * }
-     * ```
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKey.java index adc82a6b..9795b229 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKey.java @@ -18,7 +18,8 @@ * Resource `equinix.networkedge.SshKey` allows creation and management of Equinix Network Edge SSH keys. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -42,20 +43,21 @@
  *     public static void stack(Context ctx) {
  *         String key = null;
  *         try {
- *             key = Files.readString(Paths.get("/Users/John/.ssh/ne_rsa.pub"));
+ *             key = Files.readString(Paths.get("/Users/John/.ssh/ne_rsa.pub"));
  *         } catch (IOException e) {
  *             e.printStackTrace();
  *         }
  * 
- *         var sshKey = new SshKey("sshKey", SshKeyArgs.builder()        
- *             .name("johnKent")
+ *         var sshKey = new SshKey("sshKey", SshKeyArgs.builder()        
+ *             .name("johnKent")
  *             .publicKey(key)
  *             .build());
  * 
- *         ctx.export("sshKeyId", sshKey.id());
+ *         ctx.export("sshKeyId", sshKey.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKeyArgs.java index d1719b90..4d70f5ce 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshKeyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,7 +188,9 @@ public Builder type(String type) { } public SshKeyArgs build() { - $.publicKey = Objects.requireNonNull($.publicKey, "expected parameter 'publicKey' to be non-null"); + if ($.publicKey == null) { + throw new MissingRequiredPropertyException("SshKeyArgs", "publicKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUser.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUser.java index d23bec19..514fb482 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUser.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUser.java @@ -18,7 +18,8 @@ * Resource `equinix.networkedge.SshUser` allows creation and management of Equinix Network Edge SSH users. * * ## Example Usage - * ```java + *
+ * {@code
  * package generated_program;
  * 
  * import com.pulumi.Context;
@@ -40,19 +41,20 @@
  * 
  *     public static void stack(Context ctx) {
  *         final var config = ctx.config();
- *         final var device1Id = config.get("device1Id").get();
- *         final var device2Id = config.get("device2Id").get();
- *         var sshUser = new SshUser("sshUser", SshUserArgs.builder()        
- *             .username("johnKent")
+ *         final var device1Id = config.get("device1Id").get();
+ *         final var device2Id = config.get("device2Id").get();
+ *         var sshUser = new SshUser("sshUser", SshUserArgs.builder()        
+ *             .username("johnKent")
  *             .deviceIds(            
  *                 device1Id,
  *                 device2Id)
  *             .build());
  * 
- *         ctx.export("sshUserId", sshUser.id());
+ *         ctx.export("sshUserId", sshUser.id());
  *     }
  * }
- * ```
+ * }
+ * 
* * ## Import * diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUserArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUserArgs.java index 8647a746..8094452d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUserArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/SshUserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -159,9 +160,15 @@ public Builder username(String username) { } public SshUserArgs build() { - $.deviceIds = Objects.requireNonNull($.deviceIds, "expected parameter 'deviceIds' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.deviceIds == null) { + throw new MissingRequiredPropertyException("SshUserArgs", "deviceIds"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("SshUserArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("SshUserArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/AclTemplateInboundRuleArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/AclTemplateInboundRuleArgs.java index 0790d870..5c5b9a02 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/AclTemplateInboundRuleArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/AclTemplateInboundRuleArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Either; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -405,9 +406,15 @@ public Builder subnets(String... subnets) { } public AclTemplateInboundRuleArgs build() { - $.dstPort = Objects.requireNonNull($.dstPort, "expected parameter 'dstPort' to be non-null"); - $.protocol = Objects.requireNonNull($.protocol, "expected parameter 'protocol' to be non-null"); - $.srcPort = Objects.requireNonNull($.srcPort, "expected parameter 'srcPort' to be non-null"); + if ($.dstPort == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRuleArgs", "dstPort"); + } + if ($.protocol == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRuleArgs", "protocol"); + } + if ($.srcPort == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRuleArgs", "srcPort"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceClusterDetailsArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceClusterDetailsArgs.java index 19368eb2..206c74d4 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceClusterDetailsArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceClusterDetailsArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.networkedge.inputs.DeviceClusterDetailsNode1Args; 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; @@ -227,9 +228,15 @@ public Builder numOfNodes(Integer numOfNodes) { } public DeviceClusterDetailsArgs build() { - $.clusterName = Objects.requireNonNull($.clusterName, "expected parameter 'clusterName' to be non-null"); - $.node0 = Objects.requireNonNull($.node0, "expected parameter 'node0' to be non-null"); - $.node1 = Objects.requireNonNull($.node1, "expected parameter 'node1' to be non-null"); + if ($.clusterName == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetailsArgs", "clusterName"); + } + if ($.node0 == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetailsArgs", "node0"); + } + if ($.node1 == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetailsArgs", "node1"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkDeviceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkDeviceArgs.java index 1233ded6..5e3c0fbb 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkDeviceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkDeviceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder status(String status) { } public DeviceLinkDeviceArgs build() { - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); + if ($.id == null) { + throw new MissingRequiredPropertyException("DeviceLinkDeviceArgs", "id"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkLinkArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkLinkArgs.java index 89200765..05243d4f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkLinkArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkLinkArgs.java @@ -5,6 +5,7 @@ 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; @@ -330,11 +331,21 @@ public Builder throughputUnit(String throughputUnit) { } public DeviceLinkLinkArgs build() { - $.accountNumber = Objects.requireNonNull($.accountNumber, "expected parameter 'accountNumber' to be non-null"); - $.dstMetroCode = Objects.requireNonNull($.dstMetroCode, "expected parameter 'dstMetroCode' to be non-null"); - $.srcMetroCode = Objects.requireNonNull($.srcMetroCode, "expected parameter 'srcMetroCode' to be non-null"); - $.throughput = Objects.requireNonNull($.throughput, "expected parameter 'throughput' to be non-null"); - $.throughputUnit = Objects.requireNonNull($.throughputUnit, "expected parameter 'throughputUnit' to be non-null"); + if ($.accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceLinkLinkArgs", "accountNumber"); + } + if ($.dstMetroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkLinkArgs", "dstMetroCode"); + } + if ($.srcMetroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkLinkArgs", "srcMetroCode"); + } + if ($.throughput == null) { + throw new MissingRequiredPropertyException("DeviceLinkLinkArgs", "throughput"); + } + if ($.throughputUnit == null) { + throw new MissingRequiredPropertyException("DeviceLinkLinkArgs", "throughputUnit"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkMetroLinkArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkMetroLinkArgs.java index 1d864efa..09981e75 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkMetroLinkArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceLinkMetroLinkArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -185,10 +186,18 @@ public Builder throughputUnit(String throughputUnit) { } public DeviceLinkMetroLinkArgs build() { - $.accountNumber = Objects.requireNonNull($.accountNumber, "expected parameter 'accountNumber' to be non-null"); - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); - $.throughput = Objects.requireNonNull($.throughput, "expected parameter 'throughput' to be non-null"); - $.throughputUnit = Objects.requireNonNull($.throughputUnit, "expected parameter 'throughputUnit' to be non-null"); + if ($.accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLinkArgs", "accountNumber"); + } + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLinkArgs", "metroCode"); + } + if ($.throughput == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLinkArgs", "throughput"); + } + if ($.throughputUnit == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLinkArgs", "throughputUnit"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceArgs.java index f931df0e..5eb31dee 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceArgs.java @@ -7,6 +7,7 @@ import com.equinix.pulumi.networkedge.inputs.DeviceSecondaryDeviceSshKeyArgs; 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; @@ -1104,10 +1105,18 @@ public Builder zoneCode(String zoneCode) { } public DeviceSecondaryDeviceArgs build() { - $.accountNumber = Objects.requireNonNull($.accountNumber, "expected parameter 'accountNumber' to be non-null"); - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.notifications = Objects.requireNonNull($.notifications, "expected parameter 'notifications' to be non-null"); + if ($.accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceArgs", "accountNumber"); + } + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceArgs", "metroCode"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceArgs", "name"); + } + if ($.notifications == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceArgs", "notifications"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceSshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceSshKeyArgs.java index 0e51eddb..8078ff3f 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceSshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSecondaryDeviceSshKeyArgs.java @@ -5,6 +5,7 @@ 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 username(String username) { } public DeviceSecondaryDeviceSshKeyArgs build() { - $.keyName = Objects.requireNonNull($.keyName, "expected parameter 'keyName' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.keyName == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceSshKeyArgs", "keyName"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceSshKeyArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSshKeyArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSshKeyArgs.java index 2656df52..63387c15 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSshKeyArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/DeviceSshKeyArgs.java @@ -5,6 +5,7 @@ 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 username(String username) { } public DeviceSshKeyArgs build() { - $.keyName = Objects.requireNonNull($.keyName, "expected parameter 'keyName' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.keyName == null) { + throw new MissingRequiredPropertyException("DeviceSshKeyArgs", "keyName"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("DeviceSshKeyArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountArgs.java index fea2304b..d2239112 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountArgs.java @@ -5,6 +5,7 @@ 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 status(String status) { } public GetAccountArgs build() { - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("GetAccountArgs", "metroCode"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountPlainArgs.java index 856acfbe..fbc4e477 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetAccountPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.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 status(@Nullable String status) { } public GetAccountPlainArgs build() { - $.metroCode = Objects.requireNonNull($.metroCode, "expected parameter 'metroCode' to be non-null"); + if ($.metroCode == null) { + throw new MissingRequiredPropertyException("GetAccountPlainArgs", "metroCode"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformArgs.java index 9e3b34db..988775ea 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformArgs.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; @@ -293,7 +294,9 @@ public Builder packages(String... packages) { } public GetDevicePlatformArgs build() { - $.deviceType = Objects.requireNonNull($.deviceType, "expected parameter 'deviceType' to be non-null"); + if ($.deviceType == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformArgs", "deviceType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformPlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformPlainArgs.java index 7922c31c..9018f554 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformPlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDevicePlatformPlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -232,7 +233,9 @@ public Builder packages(String... packages) { } public GetDevicePlatformPlainArgs build() { - $.deviceType = Objects.requireNonNull($.deviceType, "expected parameter 'deviceType' to be non-null"); + if ($.deviceType == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformPlainArgs", "deviceType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwareArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwareArgs.java index 0b4f6c79..943e2712 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwareArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwareArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -236,7 +237,9 @@ public Builder versionRegex(String versionRegex) { } public GetDeviceSoftwareArgs build() { - $.deviceType = Objects.requireNonNull($.deviceType, "expected parameter 'deviceType' to be non-null"); + if ($.deviceType == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareArgs", "deviceType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwarePlainArgs.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwarePlainArgs.java index fef03b75..54b0c613 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwarePlainArgs.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/inputs/GetDeviceSoftwarePlainArgs.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -185,7 +186,9 @@ public Builder versionRegex(@Nullable String versionRegex) { } public GetDeviceSoftwarePlainArgs build() { - $.deviceType = Objects.requireNonNull($.deviceType, "expected parameter 'deviceType' to be non-null"); + if ($.deviceType == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwarePlainArgs", "deviceType"); + } return $; } } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateDeviceDetail.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateDeviceDetail.java index 8aac9793..6705bd81 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateDeviceDetail.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateDeviceDetail.java @@ -72,16 +72,19 @@ public Builder(AclTemplateDeviceDetail defaults) { @CustomType.Setter public Builder aclStatus(@Nullable String aclStatus) { + this.aclStatus = aclStatus; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateInboundRule.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateInboundRule.java index f5f195fc..97041347 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateInboundRule.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/AclTemplateInboundRule.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -160,41 +161,55 @@ public Builder(AclTemplateInboundRule defaults) { @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder dstPort(String dstPort) { - this.dstPort = Objects.requireNonNull(dstPort); + if (dstPort == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRule", "dstPort"); + } + this.dstPort = dstPort; return this; } @CustomType.Setter public Builder protocol(String protocol) { - this.protocol = Objects.requireNonNull(protocol); + if (protocol == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRule", "protocol"); + } + this.protocol = protocol; return this; } @CustomType.Setter public Builder sequenceNumber(@Nullable Integer sequenceNumber) { + this.sequenceNumber = sequenceNumber; return this; } @CustomType.Setter public Builder sourceType(@Nullable String sourceType) { + this.sourceType = sourceType; return this; } @CustomType.Setter public Builder srcPort(String srcPort) { - this.srcPort = Objects.requireNonNull(srcPort); + if (srcPort == null) { + throw new MissingRequiredPropertyException("AclTemplateInboundRule", "srcPort"); + } + this.srcPort = srcPort; return this; } @CustomType.Setter public Builder subnet(@Nullable String subnet) { + this.subnet = subnet; return this; } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetails.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetails.java index 9cb467db..202d2315 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetails.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetails.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.networkedge.outputs.DeviceClusterDetailsNode0; import com.equinix.pulumi.networkedge.outputs.DeviceClusterDetailsNode1; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -103,26 +104,37 @@ public Builder(DeviceClusterDetails defaults) { @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetails", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder node0(DeviceClusterDetailsNode0 node0) { - this.node0 = Objects.requireNonNull(node0); + if (node0 == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetails", "node0"); + } + this.node0 = node0; return this; } @CustomType.Setter public Builder node1(DeviceClusterDetailsNode1 node1) { - this.node1 = Objects.requireNonNull(node1); + if (node1 == null) { + throw new MissingRequiredPropertyException("DeviceClusterDetails", "node1"); + } + this.node1 = node1; return this; } @CustomType.Setter public Builder numOfNodes(@Nullable Integer numOfNodes) { + this.numOfNodes = numOfNodes; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0.java index ac7b9f36..ea0679ee 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0.java @@ -101,26 +101,31 @@ public Builder(DeviceClusterDetailsNode0 defaults) { @CustomType.Setter public Builder licenseFileId(@Nullable String licenseFileId) { + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseToken(@Nullable String licenseToken) { + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfiguration(@Nullable DeviceClusterDetailsNode0VendorConfiguration vendorConfiguration) { + this.vendorConfiguration = vendorConfiguration; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0VendorConfiguration.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0VendorConfiguration.java index 522dfae9..f87f7c49 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0VendorConfiguration.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode0VendorConfiguration.java @@ -184,56 +184,67 @@ public Builder(DeviceClusterDetailsNode0VendorConfiguration defaults) { @CustomType.Setter public Builder activationKey(@Nullable String activationKey) { + this.activationKey = activationKey; return this; } @CustomType.Setter public Builder adminPassword(@Nullable String adminPassword) { + this.adminPassword = adminPassword; return this; } @CustomType.Setter public Builder controller1(@Nullable String controller1) { + this.controller1 = controller1; return this; } @CustomType.Setter public Builder controllerFqdn(@Nullable String controllerFqdn) { + this.controllerFqdn = controllerFqdn; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder licenseId(@Nullable String licenseId) { + this.licenseId = licenseId; return this; } @CustomType.Setter public Builder licenseKey(@Nullable String licenseKey) { + this.licenseKey = licenseKey; return this; } @CustomType.Setter public Builder privateAddress(@Nullable String privateAddress) { + this.privateAddress = privateAddress; return this; } @CustomType.Setter public Builder privateCidrMask(@Nullable String privateCidrMask) { + this.privateCidrMask = privateCidrMask; return this; } @CustomType.Setter public Builder privateGateway(@Nullable String privateGateway) { + this.privateGateway = privateGateway; return this; } @CustomType.Setter public Builder rootPassword(@Nullable String rootPassword) { + this.rootPassword = rootPassword; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1.java index be3206aa..e968b2d1 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1.java @@ -101,26 +101,31 @@ public Builder(DeviceClusterDetailsNode1 defaults) { @CustomType.Setter public Builder licenseFileId(@Nullable String licenseFileId) { + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseToken(@Nullable String licenseToken) { + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfiguration(@Nullable DeviceClusterDetailsNode1VendorConfiguration vendorConfiguration) { + this.vendorConfiguration = vendorConfiguration; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1VendorConfiguration.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1VendorConfiguration.java index df1ccd78..02e5498c 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1VendorConfiguration.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceClusterDetailsNode1VendorConfiguration.java @@ -184,56 +184,67 @@ public Builder(DeviceClusterDetailsNode1VendorConfiguration defaults) { @CustomType.Setter public Builder activationKey(@Nullable String activationKey) { + this.activationKey = activationKey; return this; } @CustomType.Setter public Builder adminPassword(@Nullable String adminPassword) { + this.adminPassword = adminPassword; return this; } @CustomType.Setter public Builder controller1(@Nullable String controller1) { + this.controller1 = controller1; return this; } @CustomType.Setter public Builder controllerFqdn(@Nullable String controllerFqdn) { + this.controllerFqdn = controllerFqdn; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder licenseId(@Nullable String licenseId) { + this.licenseId = licenseId; return this; } @CustomType.Setter public Builder licenseKey(@Nullable String licenseKey) { + this.licenseKey = licenseKey; return this; } @CustomType.Setter public Builder privateAddress(@Nullable String privateAddress) { + this.privateAddress = privateAddress; return this; } @CustomType.Setter public Builder privateCidrMask(@Nullable String privateCidrMask) { + this.privateCidrMask = privateCidrMask; return this; } @CustomType.Setter public Builder privateGateway(@Nullable String privateGateway) { + this.privateGateway = privateGateway; return this; } @CustomType.Setter public Builder rootPassword(@Nullable String rootPassword) { + this.rootPassword = rootPassword; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceInterface.java index f859b746..dd915e4d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceInterface.java @@ -143,41 +143,49 @@ public Builder(DeviceInterface defaults) { @CustomType.Setter public Builder assignedType(@Nullable String assignedType) { + this.assignedType = assignedType; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder macAddress(@Nullable String macAddress) { + this.macAddress = macAddress; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder operationalStatus(@Nullable String operationalStatus) { + this.operationalStatus = operationalStatus; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkDevice.java index 730a208e..65fa499d 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkDevice.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(DeviceLinkDevice defaults) { @CustomType.Setter public Builder asn(@Nullable Integer asn) { + this.asn = asn; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("DeviceLinkDevice", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder interfaceId(@Nullable Integer interfaceId) { + this.interfaceId = interfaceId; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkLink.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkLink.java index d9e50d76..0106b549 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkLink.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkLink.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -144,37 +145,54 @@ public Builder(DeviceLinkLink defaults) { @CustomType.Setter public Builder accountNumber(String accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceLinkLink", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder dstMetroCode(String dstMetroCode) { - this.dstMetroCode = Objects.requireNonNull(dstMetroCode); + if (dstMetroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkLink", "dstMetroCode"); + } + this.dstMetroCode = dstMetroCode; return this; } @CustomType.Setter public Builder dstZoneCode(@Nullable String dstZoneCode) { + this.dstZoneCode = dstZoneCode; return this; } @CustomType.Setter public Builder srcMetroCode(String srcMetroCode) { - this.srcMetroCode = Objects.requireNonNull(srcMetroCode); + if (srcMetroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkLink", "srcMetroCode"); + } + this.srcMetroCode = srcMetroCode; return this; } @CustomType.Setter public Builder srcZoneCode(@Nullable String srcZoneCode) { + this.srcZoneCode = srcZoneCode; return this; } @CustomType.Setter public Builder throughput(String throughput) { - this.throughput = Objects.requireNonNull(throughput); + if (throughput == null) { + throw new MissingRequiredPropertyException("DeviceLinkLink", "throughput"); + } + this.throughput = throughput; return this; } @CustomType.Setter public Builder throughputUnit(String throughputUnit) { - this.throughputUnit = Objects.requireNonNull(throughputUnit); + if (throughputUnit == null) { + throw new MissingRequiredPropertyException("DeviceLinkLink", "throughputUnit"); + } + this.throughputUnit = throughputUnit; return this; } public DeviceLinkLink build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkMetroLink.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkMetroLink.java index 5e6d7e19..5e1f2534 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkMetroLink.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceLinkMetroLink.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -84,22 +85,34 @@ public Builder(DeviceLinkMetroLink defaults) { @CustomType.Setter public Builder accountNumber(String accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLink", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLink", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder throughput(String throughput) { - this.throughput = Objects.requireNonNull(throughput); + if (throughput == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLink", "throughput"); + } + this.throughput = throughput; return this; } @CustomType.Setter public Builder throughputUnit(String throughputUnit) { - this.throughputUnit = Objects.requireNonNull(throughputUnit); + if (throughputUnit == null) { + throw new MissingRequiredPropertyException("DeviceLinkMetroLink", "throughputUnit"); + } + this.throughputUnit = throughputUnit; return this; } public DeviceLinkMetroLink build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDevice.java index 336712d9..6c6aa226 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDevice.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.networkedge.outputs.DeviceSecondaryDeviceInterface; import com.equinix.pulumi.networkedge.outputs.DeviceSecondaryDeviceSshKey; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -429,41 +430,51 @@ public Builder(DeviceSecondaryDevice defaults) { @CustomType.Setter public Builder accountNumber(String accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDevice", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder aclTemplateId(@Nullable String aclTemplateId) { + this.aclTemplateId = aclTemplateId; return this; } @CustomType.Setter public Builder additionalBandwidth(@Nullable Integer additionalBandwidth) { + this.additionalBandwidth = additionalBandwidth; return this; } @CustomType.Setter public Builder asn(@Nullable Integer asn) { + this.asn = asn; return this; } @CustomType.Setter public Builder cloudInitFileId(@Nullable String cloudInitFileId) { + this.cloudInitFileId = cloudInitFileId; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder ibx(@Nullable String ibx) { + this.ibx = ibx; return this; } @CustomType.Setter public Builder interfaces(@Nullable List interfaces) { + this.interfaces = interfaces; return this; } @@ -472,42 +483,56 @@ public Builder interfaces(DeviceSecondaryDeviceInterface... interfaces) { } @CustomType.Setter public Builder licenseFile(@Nullable String licenseFile) { + this.licenseFile = licenseFile; return this; } @CustomType.Setter public Builder licenseFileId(@Nullable String licenseFileId) { + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseStatus(@Nullable String licenseStatus) { + this.licenseStatus = licenseStatus; return this; } @CustomType.Setter public Builder licenseToken(@Nullable String licenseToken) { + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDevice", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder mgmtAclTemplateUuid(@Nullable String mgmtAclTemplateUuid) { + this.mgmtAclTemplateUuid = mgmtAclTemplateUuid; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDevice", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDevice", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(String... notifications) { @@ -515,61 +540,73 @@ public Builder notifications(String... notifications) { } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder redundancyType(@Nullable String redundancyType) { + this.redundancyType = redundancyType; return this; } @CustomType.Setter public Builder redundantId(@Nullable String redundantId) { + this.redundantId = redundantId; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder sshIpAddress(@Nullable String sshIpAddress) { + this.sshIpAddress = sshIpAddress; return this; } @CustomType.Setter public Builder sshIpFqdn(@Nullable String sshIpFqdn) { + this.sshIpFqdn = sshIpFqdn; return this; } @CustomType.Setter public Builder sshKey(@Nullable DeviceSecondaryDeviceSshKey sshKey) { + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder uuid(@Nullable String uuid) { + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfiguration(@Nullable Map vendorConfiguration) { + this.vendorConfiguration = vendorConfiguration; return this; } @CustomType.Setter public Builder wanInterfaceId(@Nullable String wanInterfaceId) { + this.wanInterfaceId = wanInterfaceId; return this; } @CustomType.Setter public Builder zoneCode(@Nullable String zoneCode) { + this.zoneCode = zoneCode; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceInterface.java index bbded3cc..9f1dd7ae 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceInterface.java @@ -143,41 +143,49 @@ public Builder(DeviceSecondaryDeviceInterface defaults) { @CustomType.Setter public Builder assignedType(@Nullable String assignedType) { + this.assignedType = assignedType; return this; } @CustomType.Setter public Builder id(@Nullable Integer id) { + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder macAddress(@Nullable String macAddress) { + this.macAddress = macAddress; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder operationalStatus(@Nullable String operationalStatus) { + this.operationalStatus = operationalStatus; return this; } @CustomType.Setter public Builder status(@Nullable String status) { + this.status = status; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceSshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceSshKey.java index a34517d3..38a8a443 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceSshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSecondaryDeviceSshKey.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(DeviceSecondaryDeviceSshKey defaults) { @CustomType.Setter public Builder keyName(String keyName) { - this.keyName = Objects.requireNonNull(keyName); + if (keyName == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceSshKey", "keyName"); + } + this.keyName = keyName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("DeviceSecondaryDeviceSshKey", "username"); + } + this.username = username; return this; } public DeviceSecondaryDeviceSshKey build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSshKey.java index 4bf56570..8956336b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/DeviceSshKey.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(DeviceSshKey defaults) { @CustomType.Setter public Builder keyName(String keyName) { - this.keyName = Objects.requireNonNull(keyName); + if (keyName == null) { + throw new MissingRequiredPropertyException("DeviceSshKey", "keyName"); + } + this.keyName = keyName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("DeviceSshKey", "username"); + } + this.username = username; return this; } public DeviceSshKey build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetAccountResult.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetAccountResult.java index 068593ed..d3ac73a7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetAccountResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetAccountResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -94,37 +95,58 @@ public Builder(GetAccountResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder number(String number) { - this.number = Objects.requireNonNull(number); + if (number == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "number"); + } + this.number = number; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder ucmId(String ucmId) { - this.ucmId = Objects.requireNonNull(ucmId); + if (ucmId == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "ucmId"); + } + this.ucmId = ucmId; return this; } public GetAccountResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetail.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetail.java index 8ef69d0d..7104f506 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetail.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetail.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.networkedge.outputs.GetDeviceClusterDetailNode0; import com.equinix.pulumi.networkedge.outputs.GetDeviceClusterDetailNode1; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -102,17 +103,26 @@ public Builder(GetDeviceClusterDetail defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetail", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterName(String clusterName) { - this.clusterName = Objects.requireNonNull(clusterName); + if (clusterName == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetail", "clusterName"); + } + this.clusterName = clusterName; return this; } @CustomType.Setter public Builder node0s(List node0s) { - this.node0s = Objects.requireNonNull(node0s); + if (node0s == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetail", "node0s"); + } + this.node0s = node0s; return this; } public Builder node0s(GetDeviceClusterDetailNode0... node0s) { @@ -120,7 +130,10 @@ public Builder node0s(GetDeviceClusterDetailNode0... node0s) { } @CustomType.Setter public Builder node1s(List node1s) { - this.node1s = Objects.requireNonNull(node1s); + if (node1s == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetail", "node1s"); + } + this.node1s = node1s; return this; } public Builder node1s(GetDeviceClusterDetailNode1... node1s) { @@ -128,7 +141,10 @@ public Builder node1s(GetDeviceClusterDetailNode1... node1s) { } @CustomType.Setter public Builder numOfNodes(Integer numOfNodes) { - this.numOfNodes = Objects.requireNonNull(numOfNodes); + if (numOfNodes == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetail", "numOfNodes"); + } + this.numOfNodes = numOfNodes; return this; } public GetDeviceClusterDetail build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0.java index c37ba070..fe93a904 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.networkedge.outputs.GetDeviceClusterDetailNode0VendorConfiguration; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -100,27 +101,42 @@ public Builder(GetDeviceClusterDetailNode0 defaults) { @CustomType.Setter public Builder licenseFileId(String licenseFileId) { - this.licenseFileId = Objects.requireNonNull(licenseFileId); + if (licenseFileId == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0", "licenseFileId"); + } + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseToken(String licenseToken) { - this.licenseToken = Objects.requireNonNull(licenseToken); + if (licenseToken == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0", "licenseToken"); + } + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfigurations(List vendorConfigurations) { - this.vendorConfigurations = Objects.requireNonNull(vendorConfigurations); + if (vendorConfigurations == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0", "vendorConfigurations"); + } + this.vendorConfigurations = vendorConfigurations; return this; } public Builder vendorConfigurations(GetDeviceClusterDetailNode0VendorConfiguration... vendorConfigurations) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0VendorConfiguration.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0VendorConfiguration.java index a698d20d..cf9fd677 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0VendorConfiguration.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode0VendorConfiguration.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -182,57 +183,90 @@ public Builder(GetDeviceClusterDetailNode0VendorConfiguration defaults) { @CustomType.Setter public Builder activationKey(String activationKey) { - this.activationKey = Objects.requireNonNull(activationKey); + if (activationKey == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "activationKey"); + } + this.activationKey = activationKey; return this; } @CustomType.Setter public Builder adminPassword(String adminPassword) { - this.adminPassword = Objects.requireNonNull(adminPassword); + if (adminPassword == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "adminPassword"); + } + this.adminPassword = adminPassword; return this; } @CustomType.Setter public Builder controller1(String controller1) { - this.controller1 = Objects.requireNonNull(controller1); + if (controller1 == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "controller1"); + } + this.controller1 = controller1; return this; } @CustomType.Setter public Builder controllerFqdn(String controllerFqdn) { - this.controllerFqdn = Objects.requireNonNull(controllerFqdn); + if (controllerFqdn == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "controllerFqdn"); + } + this.controllerFqdn = controllerFqdn; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder licenseId(String licenseId) { - this.licenseId = Objects.requireNonNull(licenseId); + if (licenseId == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "licenseId"); + } + this.licenseId = licenseId; return this; } @CustomType.Setter public Builder licenseKey(String licenseKey) { - this.licenseKey = Objects.requireNonNull(licenseKey); + if (licenseKey == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "licenseKey"); + } + this.licenseKey = licenseKey; return this; } @CustomType.Setter public Builder privateAddress(String privateAddress) { - this.privateAddress = Objects.requireNonNull(privateAddress); + if (privateAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "privateAddress"); + } + this.privateAddress = privateAddress; return this; } @CustomType.Setter public Builder privateCidrMask(String privateCidrMask) { - this.privateCidrMask = Objects.requireNonNull(privateCidrMask); + if (privateCidrMask == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "privateCidrMask"); + } + this.privateCidrMask = privateCidrMask; return this; } @CustomType.Setter public Builder privateGateway(String privateGateway) { - this.privateGateway = Objects.requireNonNull(privateGateway); + if (privateGateway == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "privateGateway"); + } + this.privateGateway = privateGateway; return this; } @CustomType.Setter public Builder rootPassword(String rootPassword) { - this.rootPassword = Objects.requireNonNull(rootPassword); + if (rootPassword == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode0VendorConfiguration", "rootPassword"); + } + this.rootPassword = rootPassword; return this; } public GetDeviceClusterDetailNode0VendorConfiguration build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1.java index b2a2b8e5..790a52c8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1.java @@ -5,6 +5,7 @@ import com.equinix.pulumi.networkedge.outputs.GetDeviceClusterDetailNode1VendorConfiguration; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -100,27 +101,42 @@ public Builder(GetDeviceClusterDetailNode1 defaults) { @CustomType.Setter public Builder licenseFileId(String licenseFileId) { - this.licenseFileId = Objects.requireNonNull(licenseFileId); + if (licenseFileId == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1", "licenseFileId"); + } + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseToken(String licenseToken) { - this.licenseToken = Objects.requireNonNull(licenseToken); + if (licenseToken == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1", "licenseToken"); + } + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfigurations(List vendorConfigurations) { - this.vendorConfigurations = Objects.requireNonNull(vendorConfigurations); + if (vendorConfigurations == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1", "vendorConfigurations"); + } + this.vendorConfigurations = vendorConfigurations; return this; } public Builder vendorConfigurations(GetDeviceClusterDetailNode1VendorConfiguration... vendorConfigurations) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1VendorConfiguration.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1VendorConfiguration.java index a0726ece..405b23e5 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1VendorConfiguration.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceClusterDetailNode1VendorConfiguration.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -182,57 +183,90 @@ public Builder(GetDeviceClusterDetailNode1VendorConfiguration defaults) { @CustomType.Setter public Builder activationKey(String activationKey) { - this.activationKey = Objects.requireNonNull(activationKey); + if (activationKey == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "activationKey"); + } + this.activationKey = activationKey; return this; } @CustomType.Setter public Builder adminPassword(String adminPassword) { - this.adminPassword = Objects.requireNonNull(adminPassword); + if (adminPassword == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "adminPassword"); + } + this.adminPassword = adminPassword; return this; } @CustomType.Setter public Builder controller1(String controller1) { - this.controller1 = Objects.requireNonNull(controller1); + if (controller1 == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "controller1"); + } + this.controller1 = controller1; return this; } @CustomType.Setter public Builder controllerFqdn(String controllerFqdn) { - this.controllerFqdn = Objects.requireNonNull(controllerFqdn); + if (controllerFqdn == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "controllerFqdn"); + } + this.controllerFqdn = controllerFqdn; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder licenseId(String licenseId) { - this.licenseId = Objects.requireNonNull(licenseId); + if (licenseId == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "licenseId"); + } + this.licenseId = licenseId; return this; } @CustomType.Setter public Builder licenseKey(String licenseKey) { - this.licenseKey = Objects.requireNonNull(licenseKey); + if (licenseKey == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "licenseKey"); + } + this.licenseKey = licenseKey; return this; } @CustomType.Setter public Builder privateAddress(String privateAddress) { - this.privateAddress = Objects.requireNonNull(privateAddress); + if (privateAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "privateAddress"); + } + this.privateAddress = privateAddress; return this; } @CustomType.Setter public Builder privateCidrMask(String privateCidrMask) { - this.privateCidrMask = Objects.requireNonNull(privateCidrMask); + if (privateCidrMask == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "privateCidrMask"); + } + this.privateCidrMask = privateCidrMask; return this; } @CustomType.Setter public Builder privateGateway(String privateGateway) { - this.privateGateway = Objects.requireNonNull(privateGateway); + if (privateGateway == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "privateGateway"); + } + this.privateGateway = privateGateway; return this; } @CustomType.Setter public Builder rootPassword(String rootPassword) { - this.rootPassword = Objects.requireNonNull(rootPassword); + if (rootPassword == null) { + throw new MissingRequiredPropertyException("GetDeviceClusterDetailNode1VendorConfiguration", "rootPassword"); + } + this.rootPassword = rootPassword; return this; } public GetDeviceClusterDetailNode1VendorConfiguration build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceInterface.java index cfb42b45..53c22da8 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -165,42 +166,66 @@ public Builder(GetDeviceInterface defaults) { @CustomType.Setter public Builder assignedType(String assignedType) { - this.assignedType = Objects.requireNonNull(assignedType); + if (assignedType == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "assignedType"); + } + this.assignedType = assignedType; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder macAddress(String macAddress) { - this.macAddress = Objects.requireNonNull(macAddress); + if (macAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "macAddress"); + } + this.macAddress = macAddress; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder operationalStatus(String operationalStatus) { - this.operationalStatus = Objects.requireNonNull(operationalStatus); + if (operationalStatus == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "operationalStatus"); + } + this.operationalStatus = operationalStatus; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDeviceInterface", "type"); + } + this.type = type; return this; } public GetDeviceInterface build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDevicePlatformResult.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDevicePlatformResult.java index dfdfecb1..e038d2c2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDevicePlatformResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDevicePlatformResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -108,27 +109,42 @@ public Builder(GetDevicePlatformResult defaults) { @CustomType.Setter public Builder coreCount(Integer coreCount) { - this.coreCount = Objects.requireNonNull(coreCount); + if (coreCount == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "coreCount"); + } + this.coreCount = coreCount; return this; } @CustomType.Setter public Builder deviceType(String deviceType) { - this.deviceType = Objects.requireNonNull(deviceType); + if (deviceType == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "deviceType"); + } + this.deviceType = deviceType; return this; } @CustomType.Setter public Builder flavor(String flavor) { - this.flavor = Objects.requireNonNull(flavor); + if (flavor == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "flavor"); + } + this.flavor = flavor; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder licenseOptions(List licenseOptions) { - this.licenseOptions = Objects.requireNonNull(licenseOptions); + if (licenseOptions == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "licenseOptions"); + } + this.licenseOptions = licenseOptions; return this; } public Builder licenseOptions(String... licenseOptions) { @@ -136,7 +152,10 @@ public Builder licenseOptions(String... licenseOptions) { } @CustomType.Setter public Builder managementTypes(List managementTypes) { - this.managementTypes = Objects.requireNonNull(managementTypes); + if (managementTypes == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "managementTypes"); + } + this.managementTypes = managementTypes; return this; } public Builder managementTypes(String... managementTypes) { @@ -144,17 +163,26 @@ public Builder managementTypes(String... managementTypes) { } @CustomType.Setter public Builder memory(Integer memory) { - this.memory = Objects.requireNonNull(memory); + if (memory == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "memory"); + } + this.memory = memory; return this; } @CustomType.Setter public Builder memoryUnit(String memoryUnit) { - this.memoryUnit = Objects.requireNonNull(memoryUnit); + if (memoryUnit == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "memoryUnit"); + } + this.memoryUnit = memoryUnit; return this; } @CustomType.Setter public Builder packages(List packages) { - this.packages = Objects.requireNonNull(packages); + if (packages == null) { + throw new MissingRequiredPropertyException("GetDevicePlatformResult", "packages"); + } + this.packages = packages; return this; } public Builder packages(String... packages) { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceResult.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceResult.java index 0d9e0e90..73ef51c2 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceResult.java @@ -8,6 +8,7 @@ import com.equinix.pulumi.networkedge.outputs.GetDeviceSecondaryDevice; import com.equinix.pulumi.networkedge.outputs.GetDeviceSshKey; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -518,32 +519,50 @@ public Builder(GetDeviceResult defaults) { @CustomType.Setter public Builder accountNumber(String accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder aclTemplateId(String aclTemplateId) { - this.aclTemplateId = Objects.requireNonNull(aclTemplateId); + if (aclTemplateId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "aclTemplateId"); + } + this.aclTemplateId = aclTemplateId; return this; } @CustomType.Setter public Builder additionalBandwidth(Integer additionalBandwidth) { - this.additionalBandwidth = Objects.requireNonNull(additionalBandwidth); + if (additionalBandwidth == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "additionalBandwidth"); + } + this.additionalBandwidth = additionalBandwidth; return this; } @CustomType.Setter public Builder asn(Integer asn) { - this.asn = Objects.requireNonNull(asn); + if (asn == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "asn"); + } + this.asn = asn; return this; } @CustomType.Setter public Builder byol(Boolean byol) { - this.byol = Objects.requireNonNull(byol); + if (byol == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "byol"); + } + this.byol = byol; return this; } @CustomType.Setter public Builder clusterDetails(List clusterDetails) { - this.clusterDetails = Objects.requireNonNull(clusterDetails); + if (clusterDetails == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "clusterDetails"); + } + this.clusterDetails = clusterDetails; return this; } public Builder clusterDetails(GetDeviceClusterDetail... clusterDetails) { @@ -551,47 +570,74 @@ public Builder clusterDetails(GetDeviceClusterDetail... clusterDetails) { } @CustomType.Setter public Builder connectivity(String connectivity) { - this.connectivity = Objects.requireNonNull(connectivity); + if (connectivity == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "connectivity"); + } + this.connectivity = connectivity; return this; } @CustomType.Setter public Builder coreCount(Integer coreCount) { - this.coreCount = Objects.requireNonNull(coreCount); + if (coreCount == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "coreCount"); + } + this.coreCount = coreCount; return this; } @CustomType.Setter public Builder diverseDeviceId(String diverseDeviceId) { - this.diverseDeviceId = Objects.requireNonNull(diverseDeviceId); + if (diverseDeviceId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "diverseDeviceId"); + } + this.diverseDeviceId = diverseDeviceId; return this; } @CustomType.Setter public Builder diverseDeviceName(String diverseDeviceName) { - this.diverseDeviceName = Objects.requireNonNull(diverseDeviceName); + if (diverseDeviceName == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "diverseDeviceName"); + } + this.diverseDeviceName = diverseDeviceName; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder interfaceCount(Integer interfaceCount) { - this.interfaceCount = Objects.requireNonNull(interfaceCount); + if (interfaceCount == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "interfaceCount"); + } + this.interfaceCount = interfaceCount; return this; } @CustomType.Setter public Builder interfaces(List interfaces) { - this.interfaces = Objects.requireNonNull(interfaces); + if (interfaces == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "interfaces"); + } + this.interfaces = interfaces; return this; } public Builder interfaces(GetDeviceInterface... interfaces) { @@ -599,42 +645,66 @@ public Builder interfaces(GetDeviceInterface... interfaces) { } @CustomType.Setter public Builder licenseFile(String licenseFile) { - this.licenseFile = Objects.requireNonNull(licenseFile); + if (licenseFile == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "licenseFile"); + } + this.licenseFile = licenseFile; return this; } @CustomType.Setter public Builder licenseFileId(String licenseFileId) { - this.licenseFileId = Objects.requireNonNull(licenseFileId); + if (licenseFileId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "licenseFileId"); + } + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseStatus(String licenseStatus) { - this.licenseStatus = Objects.requireNonNull(licenseStatus); + if (licenseStatus == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "licenseStatus"); + } + this.licenseStatus = licenseStatus; return this; } @CustomType.Setter public Builder licenseToken(String licenseToken) { - this.licenseToken = Objects.requireNonNull(licenseToken); + if (licenseToken == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "licenseToken"); + } + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder mgmtAclTemplateUuid(String mgmtAclTemplateUuid) { - this.mgmtAclTemplateUuid = Objects.requireNonNull(mgmtAclTemplateUuid); + if (mgmtAclTemplateUuid == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "mgmtAclTemplateUuid"); + } + this.mgmtAclTemplateUuid = mgmtAclTemplateUuid; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(String... notifications) { @@ -642,42 +712,66 @@ public Builder notifications(String... notifications) { } @CustomType.Setter public Builder orderReference(String orderReference) { - this.orderReference = Objects.requireNonNull(orderReference); + if (orderReference == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "orderReference"); + } + this.orderReference = orderReference; return this; } @CustomType.Setter public Builder packageCode(String packageCode) { - this.packageCode = Objects.requireNonNull(packageCode); + if (packageCode == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "packageCode"); + } + this.packageCode = packageCode; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder purchaseOrderNumber(String purchaseOrderNumber) { - this.purchaseOrderNumber = Objects.requireNonNull(purchaseOrderNumber); + if (purchaseOrderNumber == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "purchaseOrderNumber"); + } + this.purchaseOrderNumber = purchaseOrderNumber; return this; } @CustomType.Setter public Builder redundancyType(String redundancyType) { - this.redundancyType = Objects.requireNonNull(redundancyType); + if (redundancyType == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "redundancyType"); + } + this.redundancyType = redundancyType; return this; } @CustomType.Setter public Builder redundantId(String redundantId) { - this.redundantId = Objects.requireNonNull(redundantId); + if (redundantId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "redundantId"); + } + this.redundantId = redundantId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder secondaryDevices(List secondaryDevices) { - this.secondaryDevices = Objects.requireNonNull(secondaryDevices); + if (secondaryDevices == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "secondaryDevices"); + } + this.secondaryDevices = secondaryDevices; return this; } public Builder secondaryDevices(GetDeviceSecondaryDevice... secondaryDevices) { @@ -685,22 +779,34 @@ public Builder secondaryDevices(GetDeviceSecondaryDevice... secondaryDevices) { } @CustomType.Setter public Builder selfManaged(Boolean selfManaged) { - this.selfManaged = Objects.requireNonNull(selfManaged); + if (selfManaged == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "selfManaged"); + } + this.selfManaged = selfManaged; return this; } @CustomType.Setter public Builder sshIpAddress(String sshIpAddress) { - this.sshIpAddress = Objects.requireNonNull(sshIpAddress); + if (sshIpAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "sshIpAddress"); + } + this.sshIpAddress = sshIpAddress; return this; } @CustomType.Setter public Builder sshIpFqdn(String sshIpFqdn) { - this.sshIpFqdn = Objects.requireNonNull(sshIpFqdn); + if (sshIpFqdn == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "sshIpFqdn"); + } + this.sshIpFqdn = sshIpFqdn; return this; } @CustomType.Setter public Builder sshKeys(List sshKeys) { - this.sshKeys = Objects.requireNonNull(sshKeys); + if (sshKeys == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "sshKeys"); + } + this.sshKeys = sshKeys; return this; } public Builder sshKeys(GetDeviceSshKey... sshKeys) { @@ -708,57 +814,88 @@ public Builder sshKeys(GetDeviceSshKey... sshKeys) { } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder termLength(Integer termLength) { - this.termLength = Objects.requireNonNull(termLength); + if (termLength == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "termLength"); + } + this.termLength = termLength; return this; } @CustomType.Setter public Builder throughput(Integer throughput) { - this.throughput = Objects.requireNonNull(throughput); + if (throughput == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "throughput"); + } + this.throughput = throughput; return this; } @CustomType.Setter public Builder throughputUnit(String throughputUnit) { - this.throughputUnit = Objects.requireNonNull(throughputUnit); + if (throughputUnit == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "throughputUnit"); + } + this.throughputUnit = throughputUnit; return this; } @CustomType.Setter public Builder typeCode(String typeCode) { - this.typeCode = Objects.requireNonNull(typeCode); + if (typeCode == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "typeCode"); + } + this.typeCode = typeCode; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder validStatusList(@Nullable String validStatusList) { + this.validStatusList = validStatusList; return this; } @CustomType.Setter public Builder vendorConfiguration(Map vendorConfiguration) { - this.vendorConfiguration = Objects.requireNonNull(vendorConfiguration); + if (vendorConfiguration == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "vendorConfiguration"); + } + this.vendorConfiguration = vendorConfiguration; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "version"); + } + this.version = version; return this; } @CustomType.Setter public Builder wanInterfaceId(String wanInterfaceId) { - this.wanInterfaceId = Objects.requireNonNull(wanInterfaceId); + if (wanInterfaceId == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "wanInterfaceId"); + } + this.wanInterfaceId = wanInterfaceId; return this; } @CustomType.Setter public Builder zoneCode(String zoneCode) { - this.zoneCode = Objects.requireNonNull(zoneCode); + if (zoneCode == null) { + throw new MissingRequiredPropertyException("GetDeviceResult", "zoneCode"); + } + this.zoneCode = zoneCode; return this; } public GetDeviceResult build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDevice.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDevice.java index 9a91eb91..73d83197 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDevice.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDevice.java @@ -6,6 +6,7 @@ import com.equinix.pulumi.networkedge.outputs.GetDeviceSecondaryDeviceInterface; import com.equinix.pulumi.networkedge.outputs.GetDeviceSecondaryDeviceSshKey; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -477,42 +478,66 @@ public Builder(GetDeviceSecondaryDevice defaults) { @CustomType.Setter public Builder accountNumber(String accountNumber) { - this.accountNumber = Objects.requireNonNull(accountNumber); + if (accountNumber == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "accountNumber"); + } + this.accountNumber = accountNumber; return this; } @CustomType.Setter public Builder aclTemplateId(String aclTemplateId) { - this.aclTemplateId = Objects.requireNonNull(aclTemplateId); + if (aclTemplateId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "aclTemplateId"); + } + this.aclTemplateId = aclTemplateId; return this; } @CustomType.Setter public Builder additionalBandwidth(Integer additionalBandwidth) { - this.additionalBandwidth = Objects.requireNonNull(additionalBandwidth); + if (additionalBandwidth == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "additionalBandwidth"); + } + this.additionalBandwidth = additionalBandwidth; return this; } @CustomType.Setter public Builder asn(Integer asn) { - this.asn = Objects.requireNonNull(asn); + if (asn == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "asn"); + } + this.asn = asn; return this; } @CustomType.Setter public Builder cloudInitFileId(String cloudInitFileId) { - this.cloudInitFileId = Objects.requireNonNull(cloudInitFileId); + if (cloudInitFileId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "cloudInitFileId"); + } + this.cloudInitFileId = cloudInitFileId; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder ibx(String ibx) { - this.ibx = Objects.requireNonNull(ibx); + if (ibx == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "ibx"); + } + this.ibx = ibx; return this; } @CustomType.Setter public Builder interfaces(List interfaces) { - this.interfaces = Objects.requireNonNull(interfaces); + if (interfaces == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "interfaces"); + } + this.interfaces = interfaces; return this; } public Builder interfaces(GetDeviceSecondaryDeviceInterface... interfaces) { @@ -520,42 +545,66 @@ public Builder interfaces(GetDeviceSecondaryDeviceInterface... interfaces) { } @CustomType.Setter public Builder licenseFile(String licenseFile) { - this.licenseFile = Objects.requireNonNull(licenseFile); + if (licenseFile == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "licenseFile"); + } + this.licenseFile = licenseFile; return this; } @CustomType.Setter public Builder licenseFileId(String licenseFileId) { - this.licenseFileId = Objects.requireNonNull(licenseFileId); + if (licenseFileId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "licenseFileId"); + } + this.licenseFileId = licenseFileId; return this; } @CustomType.Setter public Builder licenseStatus(String licenseStatus) { - this.licenseStatus = Objects.requireNonNull(licenseStatus); + if (licenseStatus == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "licenseStatus"); + } + this.licenseStatus = licenseStatus; return this; } @CustomType.Setter public Builder licenseToken(String licenseToken) { - this.licenseToken = Objects.requireNonNull(licenseToken); + if (licenseToken == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "licenseToken"); + } + this.licenseToken = licenseToken; return this; } @CustomType.Setter public Builder metroCode(String metroCode) { - this.metroCode = Objects.requireNonNull(metroCode); + if (metroCode == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "metroCode"); + } + this.metroCode = metroCode; return this; } @CustomType.Setter public Builder mgmtAclTemplateUuid(String mgmtAclTemplateUuid) { - this.mgmtAclTemplateUuid = Objects.requireNonNull(mgmtAclTemplateUuid); + if (mgmtAclTemplateUuid == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "mgmtAclTemplateUuid"); + } + this.mgmtAclTemplateUuid = mgmtAclTemplateUuid; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder notifications(List notifications) { - this.notifications = Objects.requireNonNull(notifications); + if (notifications == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "notifications"); + } + this.notifications = notifications; return this; } public Builder notifications(String... notifications) { @@ -563,37 +612,58 @@ public Builder notifications(String... notifications) { } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder redundancyType(String redundancyType) { - this.redundancyType = Objects.requireNonNull(redundancyType); + if (redundancyType == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "redundancyType"); + } + this.redundancyType = redundancyType; return this; } @CustomType.Setter public Builder redundantId(String redundantId) { - this.redundantId = Objects.requireNonNull(redundantId); + if (redundantId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "redundantId"); + } + this.redundantId = redundantId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder sshIpAddress(String sshIpAddress) { - this.sshIpAddress = Objects.requireNonNull(sshIpAddress); + if (sshIpAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "sshIpAddress"); + } + this.sshIpAddress = sshIpAddress; return this; } @CustomType.Setter public Builder sshIpFqdn(String sshIpFqdn) { - this.sshIpFqdn = Objects.requireNonNull(sshIpFqdn); + if (sshIpFqdn == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "sshIpFqdn"); + } + this.sshIpFqdn = sshIpFqdn; return this; } @CustomType.Setter public Builder sshKeys(List sshKeys) { - this.sshKeys = Objects.requireNonNull(sshKeys); + if (sshKeys == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "sshKeys"); + } + this.sshKeys = sshKeys; return this; } public Builder sshKeys(GetDeviceSecondaryDeviceSshKey... sshKeys) { @@ -601,27 +671,42 @@ public Builder sshKeys(GetDeviceSecondaryDeviceSshKey... sshKeys) { } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "uuid"); + } + this.uuid = uuid; return this; } @CustomType.Setter public Builder vendorConfiguration(Map vendorConfiguration) { - this.vendorConfiguration = Objects.requireNonNull(vendorConfiguration); + if (vendorConfiguration == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "vendorConfiguration"); + } + this.vendorConfiguration = vendorConfiguration; return this; } @CustomType.Setter public Builder wanInterfaceId(String wanInterfaceId) { - this.wanInterfaceId = Objects.requireNonNull(wanInterfaceId); + if (wanInterfaceId == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "wanInterfaceId"); + } + this.wanInterfaceId = wanInterfaceId; return this; } @CustomType.Setter public Builder zoneCode(String zoneCode) { - this.zoneCode = Objects.requireNonNull(zoneCode); + if (zoneCode == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDevice", "zoneCode"); + } + this.zoneCode = zoneCode; return this; } public GetDeviceSecondaryDevice build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceInterface.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceInterface.java index e9e656b7..287ba25b 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceInterface.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceInterface.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -165,42 +166,66 @@ public Builder(GetDeviceSecondaryDeviceInterface defaults) { @CustomType.Setter public Builder assignedType(String assignedType) { - this.assignedType = Objects.requireNonNull(assignedType); + if (assignedType == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "assignedType"); + } + this.assignedType = assignedType; return this; } @CustomType.Setter public Builder id(Integer id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(String ipAddress) { - this.ipAddress = Objects.requireNonNull(ipAddress); + if (ipAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "ipAddress"); + } + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder macAddress(String macAddress) { - this.macAddress = Objects.requireNonNull(macAddress); + if (macAddress == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "macAddress"); + } + this.macAddress = macAddress; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder operationalStatus(String operationalStatus) { - this.operationalStatus = Objects.requireNonNull(operationalStatus); + if (operationalStatus == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "operationalStatus"); + } + this.operationalStatus = operationalStatus; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceInterface", "type"); + } + this.type = type; return this; } public GetDeviceSecondaryDeviceInterface build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceSshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceSshKey.java index de1e4057..f4535806 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceSshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSecondaryDeviceSshKey.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetDeviceSecondaryDeviceSshKey defaults) { @CustomType.Setter public Builder keyName(String keyName) { - this.keyName = Objects.requireNonNull(keyName); + if (keyName == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceSshKey", "keyName"); + } + this.keyName = keyName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetDeviceSecondaryDeviceSshKey", "username"); + } + this.username = username; return this; } public GetDeviceSecondaryDeviceSshKey build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSoftwareResult.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSoftwareResult.java index cbb0afc6..34c348c0 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSoftwareResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSoftwareResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -146,32 +147,48 @@ public Builder(GetDeviceSoftwareResult defaults) { @CustomType.Setter public Builder date(String date) { - this.date = Objects.requireNonNull(date); + if (date == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "date"); + } + this.date = date; return this; } @CustomType.Setter public Builder deviceType(String deviceType) { - this.deviceType = Objects.requireNonNull(deviceType); + if (deviceType == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "deviceType"); + } + this.deviceType = deviceType; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder imageName(String imageName) { - this.imageName = Objects.requireNonNull(imageName); + if (imageName == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "imageName"); + } + this.imageName = imageName; return this; } @CustomType.Setter public Builder mostRecent(@Nullable Boolean mostRecent) { + this.mostRecent = mostRecent; return this; } @CustomType.Setter public Builder packages(List packages) { - this.packages = Objects.requireNonNull(packages); + if (packages == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "packages"); + } + this.packages = packages; return this; } public Builder packages(String... packages) { @@ -179,26 +196,39 @@ public Builder packages(String... packages) { } @CustomType.Setter public Builder releaseNotesLink(String releaseNotesLink) { - this.releaseNotesLink = Objects.requireNonNull(releaseNotesLink); + if (releaseNotesLink == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "releaseNotesLink"); + } + this.releaseNotesLink = releaseNotesLink; return this; } @CustomType.Setter public Builder stable(Boolean stable) { - this.stable = Objects.requireNonNull(stable); + if (stable == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "stable"); + } + this.stable = stable; return this; } @CustomType.Setter public Builder status(String status) { - this.status = Objects.requireNonNull(status); + if (status == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "status"); + } + this.status = status; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetDeviceSoftwareResult", "version"); + } + this.version = version; return this; } @CustomType.Setter public Builder versionRegex(@Nullable String versionRegex) { + this.versionRegex = versionRegex; return this; } diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSshKey.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSshKey.java index cb81f1c7..56e6898a 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSshKey.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceSshKey.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GetDeviceSshKey defaults) { @CustomType.Setter public Builder keyName(String keyName) { - this.keyName = Objects.requireNonNull(keyName); + if (keyName == null) { + throw new MissingRequiredPropertyException("GetDeviceSshKey", "keyName"); + } + this.keyName = keyName; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetDeviceSshKey", "username"); + } + this.username = username; return this; } public GetDeviceSshKey build() { diff --git a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceTypeResult.java b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceTypeResult.java index c3db0e72..7f663fa7 100644 --- a/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceTypeResult.java +++ b/sdk/java/src/main/java/com/equinix/pulumi/networkedge/outputs/GetDeviceTypeResult.java @@ -4,6 +4,7 @@ package com.equinix.pulumi.networkedge.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,27 +96,42 @@ public Builder(GetDeviceTypeResult defaults) { @CustomType.Setter public Builder category(String category) { - this.category = Objects.requireNonNull(category); + if (category == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "category"); + } + this.category = category; return this; } @CustomType.Setter public Builder code(String code) { - this.code = Objects.requireNonNull(code); + if (code == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "code"); + } + this.code = code; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder metroCodes(List metroCodes) { - this.metroCodes = Objects.requireNonNull(metroCodes); + if (metroCodes == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "metroCodes"); + } + this.metroCodes = metroCodes; return this; } public Builder metroCodes(String... metroCodes) { @@ -123,12 +139,18 @@ public Builder metroCodes(String... metroCodes) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder vendor(String vendor) { - this.vendor = Objects.requireNonNull(vendor); + if (vendor == null) { + throw new MissingRequiredPropertyException("GetDeviceTypeResult", "vendor"); + } + this.vendor = vendor; return this; } public GetDeviceTypeResult build() { From 0c794f1cb42ec53ecebadaa1d57fc3b0cc54b820 Mon Sep 17 00:00:00 2001 From: Oscar Cobles Date: Tue, 9 Jul 2024 12:41:26 +0200 Subject: [PATCH 2/2] ensure Make won't stop if the bin directory doesn't exist Signed-off-by: Oscar Cobles --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ba97e2ff..a476c42e 100644 --- a/Makefile +++ b/Makefile @@ -137,8 +137,8 @@ lint_provider: provider # lint the provider code cd provider && golangci-lint run -c ../.golangci.yml cleanup: # cleans up the temporary directory - rm -r $(WORKING_DIR)/bin - rm -f provider/cmd/${PROVIDER}/schema.go + - rm -r $(WORKING_DIR)/bin + - rm -f provider/cmd/${PROVIDER}/schema.go help: @grep '^[^.#]\+:\s\+.*#' Makefile | \